[FFmpeg-user] Audio stream won't play after remapping to remove unusable streams.

Hans J. Albertsson hans.j.albertsson at branneriet.se
Fri Nov 22 12:44:21 CET 2013


The below commands show an attempt at removing a voice-over russian 
dubbed audio stream (0:1) from an avi file, so that the other, japanese, 
audio stream will be the default.

It won't work: the resulting file, which to me seems good, judging from 
what ffmpeg -i OUT.avi says, will come up as "unsupported audio" in all 
my media players.

Both audio streams play perfectly from the original IN.avi in all my 
media players.

What could be the problem??


------------------Commands and results--------------------------

ffmpeg -i IN.avi -vcodec copy -acodec copy -map 0:0 -map 0:2 OUT.avi

ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers
   built on Feb  9 2013 18:18:22 with gcc 4.6.3 (GCC)
   configuration: --prefix=/usr --bindir=/usr/bin/pentium_pro+mmx 
--libdir=/usr/lib/pentium_pro+mmx --shlibdir=/usr/lib/pentium_pro+mmx 
--mandir=/usr/share/man --cc=gcc --cpu=prescott --enable-mmx 
--enable-sse --enable-ssse3 --disable-debug --enable-nonfree 
--enable-gpl --enable-runtime-cpudetect --enable-postproc 
--enable-avfilter --enable-swscale --enable-libgsm --enable-libxvid 
--enable-libx264 --enable-libfaac --enable-libtheora --enable-libmp3lame 
--enable-libvorbis --enable-libvpx --enable-x11grab --enable-libspeex 
--enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-version3 --disable-static --enable-libschroedinger 
--enable-libopenjpeg --enable-librtmp --enable-vdpau --enable-libass 
--enable-openssl --enable-openal --enable-shared
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 86.100 / 54. 86.100
   libavformat    54. 59.106 / 54. 59.106
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 32.100 /  3. 32.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
Input #0, avi, from 'Golden.Slumber.2010.DVDRip.AC3.XviD-DeMon.avi':
   Metadata:
     encoder         : VirtualDubMod 1.5.10.2 (build 2540/release)
   Duration: 02:20:08.82, start: 0.000000, bitrate: 1945 kb/s
     Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 
0x44495658), yuv420p, 704x384 [SAR 1:1 DAR 11:6], 23.98 tbr, 23.98 tbn, 
23.98 tbc
     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 
fltp, 448 kb/s
     Stream #0:2: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 
fltp, 448 kb/s
Output #0, avi, to 'OUT.avi':
   Metadata:
     ISFT            : Lavf54.59.106
     Stream #0:0: Video: mpeg4 (XVID / 0x44495658), yuv420p, 704x384 
[SAR 1:1 DAR 11:6], q=2-31, 23.98 tbn, 23.98 tbc
     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 
448 kb/s
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=201610 fps=1251 q=-1.0 Lsize= 1535013kB time=02:20:08.81 
bitrate=1495.4kbits/s
video:1063047kB audio:459856kB subtitle:0 global headers:0kB muxing 
overhead 0.795203%


hans at klaus%69%12:19> ffmpeg -i OUT.avi
ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers
   built on Feb  9 2013 18:18:22 with gcc 4.6.3 (GCC)
   configuration: --prefix=/usr --bindir=/usr/bin/pentium_pro+mmx 
--libdir=/usr/lib/pentium_pro+mmx --shlibdir=/usr/lib/pentium_pro+mmx 
--mandir=/usr/share/man --cc=gcc --cpu=prescott --enable-mmx 
--enable-sse --enable-ssse3 --disable-debug --enable-nonfree 
--enable-gpl --enable-runtime-cpudetect --enable-postproc 
--enable-avfilter --enable-swscale --enable-libgsm --enable-libxvid 
--enable-libx264 --enable-libfaac --enable-libtheora --enable-libmp3lame 
--enable-libvorbis --enable-libvpx --enable-x11grab --enable-libspeex 
--enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-version3 --disable-static --enable-libschroedinger 
--enable-libopenjpeg --enable-librtmp --enable-vdpau --enable-libass 
--enable-openssl --enable-openal --enable-shared
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 86.100 / 54. 86.100
   libavformat    54. 59.106 / 54. 59.106
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 32.100 /  3. 32.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
Input #0, avi, from 'OUT.avi':
   Metadata:
     encoder         : Lavf54.59.106
   Duration: 02:20:08.82, start: 0.000000, bitrate: 1495 kb/s
     Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 
0x44495658), yuv420p, 704x384 [SAR 1:1 DAR 11:6], 23.98 tbr, 23.98 tbn, 
23.98 tbc
     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 
fltp, 448 kb/s
-----------------------------------------------------------------------------------


More information about the ffmpeg-user mailing list