JihyongOh / JSI-GAN

[AAAI 2020] Official repository of JSI-GAN.
60 stars 16 forks source link

Weird .mp4 video after converting raw .yuv video with ffmpeg #12

Closed predictwise closed 3 years ago

predictwise commented 3 years ago

Hi @sooyekim @JihyongOh

Thanks for your great work!

I am using following command to convert raw .yuv video to .mp4, but the result is very weird:

ffmpeg -f rawvideo -vcodec rawvideo -s 3840x2160 -r 25 -pix_fmt yuv420p -i ./test_img_dir/JSI-GAN_x2_exp1/result.yuv -c:v libx264 -preset ultrafast -qp 0 ./test_img_dir/JSI-GAN_x2_exp1/result.mp4

Screenshot from 2020-09-29 17-44-55

Did I do something wrong?

Kind regards, Oliver

sooyekim commented 3 years ago

@predictwise Hi Oliver! Apologies for the late reply.

I converted the .yuv files to .mp4 using the commands specified here. I used x265 as the codec, which supports HDR. Note that the default codec on ffmpeg may not support HDR videos.

LMK if you have any other questions, thanks! Soo Ye