[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 11:47:05 CEST 2015


>>> You have to know the size of one frame ("1234"),
>>> then please try:
>>> $ cat 16x9.raw|ffmpeg -f image2pipe -frame_size 1234
>>> -vcodec v210 -s pal -i - out.avi
>> What defnies the SIZE of 1234? Bytes/Bits?
> Size of 16x9.raw / number of frames?

I tried this syntax, and it seems that it worked:

C:\Users\vnoa-auto>ffmpegnew -f image2pipe -vcodec v210 -s 720x576 
-frame_size 1105920 -i 
C:\Users\vnoa-auto\Desktop\16x9_10bit_720x576_25fps.raw -vco
dec ffvhuff C:\Users\vnoa-auto\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
Input #0, image2pipe, from 
'C:\Users\vnoa-auto\Desktop\16x9_10bit_720x576_25fps.raw':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: v210, yuv422p10le, 720x576, 25 fps, 25 tbr, 25 
tbn, 25 tbc
File 'C:\Users\vnoa-auto\Desktop\16x9_10bit_720x576_25fps.avi' already 
exists. Overwrite ? [y/N] y
Output #0, avi, to 
'C:\Users\vnoa-auto\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=  250 fps=0.0 q=0.0 Lsize=  207188kB time=00:00:10.00 
bitrate=169728.8kbits/s
video:207177kB audio:0kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 0.005584%


So if as I understand: for a specific resolution the framesize is always 
the same in v210 raw?
In this case the framesize is "1105920". So, when I know the framerate 
and the resolution of the v210 raw stream, I will know the framesize. right?

Best Regards
Christoph


More information about the ffmpeg-user mailing list