Log in

View Full Version : FFmpeg AVIF Format


jay123210599
12th December 2024, 15:35
When making AVIF files from videos using ffmpeg, do they automatically get the right format for it? For example, if my video is YUV240 8bit or YUV444 10bit, will ffmpeg automatically use the correct format for it?

Z2697
12th December 2024, 17:15
Can't you just fucking fuck around and find out
It's not like FFmpeg hides what pixel format it uses from you
What the fuck is wrong with you

Short answer is yes

jay123210599
12th December 2024, 18:06
Can't you just fucking fuck around and find out
It's not like FFmpeg hides what pixel format it uses from you
What the fuck is wrong with you

Short answer is yes

Well in that case, since my source video does not any colorimetry flags, I'll just use this since the output AVIF won't have any tag issues and it automatically get the correct format.

-vf zscale=min=709

But my problem now is that I got this error

[Parsed_zscale_0 @ 00000295523f9340] code 3074: no path between colorspaces
Last message repeated 25 times
[vf#0:0 @ 0000029552990680] Error while filtering: Generic error in an external library
[vf#0:0 @ 0000029552990680] Task finished with error code: -542398533 (Generic error in an external library)
[vf#0:0 @ 0000029552990680] Terminating thread with return code -542398533 (Generic error in an external library)
[vost#0:0/libaom-av1 @ 000002955239bb40] Could not open encoder before EOF
[vost#0:0/libaom-av1 @ 000002955239bb40] Task finished with error code: -22 (Invalid argument)
[vost#0:0/libaom-av1 @ 000002955239bb40] Terminating thread with return code -22 (Invalid argument)
[out#0/avif @ 00000295523f9080] 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!

How do I fix this while getting the 709 colors I want?