Open kripod opened 3 years ago
First of all in you bottom ffmpeg command don't use -x265-params to specify crf, just use -crf directly. Then also set -preset slow, the medium preset is way worse efficiency wise and that's why the file is so large.
In av1an just try specifying another pix fmt
@kripod plays just fine with mpv. That issue is not related to pix_formats
Yeah, I think it's the decoder really not liking yuv444p or something.
@master-of-zen The result also plays fine with other media players like IINA, that’s why I’m surprised by the decoding issue within Safari.
@Felixkruemel Thank you for the tip! Honestly, I’m a bit confused and overwhelmed by all these options available within the various software used for video processing. I would appreciate some clarification about where each option should be passed. (I feel like I’m not confident about the separation between FFmpeg, codecs and Av1an itself.
@BlueSwordM Do you have an idea about how this might be resolved? I would like to keep the input source without loss (in yuv444p
), but the output should be emitted in yuv420p10le
.
Actually, it is 4:2:0, so something must be up with the video stream, or Safari,
@BlueSwordM As I’ve mentioned, the source video stream is a lossless h264 file encoded in yuv444p. Not sure if that gets processed as it’s intended to be. What’s more interesting is that many media players play the resulting video just fine. Really not sure about what’s going on with Safari, but that’s the main target I would like to play the compressed video on.
I’ve just encoded a lossless video with the following media information (gathered via
ffprobe
):And with the following commands to aim for Safari compatibility:
Unfortunately, the result below:
https://user-images.githubusercontent.com/14854048/105613789-27a50a00-5dc5-11eb-8fef-596503113e92.mp4
Flickers when played back in Safari:
https://user-images.githubusercontent.com/14854048/105613913-eb25de00-5dc5-11eb-99b7-0072a38ed37f.mov
I suspect this has something to do with the
yuv444p
color profile of the source (as the output--pix_format
isyuv420p10le
by default), but I may be totally wrong on that.When encoding the source via ffmpeg (without prior processing through Av1an), the following command produces acceptable results, but at twice the file size: