[FFmpeg-user] JPEG to MP4 (or WMV)

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jun 19 09:42:22 CEST 2013

fatalaccidents <thefatalaccidents <at> gmail.com> writes:

> I have been trying to convert a batch of jpg's to an 
> mp4 using the command: 
> cat *.jpg | ffmpeg -y -f image2pipe -r 10 -vcodec mjpeg 
> -i - -vcodec copy out.mp4

Possibly unrelated:
Is jpeg in mp4 really defined?

> Here is the first JPG.  Notice the three dark 
> spots in the road near the top: 
> <http://ffmpeg-users.933282.n4.nabble.com/file/n4659610/GA1_264000_b3.jpg>

(Definitely full-scale yuvj, not yuv.)
> The resulting video is white washed :(

This is extremely difficult to understand:
You use -vcodec copy above, meaning the frames are 
copied unchanged into the output container.
Which application plays the video "white washed"?

> It is very important for the movie to have the 
> colors very very close to being what is seen in 
> the jpg's. I'm actually converting it into a wmv 
> with the command: 
> ffmpeg -i %s.mp4 -c:v wmv2 -b:v 20M -s 720x720 
> -c:a wmav2 -b:a 192k %s.wmv
> So it would be an added bonus if I could go from 
> the jpg to the wmv in one step

So why don't you do that?

In any case:
Complete, uncut console output missing.

Carl Eugen

More information about the ffmpeg-user mailing list