Am Donnerstag, 27. Januar 2005 16:18 schrieb Lehmeier Michael:
>Hi!
>
>I record from a TV card with the following command:
>mencoder -tv driver=v4l2:input=3:adevice=/dev/dsp:forceaudio tv:// -ovc
>lavc -oac pcm -lavcopts vcodec=mpeg4:vbitrate=3000:keyint=50 -endpos
>700mb -vf pp=lb -o out.avi
>
>Now I want to reencode the video with mjpegtools vor DVD.
>
>As a test I tried the following line:
>lav2yuv out.avi | yuvscaler -O VCD | mpeg2enc -s -o mpg.mpg
>
>What I get is:
>FRAME
>Not a JPEG file: starts with 0x00 0x00
>++ WARN: [lav2yuv] Decoding of Frame 39 failed
>
>Is there any way to fix this?
>Thanks!

Hi,

I'm not sure if lav2yuv can manged a mpeg4 video, but you can use mplayer to 
pipe both streams (video and audio) to mpeg2enc and mp2enc. Just make 
stream.yuv and stream.wav fifos in your work directory and use a script like:

mplayer -ao pcm -aofile stream.wav -vo yuv4mpeg out.avi &
cat stream.wav | mp2enc "your mp2enc command" &
cat stream.yuv | yuvscaler -O VCD | mpeg2enc "your mpeg2enc command"

Andreas Kropsch


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to