[FFmpeg-user] Fwd: "Guessed Channel Layout for Input Stream" - how to assign channels? (FL+FR+FC+LFE+BL+BR)

Steve C natgeo.operations at gmail.com
Tue Apr 2 23:53:38 CEST 2013


> Since it works fine here, please provide the command line
> you tried together with complete, uncut console output.

Please see below for the full output.
I must be inputting the -channel_layout option incorrectly, see below
for the test i've run with 8 audio channels (5.1 +2 audio)

"C:\\ffmpeg.exe" -i "C:\\Test\\NTSC_ProResHQ_NA.mov" -i
"C:\\Test\\01_5.1.FM.L.wav" -i "C:\\Test\\02_5.1.FM.R.wav" -i
"C:\\Test\\03_5.1.FM.C.wav" -i "C:\\Test\\04_5.1.FM.LFE.wav" -i
"C:\\Test\\05_5.1.FM.Ls.wav" -i "C:\\Test\\06_5.1.FM.Rs.wav" -i
"C:\\Test\\07_Stereo.FM.L.wav" -i "C:\\Test\\08_Stereo.FM.R.wav" -dn
-c:v copy -c:a copy -timecode "00:00:00;00" -r 29.97 -channel_layout
FL+FR+FC+LFE+BL+BR+SL+SR -report -map 0:0 -map 1:0 -map 2:0 -map 3:0
-map 4:0 -map 5:0 -map 6:0 -map 7:0 -map 8:0 -report
"C:\\output-3.mov"

This results in an output file with the 5.1+2  channel layout assigned
to each audio stream

Channel positions : Front: L C R, Side: L R, Rear: L R, LFE

but for what i'm trying to do, each audio stream only represents one
audio channel in the 5.1+2 mix.

For the output to be correct it would have to look like this:

Audio Stream 1 = FL
Audio Stream 2= FR
Audio Stream 3 = FC

does that make sense?
it doesn't seem like there is any way to do this through -channel_layout?


#############################################

