User Tools

Site Tools


tinypy:avidemux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tinypy:avidemux [2013/04/27 10:08]
fx [Editing]
tinypy:avidemux [2013/11/12 08:07] (current)
mean [Getting Audio info about loaded file(s)]
Line 12: Line 12:
  ​Append the video given as parameter  ​Append the video given as parameter
  
-__adm.saveVideo('​fileName'​)__+__adm.save('​fileName'​)__
  
  Save the video with given name  Save the video with given name
Line 67: Line 67:
  
  ​Return the sampling rate of track track. For example 48000 for a 48 Khz track  ​Return the sampling rate of track track. For example 48000 for a 48 Khz track
 +
 +__adm.audioBitrate(int track)__
 +
 + ​Return the bitrate in kilobits of the given track. For example a bitrate of 64000 bits/s will return 64.
  
  
Line 96: Line 100:
  ​include ALL parameters.  ​include ALL parameters.
    
 +__adm.videoCodecSetProfile(codecName,​ profileName)__
 +
 + Load the profile "​profileName"​ for the given codec. That also selects the codec.
 +  adm.videoCodecSetProfile("​x264","​PSP"​) ​   ​
 +  ​
 __adm.changeVideoParam:​videoCodecChangeParam(codecName,​ params)__ __adm.changeVideoParam:​videoCodecChangeParam(codecName,​ params)__
  
  ​Change only one or several parameters for codecName. For example, you set all parameters using setVideoCodec  ​Change only one or several parameters for codecName. For example, you set all parameters using setVideoCodec
  and afterward only change bitrate  and afterward only change bitrate
 +
 +
  
 ==== Video Filters ==== ==== Video Filters ====
Line 139: Line 150:
  
  ​Enable or disable normalize audio filter on track "​track"​. Mode is 0 for none, 1 for automatic and 2 for manual. The gain is 10* the real gain in db. i.e set 30 to get a +3 dB boost  ​Enable or disable normalize audio filter on track "​track"​. Mode is 0 for none, 1 for automatic and 2 for manual. The gain is 10* the real gain in db. i.e set 30 to get a +3 dB boost
 +
  
  
Line 152: Line 164:
    ​adm.markerB = 33400000    ​adm.markerB = 33400000
  
 +==== Example 2  ====
 +  adm = Avidemux()
 +  adm.loadVideo("/​work/​samples/​avi/​2mn.avi"​)
 +  adm.clearSegments()
 +  adm.addSegment(0,​ 0, 191524668)
 +  adm.markerA = 0
 +  adm.markerB = 191524668
 +  adm.videoCodec("​ffMpeg4",​ "​params=2PASSBITRATE=500"​) # truncated line
 +  adm.audioClearTracks()
 +  adm.audioAddTrack(0)
 +  adm.audioCodec(0,​ "​Aften"​);​
 +  adm.audioSetDrc(0,​ 0)
 +  adm.audioSetShift(0,​ 0,0)
 +  adm.setContainer("​MKV",​ "​forceDisplayWidth=False",​ "​displayWidth=1280"​)
 +
 +==== Traps and pitfall ​ ====  ​
  
 + Take care that a single line must not exceed ~ 256 chars. So instead of doing
 +   ​function("​blah blah foobar"​)
 + do
 +   ​function("​blah blah"
 +   "​foobar"​)
 +   
  
 +----
 +   
 +[[using:​tinypy|Go back to tinypy]] ​  
tinypy/avidemux.1367050106.txt.gz ยท Last modified: 2013/04/27 10:08 by fx