[FFmpeg-user] issue with ffmpeg command

Rodrigo Macedo Aguiar rodrigo.aguiar at tvanhanguera.com.br
Tue Jan 31 20:41:56 EET 2017


Hi all,
I am remapping audio channels from a MXF file that contains a CC (closed caption) data but in the output file this information is being lost.
Can somebody please help me to figure out the correct command to keep this information in the file?

Details of the file:

ffmpeg.exe -i closed-caption-file.mxf
ffmpeg version N-79173-gbe746ae Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 32.100 / 57. 32.100
  libavformat    57. 29.101 / 57. 29.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 40.102 /  6. 40.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Guessed Channel Layout for  Input Stream #0.1 : mono
Guessed Channel Layout for  Input Stream #0.2 : mono
Guessed Channel Layout for  Input Stream #0.3 : mono
Guessed Channel Layout for  Input Stream #0.4 : mono
Guessed Channel Layout for  Input Stream #0.5 : mono
Guessed Channel Layout for  Input Stream #0.6 : mono
Guessed Channel Layout for  Input Stream #0.7 : mono
Guessed Channel Layout for  Input Stream #0.8 : mono
Input #0, mxf, from 'closed-caption-file.mxf':
  Metadata:
    uid             : 70431900-4542-05c0-f017-0800000c0000
    generation_uid  : 70431900-4542-05c0-f017-0800000c0001
    company_name    : Matrox Electronic
    product_name    : DSX
    product_version : 3.00
    product_uid     : 060e2b34-0401-0103-0e06-012002010200
    modification_date: 2016-10-26 18:21:34
    material_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE00
    timecode        : 00:00:00;00
  Duration: 00:00:39.04, start: 0.000000, bitrate: 60158 kb/s
    Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:9: Data: none
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
      data_type       : vbi_vanc_smpte_436M



I am trying this command below:

ffmpeg.exe -i closed-caption-file.mxf -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 0:5 -map 0:5 -map 0:5 -map 0:5 -map 0:7 -map 0:8 -map 0:9 -c copy closed-caption-file-out.mxf

C:\ffmpeg>ffmpeg.exe -i closed-caption-file.mxf -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 0:5 -map 0:5 -map 0:5 -map 0:5 -map 0:7 -map 0:8 -map 0:9 -c copy closed-caption-file-out.mxf
ffmpeg version N-79173-gbe746ae Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 32.100 / 57. 32.100
  libavformat    57. 29.101 / 57. 29.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 40.102 /  6. 40.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Guessed Channel Layout for  Input Stream #0.1 : mono
Guessed Channel Layout for  Input Stream #0.2 : mono
Guessed Channel Layout for  Input Stream #0.3 : mono
Guessed Channel Layout for  Input Stream #0.4 : mono
Guessed Channel Layout for  Input Stream #0.5 : mono
Guessed Channel Layout for  Input Stream #0.6 : mono
Guessed Channel Layout for  Input Stream #0.7 : mono
Guessed Channel Layout for  Input Stream #0.8 : mono
Input #0, mxf, from 'closed-caption-file.mxf':
  Metadata:
    uid             : 70431900-4542-05c0-f017-0800000c0000
    generation_uid  : 70431900-4542-05c0-f017-0800000c0001
    company_name    : Matrox Electronic
    product_name    : DSX
    product_version : 3.00
    product_uid     : 060e2b34-0401-0103-0e06-012002010200
    modification_date: 2016-10-26 18:21:34
    material_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE00
    timecode        : 00:00:00;00
  Duration: 00:00:39.04, start: 0.000000, bitrate: 60158 kb/s
    Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:9: Data: none
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
      data_type       : vbi_vanc_smpte_436M
[mxf @ 000002013e3b3f60] track 11: could not find essence container ul, codec not currently supported in container
Output #0, mxf, to 'closed-caption-file-out.mxf':
  Metadata:
    uid             : 70431900-4542-05c0-f017-0800000c0000
    generation_uid  : 70431900-4542-05c0-f017-0800000c0001
    company_name    : Matrox Electronic
    product_name    : DSX
    product_version : 3.00
    product_uid     : 060e2b34-0401-0103-0e06-012002010200
    modification_date: 2016-10-26 18:21:34
    material_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE00
    timecode        : 00:00:00;00
    encoder         : Lavf57.29.101
    Stream #0:0: Video: mpeg2video, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:9: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:10: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
    Stream #0:11: Data: none
    Metadata:
      file_package_umid: 0x060A2B340101010501010D001300000052947134C1BE60670052947134C1BE01
      data_type       : vbi_vanc_smpte_436M
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
  Stream #0:5 -> #0:5 (copy)
  Stream #0:5 -> #0:6 (copy)
  Stream #0:5 -> #0:7 (copy)
  Stream #0:5 -> #0:8 (copy)
  Stream #0:7 -> #0:9 (copy)
  Stream #0:8 -> #0:10 (copy)
  Stream #0:9 -> #0:11 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted



Can somebody help me?

Atenciosamente,
Rodrigo Aguiar
________________________________
Esta mensagem pode conter informa??o confidencial e/ou privilegiada. Se voc? n?o for o destinat?rio ou a pessoa autorizada a receber esta mensagem, n?o poder? usar, copiar ou divulgar as informa??es nela contidas ou tomar qualquer a??o baseada nessas informa??es. Se voc? recebeu esta mensagem por engano, por favor avise imediatamente o remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua coopera??o.

This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation


More information about the ffmpeg-user mailing list