Hi,

        I tried this and I still have the audio video sync problem over the 
discontinuity. I have uploaded to users.jagunet.com/~stuhodg some example
files that show the video problems when mencoder is used:

cutfieforweb.mpg - origional video cut out with dd.

mencoderot.mpg - video output from mencoder -o /tmp/title2.avi -ofps 30 -ovc 
lavc -lavcopts vcodec=mjpeg:vhq -oac pcm cutfieforweb.mpg 

stream.yuv - video output from mplayer -vo yuv4mpeg -ao pcm cutfieforweb.mpg

mencoderconv.m2v - video from mencoder after converting thus : 
lav2yuv /tmp/forweb/mencoderot.mpg | mpeg2enc -f 8 -o 
/tmp/forweb/mencoderconv.m2v

mplayerconv.m2v - video from mplayer after converting thus : 
cat /tmp/forweb/stream.yuv | yuvdenoise | /multimedia/raw/scriptfiles/yuvfps  
-r 30:1 | yuvscaler -O SIZE_720x480 | mpeg2enc -F4 -f 8 -q 5 -4 1 -2 1 -P -N 
-o /tmp/forweb/mplayerconv.m2v

        I know I have more conversion in the mplayer convert, thats just my standard 
line.

        Any ideas ?

        Thanks,

                Stuart

On Friday 27 June 2003 09:32, Jonathan Bartlett wrote:
> Use the -benchmark flag to mplayer.  This forces it to be non-realtime.
>
> Jon
>
> On Fri, 27 Jun 2003, Stuart Hodges wrote:
> > Hi,
> >
> >     I have video captured by GATOS that I'm using MJPEGTOOLS to convert.
> >
> >     When I use mplayer to split out the output into audio and video the
> > video and audio is fine, however if there are any discontinuity's in the
> > video and audio sync, it does not handle them and the video and audio get
> > out of sync.
> >
> >     If I use mencoder to get the video into a state that MJPEGTOOLS can
> > handle it, the sync is file even over bad discontinuities, but the video
> > quality is very bad and I get very bad flickery effects when playing back
> > on the DVD (via TV), playing back using mplayer on the computer is fine.
> >
> >     The commands I am using are:
> >
> > mencoder -o /tmp/title2.avi -ofps 30 -ovc lavc -lavcopts vcodec=mjpeg:vhq
> > -oac pcm /tmp/cutfile.1.mpg
> > lav2yuv /tmp/title2.avi | yuvdenoise  |
> > /multimedia/raw/scriptfiles/yuvfps  -c -r 30000:1001 | yuvscaler -O
> > SIZE_720x480 | mpeg2enc -z b -F4 -f 8 -q 5 -4 1 -2 1 -P -N -o
> > /tmp/video.1.m2v
> >
> > (I have to do the -ofps otherwise its not understood b lav2yuv)
> >
> > mplayer -vo yuv4mpeg -ao pcm cutfile.1.mpg
> > cat stream.yuv | yuvdenoise | /multimedia/raw/scriptfiles/yuvfps  -r 30:1
> > | yuvscaler -O SIZE_720x480 | mpeg2enc -F4 -f 8 -q 5 -4 1 -2 1 -P -N -o
> > mplayer.m2v
> >
> > I have tried all the options on the HOWTO for this sort of thing,
> >
> >  -T BOTT_FORWARD/TOP_FORWARD, -T LINE_SWITCH. , -z b|t If they do
> > anything they only make things worse.
> >
> > I hope to have some video cuts up on the web later.
> >
> > Any ideas ?
> >
> > Thanks,
> >
> >     Stuart
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Mjpeg-users mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/mjpeg-users
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Mjpeg-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to