Hello. I'm trying to encode an Ogg Theora file from an unencrypted dvd using mplayer and encoder_example. 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 Encoding works if I give mplayer an MPEG-1 file on disk as input. 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. thanks for your help -Tim
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 dataI 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
>>>>> "Tim" == Tim Olsen <tolsen718@gmail.com> writes:> Hello. I'm trying to encode an Ogg Theora file from an unencrypted > dvd using mplayer and encoder_example.> 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.oggwhat about: mplayer -ao pcm -aofile stream.wav -vo null dvd://1 (replacing `1' by the right title number...) David -- GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40
===========================================================De: David Kuehling <dvdkhlng@gmx.de> Date: 2004/12/13 lun. AM 11:04:19 GMT+01:00 ?: oggtheora@yahoo.com CC: theora@xiph.org Objet: Re: [Theora] trying to encode from dvd using mplayer I would really recommend changing some encoding parameters in the sourcecode of `encoder_example.c' : ti.keyframe_frequency=3*64; ti.keyframe_frequency_force=4*64; ti.sharpness=2; Especially with `sharpness=2' I get a *much* better quality at the usual ripping bitrate (500-800kbit). Wit this I usually manage to put more than 150 minutes of DVD-resolution video onto a 700 Mb CD without noticable artefacts (better than anything I achieved so far with libavcodecs mepg4-codec). =========================================================== Hi, Your tuning seems very interesting but I can not find ti.sharpness in encoder_example.c. Do I have to add it to the file ? Regards -- ZikZak The game is never over! http://gameclash.org ------------------------------------------------- Internet simplement moins cher avec Tele2 : http://www.tele2.fr -------------------------------------------------