[Theora] trying to encode from dvd using mplayer

Arc Riley arc at Xiph.org
Fri Dec 3 13:55:39 PST 2004


On Fri, Dec 03, 2004 at 04:21:01PM -0500, Tim Olsen wrote:
> I set up named pipes stream.wav and stream.yuv. 
> 
> I then run:
> 
> mplayer -ao pcm -aofile stream.wav -vo null /dev/dvd &
> mplayer -vo yuv4mpeg -ao null -nosound /dev/dvd &
> encoder_example -v1 -a 1 stream.wav stream.yuv > lec1.ogg
> 
> but I get the following error:
> 
> File stream.wav is 16 bit 2 channel 48000 Hz RIFF WAV audio.
> File stream.yuv is 720x480 29.97 fps YUV12 video.
> Compressing....
> -Loss of framing in YUV input data

I get the same problem.  I think it's because when it hits a chapter 
boundry it starts a new YUV4MPEG block, with it's header, and thus 
"looses sync".
 
> Anybody know what I can do to get around this?  I was thinking I could
> try copying the VOB files to disk and then encoding each one but then
> I would have two ogg files that I would have to join.

That's how I got around it.  Just use the unix "cat" command to join the 
files.. 

cat >>piece1.ogg piece2.ogg piece3.ogg piece4.ogg

This has the added benefit that your "chapters" will be seperate Ogg 
bitstreams. 
-- 

"The question is no longer between violence and non-violence;
 It is between non-violence and non-existence." - Martin Luther King, Jr


More information about the Theora mailing list