Hi again.
I already wrote about my audio sync problems when converting a digital
television mpeg2 stream to a svcd.

I use mplayer to play the video and encode it then with mpeg2enc. After
that I extract the audio (also with mplayer), encode it. After that the
result is always out of sync.
I was pointed to that sox tool with which I can correct that delay.
It gets on the nerve sometimes but works.

But now things are getting serious. Two days ago I recorded "Monty
Python Life at the Hollywood Bowl" and two people eagerly awayt my SVCD.
So I went through my routine: encoding video, encoding audio, correcting
audio speed, encode audio again, mux.

The problem: The audio delay is not constant. I synced it at the
beginning and the end but the *middle* of the film is almost a second
off.
Needless to say that if I correct the middle the end will be off.

This is why I ask myself again how this audio problem is created to
begin with. After all, when I play the original video stream there is no
sync problem.

Why does it go out of sync when I encode it?
How can it go out of sync?
Can I somehow force synchronicity? (sp?)

Here my procedure:

Video encoding:
Console 1:
mknod stream.yuv p
mplayer -vo yuv4mpeg -nosound -noframedrop -noaspect -sws 2 -benchmark
-vop expand=480:576:16:16,scale=448:544,pp=0x20000 monty.mpg
Console 2:
cat stream.yuv | nice mpeg2enc -f 4 -I 0 -V 230 -b 2500 -n p -F 3 -a 2
-q 12 -g 6 -G 18 -Q 0.0 -B 130 -S 790 -o svcd.m2v

Audio encoding:
Console 1:
mknod rec.wav p
mplayer -vc null -vo null -ao pcm -hardframedrop monty.mpg
cat rec.wav | nice mp2enc -b 128 -r 44100 -o svcd_audio.m2a
Console 2:
sox audiodump.wav rec.wav speed 0.99978



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to