[FFmpeg-user] Audio Stream Mapping issue
Tim Nicholson
tim.nicholson at bbc.co.uk
Tue Nov 15 09:46:46 CET 2011
According to http://ffmpeg.org/ffmpeg.html#Main-options
"ffmpeg -i INPUT -map 0 -c:v libx264 -c:a copy OUTPUT
encodes all video streams with libx264 and copies all audio streams"
However I have an mxf file with 1 video and 4 audio streams I am trying
to rewrap as a mov where I seem unable to get more than a single audio
stream copied.
I have tried the following command lines:-
ffmpeg -i in.mxf -vcodec copy -acodec copy tim2.mov
ffmpeg -i in.mxf -vcodec copy -acodec copy -ac 4 tim2.mov
ffmpeg -i in.mxf -vcodec copy -c:a copy tim2.mov
ffmpeg -i in.mxf -vcodec copy -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:a:3
copy tim2.mov
fmpeg -i in.mxf -vcodec copy -ac 4 -c:a:0 copy -c:a:1 copy -c:a:2 copy
-c:a:3 copy tim2.mov
But all produce the same result:-
ffmpeg version N-34849-g07c7ffc-by_Tim, Copyright (c) 2000-2011 the
FFmpeg developers
built on Nov 14 2011 12:24:11 with gcc 4.5.1 20101208 [gcc-4_5-branch
revision 167585]
configuration: --extra-version=by_Tim --enable-static
--disable-shared --enable-gpl --enable-nonfree --enable-version3
--prefix=/mnt/store-0/tims/ffmpeg-tux/usr/local
--enable-runtime-cpudetect --extra-cflags='-static
-I/mnt/store-0/tims/ffmpeg-tux/usr/local/include'
--extra-ldflags='-static -L/mnt/store-0/tims/ffmpeg-tux/usr/local/lib'
--progs-suffix=STATIC --enable-libfaac --enable-libx264
libavutil 51. 24. 1 / 51. 24. 1
libavcodec 53. 33. 0 / 53. 33. 0
libavformat 53. 20. 0 / 53. 20. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 48. 1 / 2. 48. 1
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Seems stream 0 codec frame rate differs from container frame rate: 50.00
(50/1) -> 25.00 (50/2)
Input #0, mxf, from 'JH3-AVCi100.mxf':
Duration: 00:00:31.96, start: 0.000000, bitrate: 117147 kb/s
Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le, 1920x1080
[SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
Stream #0:1: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Stream #0:2: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Stream #0:3: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Stream #0:4: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
Output #0, mov, to 'tim2.mov':
Metadata:
encoder : Lavf53.20.0
Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv422p10le,
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbn, 25 tbc
Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1
channels, 768 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
--
Tim
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
More information about the ffmpeg-user
mailing list