ffmpeg started on 2013-04-02 at 17:42:59
Report written to "ffmpeg-20130402-174259.log"
Command line:
"C:\\ffmpeg.exe" -i "C:\\Test\\NTSC_ProResHQ_NA.mov" -i
"C:\\Test\\01_5.1.FM.L.wav" -i "C:\\Test\\02_5.1.FM.R.wav" -i
"C:\\Test\\03_5.1.FM.C.wav" -i "C:\\Test\\04_5.1.FM.LFE.wav" -i
"C:\\Test\\05_5.1.FM.Ls.wav" -i "C:\\Test\\06_5.1.FM.Rs.wav" -i
"C:\\Test\\07_Stereo.FM.L.wav" -i "C:\\Test\\08_Stereo.FM.R.wav" -dn
-c:v copy -c:a copy -timecode "00:00:00;00" -r 29.97 -channel_layout
FL+FR+FC+LFE+BL+BR+SL+SR -report -map 0:0 -map 1:0 -map 2:0 -map 3:0
-map 4:0 -map 5:0 -map 6:0 -map 7:0 -map 8:0 -report
"C:\\output-3.mov"
ffmpeg version N-51511-g599866f Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr  1 2013 12:44:46 with gcc 4.8.0 (GCC)
  configuration: --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. 24.100 / 52. 24.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  1.100 / 55.  1.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 48.105 /  3. 48.105
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument
'C:\Test\NTSC_ProResHQ_NA.mov'.
Reading option '-i' ... matched as input file with argument
'C:\Test\01_5.1.FM.L.wav'.
Reading option '-i' ... matched as input file with argument
'C:\Test\02_5.1.FM.R.wav'.
Reading option '-i' ... matched as input file with argument
'C:\Test\03_5.1.FM.C.wav'.
Reading option '-i' ... matched as input file with argument
'C:\Test\04_5.1.FM.LFE.wav'.
Reading option '-i' ... matched as input file with argument
'C:\Test\05_5.1.FM.Ls.wav'.
Reading option '-i' ... matched as input file with argument
'C:\Test\06_5.1.FM.Rs.wav'.
Reading option '-i' ... matched as input file with argument
'C:\Test\07_Stereo.FM.L.wav'.
Reading option '-i' ... matched as input file with argument
'C:\Test\08_Stereo.FM.R.wav'.
Reading option '-dn' ... matched as option 'dn' (disable data) with
argument '1'.
Reading option '-c:v' ... matched as option 'c' (codec name) with
argument 'copy'.
Reading option '-c:a' ... matched as option 'c' (codec name) with
argument 'copy'.
Reading option '-timecode' ... matched as option 'timecode' (set
initial TimeCode value.) with argument '00:00:00;00'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz
value, fraction or abbreviation)) with argument '29.97'.
Reading option '-channel_layout' ... matched as option
'channel_layout' (set channel layout) with argument
'FL+FR+FC+LFE+BL+BR+SL+SR'.
Reading option '-report' ... matched as option 'report' (generate a
report) with argument '1'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '1:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '2:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '3:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '4:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '5:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '6:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '7:0'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '8:0'.
Reading option '-report' ... matched as option 'report' (generate a
report) with argument '1'.
Reading option 'C:\output-3.mov' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file C:\Test\NTSC_ProResHQ_NA.mov.
Successfully parsed a group of options.
Opening an input file: C:\Test\NTSC_ProResHQ_NA.mov.
[mov,mp4,m4a,3gp,3g2,mj2 @ 03071800] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 03071800] ISO: File Type Major Brand: qt
[mov,mp4,m4a,3gp,3g2,mj2 @ 03071800] File position before
avformat_find_stream_info() is 19318
[mov,mp4,m4a,3gp,3g2,mj2 @ 03071800] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 03071800] Ignoring outlier non primary
stream starttime -80.013344
[mov,mp4,m4a,3gp,3g2,mj2 @ 03071800] Ignoring outlier non primary
stream starttime -80.013344
[mov,mp4,m4a,3gp,3g2,mj2 @ 03071800] File position after
avformat_find_stream_info() is 889286
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Test\NTSC_ProResHQ_NA.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2013-03-20 16:19:14
  Duration: 00:01:10.07, start: 0.000000, bitrate: 207771 kb/s
    Stream #0:0(eng), 1, 1/2997: Video: prores (apch / 0x68637061),
yuv422p10le, 1920x1080, 207768 kb/s, SAR 1:1 DAR 16:9, 29.97 fps,
29.97 tbr, 2997 tbn, 2997 tbc
    Metadata:
      creation_time   : 2013-03-20 16:19:14
      handler_name    : Apple Alias Data Handler
      timecode        : 09:58:30;00
    Stream #0:1(eng), 1, 1/2997: Data: none (tmcd / 0x64636D74)
    Metadata:
      creation_time   : 2013-03-20 16:19:14
      handler_name    : Apple Alias Data Handler
      timecode        : 09:58:30;00
Successfully opened the file.
Parsing a group of options: input file C:\Test\01_5.1.FM.L.wav.
Successfully parsed a group of options.
Opening an input file: C:\Test\01_5.1.FM.L.wav.
[wav @ 0212e580] Format wav probed with size=2048 and score=99
[wav @ 0212e580] File position before avformat_find_stream_info() is 1024
[wav @ 0212e580] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 0212e580] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 0212e580] max_analyze_duration 5000000 reached at 5005000 microseconds
[wav @ 0212e580] File position after avformat_find_stream_info() is 734029
Guessed Channel Layout for  Input Stream #1.0 : mono
Input #1, wav, from 'C:\Test\01_5.1.FM.L.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: !gKdI18u0RmaaaGk
    date            : 2012-12-10
    creation_time   : 20:59:47
    time_reference  : 1727517792
  Duration: 00:01:10.07, bitrate: 1194 kb/s
    Stream #1:0, 178, 1/48000: Audio: pcm_s24le ([1][0][0][0] /
