[FFmpeg-user] video plays the same frame after 2 seconds

Thomas Evangelidis tevang3 at gmail.com
Wed May 30 20:53:59 CEST 2012


Dear all,

I am using the following command line to create a good quality video from
500 image files:

$ ffmpeg -an -i WT_Hbonds.%05d.ppm -sameq -r 10 -vframes 500 test.mp4

The output is as follows:

FFmpeg version 0.6.4-4:0.6.4-0ubuntu0.11.04.1, Copyright (c) 2000-2010 the
Libav developers
  built on Jan  4 2012 16:13:16 with gcc 4.5.2
  configuration: --extra-version=4:0.6.4-0ubuntu0.11.04.1 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
--enable-libvpx --disable-stripping --enable-runtime-cpudetect
--enable-vaapi --enable-gpl --enable-postproc --enable-swscale
--enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  libavutil   configuration: --extra-version=4:0.6.4-1ubuntu1 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libdirac --enable-libgsm --enable-libopenjpeg
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--disable-stripping --enable-runtime-cpudetect --enable-vaapi
--enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale
--enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad
--enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
--enable-libdc1394 --enable-shared --disable-static
  libavcodec  configuration: --extra-version=4:0.6.4-1ubuntu1+medibuntu1
--prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau
--enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--disable-stripping --enable-runtime-cpudetect --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-version3 --enable-vaapi
--enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libfaad
--enable-libdirac --enable-libfaad --enable-libmp3lame --enable-librtmp
--enable-libx264 --enable-libxvid --enable-libdc1394 --enable-shared
--disable-static
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, image2, from 'WT_Hbonds.%05d.ppm':
  Duration: 00:00:20.00, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: ppm, rgb24, 1280x745, 25 tbr, 25 tbn, 25 tbc
File 'test.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0: Video: mpeg4, yuv420p, 1280x745, q=2-31, 200 kb/s, 10 tbn,
10 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=  201 fps=  4 q=0.0 Lsize=   12340kB time=20.10 bitrate=5029.1kbits/s
dup=0 drop=299
video:12337kB audio:0kB global headers:0kB muxing overhead 0.019251%


Notice the pre-last line which indicated that only 201/500 frames were
written. The video resolution is good but the animation hangs after 2
seconds, namely the video keeps playing the same frame till the end. I
tried to reduce the image resolution from 1280x745 to 889x517 but the same
thing happens. Does anyone know what may be wrong?

Thanks in advance for any comments.

Thomas


More information about the ffmpeg-user mailing list