[FFmpeg-user] Option video_size

Tom snthdiueoa at gmail.com
Sun Sep 11 21:28:48 CEST 2011


On Sun, Sep 11, 2011 at 8:42 PM, Etienne Buira
<etienne.buira.lists at free.fr> wrote:
> On Sun, Sep 11, 2011 at 08:14:32PM +0200, Tom wrote:
>> Hi,
>>
>> So I changed "-s" to "--video_size" and got this error now:
>>
>> $ ffmpeg --video_size 720x576 -i media.flv --video_size 640x512 -b
>> 8000K -an -r 25
>>  -vframes 30 media/640x480x25/build%d.jpg
>
> Didn't notice at first that you were using flv, so you should actually
> not use -video_size (which is to set _input_ frame size on formats that
> doesn't hold this information).

So i removed the first --video_size now, and ffmpeg got a step further:

ffmpeg version git-Sat Sep 10 05:24:39 2011 +0200-b10ba11, Copyright
(c) 2000-2011 the FFmpeg developers
  built on Sep 10 2011 08:00:13 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-postproc --enable-libfaac --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora
--enable-libvorbis --enable-libxvid --enable-x11grab --enable-pthreads
  libavutil    51. 16. 0 / 51. 16. 0
  libavcodec   53. 13. 0 / 53. 13. 0
  libavformat  53. 12. 0 / 53. 12. 0
  libavdevice  53.  3. 0 / 53.  3. 0
  libavfilter   2. 39. 0 /  2. 39. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[flv @ 0x8e02aa0] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate:
1000.00 (1000/1) -> 25.00 (25/1)
Input #0, flv, from 'media.flv':
  Metadata:
    duration        : 23
    width           : 720
    height          : 576
    videodatarate   : 195
    framerate       : 50
    videocodecid    : 2
    audiodatarate   : 125
    audiosamplerate : 44100
    audiosamplesize : 16
    stereo          : true
    audiocodecid    : 2
    encoder         : Lavf52.83.0
    filesize        : 19656777
  Duration: 00:00:23.06, start: 0.000000, bitrate: 328 kb/s
    Stream #0.0: Video: flv1, yuv420p, 720x576, 200 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
Unrecognized option '-video_size'
Failed to set value '640x512' for option '-video_size'

but still the same error..


>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list