0x0001), 48000 Hz, mono, s32, 1152 kb/s
Successfully opened the file.
Parsing a group of options: input file C:\Test\02_5.1.FM.R.wav.
Successfully parsed a group of options.
Opening an input file: C:\Test\02_5.1.FM.R.wav.
[wav @ 030d3ba0] Format wav probed with size=2048 and score=99
[wav @ 030d3ba0] File position before avformat_find_stream_info() is 1024
[wav @ 030d3ba0] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 030d3ba0] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 030d3ba0] max_analyze_duration 5000000 reached at 5005000 microseconds
[wav @ 030d3ba0] File position after avformat_find_stream_info() is 734029
Guessed Channel Layout for  Input Stream #2.0 : mono
Input #2, wav, from 'C:\Test\02_5.1.FM.R.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: !gKdP18u0RmaaaGk
    date            : 2012-12-10
    creation_time   : 20:59:47
    time_reference  : 1727517792
  Duration: 00:01:10.07, bitrate: 1194 kb/s
    Stream #2:0, 178, 1/48000: Audio: pcm_s24le ([1][0][0][0] /
0x0001), 48000 Hz, mono, s32, 1152 kb/s
Successfully opened the file.
Parsing a group of options: input file C:\Test\03_5.1.FM.C.wav.
Successfully parsed a group of options.
Opening an input file: C:\Test\03_5.1.FM.C.wav.
[wav @ 0307a840] Format wav probed with size=2048 and score=99
[wav @ 0307a840] File position before avformat_find_stream_info() is 1024
[wav @ 0307a840] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 0307a840] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 0307a840] max_analyze_duration 5000000 reached at 5005000 microseconds
[wav @ 0307a840] File position after avformat_find_stream_info() is 734029
Guessed Channel Layout for  Input Stream #3.0 : mono
Input #3, wav, from 'C:\Test\03_5.1.FM.C.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: !gKdM18u0RmaaaGk
    date            : 2012-12-10
    creation_time   : 20:59:47
    time_reference  : 1727517792
  Duration: 00:01:10.07, bitrate: 1194 kb/s
    Stream #3:0, 178, 1/48000: Audio: pcm_s24le ([1][0][0][0] /
0x0001), 48000 Hz, mono, s32, 1152 kb/s
Successfully opened the file.
Parsing a group of options: input file C:\Test\04_5.1.FM.LFE.wav.
Successfully parsed a group of options.
Opening an input file: C:\Test\04_5.1.FM.LFE.wav.
[wav @ 03f24900] Format wav probed with size=2048 and score=99
[wav @ 03f24900] File position before avformat_find_stream_info() is 1024
[wav @ 03f24900] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 03f24900] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 03f24900] max_analyze_duration 5000000 reached at 5005000 microseconds
[wav @ 03f24900] File position after avformat_find_stream_info() is 734029
Guessed Channel Layout for  Input Stream #4.0 : mono
Input #4, wav, from 'C:\Test\04_5.1.FM.LFE.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: !gKdW18u0RmaaaGk
    date            : 2012-12-10
    creation_time   : 20:59:47
    time_reference  : 1727517792
  Duration: 00:01:10.07, bitrate: 1194 kb/s
    Stream #4:0, 178, 1/48000: Audio: pcm_s24le ([1][0][0][0] /
0x0001), 48000 Hz, mono, s32, 1152 kb/s
Successfully opened the file.
Parsing a group of options: input file C:\Test\05_5.1.FM.Ls.wav.
Successfully parsed a group of options.
Opening an input file: C:\Test\05_5.1.FM.Ls.wav.
[wav @ 03fafa40] Format wav probed with size=2048 and score=99
[wav @ 03fafa40] File position before avformat_find_stream_info() is 1024
[wav @ 03fafa40] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 03fafa40] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 03fafa40] max_analyze_duration 5000000 reached at 5005000 microseconds
[wav @ 03fafa40] File position after avformat_find_stream_info() is 734029
Guessed Channel Layout for  Input Stream #5.0 : mono
Input #5, wav, from 'C:\Test\05_5.1.FM.Ls.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: !gKdS18u0RmaaaGk
    date            : 2012-12-10
    creation_time   : 20:59:47
    time_reference  : 1727517792
  Duration: 00:01:10.07, bitrate: 1194 kb/s
    Stream #5:0, 178, 1/48000: Audio: pcm_s24le ([1][0][0][0] /
