[FFmpeg-user] V210 is a packet format but ffmpeg shows always yuv422p10le (planar?) - or how to read a V210.raw stream with ffmpeg?
Christoph Gerstbauer
christophgerstbauer at gmail.com
Thu May 21 10:37:34 CEST 2015
Hello
I am very confused about handling v210.
Different web pages show that v210 is a packed yuv 10bit format:
http://www.fourcc.org/yuv.php#V210
http://www.digitalpreservation.gov/formats/fdd/fdd000353.shtml
https://developer.apple.com/library/mac/technotes/tn2162/_index.html#//apple_ref/doc/uid/DTS40013070-CH1-TNTAG8-V210__4_2_2_COMPRESSION_TYPE
But every time when I encode v210 or decode v210 ffmpeg shows me the
pixel format "yuv422p10le". (Video: v210 (v210 / 0x30313276), yuv422p10le)
But as far as I know the P at the end of yuv422p or yuv422p10le is a
hint that it is PLANAR, right?
Also the VLC player shows me at placback this info: Planar 4:2:2 YUV
10-bit LE
Or is p also meaned for packet?
I am asking this because I try to read a V210 RAW stream and ffmpeg need
te get defined which input pixelformat is coming in.
So in the past (1 year ago I think) I always set this syntax bevor the
inputfile: ffmpeg -r 25 -s 720x576 -pix_fmt yuv422p10le -vcodec v210
The final image result was damaged. Was there a fix in the meantime?
Because now it works, but only for one frame, and this frame is NOT damaged:
COMMAND LINE OUTPUT:
ffmpegnew -r 25 -s 720x576 -pix_fmt yuv422p10le -vcodec v210 -i
C:\Users\gersti\Desktop\16x9_10bit_720x576_25fps.raw -vcodec ffv
huff C:\Users\gersti\Desktop\16x9_10bit_720x576_25fps.avi
ffmpeg version N-72259-g0b9d636 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnu
tls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme
--enab
le-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable
-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --ena
ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --e
nable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
libavutil 54. 23.101 / 54. 23.101
libavcodec 56. 39.101 / 56. 39.101
libavformat 56. 33.101 / 56. 33.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[image2 @ 000000000035f860] Format image2 detected only with low score
of 5, misdetection possible!
Input #0, image2, from
'C:\Users\gersti\Desktop\16x9_10bit_720x576_25fps.raw':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: v210, yuv422p10le, 720x576, 25 tbr, 25 tbn, 25 tbc
Output #0, avi, to 'C:\Users\gersti\Desktop\16x9_10bit_720x576_25fps.avi':
Metadata:
ISFT : Lavf56.33.101
Stream #0:0: Video: ffvhuff (FFVH / 0x48564646), yuv422p10le,
720x576, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc56.39.101 ffvhuff
Stream mapping:
Stream #0:0 -> #0:0 (v210 (native) -> ffvhuff (native))
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=0.0 Lsize= 823kB time=00:00:00.04
bitrate=168643.6kbits/s
video:818kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.701023%
The RAW sample file can be downloaded here:
https://cerebrum.noa-audio.com/noacloud/index.php/apps/files/download/FFmpeg_User_MailingList/16x9_10bit_720x576_25fps_V210RAW.zip
Best Regards
Christoph
More information about the ffmpeg-user
mailing list