[FFmpeg-user] Decoding Raw YUV Frames From MPEG2
Andy Furniss
andyqos at ukfsn.org
Sat Feb 2 13:43:22 CET 2013
Stu wrote:
> Hello,
>
> I know this sounds pretty obvious, but I'm having trouble getting accurate results when decoding a standard MPEG2 video file into its component raw YUV.
>
> My command line is simple (from the documentation page):-
> ffmpeg -i F:\ak.m2v output.yuv
>
> Looking at the output file in a hex editor, a significant percentage of samples are out of range (16-235).
uv are 16-240 IIRC and this is deliberately not a hard limit to allow
for excursions during studio processing.
MPEG2 can't physically store samples like this,
It can - eg. this is deliberately full range (it's up to you to set up
your player/hardware colour space conversion if you want to see it as
full range on your screen).
http://www.w6rz.net/ramp.zip
>so I'm curious as to where they are coming from and if they can be clipped.
How far out are they?
More information about the ffmpeg-user
mailing list