[FFmpeg-trac] #10404(ffmpeg:new): prores_ks: cannot specify profile in a case of MXF

FFmpeg trac at avcodec.org
Wed Jun 7 13:24:34 EEST 2023


#10404: prores_ks: cannot specify profile in a case of MXF
-------------------------------------+-------------------------------------
             Reporter:  Dmitry       |                     Type:  defect
  Sinitsyn                           |
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  git-
             Keywords:  prores_ks    |  master
  mxf                                |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Hello,

 Summary of the bug:
 It is impossible to specify video codec profile when encoding prores_ks
 and muxing in MXF. Same command for MOV works fine.

 How to reproduce:
 For any appropriate source, for example
 [http://samples.ffmpeg.org/MXF/C0023S01.mxf]:
 {{{
 % ffmpeg -i .\C0023S01.mxf -c:v prores_ks -profile standard -ar 48000 -y
 out.mxf

 ffmpeg version 6.0-full_build-www.gyan.dev Copyright (c) 2000-2023 the
 FFmpeg developers
   built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
   configuration: --enable-gpl --enable-version3 --enable-shared --disable-
 w32threads --disable-autodetect --enable-fontconfig --enable-iconv
 --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma
 --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt
 --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray
 --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d
 --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e
 --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl
 --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-
 libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-
 liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-
 amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec
 --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-
 libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-
 libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-
 libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora
 --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-
 libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex
 --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
 --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-
 chromaprint
   libavutil      58.  2.100 / 58.  2.100
   libavcodec     60.  3.100 / 60.  3.100
   libavformat    60.  3.100 / 60.  3.100
   libavdevice    60.  1.100 / 60.  1.100
   libavfilter     9.  3.100 /  9.  3.100
   libswscale      7.  1.100 /  7.  1.100
   libswresample   4. 10.100 /  4. 10.100
   libpostproc    57.  1.100 / 57.  1.100
 [mxf @ 0000024558218100] invalid KAGSize 0 - guessing 512
 [mxf @ 0000024558218100] invalid KAGSize 0 - guessing 512
 [mxf @ 0000024558218100] wrapping of stream 0 is unknown
 [mxf @ 0000024558218100] wrapping of stream 1 is unknown
 [mxf @ 0000024558218100] wrapping of stream 2 is unknown
 [mxf @ 0000024558218100] wrapping of stream 3 is unknown
 [mxf @ 0000024558218100] wrapping of stream 4 is unknown
 Guessed Channel Layout for Input Stream #0.1 : stereo
 Guessed Channel Layout for Input Stream #0.2 : stereo
 Guessed Channel Layout for Input Stream #0.3 : stereo
 Guessed Channel Layout for Input Stream #0.4 : stereo
 Input #0, mxf, from '.\C0023S01.mxf':
   Metadata:
     operational_pattern_ul: 060e2b34.04010101.0e060201.40010900
     uid             : 89721e00-1139-05c1-00f1-080046020222
     generation_uid  : 89721e00-1139-05c2-00f1-080046020222
     company_name    : SONY
     product_name    : Opt
     product_version : 1.40
     product_uid     : 060e2b34-0401-0103-0e06-012002010200
     modification_date: 2006-06-25T23:09:48.000000Z
     material_package_umid:
 0x060A2B340101010501010D4313FF0000B36F1E00113905A508004602022200F1
     timecode        : 01:43:48:21
   Duration: 00:00:03.80, start: 0.000000, bitrate: 2483 kb/s
   Stream #0:0: Video: mpeg4, yuv420p(progressive), 352x288 [SAR 16:11 DAR
 16:9], 25 fps, 25 tbr, 25 tbn
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D4313FF0000B46F1E00113905A508004602022200F1
   Stream #0:1: Audio: pcm_alaw, 8000 Hz, 2 channels, s16, 128 kb/s
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D4313FF0000B46F1E00113905A508004602022200F1
   Stream #0:2: Audio: pcm_alaw, 8000 Hz, 2 channels, s16, 128 kb/s
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D4313FF0000B46F1E00113905A508004602022200F1
   Stream #0:3: Audio: pcm_alaw, 8000 Hz, 2 channels, s16, 128 kb/s
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D4313FF0000B46F1E00113905A508004602022200F1
   Stream #0:4: Audio: pcm_alaw, 8000 Hz, 2 channels, s16, 128 kb/s
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D4313FF0000B46F1E00113905A508004602022200F1
 Please use -profile:a or -profile:v, -profile is ambiguous
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg4 (native) -> prores (prores_ks))
   Stream #0:1 -> #0:1 (pcm_alaw (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 [mpeg4 @ 0000024558e87340] slice end not reached but screenspace end
 (257708 left 77F7F7, score= -3)
 [mpeg4 @ 0000024558e87340] concealing 396 DC, 396 AC, 396 MV errors in P
 frame
 [mpeg4 @ 0000024558e86f40] slice end not reached but screenspace end
 (227856 left 7F7F7F, score= -10)
 [mpeg4 @ 0000024558e86f40] concealing 396 DC, 396 AC, 396 MV errors in P
 frame
 [mpeg4 @ 0000024558e88740] slice end not reached but screenspace end
 (245238 left 7DFDFD, score= -14)
 [mpeg4 @ 0000024558e88740] concealing 396 DC, 396 AC, 396 MV errors in P
 frame
 Output #0, mxf, to 'out.mxf':
   Metadata:
     operational_pattern_ul: 060e2b34.04010101.0e060201.40010900
     uid             : 89721e00-1139-05c1-00f1-080046020222
     generation_uid  : 89721e00-1139-05c2-00f1-080046020222
     timecode        : 01:43:48:21
     material_package_umid:
 0x060A2B340101010501010D4313FF0000B36F1E00113905A508004602022200F1
     modification_date: 2006-06-25T23:09:48.000000Z
     product_uid     : 060e2b34-0401-0103-0e06-012002010200
     encoder         : Lavf60.3.100
   Stream #0:0: Video: prores (apcn / 0x6E637061), yuv422p10le(tv,
 progressive), 352x288 [SAR 16:11 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25
 tbn
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D4313FF0000B46F1E00113905A508004602022200F1
       encoder         : Lavc60.3.100 prores_ks
   Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
     Metadata:
       file_package_umid:
 0x060A2B340101010501010D4313FF0000B46F1E00113905A508004602022200F1
       encoder         : Lavc60.3.100 pcm_s16le
 [mxf @ 0000024558250bc0] could not get prores profile:00.68 bitrate=
 0.0kbits/s dup=1 drop=0 speed=16.5x
 [mpeg4 @ 0000024558e7ad40] slice end not reached but screenspace end
 (231474 left 5FDFDF, score= -21)
 av_interleaved_write_frame(): Operation not permitted
 [out#0/mxf @ 0000024558250ac0] Error muxing a packet
 [mpeg4 @ 0000024558e7ad40] concealing 396 DC, 396 AC, 396 MV errors in P
 frame
 [mpeg4 @ 0000024558e85740] slice end not reached but screenspace end
 (248586 left 5FDFDF, score= -22)
 [mpeg4 @ 0000024558e85740] concealing 396 DC, 396 AC, 396 MV errors in P
 frame
 [mpeg4 @ 0000024558e86b40] slice end not reached but screenspace end
 (234925 left 7BFBFB, score= -24)
 [mpeg4 @ 0000024558e86b40] concealing 396 DC, 396 AC, 396 MV errors in P
 frame
 [mpeg4 @ 0000024558e86340] slice end not reached but screenspace end
 (255728 left 7F7F7F, score= -24)
 [mpeg4 @ 0000024558e86340] concealing 396 DC, 396 AC, 396 MV errors in P
 frame
 [mpeg4 @ 0000024558e88b40] slice end not reached but screenspace end
 (249366 left 7DFDFD, score= -24)
 [mpeg4 @ 0000024558e88b40] concealing 396 DC, 396 AC, 396 MV errors in P
 frame
 [mxf @ 0000024558250bc0] Received non-video packet before header has been
 written
 [mxf @ 0000024558250bc0] could not get prores profile
 [out#0/mxf @ 0000024558250ac0] Error writing trailer: Invalid data found
 when processing input
 frame=   18 fps=0.0 q=-0.0 Lsize=       0kB time=00:00:01.99 bitrate=
 0.0kbits/s dup=1 drop=0 speed=32.1x
 video:421kB audio:375kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 Conversion failed!

 }}}
 "[mxf @ 0000024558250bc0] could not get prores profile"

 If I change out.mxf to out.mov, then command executes successfully.
 Problem does not relate to specific source file.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10404>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list