[FFmpeg-user] Copy across core DTS audio

kaled info at caled.co.uk
Fri Apr 17 12:10:43 EEST 2020


thank you again for taking the time to help me.  Also thanks for the useful
tips.  This is steep learning curve to code for FFMPEG, but starting to
understand the syntax now.  So I tried your solution and unfortunately I get
the same error.  As you suggest, here is the full console output.

I:\>ffmpeg -i x.mkv -map 0:0 -map 0:2 -map 0:1 -map 0:3 -c copy -bsf:a:1
dca_core output.mkv
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190807
  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-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, matroska,webm, from 'x.mkv':
  Metadata:
    CREATION_TIME   : 2017-01-15T14:27:06Z
    ENCODER         : Lavf57.7.2
  Duration: 00:44:28.25, start: 0.000000, bitrate: 12295 kb/s
    Chapter #0:0: start 0.000000, end 244.202000
    Metadata:
      title           : Chapter 1
    Chapter #0:1: start 244.202000, end 290.373000
    Metadata:
      title           : Chapter 2
    Chapter #0:2: start 290.373000, end 513.680000
    Metadata:
      title           : Chapter 3
    Chapter #0:3: start 513.680000, end 684.017000
    Metadata:
      title           : Chapter 4
    Chapter #0:4: start 684.017000, end 819.527000
    Metadata:
      title           : Chapter 5
    Chapter #0:5: start 819.527000, end 920.878000
    Metadata:
      title           : Chapter 6
    Chapter #0:6: start 920.878000, end 1166.165000
    Metadata:
      title           : Chapter 7
    Chapter #0:7: start 1166.165000, end 1366.824000
    Metadata:
      title           : Chapter 8
    Chapter #0:8: start 1366.824000, end 1685.517000
    Metadata:
      title           : Chapter 9
    Chapter #0:9: start 1685.517000, end 1912.619000
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 1912.619000, end 2045.585000
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 2045.585000, end 2156.696000
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 2156.696000, end 2348.638000
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 2348.638000, end 2627.708000
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 2627.708000, end 2667.498000
    Metadata:
      title           : Chapter 15
    Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive),
1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
(default)
    Metadata:
      BPS-eng         : 7432350
      DURATION-eng    : 00:44:28.208000000
      NUMBER_OF_FRAMES-eng: 63973
      NUMBER_OF_BYTES-eng: 2478882215
      _STATISTICS_WRITING_APP-eng: mkvmerge v45.0.0 ('Heaven in Pennies')
64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-15 09:48:21
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title           : Surround
      BPS-eng         : 640000
      DURATION-eng    : 00:44:28.224000000
      NUMBER_OF_FRAMES-eng: 83382
      NUMBER_OF_BYTES-eng: 213457920
      _STATISTICS_WRITING_APP-eng: mkvmerge v45.0.0 ('Heaven in Pennies')
64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-15 09:48:21
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24
bit) (default) (forced)
    Metadata:
      title           : Surround
      BPS-eng         : 4209198
      DURATION-eng    : 00:44:28.246000000
      NUMBER_OF_FRAMES-eng: 250148
      NUMBER_OF_BYTES-eng: 1403897184
      _STATISTICS_WRITING_APP-eng: mkvmerge v45.0.0 ('Heaven in Pennies')
64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-15 09:48:21
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      BPS-eng         : 35850
      DURATION-eng    : 00:44:17.780000000
      NUMBER_OF_FRAMES-eng: 856
      NUMBER_OF_BYTES-eng: 11910326
      _STATISTICS_WRITING_APP-eng: mkvmerge v45.0.0 ('Heaven in Pennies')
64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-15 09:48:21
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
File 'output.mkv' already exists. Overwrite ? [y/N] y
[AVBSFContext @ 000001442a180f40] Codec 'ac3' (86019) is not supported by
the bitstream filter 'dca_core'. Supported codecs are: dts (86020)
Error initializing bitstream filter: dca_core
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
  Stream #0:1 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
    Last message repeated 1 times



--
Sent from: http://www.ffmpeg-archive.org/


More information about the ffmpeg-user mailing list