3

I have a few hundred short MPEG files (each ~10 seconds) that I need to batch convert to AVI. What would be the best way to do this?

I've tried using WinFF but the quality was very subpar.

slhck
  • 223,558
  • 70
  • 607
  • 592
TreyK
  • 2,239
  • 2
  • 17
  • 22

3 Answers3

7

With FFmpeg, which will not re-encode the videos in any way and therefore preserve quality:

ffmpeg -i file.mpg -c:v copy -c:a copy file.avi

In a batch file, e.g. for Linux:

while IFS= read -d $'\0' -r file ; do
  ffmpeg -i "$file" -c:v copy -c:a copy ${file%%.mpg}.avi
done < <(find . -iname '*.mpg' -print0)

In a batch file, e.g. for Windows:

for /r %%i in (*.mpg) do (
ffmpeg -i %%i -c:v copy -c:a copy %%i~n.avi
)

The last example requires the Windows build of ffmpeg.

Richard
  • 5,831
  • 9
  • 44
  • 73
slhck
  • 223,558
  • 70
  • 607
  • 592
  • 1
    +1 for ffmpeg. I've heard rather scary stories about Super wanting to modify files in the `Windows\System32` folder so I avoid it like the plague. Plus if you want to use batch, then command line applications is the way to go. – Richard Jul 17 '12 at 21:00
  • +1 Yeh, from personal experience Super acts rather suspicious and takes an insane amount of time to load just for a winforms application. Not sure what it does in background to justify this but it doesn't do anything with videos which can't be achieved with open-source solutions IMAO – James Jul 17 '12 at 21:11
  • I use ffmpeg too, but... I still don't understand why people who created it didn't released some productive official GUI. Many GUI programs with ffmpeg are full of adware, malware etc. I don't know which is safe to use, and which will infect my computer with SweetPacks or other crap. – Kamil Nov 20 '14 at 09:19
  • @Kamil The developers have enough to do already, and are continuously improving the tool. Adding a GUI would be a massive overhead, and would probably require a second project of almost the same scale of FFmpeg, if it should be FOSS and cross-platform. – slhck Nov 20 '14 at 11:23
3

SUPER © (Simplified Universal Player Encoder & Renderer) can do it. One of its features is multiple batch file processing by simple file drag and drop, and it's freeware.

Direct download link

Mehper C. Palavuzlar
  • 55,164
  • 49
  • 193
  • 250
0

MPEG Streamclip is a powerful free video converter, player, editor for Mac and Windows.

http://www.squared5.com/

broomdodger
  • 3,060
  • 1
  • 16
  • 5