View previous topic :: View next topic |
Author |
Message |
TarChul n00b
Joined: 30 Dec 2004 Posts: 20
|
Posted: Wed Jan 11, 2006 10:26 am Post subject: mencoder constant audio delay (ffmpeg related?) |
|
|
hi,
whenever i try to encode dvds to mpeg4 with mencoder, i can see a constant audio delay of about 200-500 ms. i tried reemerging mplayer, ffmpeg, even my whole system (during a recent upgrade to gcc 3.4). nothing helped.
it doesn't matter if i reencode to mp3 with lame or use -oac copy. i haven't tried a different video codec, but since the sound problem seems to be the same regardless of the audio encoding, my guess is it's a video codec problem.
Code: |
cat vob/020/foobar-00* | mencoder -noskip -vf crop=696:424:12:78,hqdn3d=2:1:2,scale=640:288 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1800:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=1 -o /dev/null -aid 129 -
cat vob/020/foobar-00* | mencoder -noskip -vf crop=696:424:12:78,hqdn3d=2:1:2,scale=640:288 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1800:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=2 -o baz.avi -aid 129 - |
my mplayer (latest stable) is now compiled with custom-cflags (-O2 -march=pentium-m, -pipe, -fomit-frame-pointer, nothing fancy), but this didn't change anything either.
ffmpeg-0.4.9_p20051216
mplayer-1.0_pre7-r1
i also tried transcode, seems to have similar results.
for now i'm muxing into the matroska container where i can set the audo delay before muxing. but i'd also like to create regular avis.
all help is appreciated |
|
Back to top |
|
|
Attila Tux's lil' helper
Joined: 28 Feb 2003 Posts: 93
|
Posted: Thu May 04, 2006 5:21 pm Post subject: |
|
|
Hiho,
I have the same problem with some DVD's - first i thought i made something wrong, but i found out this depends on the DVD ...
I use transcode with the "-D" option (in my case "-D -25")
Atti |
|
Back to top |
|
|
moob7 Tux's lil' helper
Joined: 22 Jan 2006 Posts: 80
|
Posted: Sun May 14, 2006 2:53 am Post subject: Re: mencoder constant audio delay (ffmpeg related?) |
|
|
TarChul wrote: | hi,
whenever i try to encode dvds to mpeg4 with mencoder, i can see a constant audio delay of about 200-500 ms. i tried reemerging mplayer, ffmpeg, even my whole system (during a recent upgrade to gcc 3.4). nothing helped.
it doesn't matter if i reencode to mp3 with lame or use -oac copy. i haven't tried a different video codec, but since the sound problem seems to be the same regardless of the audio encoding, my guess is it's a video codec problem.
|
Interesting. I found this thread because I am having a similar probelm: I get a (nearly) constant delay of 100 to 200 ms). What is interesting is that I did not have this problem until this week when I did an emerge world. So something in the lavc codec libraries and/or mencoder may have changed and gone wacky. I suppose we should both try emerging an older version of mencoder and <??other packages??>. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|