Opened 8 months ago

Last modified 7 months ago

#11672 new defect

[bug] colorspace bt709 error for ycgco

Reported by: von Owned by:
Priority: important Component: avcodec
Version: 7.1 Keywords: colorspace
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffmpeg 7.1.1

command:

./ffmpeg7  -y -i de.mp4 -colorspace bt709 -an -f mp4 de-264.mp4

de.mp4:

color_range=tv
color_space=ycgco
color_primaries=bt709
color_transfer=bt709

get error:

Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scale_0'
[vf#0:0 @ 0x558741629500] Error reinitializing filters!
[vf#0:0 @ 0x558741629500] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x558741629500] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/libx264 @ 0x55874165c440] Could not open encoder before EOF
[vost#0:0/libx264 @ 0x55874165c440] Task finished with error code: -22 (Invalid argument)
[vost#0:0/libx264 @ 0x55874165c440] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 0x55874161db40] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A    
Conversion failed!

If I remove -colorspace bt709, this works fine.
Please someone help me.

Attachments (1)

dd.mp4 (309.1 KB ) - added by von 8 months ago.

Download all attachments as: .zip

Change History (3)

by von, 8 months ago

Attachment: dd.mp4 added

comment:1 by Balling, 8 months ago

YCgCo is not supported by our code. https://trac.ffmpeg.org/ticket/10839#comment:19

in reply to:  1 comment:2 by von, 7 months ago

Replying to Balling:

YCgCo is not supported by our code. https://trac.ffmpeg.org/ticket/10839#comment:19

How do I use vf_scale in this case? Is there any best practice? I didn't need to consider this issue in previous versions. I just want to upgrade to the latest ffmpeg and change as few parameters as possible.

For other color spaces, it is normal to use the old version of ffmpeg. How can the new version be compatible? For example, in this case:

color_range=pc
color_space=reserved
color_primaries=reserved
color_transfer=smpte170m

I want to know if the error "Impossible to convert between the formats supported by the filter 'ffplay_buffer' and the filter 'auto_scale_0'" when playing YCgCo video is expected?

Last edited 7 months ago by von (previous) (diff)
Note: See TracTickets for help on using tickets.