[FFmpeg-user] Quicktime Files create with -vtag aivx

Rens Dijkshoorn rens at onlinemedia.nl
Tue Dec 2 13:10:14 CET 2014


Hi,

quicktime mov files create by stream copy from SONY 4K XAVC with -vtag aivx are not playing
in both the Quicktime Player 7 and the Quicktime Player.

If you change vtag to use -vtag ai12. Then the file will playback in Quicktime Player 7
but not in Quicktime Player X. Then if you search the resulting movie file for the vtag
and hexedit to 'ai12 to aivx' the file will play in both version of Quicktime Player.

If you compare the file generated with -vtag aivx and -vtag ia12
they have a large number > 1000 differences.


Commands used to create the files

---------

ffmpeg -i /Volumes/XAVC/XDROOT/Clip/Clip0004.MXF  -c copy -vtag ai12 -y FFMPEG_12.MOV

ffmpeg version N-68141-g4280150 Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec  2 2014 10:00:51 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  configuration: --enable-libvpx --enable-libx264 --enable-libx265 --enable-libopenjpeg --enable-libmp3lame --enable-libfaac --enable-libfdk-aac --enable-libfribidi --enable-libfreetype --enable-libass --enable-gpl --enable-nonfree --enable-shared
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.101 / 56. 15.101
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[mxf @ 0x7fd249021800] 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 '/Volumes/XAVC/XDROOT/Clip/Clip0004.MXF':
  Metadata:
    uid             : a7aaa5a4-e9a1-4efd-8b60-49ff6941fd47
    generation_uid  : a5c26ab3-f1bc-4bd3-8d35-79d99cccd354
    company_name    : Sony
    product_name    : util
    product_version : 1.00
    product_uid     : cede4403-8280-11de-8a39-08004678031c
    modification_date: 2013-07-29 01:10:36
    material_package_uid: 18e3399c-5563-05c5-0800-4602026b0c74
    timecode        : 00:01:03:03
  Duration: 00:00:30.32, start: 0.000000, bitrate: 250283 kb/s
    Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le, 4096x2160 [SAR 1:1 DAR 256:135], 25 fps, 25 tbr, 25 tbn, 50 tbc
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:9: Data: none
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
      data_type       : vbi_vanc_smpte_436M
Output #0, mov, to 'FFMPEG_12.MOV':
  Metadata:
    uid             : a7aaa5a4-e9a1-4efd-8b60-49ff6941fd47
    generation_uid  : a5c26ab3-f1bc-4bd3-8d35-79d99cccd354
    company_name    : Sony
    product_name    : util
    product_version : 1.00
    product_uid     : cede4403-8280-11de-8a39-08004678031c
    modification_date: 2013-07-29 01:10:36
    material_package_uid: 18e3399c-5563-05c5-0800-4602026b0c74
    timecode        : 00:01:03:03
    encoder         : Lavf56.15.101
    Stream #0:0: Video: h264 (ai12 / 0x32316961), yuv422p10le, 4096x2160 [SAR 1:1 DAR 256:135], q=2-31, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:1: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  758 fps= 58 q=-1.0 Lsize=  890172kB time=00:00:30.32 bitrate=240510.7kbits/s    
video:885897kB audio:4264kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001204%



ffmpeg -i /Volumes/XAVC/XDROOT/Clip/Clip0004.MXF  -c copy -vtag aivx FFMPEG_VX.MOV

ffmpeg version N-68141-g4280150 Copyright (c) 2000-2014 the FFmpeg developers
  built on Dec  2 2014 10:00:51 with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  configuration: --enable-libvpx --enable-libx264 --enable-libx265 --enable-libopenjpeg --enable-libmp3lame --enable-libfaac --enable-libfdk-aac --enable-libfribidi --enable-libfreetype --enable-libass --enable-gpl --enable-nonfree --enable-shared
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.101 / 56. 15.101
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[mxf @ 0x7ffc70821800] 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 '/Volumes/XAVC/XDROOT/Clip/Clip0004.MXF':
  Metadata:
    uid             : a7aaa5a4-e9a1-4efd-8b60-49ff6941fd47
    generation_uid  : a5c26ab3-f1bc-4bd3-8d35-79d99cccd354
    company_name    : Sony
    product_name    : util
    product_version : 1.00
    product_uid     : cede4403-8280-11de-8a39-08004678031c
    modification_date: 2013-07-29 01:10:36
    material_package_uid: 18e3399c-5563-05c5-0800-4602026b0c74
    timecode        : 00:01:03:03
  Duration: 00:00:30.32, start: 0.000000, bitrate: 250283 kb/s
    Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le, 4096x2160 [SAR 1:1 DAR 256:135], 25 fps, 25 tbr, 25 tbn, 50 tbc
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:9: Data: none
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
      data_type       : vbi_vanc_smpte_436M
File 'FFMPEG_VX.MOV' already exists. Overwrite ? [y/N] y
Output #0, mov, to 'FFMPEG_VX.MOV':
  Metadata:
    uid             : a7aaa5a4-e9a1-4efd-8b60-49ff6941fd47
    generation_uid  : a5c26ab3-f1bc-4bd3-8d35-79d99cccd354
    company_name    : Sony
    product_name    : util
    product_version : 1.00
    product_uid     : cede4403-8280-11de-8a39-08004678031c
    modification_date: 2013-07-29 01:10:36
    material_package_uid: 18e3399c-5563-05c5-0800-4602026b0c74
    timecode        : 00:01:03:03
    encoder         : Lavf56.15.101
    Stream #0:0: Video: h264 (aivx / 0x78766961), yuv422p10le, 4096x2160 [SAR 1:1 DAR 256:135], q=2-31, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
    Stream #0:1: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono (24 bit), 1152 kb/s
    Metadata:
      file_package_uid: 19e3399c-5563-05c5-0800-4602026b0c74
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  758 fps= 30 q=-1.0 Lsize=  890172kB time=00:00:30.32 bitrate=240510.8kbits/s    
video:885897kB audio:4264kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001239%

------------------------------------------------------------------------------------

To recap using -vtag aivx fails, manaully patch the file create with vtag ia12 to iavx works
in both Quicktime Players and FCPX 


Any ideas

Rens Dijkshoorn 




More information about the ffmpeg-user mailing list