[FFmpeg-trac] #11016(ffmpeg:closed): -channel_layout input flag stopped working

FFmpeg trac at avcodec.org
Fri May 31 02:59:55 EEST 2024


#11016: -channel_layout input flag stopped working
-------------------------------------+-------------------------------------
             Reporter:  Derek        |                    Owner:  (none)
  Prestegard                         |
                 Type:  defect       |                   Status:  closed
             Priority:  important    |                Component:  ffmpeg
              Version:  7.0          |               Resolution:  fixed
             Keywords:  regression   |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Derek Prestegard):

 Looks like this caused some unexpected (to me) side effects on multi-
 channel tracks.

 It's pretty common practice in my workflows to always use

 {{{
 -channel_layout mono -i myInput.mov
 }}}

 to basically blank out all the channel labels of a source since I have my
 own heuristics for picking out channels. Historically this was also a no-
 op with multi-channel tracks, but now it seems that's no longer the case

 {{{
 [aist#0:1/pcm_s24le @ 0x558554e7dec0] Specified channel layout 'mono' has
 1 channels, but input has 6 channels.
 Error opening input file uhd_sdr_15_new.mov
 }}}

 Here's the streams in my source:
 {{{
   Stream #0:1[0x2](eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz,
 5.1(side), s32 (24 bit), 6912 kb/s (default)
       Metadata:
         handler_name    : Apple Sound Media Handler
         vendor_id       : [0][0][0][0]
   Stream #0:2[0x3](eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz,
 stereo, s32 (24 bit), 2304 kb/s (default)
       Metadata:
         handler_name    : Apple Sound Media Handler
         vendor_id       : [0][0][0][0]
 }}}

 Is there any way to basically tell FFmpeg "Hey... if there's any tracks
 there with just one channel each, just pretend they're all mono" yet also
 have it leave the multi-channel tracks alone? I was a bit spoiled before,
 looks like...

 I am testing out changing my code to make it a bit more adaptive, but I
 figured I'd ask.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11016#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list