I am looking to batch convert a folder with multiple MP4 videos into uncompressed AVI videos with no audio. Is there anyway to do this easily without adding one by one into job control ?
+ Reply to Thread
Results 1 to 6 of 6
For the case of using ffmpeg:
At first, copy the file of ffmpeg.exe to the folder in which all mp4 files to be encoded exist.
And, in cmd line of that folder path in which encoding will be processed, type this & press enter key.
>for %a in (*.mp4) do ffmpeg -i "%~na.mp4" -vcodec copy -an -y -f avi "%~na.avi"
make a text file in the content of the following:
pushd %~dp0 for %%a in (*.mp4) do tools\ffmpeg -i "%%~na.mp4" -vcodec copy -an -y -f avi "%%~na.avi" popd %~dp0
And.. Execute this batch file by double clicking !!!
Last edited by flying2ndsky; 26th Nov 2015 at 11:30.
BTW, "-vcodec copy" is wrong. TheRandomOne did not want the unconverted video stream, but a decoded and uncompressed video. I am not sure if "-vcodec YV12" would work here.
Furthermore, it is not recommendable to store uncompressed video which would really be a waste of disk space; there are also losslessly compressing formats available as AVI compatible codecs, e.g. HFYU or FFV1 (to handle this result in other tools, you would have to install a VfW codec though, like the one in ffdshow).
Instead, if uncompressed output is really necessary, I would even wonder if YUV4MPEG output may be suitable instead of AVI.
Last edited by LigH.de; 26th Nov 2015 at 02:51.
For the virtualdub case:
originally, virtualdub is not support to loading the input files of mp4, mkv, flv .. etc.
So at first, you need virtualdub' plugin files(.vdplugin) to make the mp4 files to be loaded into virtualdub.
In now, plugins sets for virtualdub are two types. the one is a ffmpeg's ffinputdriver.vdplugin & dll files, the other is a fcchandler's plugin files set.
you should locate the one of the plugin file' set to the virtualdub' plugin folder.(for x64 bit virtualdub, plugin64 folder )
Second, make vdub job configuration script file(.vdscript) for automating virtualdub processing.
for the job of none audio & untranscoded direct stream copy of the video stream & convert to .avi format output.
following is the one of the vdscript for that job. make a job configuration file of the content of the following with extension of .vdscript
VirtualDub.Open(VirtualDub.params); VirtualDub.audio.SetSource(0); VirtualDub.audio.SetMode(0); VirtualDub.video.SetInputFormat(0); VirtualDub.video.SetOutputFormat(7); VirtualDub.video.SetMode(0); VirtualDub.video.SetSmartRendering(0); VirtualDub.video.SetPreserveEmptyFrames(0); VirtualDub.video.SetFrameRate2(0,0,1); VirtualDub.video.SetIVTC(0, 0, 0, 0); VirtualDub.video.SetCompression(); VirtualDub.video.filters.Clear(); VirtualDub.SaveAVI(VirtualDub.params); VirtualDub.Close();
>for %a in (*.mp4) do [virtualdub' path]\vdub /i mp42avi.vdscript "%a" "%~na.avi"
mp42avi is for the job configuration file name, so select any name you like.
for your reference, here i append the script file.
Last edited by flying2ndsky; 26th Nov 2015 at 05:06.
Last edited by flying2ndsky; 26th Nov 2015 at 10:06.