From: Andreas K. <po...@an...> - 2005-01-27 21:58:21
|
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 |