janaka priyadarshana
2007-Aug-30 04:13 UTC
[theora-dev] can not encode a raw video file with "encoder_example"
hi all, i tried to encode a .yuv file with the encoder_example.c but it give an error message as follows ./encoder_example -v 1 file_1.yuv > file_1.ogg Input file file_1.yuv is neither a WAV nor YUV4MPEG2 file. so the error message is understandable for anyone. when this file is play with mplayer it shows as follow =========================================================================Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 176 x 144 (preferred colorspace: Planar I420) VDec: using Planar I420 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO: [xv] 176x144 => 176x144 Planar I420 Selected video codec: [rawi420] vfm: raw (RAW I420) ========================================================================= but i want to know that weather it is possible to encode this file with the "encoder_example". if it is possible please help me to do this.. thank you -- ----------- Regards, Janaka Priyadarshana -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20070830/4e3b5739/attachment.htm
Ralph Giles
2007-Aug-30 12:33 UTC
[theora-dev] can not encode a raw video file with "encoder_example"
On Thu, Aug 30, 2007 at 04:43:15PM +0530, janaka priyadarshana wrote:> Input file file_1.yuv is neither a WAV nor YUV4MPEG2 file.These are the only formats supported by encoder_example, so it is not possible to encode your raw yuv file. You can either munge it yourself, or run it through mplayer to generate a y4m file. Try something like 'mplayer -vo yuv4mpeg file.yuv'. Hope that helps, -r