0x0001), 48000 Hz, mono, s32, 1152 kb/s
Successfully opened the file.
Parsing a group of options: input file C:\Test\06_5.1.FM.Rs.wav.
Successfully parsed a group of options.
Opening an input file: C:\Test\06_5.1.FM.Rs.wav.
[wav @ 041a3580] Format wav probed with size=2048 and score=99
[wav @ 041a3580] File position before avformat_find_stream_info() is 1024
[wav @ 041a3580] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 041a3580] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 041a3580] max_analyze_duration 5000000 reached at 5005000 microseconds
[wav @ 041a3580] File position after avformat_find_stream_info() is 734029
Guessed Channel Layout for  Input Stream #6.0 : mono
Input #6, wav, from 'C:\Test\06_5.1.FM.Rs.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: !gKdT18u0RmaaaGk
    date            : 2012-12-10
    creation_time   : 20:59:47
    time_reference  : 1727517792
  Duration: 00:01:10.07, bitrate: 1194 kb/s
    Stream #6:0, 178, 1/48000: Audio: pcm_s24le ([1][0][0][0] /
0x0001), 48000 Hz, mono, s32, 1152 kb/s
Successfully opened the file.
Parsing a group of options: input file C:\Test\07_Stereo.FM.L.wav.
Successfully parsed a group of options.
Opening an input file: C:\Test\07_Stereo.FM.L.wav.
[wav @ 030c5a80] Format wav probed with size=2048 and score=99
[wav @ 030c5a80] File position before avformat_find_stream_info() is 1024
[wav @ 030c5a80] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 030c5a80] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 030c5a80] max_analyze_duration 5000000 reached at 5005000 microseconds
[wav @ 030c5a80] File position after avformat_find_stream_info() is 734029
Guessed Channel Layout for  Input Stream #7.0 : mono
Input #7, wav, from 'C:\Test\07_Stereo.FM.L.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: bBAc908u07maaaGk
    date            : 2012-12-10
    creation_time   : 20:59:48
    time_reference  : 1727517792
  Duration: 00:01:10.07, bitrate: 1194 kb/s
    Stream #7:0, 178, 1/48000: Audio: pcm_s24le ([1][0][0][0] /
0x0001), 48000 Hz, mono, s32, 1152 kb/s
Successfully opened the file.
Parsing a group of options: input file C:\Test\08_Stereo.FM.R.wav.
Successfully parsed a group of options.
Opening an input file: C:\Test\08_Stereo.FM.R.wav.
[wav @ 03ee9e40] Format wav probed with size=2048 and score=99
[wav @ 03ee9e40] File position before avformat_find_stream_info() is 1024
[wav @ 03ee9e40] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 03ee9e40] parser not found for codec pcm_s24le, packets or
times may be invalid.
[wav @ 03ee9e40] max_analyze_duration 5000000 reached at 5005000 microseconds
[wav @ 03ee9e40] File position after avformat_find_stream_info() is 734029
Guessed Channel Layout for  Input Stream #8.0 : mono
Input #8, wav, from 'C:\Test\08_Stereo.FM.R.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: bBAcc18u07maaaGk
    date            : 2012-12-10
    creation_time   : 20:59:48
    time_reference  : 1727517792
  Duration: 00:01:10.07, bitrate: 1194 kb/s
    Stream #8:0, 178, 1/48000: Audio: pcm_s24le ([1][0][0][0] /
