Using mencoder to do batch encode
February 28th, 2006
| Tags:
I had to reinstall my Linux server that runs my MythTV media server and wanted to save all the programs that had not been seen. I had a cron job that made pretty symbolic links to the MythTV nuv files (they are mpg 2 files). The links were the data and title of the show recorded instead of just a date code, and had the extension of mpg instead of nuv.
I then used these names to run through mencoder to convert into xvid and put them in my video folder. Here is a small batch program that did the dirty.
for i in *.mpg; do /usr/bin/mencoder /mnt/store/tv/pretty/$i \ -ovc xvid -oac mp3lame -xvidencopts \ bitrate=678 -o /home/mythtv/public/videos/movies/$i.avi; done
Leave a comment
| Trackback













