[FFmpeg-user] How can I determine if a 10bit videofile has full 10bit video data or 8bit (+ 2bits zeros) data

Dave Rice dave at dericed.com
Thu Jan 29 17:13:28 CET 2015


> On Jan 29, 2015, at 4:28 AM, Christoph Gerstbauer <christophgerstbauer at gmail.com> wrote:
> 
> Hello,
> 
> Can you explain me:
> 
> Why it is the last 2 bits of the FIRST byte that shows me if it is 10bit?  Shouldnt it be the first 2 bits of the SECOND byte?
> In my understanding, 8 bit are 8 digits -> first byte should be always full. (?)
> But maybe this only is for RGB correct and not for YUV?
> 
> So why is this 10bit? ->  11111111 00000000
> And why is this 8bit ? -> 11111100 00000000 (only 6bits used)

The output will be based off of your pixel format (which I think in this case is yuv422p10le). Little endian formats will not be presented as big endian without requesting it. To match your expectations use -pix_fmt yuv422p16be.
Dave Rice


More information about the ffmpeg-user mailing list