Nick
23rd March 2008, 17:20
I'm running Avidemux 2.4.1 in Ubuntu Gutsy.
I'm not desperately happy with the MPEG2 output so I use HC_Enc through Wine for my video encoding, which works very well.
So my process, which I'm trying to automate goes like so:
Load an AVI into avidemux and demux the audio file.
Expand to WAV and normalise with ffmpeg
Encode to AC3 with Aften
Encode the video to MPEG2 with HC_Enc
Author with MuxMan (using BatchMux to give it a comprehensive CLI)
Now I have made a bash script to do this. However, I have to input certain parameters about the AVI file manually, these being:
Duration
Framerate
Resolution
Interlaced y/n
My script uses these for calculating bitrate and generating an avisynth script and HC.ini file.
Now looking at the Avidemux scripting reference here (http://avidemux.org/admWiki/index.php?title=Scripting#Avidemux_video_functions) I see that I can access most of the parameters I need.
My question is, is there any way to script avidemux to export these variables to an ini file that my avisynth and HC script generators can use?
I'm not desperately happy with the MPEG2 output so I use HC_Enc through Wine for my video encoding, which works very well.
So my process, which I'm trying to automate goes like so:
Load an AVI into avidemux and demux the audio file.
Expand to WAV and normalise with ffmpeg
Encode to AC3 with Aften
Encode the video to MPEG2 with HC_Enc
Author with MuxMan (using BatchMux to give it a comprehensive CLI)
Now I have made a bash script to do this. However, I have to input certain parameters about the AVI file manually, these being:
Duration
Framerate
Resolution
Interlaced y/n
My script uses these for calculating bitrate and generating an avisynth script and HC.ini file.
Now looking at the Avidemux scripting reference here (http://avidemux.org/admWiki/index.php?title=Scripting#Avidemux_video_functions) I see that I can access most of the parameters I need.
My question is, is there any way to script avidemux to export these variables to an ini file that my avisynth and HC script generators can use?