View Full Version : Batch extractor to raw
skylinekiller
23rd February 2017, 14:30
I currently use Yamb to extract my .h264 file from a .avi and then remux it with MeGUI to get my .mp4
I have over 100 .avi files that I need to extract. Is there a batch extractor that will extract these files. I have to do this one by one with Yamb. ughh.
sneaker_ger
23rd February 2017, 14:38
Just write a Windows batch file?
for %%a in (*.avi) do ffmpeg -i "%%a" -c copy "%%~na.mp4"
skylinekiller
23rd February 2017, 21:24
I made a folder called "convert"
I made a text file in their and pasted "%%a in (*.avi) do ffmpeg -i "%%a" -c copy "%%~na.mp4" and saved it as .bat
I placed a .avi file in there and double clicked the .avi and nothing happened. Any advice on what I am doing wrong?
sneaker_ger
23rd February 2017, 21:30
1. Don't forget the "for" at the start.
2. Add a new line below with "pause". Then it won't close immediately and you have time to read error messages.
3. Do you have ffmpeg.exe in the same folder or in %PATH%?
skylinekiller
23rd February 2017, 22:45
That worked great. Thank you. That is soooo much easier than doing it manually each time. My appologies for not following your exact instructions on adding "for" in the begenning... I tried to batch encode with ripbot and VidCoder, but it only autocropped 5 correctly out of 34. That would be a huge time saver if that could be resolved.
hello_hello
28th February 2017, 18:30
AnotherGUI (http://www.videohelp.com/software/AnotherGUI) could effectively be a GUI method of implementing sneaker_ger's suggestion (remuxing as MP4 with ffmpeg). Create a preset like one of these (if you want audio):
-i "<FullSourceFileName>" -y -threads 1 -vcodec copy -acodec copy -sn "<OutputPath><OutputFileName>.mp4"
-i "<FullSourceFileName>" -y -threads 1 -movflags faststart -vcodec copy -acodec copy -sn "<OutputPath><OutputFileName>.mp4"
or without audio
-i "<FullSourceFileName>" -y -threads 1 -vcodec copy -an -sn "<OutputPath><OutputFileName>.mp4"
I assume the batch encoding problem is a separate issue?
Maybe try this script. CropResize (http://forum.videohelp.com/threads/382601-CropResize-Script)
Add CropResize() to a script template for use with MeGUI's OneClick encoder and test it to make sure it's always cropping correctly. If not, adjust the cropping options as required and create a OneClick profile using the script template with MeGUI's OneClick autocropping and resizing disabled.
By the way, are you aware the OneClick encoder can batch encode? It also has an option to copy the video. You should be able to use it for batch remuxing, although chances are it'll do it in more than one step for AVI to MP4 muxing and ffmpeg would be faster.
stax76
28th February 2017, 19:18
staxrip should also be able to batch demux, remux or encode.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.