Opened 4 years ago

Last modified 3 years ago

#8582 new defect

Remuxing of Panasonic P2 MXF file fails (regression)

Reported by: rmk Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% ffmpeg -i 0132W3.MXF -c copy ffmpeg-rewrapped.mxf 

ffmpeg version N-97038-g7239254b1d Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: 
  libavutil      56. 42.101 / 56. 42.101
  libavcodec     58. 76.100 / 58. 76.100
  libavformat    58. 42.100 / 58. 42.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 77.100 /  7. 77.100
  libswscale      5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
[mxf @ 0x7f8a21000400] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, mxf, from '/Users/krueger/lesspain/research-tests/p2-rewrapping/0132W3.MXF':
  Metadata:
    operational_pattern_ul: 060e2b34.04010102.0d010201.10020000
    uid             : e8f53542-1a1b-435a-9758-c9ed60003bc6
    generation_uid  : 3112e61d-bd0b-441f-84a4-bb851ab65780
    company_name    : Panasonic
    product_name    : P2
    product_version : 2.0
    product_uid     : 060e2b34-0401-0108-0e0e-010101000001
    modification_date: 2017-02-27T14:51:52.000000Z
    material_package_umid: 0x060A2B340101010501010D4313000000E9F81999117805C400804582192A3004
    material_package_name: 0132W3
    timecode        : 01:31:07:03
  Duration: 00:00:01.16, start: 0.000000, bitrate: 113895 kb/s
    Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le(pc, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
    Metadata:
      file_package_umid: 0x060A2B34010101050101064313000000E9F81999117805C500804582192A3004
    Stream #0:1: Data: none
    Metadata:
      file_package_umid: 0x060A2B34010101050101084313000000E9F81999117805C500804582192A3004
      data_type       : audio
    Stream #0:2: Data: none
    Metadata:
      file_package_umid: 0x060A2B34010101050101084313000000E9F81999117805C600804582192A3004
      data_type       : audio
    Stream #0:3: Data: none
    Metadata:
      file_package_umid: 0x060A2B34010101050101084313000000E9F81999117805C700804582192A3004
      data_type       : audio
    Stream #0:4: Data: none
    Metadata:
      file_package_umid: 0x060A2B34010101050101084313000000E9F81999117805C800804582192A3004
      data_type       : audio
Output #0, mxf, to '/Users/krueger/lesspain/research-tests/p2-rewrapping/ffmpeg-rewrapped.mxf':
  Metadata:
    operational_pattern_ul: 060e2b34.04010102.0d010201.10020000
    uid             : e8f53542-1a1b-435a-9758-c9ed60003bc6
    generation_uid  : 3112e61d-bd0b-441f-84a4-bb851ab65780
    company_name    : Panasonic
    product_name    : P2
    product_version : 2.0
    product_uid     : 060e2b34-0401-0108-0e0e-010101000001
    modification_date: 2017-02-27T14:51:52.000000Z
    material_package_umid: 0x060A2B340101010501010D4313000000E9F81999117805C400804582192A3004
    material_package_name: 0132W3
    timecode        : 01:31:07:03
    encoder         : Lavf58.42.100
    Stream #0:0: Video: h264 (High 4:2:2 Intra), yuv422p10le(pc, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      file_package_umid: 0x060A2B34010101050101064313000000E9F81999117805C500804582192A3004
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mxf @ 0x7f8a20007800] track 0: frame size does not match index unit size, 568320 != 568832
av_interleaved_write_frame(): Operation not permitted
frame=    2 fps=0.0 q=-1.0 Lsize=     563kB time=00:00:00.08 bitrate=57604.5kbits/s speed= 114x    
video:1110kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

Sample can be downloaded at https://www.dropbox.com/s/cifsw2bitsxn8t9/0132W3.MXF?dl=0

In the ml archive I found an initial report on an early version of Baptiste's patch that caused exactly the same error message: https://www.mail-archive.com/ffmpeg-devel@ffmpeg.org/msg83824.html

Maybe it is related to this patch but that is just a rather uneducated guess.

ffmpeg version git-2019-04-30-5650668a1b remuxes it without problems.

Change History (2)

comment:1 by Matthias Hunstock, 4 years ago

Error starts with commit b401a4ab8aa85c536bd9eee0da8f51551b66c70e

comment:2 by Syed Andaleeb Roomy, 3 years ago

It would be really nice to get this fixed since remuxing of P2 MXF is a major use case in one of our projects. Wish I could contribute in some way but unfortunately I do not seem to have the depth of format knowledge required for this particular fix, nor the access to the correct specs. Could anyone help here?

Note: See TracTickets for help on using tickets.