[FFmpeg-user] more sound madness

Bouke / VideoToolShed bouke at videotoolshed.com
Fri Mar 6 14:17:06 EET 2020


Hi all,
command below seems simple enough, and works, except that the last two audio channels (those coming from the second input) are muted in the metadata.
(Meaning, the sound data is there, but QT atom has flagged them as ‘inactive’.)

From memory, Carl once said when I had similar problems: ‘this is a known regression’, but that was ages ago.

What is the secret handshake to remap / patch / reroute / matrix / add / omit the sound channels of multiple input files to one new file?
(I can’t imagine I’m the only one doing this kind of stuff. And at this point I really don’t care if all the channels end up in one track, or in multiple, just to have them play in QT / Premiere and alike.)

Thx,

Bouke

Last login: Fri Mar  6 11:51:28 on ttys001
bouke at Boukes-iMac ~ % /Applications/ffmpeg  -i /Volumes/Data/test/C0092.MP4 -i /Volumes/Data/test/068.WAV -map 0:0 -map 0:a -map_channel 0.1.1:0.1  -map 1:a -map_channel 1.0.8:0.2 -map 1:a -map_channel 1.0.9:0.3  -c:a pcm_s24le -c:v copy -shortest /Volumes/Data/test/last2muted.mov -y

ffmpeg version git-2020-02-03-1c15111 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.8)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox
  libavutil      56. 38.100 / 56. 38.100
  libavcodec     58. 67.100 / 58. 67.100
  libavformat    58. 37.100 / 58. 37.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 73.100 /  7. 73.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb022001200] st: 0 edit list: 1 Missing key frame while searching for timestamp: 1000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb022001200] st: 0 edit list 1 Cannot find an index entry before timestamp: 1000.
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Data/test/C0092.MP4':
  Metadata:
    major_brand     : XAVC
    minor_version   : 16785407
    compatible_brands: XAVCmp42iso2
    creation_time   : 2020-01-30T13:31:25.000000Z
  Duration: 00:00:02.40, start: 0.000000, bitrate: 97881 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 82959 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2020-01-30T13:31:25.000000Z
      handler_name    : Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2020-01-30T13:31:25.000000Z
      handler_name    : Sound Media Handler
    Stream #0:2(und): Data: none (rtmd / 0x646D7472), 204 kb/s (default)
    Metadata:
      creation_time   : 2020-01-30T13:31:25.000000Z
      handler_name    : Timed Metadata Media Handler
      timecode        : 01:42:38:10
Input #1, wav, from '/Volumes/Data/test/068.WAV':
  Metadata:
    comment         : sSPEED=025.000-ND 
                    : sTAKE=068 
                    : sUBITS=$00000000 
                    : sSWVER=5.01.8149 
                    : sSCENE=MixPre 
                    : sFILENAME=MixPre-068.WAV 
                    : sTAPE=200130 
                    : sCIRCLED=FALSE 
                    : sTRK1=MixL 
                    : sTRK2=MixR 
                    : sTRK3=Track 1 
                    : sTRK4=Track 2 
                    : sTRK5=Track 3 
                    : sTRK6=Track 4 
                    : sTRK7=Track 5 
                    : sTRK8=Track 6 
                    : sTRK9
    encoded_by      : SoundDev: MixPre-10 II TJ0019225
    originator_reference: USSDVTJ001922501520013072A000201
    date            : 2020-01-30
    creation_time   : 07:02:20
    time_reference  : 2468718515
    coding_history  : A=PCM,F=48000,W=24,M=multi,R=48000,T=10 Ch;Ambisonics=off 
                    : 
  Duration: 00:49:41.90, bitrate: 11520 kb/s
    Stream #1:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 10 channels, s32 (24 bit), 11520 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (pcm_s16be (native) -> pcm_s24le (native))
  Stream #1:0 -> #0:2 (pcm_s24le (native) -> pcm_s24le (native))
  Stream #1:0 -> #0:3 (pcm_s24le (native) -> pcm_s24le (native))
Press [q] to stop, [?] for help
-map_channel is forwarded to lavfi similarly to -af pan=0x4|c0=c1.
[pan @ 0x7fb020e00a00] Pure channel mapping detected: 1
-map_channel is forwarded to lavfi similarly to -af pan=0x4|c0=c8.
[pan @ 0x7fb020d04740] Pure channel mapping detected: 8
-map_channel is forwarded to lavfi similarly to -af pan=0x4|c0=c9.
[pan @ 0x7fb020f1d200] Pure channel mapping detected: 9
Output #0, mov, to '/Volumes/Data/test/last2muted.mov':
  Metadata:
    major_brand     : XAVC
    minor_version   : 16785407
    compatible_brands: XAVCmp42iso2
    encoder         : Lavf58.37.100
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 82959 kb/s, 25 fps, 25 tbr, 25k tbn, 25k tbc (default)
    Metadata:
      creation_time   : 2020-01-30T13:31:25.000000Z
      handler_name    : Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s (default)
    Metadata:
      creation_time   : 2020-01-30T13:31:25.000000Z
      handler_name    : Sound Media Handler
      encoder         : Lavc58.67.100 pcm_s24le
    Stream #0:2: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      encoder         : Lavc58.67.100 pcm_s24le
    Stream #0:3: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      encoder         : Lavc58.67.100 pcm_s24le
frame=   60 fps=0.0 q=-1.0 Lsize=   25306kB time=00:00:02.40 bitrate=86377.4kbits/s speed=49.5x    
video:24305kB audio:991kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.041166%



More information about the ffmpeg-user mailing list