[FFmpeg-user] How to stitch images to create video

Tom Evans tevans.uk at googlemail.com
Tue Apr 1 17:29:37 CEST 2014


On Tue, Apr 1, 2014 at 6:09 AM, Amit Agarwal <lifeamit at gmail.com> wrote:
> Hi,
>
> I am not able to stitch images to create a video out of them. Here is the
> command I am using to stitch images together.
>
> ffmpeg -t 10.993 -f image2 -r 29.97 -threads 0 -i
> images/i-29x97fps-1280x720-%05d.png -vcodec libx264 -acodec libfaac -ar 48k
> -ab 224k -aq 100 -vol 384 -async 1 -y video.mp4
>
> This command it creating video.mp4 but that seems to be corrupt file. No
> player is able to play that file and VLC crashes when trying to play this
> file.
>
> Can someone please help me fix this command in order to generate a healthy
> mp4 video file ?
>
> I am using ffmpeg version 2.1.4 and 2.2. Both are giving same output.
>
>
>
> *Here are the logs in case they help:*
>
> ffmpeg -t 10.993 -f image2 -r 29.97 -threads 0 -i
> images/i-29x97fps-1280x720-%05d.png -vcodec libx264 -acodec libfaac -ar 48k
> -ab 224k -aq 100 -vol 384 -async 1 -y video.mp4
> ffmpeg version 2.2-tessus Copyright (c) 2000-2014 the FFmpeg developers
>   built on Mar 24 2014 22:25:11 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
>   configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm
> --extra-version=tessus --disable-shared --enable-static --disable-ffplay
> --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame
> --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
> --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libxavs --enable-version3
> --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx
> --enable-libgsm --enable-libopus --enable-libmodplug --enable-fontconfig
> --enable-libfreetype --enable-libass --enable-libbluray --enable-filters
> --enable-runtime-cpudetect
>   libavutil      52. 66.100 / 52. 66.100
>   libavcodec     55. 52.102 / 55. 52.102
>   libavformat    55. 33.100 / 55. 33.100
>   libavdevice    55. 10.100 / 55. 10.100
>   libavfilter     4.  2.100 /  4.  2.100
>   libswscale      2.  5.102 /  2.  5.102
>   libswresample   0. 18.100 /  0. 18.100
>   libpostproc    52.  3.100 / 52.  3.100
> Input #0, image2, from 'images/i-29x97fps-1280x720-%05d.png':
>   Duration: 00:00:10.94, start: 0.000000, bitrate: N/A
>     Stream #0:0: Video: png, rgba, 1024x769 [SAR 2835:2835 DAR 1024:769],
> 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
> Codec AVOption ab (set bitrate (in bits/s)) specified for output file #0
> (video.mp4) has not been used for any stream. The most likely reason is
> either wrong type (e.g. a video option with no video streams) or that it is
> a private option of some encoder which was not actually used for any stream.
> No pixel format specified, yuv444p for H.264 encoding chosen.
> Use -pix_fmt yuv420p for compatibility with outdated media players.

This wasn't clear enough? I'll take it out of the quoting to make it
even clearer.

No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.

Cheers

Tom


More information about the ffmpeg-user mailing list