[FFmpeg-user] MXF rewrap results in unplayable file in FCPX

Swami Kevala swami.kevala at ishafoundation.org
Mon Jan 21 18:49:19 EET 2019


Hello,

I take a Sony XAVC-I MXF file and run the following ffmpeg command:

ffmpeg -i samples/fs7/card2/XDROOT/Clip/A002C001_190110S8.MXF -c copy -map
0 samples/fs7-rewrap.mxf

Now if I take the resulting output file and import it into FCP 10.4, the
audio streams show up but the video doesn't show. (The original MXF file
imports into FCP without any problems).

The source file is MXF Op1a and so is the destination, and we are not
re-encoding anything, so my question is - is this an issue with ffmpeg or
with FCP (is ffmpeg outputting a standards compliant MXF Op1a file or not?)

BTW... the reason I'm doing this, is because I want to stitch together
multiple clips that are spanned across camera cards. But I've removed the
concatenation aspect in order to simplify the scenario.

Command output below:

swkevala at SK-Ultrabook:/media/swkevala/HDD-18$ ffmpeg41/ffmpeg -i
samples/fs7/card2/XDROOT/Clip/A002C001_190110S8.MXF -c copy -map 0
samples/fs7-rewrap.mxf
ffmpeg version N-47998-gaceb9131c1-static https://johnvansickle.com/ffmpeg/
Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-debug --disable-ffplay --disable-indev=sndio
--disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-gmp --enable-gray --enable-libfribidi
--enable-libass --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librubberband --enable-libsoxr --enable-libspeex
--enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 44.100 / 58. 44.100
  libavformat    58. 26.100 / 58. 26.100
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
[mxf @ 0xc10b9c0] decoding for stream 0 failed
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 'samples/fs7/card2/XDROOT/Clip/A002C001_190110S8.MXF':
  Metadata:
    uid             : 41433a68-13b7-11e9-9ede-08004699d7b9
    generation_uid  : 41433a72-13b7-11e9-b67e-08004699d7b9
    company_name    : Sony
    product_name    : Mem
    product_version : 2.00
    product_uid     : cede1104-8280-11de-8a39-08004678031c
    modification_date: 2019-01-10T08:05:40.000000Z
    material_package_umid:
0x060A2B340101010501010D4313000000EFAD5756938405CA080046020299D7B9
    timecode        : 01:03:00:20
  Duration: 00:27:17.16, start: 0.000000, bitrate: 248795 kb/s
    Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le(progressive),
3840x2160 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:9: Data: none
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
      data_type       : vbi_vanc_smpte_436M
Output #0, mxf, to 'samples/fs7-rewrap.mxf':
  Metadata:
    uid             : 41433a68-13b7-11e9-9ede-08004699d7b9
    generation_uid  : 41433a72-13b7-11e9-b67e-08004699d7b9
    company_name    : Sony
    product_name    : Mem
    product_version : 2.00
    product_uid     : cede1104-8280-11de-8a39-08004678031c
    modification_date: 2019-01-10T08:05:40.000000Z
    material_package_umid:
0x060A2B340101010501010D4313000000EFAD5756938405CA080046020299D7B9
    timecode        : 01:03:00:20
    encoder         : Lavf58.26.100
    Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le(progressive),
3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
    Stream #0:9: Data: none
    Metadata:
      file_package_umid:
0x060A2B340101010501010D4313000000F0AD5756938405CA080046020299D7B9
      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:6 -> #0:6 (copy)
  Stream #0:7 -> #0:7 (copy)
  Stream #0:8 -> #0:8 (copy)
  Stream #0:9 -> #0:9 (copy)
Press [q] to stop, [?] for help
frame=40929 fps= 12 q=-1.0 Lsize=49700210kB time=00:27:17.16
bitrate=248689.3kbits/s speed=0.483x
video:47682137kB audio:1841805kB subtitle:0kB other streams:15029kB global
headers:9kB muxing overhead: 0.325481%

-- 
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not 
the intended recipient, you should not disseminate, distribute or copy this 
e-mail. Please notify the sender immediately and destroy all copies of this 
message and any attachments. WARNING: Computer viruses can be transmitted 
via email. The recipient should check this email and any attachments for 
the presence of viruses. The Organisation accepts no liability for any 
damage caused by any virus transmitted by this email. 
www.ishafoundation.org <http://www.ishafoundation.org>


More information about the ffmpeg-user mailing list