[Ffmpeg-devel] [Ffmpeg-devel-old] Mencoder settings for WMV source

Media Streaming Services mediastream
Fri Nov 11 18:12:14 CET 2005


I use WMV source to convert to 3gp.
Works fine with a single stream WMV, however if I have a WMV source with 2
bitrate streams embeded in the file, ffmpeg selects first stream by default,
I need a setting please for telling ffmpeg that I want to translate video
stream2 to a 3gp not video stream1. Is it possible to change stream mapping
in this case?

Thanks.


C:\>ffmpeg -i worst.wmv -f 3gp -acodec aac -ac 1 -ar 24000 -ab 24 -bitexact
-hq -vcodec mpeg4 -r 15 -b 120 -s qcif worst.3gp

ffmpeg version 0.4.9-pre1, build 4743, Copyright (c) 2000-2004 Fabrice
Bellard
configuration: --enable-mp3lame --enable-faac --enable-faad --enable-amr_nb
-
-enable-amr_wb --disable-ffserver --disable-ffplay --enable-small
--enable-memal
ign-hack --enable-gpl --enable-xvid --enable-dts --enable-a52 --enable-vhook
--e
nable-pthread
built on Jun 25 2005 17:12:43, gcc: 3.3.1 (cygming special)
[asf @ 0x410dd0]ff asf parser skips: 0 - 775 o:372 - 0 116 0 fl:403
[asf @ 0x410dd0]ff asf parser skiping 403b
[asf @ 0x410dd0]ff asf parser skips: 0 - 2215 o:188 - 0 197 0 fl:2027
[asf @ 0x410dd0]ff asf parser skiping 2027b

Seems that stream 2 comes from film source: 1000.00 (1000/1) -> 15.00 (15/1)
Input #0, asf, from 'worst.wmv':
Duration: 00:01:38.2, start: 2.861000, bitrate: 182 kb/s
Stream #0.0: Audio: wmav2, 16000 Hz, mono, 12 kb/s
Stream #0.1: Video: wmv1, 240x180, 1000.00 fps
Stream #0.2: Video: wmv1, 240x180, 1000.00 fps
File '2.3gp' already exists. Overwrite ? [y/N] y
Output #0, 3gp, to '2.3gp':
Stream #0.0: Video: mpeg4 (hq), 176x144, 15.00 fps, q=2-31, pass 1, 120 kb/s
Stream #0.1: Audio: aac, 24000 Hz, mono, 24 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
[mpeg4 @ 0x7ac800]removing common factors from framerate
Press [q] to stop encoding




More information about the ffmpeg-devel mailing list