Opened 11 years ago
Closed 11 years ago
#3008 closed defect (fixed)
ffmpeg converts video to grayscale if yadif filter used
Reported by: | Anatoliy | Owned by: | |
---|---|---|---|
Priority: | important | Component: | avfilter |
Version: | git-master | Keywords: | regression |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
Summary of the bug: Standard Windows clock video gets converted to grayscale if yadif filter is used
How to reproduce:
% ffmpeg -i orig -s 200x200 -filter:v yadif=deint=interlaced -vcodec flv -ar 22050 -y 0.flv ffmpeg version 2.0.1 built on 09/24/2013 Without yadif filter or output size params (-s 200x200) everything is OK
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Attachments (1)
Change History (3)
by , 11 years ago
comment:1 by , 11 years ago
Component: | FFmpeg → avfilter |
---|---|
Keywords: | regression added; yadif grayscale ffmpeg removed |
Priority: | normal → important |
Reproduced by developer: | set |
Status: | new → open |
Version: | 2.0.1 → git-master |
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fixed by Michael in 95666b2, thank you for the report!
Note:
See TracTickets
for help on using tickets.
For future tickets: Please always test current git head and please always add the complete, uncut console output.
Several work-arounds exist:
I originally thought that this is a duplicate of ticket #2559 but since this is a regression since 6adf97f, I don't think so.
The scale filter has to be inserted twice because yadif does not support the input pixel format and you generally cannot resize before deinterlacing. For the specific case (input pal8, yadif, resize, output yuv420p), the problem can be fixed imo because the trivial choice works, for other encoders, it would be more difficult to see the right pix_fmt.
out.flv is gray because the first inserted scaler uses pix_fmt gray.