Unable to reencode corrupt video file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to reencode corrupt video file

FFmpeg-users mailing list

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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to reencode corrupt video file

Carl Zwanzig
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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to reencode corrupt video file

Carl Eugen Hoyos-2
In reply to this post by FFmpeg-users mailing list


> Am 27.09.2020 um 19:44 schrieb Schampignon Cristobal via ffmpeg-user <[hidden email]>:
>
> I have got a corrupt video file

Please provide a sample file.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to reencode corrupt video file

FFmpeg-users mailing list
In reply to this post by Carl Zwanzig

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 <[hidden email]>:

>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
>[hidden email]
>https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>To unsubscribe, visit link above, or email
>[hidden email] with subject "unsubscribe".
 
 
--
Schampignon Cristobal
 
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to reencode corrupt video file

FFmpeg-users mailing list
In reply to this post by Carl Eugen Hoyos-2

Hi Carl Eugen,
 
could I send it privately for example via wetransfer?

Best regards!
 

>Понедельник, 28 сентября 2020, 18:50 +03:00 от Carl Eugen Hoyos <[hidden email]>:

>
>
>> Am 27.09.2020 um 19:44 schrieb Schampignon Cristobal via ffmpeg-user < [hidden email] >:
>>
>> I have got a corrupt video file
>
>Please provide a sample file.
>
>Carl Eugen
>_______________________________________________
>ffmpeg-user mailing list
>[hidden email]
>https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>To unsubscribe, visit link above, or email
>[hidden email] with subject "unsubscribe".
--
Schampignon Cristobal
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to reencode corrupt video file

andrei ka
did you try to transwrap it ( bmxtranswrap ) ? bmx suite and not ffmpeg
should be the first candidate to try to fix weird mxfs
&rei

On Mon, Oct 5, 2020 at 6:13 PM Schampignon Cristobal via ffmpeg-user <
[hidden email]> wrote:

>
> Hi Carl Eugen,
>
> could I send it privately for example via wetransfer?
>
> Best regards!
>
> >Понедельник, 28 сентября 2020, 18:50 +03:00 от Carl Eugen Hoyos <
> [hidden email]>:
> >
> >
> >
> >> Am 27.09.2020 um 19:44 schrieb Schampignon Cristobal via ffmpeg-user <
> [hidden email] >:
> >>
> >> I have got a corrupt video file
> >
> >Please provide a sample file.
> >
> >Carl Eugen
> >_______________________________________________
> >ffmpeg-user mailing list
> >[hidden email]
> >https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> >To unsubscribe, visit link above, or email
> >[hidden email] with subject "unsubscribe".
> --
> Schampignon Cristobal
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to reencode corrupt video file

Carl Eugen Hoyos-2
In reply to this post by FFmpeg-users mailing list
Am Mo., 5. Okt. 2020 um 18:13 Uhr schrieb Schampignon Cristobal via
ffmpeg-user <[hidden email]>:

> could I send it privately for example via wetransfer?

You can send it any way you like, but we need to make samples
public to improve chances for a fix (exceptions definitely exist).

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".