7 May 2003 21:12
Re: 411P output from ffmpeg?
Roman Shaposhnick <rvs <at> sun.com>
2003-05-07 19:12:06 GMT
2003-05-07 19:12:06 GMT
On Fri, May 02, 2003 at 01:34:06PM -0700, Steven M. Schultz wrote:
>
> On Fri, 2 May 2003, Roman Shaposhnick wrote:
>
> > > > > Is it possible to get the 411P (for NTSC) data out from a DV file?
> >
> > Sure. I'd say, that at least we need to introduce raw<pictureformat>
> > 'codecs' being smart aliases for raw one. Much like we have a bunch
> > of pcm* ones. Will this solve your problem ?
>
> That's be great! It's not a "priority" of course. For
> experimentation it'd be a good thing to have the raw 4:1:1 (for
> NTSC, I believe PAL-DV uses 4:2:0) data.
Ok. The changes just went into the CVS. They actually, turned out quite
useful for my own stuff as well. Anyway, please try them out. The
following now works:
$ ./ffmpeg -i /export/DV/tests/type2.avi -an out.yuv
Input #0, avi, from '/net/submarine/export/DV/tests/type2.avi':
Stream #0.0: Video: dvvideo, 720x576, 25.00 fps, 800 kb/s
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, rawvideo, to 'out.yuv':
Stream #0.0: Video: rawvideo, yuv420p, 720x576, 25.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 1 q=0.0 size= 608kB time=0.0 bitrate=124416.0kbits/s
$ ls -l out.yuv
-rw-rw-r-- 1 rvs users 622080 May 7 12:06 out.yuv
Or you can play with different pixel formats using new -pix_fmt option:
$ ./ffmpeg -i /export/DV/tests/type2.avi -an -pix_fmt yuv411p out.yuv
Input #0, avi, from '/net/submarine/export/DV/tests/type2.avi':
Stream #0.0: Video: dvvideo, 720x576, 25.00 fps, 800 kb/s
Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, rawvideo, to 'out.yuv':
Stream #0.0: Video: rawvideo, yuv411p, 720x576, 25.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 1 q=0.0 size= 608kB time=0.0 bitrate=124416.0kbits/s
Thanks,
Roman.
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
RSS Feed