[FFmpeg-user] h264 videos are darker

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Feb 24 23:15:15 EET 2020


Am Mo., 24. Feb. 2020 um 21:06 Uhr schrieb Totte Karlsson
<totte.karlsson at alleninstitute.org>:
>
> > You can try the following:
> > $ ffmpeg -f rawvideo -r 23 -s 658x492 -i pipe -vcodec libx264 -pix_fmt yuv420p -crf
> > 23 output1...
> > $ ffmpeg -f rawvideo -r 23 -s 658x492 -i pipe -vcodec libx264 -pix_fmt yuvj420p -crf
> > 23 output2...
>
> I tried both yuv420p and yuvj420p as suggested, and both results in color flashing distorted videos.

Then please add -pix_fmt gray before "-i".

> > Note that avi is generally not considered a good idea to store h264.
>
> What is a considered good choice for storing h264?

mkv, mov (and friends), mpegts

Carl Eugen


More information about the ffmpeg-user mailing list