#7571 closed enhancement (wontfix)
Information about input color space
Reported by: | Ilya87 | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | ffmpeg |
Version: | unspecified | Keywords: | color space |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug: ffmpeg even with -loglevel debug provides no data about input colorspace that will be used later by encoder.
How to reproduce:
% ffmpeg -loglevel 5 -i bd.mkv ffmpeg version 4.1 built on Antergos Linux Using the command -vf colorspace=all=bt601-6-625:iall=bt601-6-625 I found out that ffmpeg treats input video as BT.601 (I compared first screenshot made with -frames:v 1 default.png with screenshot made using this filter). Why not BT.709? Where does ffmpeg get the information?
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Attachments (1)
Change History (17)
comment:1 by , 6 years ago
by , 6 years ago
comment:2 by , 6 years ago
It's good about correct guess, but I think that this info (even it is guessed) should be shown using debug or other command.
follow-up: 5 comment:4 by , 6 years ago
Dunno, you can see which colorspace frame use with showinfo filter.
comment:5 by , 6 years ago
Replying to richardpl:
Dunno, you can see which colorspace frame use with showinfo filter.
In description I see it shows pixel format, not colorspace
comment:10 by , 6 years ago
I have 4.1 and it says color_range:unknown color_space:unknown color_primaries:unknown color_trc:unknown
comment:11 by , 6 years ago
Yes, use: ffmpeg -i bd.mkv -vf setparams=colorspace=bt709,rest_of_filtering ....
comment:12 by , 6 years ago
I still don't understand why I should set bt709 and maybe it's a bug already if ffmpeg chooses incorrect input color space?
comment:13 by , 6 years ago
Nope, your input just lacks necessary metadata either in container or in video.
comment:14 by , 6 years ago
In this case ffmpeg must explicitly declare that color space is guessed and may be incorrect and it is recommended to set it manually.
comment:15 by , 6 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:16 by , 3 years ago
blu-ray part, can it have bt.601?
Both AVC and HEVC support BT.601 matrix, but no, Blu-rays are all BT.709.
Ffmpeg swscale defaults to BT.601 limited.
It guess input colorspace if it is not properly marked. Look at setparams filter how to force input colorspace for filters.