VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. 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?
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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:
    Code:
    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
    I don't know the exact command settings for ffmpeg, but use for example winff to get some example for xvid conversion.

    Read also http://commandwindows.com/batch.htm for more batch files commands.
    Quote Quote  
  3. 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).
    Code:
    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!