brumster
25th January 2008, 15:56
First, a bit of background.
I used to be a myth user but the ongoing maintenance of myth got too much, so I moved (reluctantly, at the time) to an MCE frontend. However my main server remains linux (FC6) and holds all the MP3/video collections, and other files, on a large RAID5 array.
Every now and then I archive DVR-MS files off the frontend and onto the server, where they sit in a batch processing folder awaiting an automated (cron) job that churns through and transcodes the MPEG2 (DVB-T) programmes down into something that'll take up a little less space. This clears up recording space on the front end.
My problem is I'm consistently getting audio/video sync issues, which is not uncommon with DVB broadcast with dropped frames I believe. I have tried all the usual parameters into mencoder and ffmpeg, but to no avail, and I never had issues with them in the past. I have favoured mencoder because of it's performance, but for the record here are some example of what I've tried.
For mencoder :-
mencoder input.dvr-ms -mc 0 -noskip -oac mp3lame -ovc lavc -ofps 25 -vf harddup -lavcopts vcodec=mpeg4:turbo:trell:keyint=100:mbd=2:vpass=1:autoaspect:vbitrate=2000 -ffourcc XVID -o /dev/null
mencoder input.dvr-ms -mc 0 -noskip -oac mp3lame -ovc lavc -ofps 25 -vf harddup -lavcopts vcodec=mpeg4:trell:keyint=100:mbd=2:vpass=2:autoaspect:vbitrate=2000 -ffourcc XVID -o output.avi
The forced 25fps option has been necessary on some of the input files which have detected a frame rate of 1000fps (what gives with that?), and hence hit a problem with insufficient bitrate.
For ffmpeg :-
ffmpeg -i input.dvr-ms -mbd rd -flags +4mv+trell+aic -cmp 2 -subcmp 2 -b 2000000 -g 300 -vcodec xvid -acodec mp3 -ab 96 output.avi
The ffmpeg is only single pass because it's soooo much slower than mencoder.
Both of these hit the old A/V synch issues on various recordings. Can anyone shed any light on what I'm missing? I'm looking for a linux-based solution here so any options based around processing on the windoze box aren't ideal. Any advice much appreciated ;)
I used to be a myth user but the ongoing maintenance of myth got too much, so I moved (reluctantly, at the time) to an MCE frontend. However my main server remains linux (FC6) and holds all the MP3/video collections, and other files, on a large RAID5 array.
Every now and then I archive DVR-MS files off the frontend and onto the server, where they sit in a batch processing folder awaiting an automated (cron) job that churns through and transcodes the MPEG2 (DVB-T) programmes down into something that'll take up a little less space. This clears up recording space on the front end.
My problem is I'm consistently getting audio/video sync issues, which is not uncommon with DVB broadcast with dropped frames I believe. I have tried all the usual parameters into mencoder and ffmpeg, but to no avail, and I never had issues with them in the past. I have favoured mencoder because of it's performance, but for the record here are some example of what I've tried.
For mencoder :-
mencoder input.dvr-ms -mc 0 -noskip -oac mp3lame -ovc lavc -ofps 25 -vf harddup -lavcopts vcodec=mpeg4:turbo:trell:keyint=100:mbd=2:vpass=1:autoaspect:vbitrate=2000 -ffourcc XVID -o /dev/null
mencoder input.dvr-ms -mc 0 -noskip -oac mp3lame -ovc lavc -ofps 25 -vf harddup -lavcopts vcodec=mpeg4:trell:keyint=100:mbd=2:vpass=2:autoaspect:vbitrate=2000 -ffourcc XVID -o output.avi
The forced 25fps option has been necessary on some of the input files which have detected a frame rate of 1000fps (what gives with that?), and hence hit a problem with insufficient bitrate.
For ffmpeg :-
ffmpeg -i input.dvr-ms -mbd rd -flags +4mv+trell+aic -cmp 2 -subcmp 2 -b 2000000 -g 300 -vcodec xvid -acodec mp3 -ab 96 output.avi
The ffmpeg is only single pass because it's soooo much slower than mencoder.
Both of these hit the old A/V synch issues on various recordings. Can anyone shed any light on what I'm missing? I'm looking for a linux-based solution here so any options based around processing on the windoze box aren't ideal. Any advice much appreciated ;)