[FFmpeg-user] Unable to reencode corrupt video file

Schampignon Cristobal c.schampignon at mail.ru
Fri Oct 2 19:13:29 EEST 2020


Hi, thanks for your answer.
 
Yes I included those values now. I increased the probesize and the analyzeduration-values step by step. This is the result:
 
D:\ffmpeg>ffmpeg -i Video1.mxf -q 1 -ss 0 -t 1200 -frames 25 -codec:v mpeg2video -probesize (1000000000000000000000) -analyzeduration (500000000000000000000) 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 @ 00000277c74fa700] could not resolve source track sequence strong ref
[mxf @ 00000277c74fa700] broken or empty index
[mxf @ 00000277c74fa700] error getting stream index 4294967295
[mxf @ 00000277c74fa700] 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
File 'output.mxf' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!
 
  
>Понедельник, 28 сентября 2020, 3:39 +03:00 от Carl Zwanzig <cpz at tuunq.com>:
> 
>On 9/27/2020 10:44 AM, Schampignon Cristobal via ffmpeg-user wrote:
>> [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
>Have you tried including those values? I've had some success on damage
>files with rather long analyzeduration and probesize options, see the doc
>for details.
>
>Not that I think it will make a difference, but it's always good to try the
>latest ffmpeg available (at all, not just packaged for your platform).
>
>Also, "copy" does not re-encode but it should re-mux.
>
>z!
>_______________________________________________
>ffmpeg-user mailing list
>ffmpeg-user at ffmpeg.org
>https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>To unsubscribe, visit link above, or email
>ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
 
 
--
Schampignon Cristobal
 


More information about the ffmpeg-user mailing list