cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Looking for ffmpeg usage help?

ncscz
Explorer
Explorer
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.
CarriGo
Model 2320
4 REPLIES 4

1492
Moderator
Moderator
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.

Gdetrailer
Explorer III
Explorer III
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..

MrWizard
Moderator
Moderator
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 can explain it to you.
But I Can Not understand it for you !

....

Connected using T-Mobile Home internet and Visible Phone service
1997 F53 Bounder 36s

Gdetrailer
Explorer III
Explorer III
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!