Forum Discussion

ncscz's avatar
ncscz
Explorer
Apr 02, 2016

Looking for ffmpeg usage help?

I am needing help with ffmpeg. I am attempting to convert a series of jpg photos into a video using ffmpeg.

This is the command I am using:
ffmpeg -framerate 10 -i %5d.jpg -codec copy output.MP4

I get the video BUT it often has a yellow stripe down the center. Example The stripe is not always there but seems to be related to the lightness/darkness of the photos. A series of light images will almost always have it and a series of dark background will usually not have it.

There seem to be hundreds of ffmpeg options and all of the help/support sites are way more detailed than I want to get.

The job runs on a PI but could also reside on a Mint/linux.

Thanks for any suggestions.
  • ncscz wrote:
    I am needing help with ffmpeg. I am attempting to convert a series of jpg photos into a video using ffmpeg.

    This is the command I am using:
    ffmpeg -framerate 10 -i %5d.jpg -codec copy output.MP4

    I get the video BUT it often has a yellow stripe down the center. Example The stripe is not always there but seems to be related to the lightness/darkness of the photos. A series of light images will almost always have it and a series of dark background will usually not have it.

    There seem to be hundreds of ffmpeg options and all of the help/support sites are way more detailed than I want to get.

    The job runs on a PI but could also reside on a Mint/linux.

    Thanks for any suggestions.


    While there are a lot of smart folks on this forum, I think you will find that there is a better forum that is filled with video and audio enthusiasts that know this program inside and out..

    Try VIDEOHELP.COM and post your question there (you may want to search that website before posting to make sure it hasn't been asked).

    Good luck!
  • I've only done this once or twice
    And I used a dedicated drag and drop program
    That let me set them on a time line with transitions etc..
    (Which might have been windows movie maker on an XP machine)
    I too recommend videohelp.com
    I also suggest asking in the newbie forum
    With a question Something like pictures to video
    And not even mention ffmpeg and see what they suggest
    Command line tools, allow great control for doing very specific things
    Something apparently Not needed for what you want to do
  • I should also note, there ARE plenty of options which can take still mpeg photos and put them into a video format like MP4..

    A couple of ways that come to mind is MS Power Point, you create a slide show in power point and newer versions (2007 and up I believe) offer the option to save to a video file..

    If MP4 is not one of the choices, you can choose what is offered then after file is created you can convert that file to MP4 with a free video file converter.

    Do be aware, MP4 is a "file container", there are multiple ways a MP4 can be encoded and still be called MP4..

    Alternately, there are many video editing programs which will allow you to assemble a video out of stills.. I believe Sony Vegas should work.. If you watch you can buy slightly older versions (New Old Stock) on Amazon for a lower more reasonable cost than the newest version..
  • The issue you are having is typically the result of an incompatible color space. Many media players require a YUV 4:2:0 colorspace to playback .MP4 files correctly.

    You may want to try adding -pix_fmt yuv420p to force the use of YUV 4:2:0 during the conversion.

    Alternatively, you can try using the command:

      ffmpeg -framerate 1/10 -i %5d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p output.mp4



    Adjusting the individual image duration, and output framerate as required.

About RV Must Haves

Have a product you cannot live without? Share it with the community!8,793 PostsLatest Activity: Aug 22, 2023