my TV card captures videos at about 1.4GB every hour using its onboard MPEG2. I'd like to compress this down with say xvid and do the same for all the .mpg files in a folder. How could this be done automatically?
+ Reply to Thread
Results 1 to 3 of 3
I would use a command line converter like ffmpeg and make bat file that runs every hour or so.
Like a .bat file in the folder with the captured mpgs with:
for %%X in (*.mpg) do ffmpeg -vcodec xvid -ab 192 -ar 44100 -acodec mp3 -i %%X -o %%X.avi mv *.mpg c:\folder #or delete the mpgs
Read also http://commandwindows.com/batch.htm for more batch files commands.
thank you, the example was helpful.
If any newbie out there wants to do the same thing, below is my script which crops the letter box, deinterlaces, then saves to xvid at a suitable resolution and bitrate (for me).
for %%X in (*.mpg) do ffmpeg -i %%X -vcodec mpeg4 -vtag XVID -qscale 7 -deinterlace -cropleft 6 -cropright 4 -croptop 66 -cropbottom 64 -s 624x352 -ab 160000 -ar 44100 -acodec libmp3lame %%X.avi