[FFmpeg-trac] #4349(undetermined:new): FFmpeg does not detect Prores in Avid MXF automatically

FFmpeg trac at avcodec.org
Wed Mar 4 13:37:02 CET 2015


#4349: FFmpeg does not detect Prores in Avid MXF automatically
-------------------------------------+-------------------------------------
             Reporter:  steved       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  prores       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Hello,
 I have a file which is Apple ProRes wrapped in MXF.
 If I do not specify the codec on the commandline FFmpeg is not able to
 encode the file, but if i specify '-c prores' it encodes the file
 properly.
 Sample ca be found here:
 [http://dl.flavoursys.com/samples/mediainfo/prores.mxf]

 thanks,
 steved

 How to reproduce:
 {{{
 % ffmpeg -i sample.mxf out.mp4
 ffmpeg version N-70414-gec5a4af Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.7 (Debian 4.7.2-5)
   configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
 --enable-version3 --enable-libfdk-aac --enable-libx264 --enable-
 libfreetype
   libavutil      54. 19.100 / 54. 19.100
   libavcodec     56. 26.100 / 56. 26.100
   libavformat    56. 24.101 / 56. 24.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 11.102 /  5. 11.102
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 [mxf @ 0x36cf0e0] x >= nb_ptses - IndexEntryCount 131 < IndexDuration 130?
 [rawvideo @ 0x36d3aa0] Invalid pixel format.
 [mxf @ 0x36cf0e0] Failed to open codec in av_find_stream_info
 [rawvideo @ 0x36d3aa0] Invalid pixel format.
 Input #0, mxf, from 'sample.mxf':
   Metadata:
     project_name    : mxtest
     uid             : 09c6260f-58e8-f249-9b9c-1b4fdffcfd92
     generation_uid  : b6bcfcab-70ff-7331-9c01-08d769de11d2
     application_platform: AAFSDK (MacOS X)
     modification_date: 2015-02-26 17:14:13
     product_uid     : acfbf03a-4f42-a231-d0b7-c06ecd3d4ad7
     product_version : Unknown version
     product_name    : Avid Media Composer 7.0.4.1.4040
     company_name    : Avid Technology, Inc.
     material_package_umid:
 0x060A2B340101010101010F001300000054EF54640AAE008D060E2B347F7F2A80
     material_package_name: MXFtest.mov
   Duration: 00:00:05.42, start: 0.000000, bitrate: 175021 kb/s
     Stream #0:0: Video: rawvideo, none, 1920x1080, SAR 1:1 DAR 16:9, 23.98
 tbr, 23.98 tbn, 23.98 tbc
     Metadata:
       file_package_umid:
 0x060A2B340101010101010F001300000054EF54650E1A008D060E2B347F7F2A80
       file_package_name: MXFtest.mov.PHYS
       reel_umid       :
 0x060A2B340101010101010F001300000054EF54640B53008D060E2B347F7F2A80
       reel_name       : MXFtest.mov
       timecode        : 01:00:00:00
 [buffer @ 0x36bae40] Unable to parse option value "-1" as pixel format
     Last message repeated 1 times
 [buffer @ 0x36bae40] Error setting option pix_fmt to value -1.
 [graph 0 input from stream 0:0 @ 0x36ba840] Error applying options to the
 filter.
 Error opening filters!
 }}}

 {{{
 % ffmpeg -c prores -i sample.mxf out.mp4
 ffmpeg version N-70414-gec5a4af Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.7 (Debian 4.7.2-5)
   configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
 --enable-version3 --enable-libfdk-aac --enable-libx264 --enable-
 libfreetype
   libavutil      54. 19.100 / 54. 19.100
   libavcodec     56. 26.100 / 56. 26.100
   libavformat    56. 24.101 / 56. 24.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 11.102 /  5. 11.102
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 [mxf @ 0x1de60e0] x >= nb_ptses - IndexEntryCount 131 < IndexDuration 130?
 Input #0, mxf, from 'sample.mxf':
   Metadata:
     project_name    : mxtest
     uid             : 09c6260f-58e8-f249-9b9c-1b4fdffcfd92
     generation_uid  : b6bcfcab-70ff-7331-9c01-08d769de11d2
     application_platform: AAFSDK (MacOS X)
     modification_date: 2015-02-26 17:14:13
     product_uid     : acfbf03a-4f42-a231-d0b7-c06ecd3d4ad7
     product_version : Unknown version
     product_name    : Avid Media Composer 7.0.4.1.4040
     company_name    : Avid Technology, Inc.
     material_package_umid:
 0x060A2B340101010101010F001300000054EF54640AAE008D060E2B347F7F2A80
     material_package_name: MXFtest.mov
   Duration: 00:00:05.42, start: 0.000000, bitrate: 175021 kb/s
     Stream #0:0: Video: prores, yuv422p10le, 1920x1080, SAR 1:1 DAR 16:9,
 23.98 tbr, 23.98 tbn, 23.98 tbc
     Metadata:
       file_package_umid:
 0x060A2B340101010101010F001300000054EF54650E1A008D060E2B347F7F2A80
       file_package_name: MXFtest.mov.PHYS
       reel_umid       :
 0x060A2B340101010101010F001300000054EF54640B53008D060E2B347F7F2A80
       reel_name       : MXFtest.mov
       timecode        : 01:00:00:00
 File 'out.mp4' already exists. Overwrite ? [y/N] y
 No pixel format specified, yuv422p for H.264 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [libx264 @ 0x1dedbe0] using SAR=1/1
 [libx264 @ 0x1dedbe0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 [libx264 @ 0x1dedbe0] profile High 4:2:2, level 4.0, 4:2:2 8-bit
 [libx264 @ 0x1dedbe0] 264 - core 132 - H.264/MPEG-4 AVC codec - Copyleft
 2003-2013 - http://www.videolan.org/x264.html - options:  cabac=1 ref=3
 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0
 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=24
 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'out.mp4':
   Metadata:
     project_name    : mxtest
     uid             : 09c6260f-58e8-f249-9b9c-1b4fdffcfd92
     generation_uid  : b6bcfcab-70ff-7331-9c01-08d769de11d2
     application_platform: AAFSDK (MacOS X)
     modification_date: 2015-02-26 17:14:13
     product_uid     : acfbf03a-4f42-a231-d0b7-c06ecd3d4ad7
     product_version : Unknown version
     product_name    : Avid Media Composer 7.0.4.1.4040
     company_name    : Avid Technology, Inc.
     material_package_umid:
 0x060A2B340101010101010F001300000054EF54640AAE008D060E2B347F7F2A80
     material_package_name: MXFtest.mov
     encoder         : Lavf56.24.101
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv422p,
 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 23.98 fps, 24k tbn, 23.98 tbc
     Metadata:
       file_package_umid:
 0x060A2B340101010101010F001300000054EF54650E1A008D060E2B347F7F2A80
       file_package_name: MXFtest.mov.PHYS
       reel_umid       :
 0x060A2B340101010101010F001300000054EF54640B53008D060E2B347F7F2A80
       reel_name       : MXFtest.mov
       timecode        : 01:00:00:00
       encoder         : Lavc56.26.100 libx264
 Stream mapping:
   Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 frame=  130 fps= 25 q=-1.0 Lsize=    6599kB time=00:00:05.33
 bitrate=10126.5kbits/s
 video:6597kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.033291%
 [libx264 @ 0x1dedbe0] frame I:4     Avg QP:23.34  size:267593
 [libx264 @ 0x1dedbe0] frame P:79    Avg QP:25.85  size: 63398
 [libx264 @ 0x1dedbe0] frame B:47    Avg QP:28.98  size: 14382
 [libx264 @ 0x1dedbe0] consecutive B-frames: 27.7% 72.3%  0.0%  0.0%
 [libx264 @ 0x1dedbe0] mb I  I16..4:  5.3% 70.2% 24.6%
 [libx264 @ 0x1dedbe0] mb P  I16..4:  0.8%  3.3%  0.2%  P16..4: 47.3% 17.4%
 13.4%  0.0%  0.0%    skip:17.7%
 [libx264 @ 0x1dedbe0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 34.7%  2.3%
 0.7%  direct: 7.1%  skip:55.1%  L0:30.2% L1:51.6% BI:18.2%
 [libx264 @ 0x1dedbe0] 8x8 transform intra:73.0% inter:67.2%
 [libx264 @ 0x1dedbe0] coded y,uvDC,uvAC intra: 73.1% 90.8% 54.0% inter:
 28.2% 49.3% 6.5%
 [libx264 @ 0x1dedbe0] i16 v,h,dc,p: 15% 22%  7% 56%
 [libx264 @ 0x1dedbe0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 12% 24%  9% 11%
 8%  7%  9%  7%
 [libx264 @ 0x1dedbe0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 13% 10% 11% 13%
 10%  7% 10%  7%
 [libx264 @ 0x1dedbe0] i8c dc,h,v,p: 49% 16% 21% 13%
 [libx264 @ 0x1dedbe0] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x1dedbe0] ref P L0: 59.8% 14.8% 17.5%  8.0%
 [libx264 @ 0x1dedbe0] ref B L0: 88.4% 11.6%
 [libx264 @ 0x1dedbe0] kb/s:9966.38
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4349>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list