Command-line batch (avidemux2_cli) : resamplefps + use safe mode

Started by ericzutter, April 16, 2012, 11:32:56 AM

Previous topic - Next topic

ericzutter

I am using avidemux 2.5.6 on windows 7 64 bits. I have many (=100) mp4-avc-videos from my camera with a video-fps=59.94 and a video-bitrate=25MB. I want to reencode them with video-fps=30 and a smaller bitrate so that it takes lesser space. The default x264-encoding-paremeters from avidemux looks perfect for me.

I created a file av.cmd that contains the following :

set avidemux="C:\Program Files\avidemux_2.5.6\avidemux2_cli.exe"
set videocodec=x264
set audiocodec=COPY
for %%f in (%1) do %avidemux% --video-codec %videocodec% --audio-codec %audiocodec% --autoindex --load "%%f" --output-format MP4 --save "%%f.mp4" --quit


I run the above file with the command : av *.mp4

I have two problems :
- how to add "resamplefps 30" to the above syntax ?
- I receive on each video a question: use safe mode (...B-Frames...) Y/N, how to avoid this question or use a default answer for this question ?

Can you solve the above two problems in my example av.cmd ?

   

Jan Gruuthuse

No switch to avidemux 2.6 for mp4-avc-videos.
And probably use of batch and scripting like shown here: Combination of command-line and JS scripting <- click