[FFmpeg-user] noob difficulties with images to video conversion

BWright bwright at isoblock.com
Sat Mar 16 12:19:54 CET 2013


hello all! i just subscribed to this list so hopefully i'll be able to 
read any responses.

i downloaded the z_ windows 32 bit build, extracted same to a folder 
under program files, and added the ffmpeg bin folder to my path. so far 
so good, running tcc/le i can launch ffmpeg from any folder.

after "correcting" all the spaces in the path to a folder containing 
jpeg images which are sequentially named from image001.jpg thru 
image512.jpg i open a command prompt (TCC/LE) in that same folder and 
enter the following command line

ffmpeg -i image%03d.jpg -r 2 gallery.mpg

i get
ffmpeg version N-34549-g13b7781, Copyright (c) 2000-2011 the FFmpeg 
developers
   built on Nov  6 2011 22:02:08 with gcc 4.6.1
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r 
--enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype 
--enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp 
--enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc 
--enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs 
--enable-
libxvid --enable-zlib
   libavutil    51. 24. 0 / 51. 24. 0
   libavcodec   53. 28. 0 / 53. 28. 0
   libavformat  53. 19. 0 / 53. 19. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 47. 0 /  2. 47. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
image.jpg: No such file or directory

i have tried various combinations including the full path with no, 
single, or double quotes around it and played with escaping the msdos 
backslash in the filepathname. to no avail. the same error but with say 
the filepathname as part of the error message.

now here is the kicker. if i enter the following

ffmpeg -i image001.jpg -r 2 gallery.mpg

i get
ffmpeg version N-34549-g13b7781, Copyright (c) 2000-2011 the FFmpeg 
developers
   built on Nov  6 2011 22:02:08 with gcc 4.6.1
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r 
--enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype 
--enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp 
--enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc 
--enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs 
--enable-
libxvid --enable-zlib
   libavutil    51. 24. 0 / 51. 24. 0
   libavcodec   53. 28. 0 / 53. 28. 0
   libavformat  53. 19. 0 / 53. 19. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 47. 0 /  2. 47. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
Input #0, image2, from 'image001.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: mjpeg, yuvj420p, 1019x749 [SAR 1:1 DAR 
1019:749], 25 tbr
, 25 tbn, 25 tbc
File 'gallery.mpg' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'yuvj420p' for codec 'mpeg1video', 
auto-selecting form
at 'yuv420p'
[buffer @ 01FCFF00] w:1019 h:749 pixfmt:yuvj420p tb:1/1000000 sar:1/1 
sws_param:

[buffersink @ 02C8AF80] auto-inserting filter 'auto-inserted scale 0' 
between th
e filter 'src' and the filter 'out'
[scale @ 02C8B340] w:1019 h:749 fmt:yuvj420p -> w:1019 h:749 fmt:yuv420p 
flags:0
x4
[mpeg1video @ 02C80060] MPEG1/2 does not support 5/1 fps
Output #0, mpeg, to 'gallery.mpg':
     Stream #0:0: Video: mpeg1video, yuv420p, 1019x749 [SAR 1:1 DAR 
1019:749], q=
2-31, 200 kb/s, 90k tbn, 5 tbc
Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg -> mpeg1video)
Error while opening encoder for output stream #0:0 - maybe incorrect 
parameters
such as bit_rate, rate, width or height

this result says that it understood which file i was asking it to process
i had originally planned to make an FLV and if i instead of the mpg 
extension above use

ffmpeg -i image001.jpg -r 2 gallery.flv

i get
ffmpeg version N-34549-g13b7781, Copyright (c) 2000-2011 the FFmpeg 
developers
   built on Nov  6 2011 22:02:08 with gcc 4.6.1
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r 
--enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype 
--enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp 
--enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc 
--enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs 
--enable-
libxvid --enable-zlib
   libavutil    51. 24. 0 / 51. 24. 0
   libavcodec   53. 28. 0 / 53. 28. 0
   libavformat  53. 19. 0 / 53. 19. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 47. 0 /  2. 47. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
Input #0, image2, from 'image001.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: mjpeg, yuvj420p, 1019x749 [SAR 1:1 DAR 
1019:749], 25 tbr
, 25 tbn, 25 tbc
Incompatible pixel format 'yuvj420p' for codec 'flv', auto-selecting 
format 'yuv
420p'
[buffer @ 01C0FF00] w:1019 h:749 pixfmt:yuvj420p tb:1/1000000 sar:1/1 
sws_param:

[buffersink @ 02F9AF60] auto-inserting filter 'auto-inserted scale 0' 
between th
e filter 'src' and the filter 'out'
[scale @ 02F9B300] w:1019 h:749 fmt:yuvj420p -> w:1019 h:749 fmt:yuv420p 
flags:0
x4
Output #0, flv, to 'gallery.flv':
   Metadata:
     encoder         : Lavf53.19.0
     Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 1019x749 
[SAR 1:1
  DAR 1019:749], q=2-31, 200 kb/s, 1k tbn, 2 tbc
Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg -> flv)
Press [q] to stop, [?] for help
frame=    1 fps=  0 q=6.9 Lsize=      83kB time=00:00:00.50 
bitrate=1353.2kbits/
s
video:82kB audio:0kB global headers:0kB muxing overhead 0.267938%

and a movie with one frame.

so the main issue that i have right at the moment is trying to get 
ffmpeg to parse multiple images with the filename/pathname and the 
"regex" for the sequence number not operating to my understanding.

suggestions please? thx muchly!




More information about the ffmpeg-user mailing list