[FFmpeg-user] Unable to reencode corrupt video file

Schampignon Cristobal c.schampignon at mail.ru
Sun Sep 27 20:44:08 EEST 2020


Dear ffmpeg-Team,
 
I have got a corrupt video file (.mxf Container, XDCAM codec, I guess the header is broken). I tried to reencode the file, but it is not working. Here is the the error message.
Would be thankful for any advice how to reencode the video or fix the header!
Best regards,
Simon!

D:\ffmpeg>ffmpeg -i Video1.mxf -q 1 -c copy -ss 0 -t 1200 -frames 25 output.mxf
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[mxf @ 0000018fbf7f9000] could not resolve source track sequence strong ref
[mxf @ 0000018fbf7f9000] broken or empty index
[mxf @ 0000018fbf7f9000] error getting stream index 4294967295
[mxf @ 0000018fbf7f9000] Could not find codec parameters for stream 0 (Video: mpeg2video, none(tv, top first), 1920x1088): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mxf, from 'Video1.mxf':
  Metadata:
    operational_pattern_ul: 060e2b34.04010102.0d010201.10020000
    product_name    : Avid Media Toolkit
    uid             : c763f9b3-b651-4d9a-ab3a-4695cf360b13
    generation_uid  : 8182e573-4169-d088-e5a9-c867dd194b59
    application_platform: AAFSDK (Win64)
    modification_date: 2019-07-03T18:54:58.000000Z
    product_uid     : 060e2b34-7f7f-2a80-0000-00000000000a
    product_version : 2.12.9.973.5
    company_name    : Avid
    material_package_umid: 0x060A2B340101010501010F10130000001FADC5C92BE500A54C3FAC1F6BBA5CD6
    material_package_name: Remote2 00030001
  Duration: 12:00:00.00, start: 0.000000, bitrate: 1317 kb/s
    Stream #0:0: Video: mpeg2video, none(tv, top first), 1920x1088, SAR 136:135 DAR 16:9, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010F101300000020ADC5C92BE500A5B6AAAC1F6BBA5CD6
      reel_umid       : 0x060A2B340101010501010F10130000001CADC5C92BE500A5B872AC1F6BBA5CD6
      reel_name       : Remote 2
    Stream #0:1: Data: none
    Metadata:
      file_package_umid: 0x060A2B340101010501010F101300000023ADC5C92BE500A5707DAC1F6BBA5CD6
      data_type       : audio
    Stream #0:2: Data: none
    Metadata:
      file_package_umid: 0x060A2B340101010501010F101300000025ADC5C92BE500A550D8AC1F6BBA5CD6
      data_type       : audio
Output #0, mxf, to 'output.mxf':
  Metadata:
    operational_pattern_ul: 060e2b34.04010102.0d010201.10020000
    product_name    : Avid Media Toolkit
    uid             : c763f9b3-b651-4d9a-ab3a-4695cf360b13
    generation_uid  : 8182e573-4169-d088-e5a9-c867dd194b59
    application_platform: AAFSDK (Win64)
    modification_date: 2019-07-03T18:54:58.000000Z
    product_uid     : 060e2b34-7f7f-2a80-0000-00000000000a
    product_version : 2.12.9.973.5
    company_name    : Avid
    material_package_umid: 0x060A2B340101010501010F10130000001FADC5C92BE500A54C3FAC1F6BBA5CD6
    material_package_name: Remote2 00030001
    encoder         : Lavf58.29.100
    Stream #0:0: Video: mpeg2video, none(tv, top first), 1920x1088 [SAR 136:135 DAR 16:9], q=2-31, 25 tbr, 25 tbn, 25 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010F101300000020ADC5C92BE500A5B6AAAC1F6BBA5CD6
      reel_umid       : 0x060A2B340101010501010F10130000001CADC5C92BE500A5B872AC1F6BBA5CD6
      reel_name       : Remote 2
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
Error writing trailer of output.mxf: Unknown error occurred
frame=    0 fps=0.0 q=-1.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
 
 
--
Schampignon Cristobal


More information about the ffmpeg-user mailing list