Yesterday the ffmpeg source code was updated so it now natively supports DVR-MS files. Now you can use a build of ffmpeg from anyone you would like (as long as it’s build r9976 or later). I’m supplying build r9976 for anyone that is interested (the download link is below).
http://babgvant.com/files/folders/misc/entry4997.aspx
Improvements in this build verses my BETA version 1:
1) ffmpeg will now read thru corruption in the dvr-ms file much better as long as you use the “–async 1” switch. Actually, ffmpeg’s ability to read thru corruption is now at least as good as Mencoder – and in my opinion ffmpeg is better.
2) All the changes to properly read DVR-MS files have been integrated in the ffmpeg SVN, so this version doesn’t have any special code from me.
Below are the command lines that I tested.
General Divx5/Xvid with MP3:
ffmpeg -benchmark -y -i "input.dvr-ms" –async 1 -deinterlace -vcodec mpeg4 -s qvga -qscale 4 -vtag DX50 -acodec libmp3lame -ac 2 -ab 128000 -f avi "output.avi"
Xvid with MP3:
ffmpeg -benchmark -threads 2 -y -i "input.dvr-ms" –async 1 -deinterlace -s qvga -vcodec libxvid -qscale 4 -vtag DX50 -acodec libmp3lame -ac 2 -ab 128000 -f avi "output.avi"
X264 with AAC: This was tested with QuickTime, It should work with the IPod, but I don't have one to test with
ffmpeg -y -benchmark -threads 2 -i "input.dvr-ms" –async 1 -deinterlace -s qvga -vcodec libx264 -b 384000 -bufsize 384 -coder 0 -level 13 -acodec libfaac "output.mp4"
This is a profile specifically for the Blackbery 8830:
ffmpeg -y -benchmark -i "input.dvr-ms" –async 1 -deinterlace -s 320x240 -vcodec mpeg4 -r 25 -b 512000 -acodec libfaac -ac 2 -ab 96000 "output.mp4"
Windows Media Version 8:
ffmpeg -benchmark -y -i "input.dvr-ms" –async 1 -deinterlace -s qvga -vcodec wmv2 -qscale 4 -acodec wmav2 -ac 2 -ab 128000 "output.wmv"