Author Topic: Batch help (AVI to MP4)  (Read 2153 times)

RamPc

  • Newbie
  • *
  • Posts: 6
Batch help (AVI to MP4)
« on: January 06, 2014, 06:17:47 AM »
Hello People,

I need your advice with a batch file I have been using for some time now.

Quote
set avidemux="C:\Program Files\Avidemux 2.5\avidemux2.exe"
set videocodec=x264
set audiocodec=AAC
set outputformat=mp4
for %%f in (*.avi) do %avidemux% --force-alt-Xvid --load "%%f" --output-format MP4 --video-codec %videocodec% --audio-codec %audiocodec% --save "%%f.mp4" --quit

Above code works for me for until now for long time, files were able to be reproducible on my iphone/PSP/Ps3/etc, but for some reason it is not working on my SmartTv.

It looking like Mp4 files needs to have FPS of 29.97 in order to work on the TV, so I added command --fps 29.97 but sounds is not sync with video after this.

For this reason I wanted to know if someone can help me with a solution for the batch script.

Open for recommendations.

Regards,