0

I recently upgraded to ffmpeg version 4.3.1 with libx264.

When I use it to generate a single image slideshow

ffmpeg -y -loop 1 -i shapes.jpg -t 0:0:5 -vcodec libx264 output.mp4

I get a smeared image that looks like a technicolor waterfall (I know the -vcodec is redundant here).If I force use of the mpeg4 codec

ffmpeg -y -loop 1 -i shapes.jpg -t 0:0:5 -vcodec mpeg4 output.mp4

everything works fine.

I have tried several different input images but for example: https://cdn4.vectorstock.com/i/1000x1000/84/48/simple-geometric-shape-vector-13698448.jpg

produces this: technicolor waterfall

I think this is a bug but I just want to check and make sure I'm not doing something DUH! worthy before I report it.

I can use the libx264 codec for other things like converting formats and it works fine. I only see this when converting an image to a video.

  • Share full log. – Gyan Sep 22 '20 at 04:36
  • I did come up with a work around. Generate the mp4 with the mpeg4 codec, then repackage with the libx264 codec and everyone's happy. – epilitimus Sep 22 '20 at 17:52
  • @Gyan - I tried to add it but the website says the result is too long so I posted it at: http://www.epilitimus.com/ffmpeg-20200921-182750.txt sorry about the outside link – epilitimus Sep 22 '20 at 18:18
  • Perhaps your player doesn't like yuvj444p pixel format. Add `-vf format=yuv420p` to your command with libx264 and try again. – llogan Sep 22 '20 at 18:53
  • @llogan - Okay yes that does fix it. Both xine and mplayer had the issue which is why I didn't think it was a player problem. – epilitimus Sep 22 '20 at 19:00

0 Answers0