[FFmpeg-user] converting raw file from YUV422P10BE to YUV422P16BE

James Darnley james.darnley at gmail.com
Sat Nov 9 06:36:46 EET 2019


On 09/11/2019, Omar Chakroun <Omar.Chakroun at usherbrooke.ca> wrote:
> Hi there,
>
> I'm trying to convert raw video files from yuv422 10bit to yuv422 16bit but
> until now I wasn't successful.
> I have an error stating either unable to find a suitable output format when
> I'm keeping the output file extension as .raw or invalid buffer size if I
> change it to .yuv. please take a look at the printscreens attached here. I
> also checked on multiple discussion and some says that ffmpeg has to support
> either 8bit or 10bit but this step has to be made when compiling ffmpeg.
> I'm new in using ffmpeg. In fact I started using it yesterday.
>
> I'm currently using the version built in 20191010.
>
> It will be great if you can help me on that. Technically it is repacking a
> 10bit YUV format into the 16bit YUV format.
>
> Thank you and best regards,
> Omar
>


Please post text rather than screenshots.

The first error is because ffmpeg doesn't know what muxer it should
use for a .raw file.

The second is because the input file ends prematurely, there was not
enough data to read (another) frame.  Only 2.5M was read whereas 4M is
needed.  Check that the input really is yuv422p10 and 1280x800
(1280*800*2*2 bytes).  The 2,560,000 (1280*800*10/8*2) suggests you
have 10-bit words.  yuv422p10 is not packed, it has 16bit words.

Because there isn't even 1 frame decoded there is also the warning
that the output file is empty.


More information about the ffmpeg-user mailing list