Reputation: 229
As far as I can see in the documentation, all conversions involving YUV actually use YCbCr. There are slight differences though, and I would like to convert to the actual YUV format. Is there any way at all using ffmpeg? As an afterthought, is there any other way that is as fast as ffmpeg?
Upvotes: 2
Views: 3576
Reputation: 438
No, it is not possible. YUV is PAL ITU-R BT.470 standard as used for analog TV, it is not in use anymore. You can use https://github.com/fsphil/hacktv with software defined radio instead.
These do not use YCbCr or YUV, those are pixel formats, not color matrices.
Upvotes: 1
Reputation: 229
It turns out it is possible: for example when processing an AVFrame
using an AVCodecContext
,
AV_PIX_FMT_YUVJ420P
instead of AV_PIX_FMT_YUV_420P
(deprecated),AV_PIX_FMT_YUV_420P
and set the color_range
to AVCOL_RANGE_JPEG
.All links are relative to release 3.2.
Edit:
I believe the actual mathematical conversions are in yuv2rgb.c
.
Upvotes: 2