0x0001), 48000 Hz, mono, s32, 1152 kb/s
Successfully opened the file.
Parsing a group of options: output file C:\output-3.mov.
Applying option dn (disable data) with argument 1.
Applying option c:v (codec name) with argument copy.
Applying option c:a (codec name) with argument copy.
Applying option timecode (set initial TimeCode value.) with argument
00:00:00;00.
Applying option r (set frame rate (Hz value, fraction or
abbreviation)) with argument 29.97.
Applying option channel_layout (set channel layout) with argument
FL+FR+FC+LFE+BL+BR+SL+SR.
Applying option map (set input stream mapping) with argument 0:0.
Applying option map (set input stream mapping) with argument 1:0.
Applying option map (set input stream mapping) with argument 2:0.
Applying option map (set input stream mapping) with argument 3:0.
Applying option map (set input stream mapping) with argument 4:0.
Applying option map (set input stream mapping) with argument 5:0.
Applying option map (set input stream mapping) with argument 6:0.
Applying option map (set input stream mapping) with argument 7:0.
Applying option map (set input stream mapping) with argument 8:0.
Successfully parsed a group of options.
Opening an output file: C:\output-3.mov.
Codec AVOption gop_timecode (MPEG GOP Timecode in hh:mm:ss[:;.]ff
format) specified for output file #0 (C:\output-3.mov) has not been
used for any stream. The most likely reason is either wrong type (e.g.
a video option with no video streams) or that it is a private option
of some encoder which was not actually used for any stream.
Successfully opened the file.
Output #0, mov, to 'C:\output-3.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    timecode        : 00:00:00;00
    encoder         : Lavf55.1.100
    Stream #0:0(eng), 0, 1/11988: Video: prores (apch / 0x68637061),
yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 207768 kb/s, 29.97
fps, 11988 tbn, 29.97 tbc
    Metadata:
      creation_time   : 2013-03-20 16:19:14
      handler_name    : Apple Alias Data Handler
      timecode        : 09:58:30;00
    Stream #0:1, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69),
48000 Hz, 1 channels (FL+FR+FC+LFE+BL+BR+SL+SR), 1152 kb/s
    Stream #0:2, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69),
48000 Hz, 1 channels (FL+FR+FC+LFE+BL+BR+SL+SR), 1152 kb/s
    Stream #0:3, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69),
48000 Hz, 1 channels (FL+FR+FC+LFE+BL+BR+SL+SR), 1152 kb/s
    Stream #0:4, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69),
48000 Hz, 1 channels (FL+FR+FC+LFE+BL+BR+SL+SR), 1152 kb/s
    Stream #0:5, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69),
48000 Hz, 1 channels (FL+FR+FC+LFE+BL+BR+SL+SR), 1152 kb/s
    Stream #0:6, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69),
48000 Hz, 1 channels (FL+FR+FC+LFE+BL+BR+SL+SR), 1152 kb/s
    Stream #0:7, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69),
48000 Hz, 1 channels (FL+FR+FC+LFE+BL+BR+SL+SR), 1152 kb/s
    Stream #0:8, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69),
48000 Hz, 1 channels (FL+FR+FC+LFE+BL+BR+SL+SR), 1152 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
  Stream #2:0 -> #0:2 (copy)
  Stream #3:0 -> #0:3 (copy)
  Stream #4:0 -> #0:4 (copy)
  Stream #5:0 -> #0:5 (copy)
  Stream #6:0 -> #0:6 (copy)
  Stream #7:0 -> #0:7 (copy)
  Stream #8:0 -> #0:8 (copy)
Press [q] to stop, [?] for help
frame=   13 fps=0.0 q=-1.0 size=   11546kB time=00:00:55.73
bitrate=1696.9kbits/s
[TRUNCATED]
frame= 2093 fps= 41 q=-1.0 size= 1848864kB time=00:01:09.83
bitrate=216876.4kbits/s
No more output streams to write to, finishing.
frame= 2100 fps= 41 q=-1.0 Lsize= 1856075kB time=00:01:10.07
bitrate=216996.6kbits/s     video:1777147kB audio:78829kB subtitle:0
global headers:0kB muxing overhead 0.005335%


More information about the ffmpeg-user mailing list