[FFmpeg-user] Codec is ignored

Massimo Battistel battistel at gmail.com
Mon May 13 12:44:13 CEST 2013


I know mpeg1 can be decoded by mpeg2 decoder. But I also want ffmpeg to
respond to my commands.
Anyway moving -vcodec after -acodec worked.
Is there any doc to understand parameters order logic?

thanks


2013/5/13 Paul B Mahol <onemda at gmail.com>

> On 5/13/13, Massimo Battistel <battistel at gmail.com> wrote:
> > hi,
> > I have to generate 60s of black video with mute audio.
> > with the following commad line video track is always mpeg1. The -vcodec
> > parameter seems to be ignored.
> >
> > ffmpeg -f lavfi -i color=c=black:s=720x576 -r 25 -vcodec mpeg2video -f
> > lavfi -i aevalsrc=0 -ar 48000 -ac 2 -acodec mp2 -t 60 filler.mpg
>
> -vcodec mpeg2video needs to go somewhere after acodec. (after last -f x -i
> y)
>
> >
> > ffmpeg version N-50442-g4f0d4ac Copyright (c) 2000-2013 the FFmpeg
> > developers
> >   built on Mar  2 2013 15:33:19 with gcc 4.7.2 (GCC)
> >   configuration: --disable-static --enable-shared --enable-gpl
> > --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
> > --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass
> > --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm
> > --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb
> > --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
> > --enable-librtmp --enable-libschroedinger --enable-libsoxr
> > --enable-libspeex --enable-libtheora --enable-libtwolame
> > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
> > --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
> > --enable-zlib
> >   libavutil      52. 17.103 / 52. 17.103
> >   libavcodec     54. 92.100 / 54. 92.100
> >   libavformat    54. 63.102 / 54. 63.102
> >   libavdevice    54.  3.103 / 54.  3.103
> >   libavfilter     3. 41.100 /  3. 41.100
> >   libswscale      2.  2.100 /  2.  2.100
> >   libswresample   0. 17.102 /  0. 17.102
> >   libpostproc    52.  2.100 / 52.  2.100
> > [lavfi @ 000000000052f7c0] Estimating duration from bitrate, this may be
> > inaccurate
> > Input #0, lavfi, from 'color=c=black:s=720x576':
> >   Duration: N/A, start: 0.000000, bitrate: N/A
> >     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576
> [SAR
> > 1:1 DAR 5:4], 25 tbr, 25 tbn, 25 tbc
> > [lavfi @ 000000000052d000] Estimating duration from bitrate, this may be
> > inaccurate
> > Input #1, lavfi, from 'aevalsrc=0':
> >   Duration: N/A, start: 0.000000, bitrate: 2822 kb/s
> >     Stream #1:0: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822 kb/s
> > File 'filler.mpg' already exists. Overwrite ? [y/N] VBV buffer size not
> > set, muxing may fail
> > Output #0, mpeg, to 'filler.mpg':
> >   Metadata:
> >     encoder         : Lavf54.63.102
> >     Stream #0:0: Video: mpeg1video, yuv420p, 720x576 [SAR 1:1 DAR 5:4],
> > q=2-31, 200 kb/s, 90k tbn, 25 tbc
> >     Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
> > Stream mapping:
> >   Stream #0:0 -> #0:0 (rawvideo -> mpeg1video)
> >   Stream #1:0 -> #0:1 (pcm_f64le -> mp2)
> > Press [q] to stop, [?] for help
> > frame=  411 fps=0.0 q=2.0 size=     510kB time=00:00:16.36 bitrate=
> > 255.4kbits/s
> > frame=  833 fps=833 q=2.0 size=    1038kB time=00:00:33.24 bitrate=
> > 255.8kbits/s
> > frame= 1259 fps=839 q=2.0 size=    1568kB time=00:00:50.28 bitrate=
> > 255.5kbits/s
> > frame= 1500 fps=843 q=2.0 Lsize=    1890kB time=00:00:59.98 bitrate=
> > 258.1kbits/s
> >
> > video:933kB audio:938kB subtitle:0 global headers:0kB muxing overhead
> > 1.049993%
> >
> > thanks
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>



-- 
Massimo Battistel.


More information about the ffmpeg-user mailing list