FFmpeg o que esses erros de decodificação significam

0

Estou criando arquivos de navegação de baixa resolução a partir de um arquivo de arquivos de mídia com o ffmpeg. Os arquivos são todos Op1a MXF com codec mpeg2 e uma mistura de resolução SD e HD. Alguns deles mostram um ou mais desses erros:

  • [mxf @ 00000000048b6420] entrada de índice 20947 + TemporalOffset 1 = 20948, que está fora dos limites
  • [null @ 00000000048e3040] Aplicativo fornecido inválido, não aumentando monotonicamente dts para muxer no fluxo 0: 20945 > = 20945
  • [mpeg2video @ 0000000003863960] ac-tex danificado em 28 27
  • [mpeg2video @ 0000000003863960] MVs de aviso não disponíveis

Esses erros também mostram apenas a decodificação:

ffmpeg -i <file.mxf> -f null /dev/null

Com os dois primeiros o codificador (mp4 h264) não tem problemas. No caso dos dois últimos, o codificador lança uma variedade de erros e avisos.

O que esses erros de decodificação significam?

Saída completa do comando para o primeiro erro:

user@server:~$ ffmpeg -i VX-508926.mxf -loglevel debug -f null /dev/null
ffmpeg version N-87871-g7480f23 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/ffmpeg_build/include --extra-ldflags=-L/ffmpeg_build/lib --extra-libs=-lpthread --bindir=/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
  libavutil      55. 79.100 / 55. 79.100
  libavcodec     57.108.100 / 57.108.100
  libavformat    57. 84.100 / 57. 84.100
  libavdevice    57. 11.100 / 57. 11.100
  libavfilter     6.108.100 /  6.108.100
  libswscale      4.  9.100 /  4.  9.100
  libswresample   2. 10.100 /  2. 10.100
  libpostproc    54.  8.100 / 54.  8.100
Splitting the commandline.
Reading option '-i' ... matched as input url with argument 'VX-508926.mxf'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'null'.
Reading option '/dev/null' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url VX-508926.mxf.
Successfully parsed a group of options.
Opening an input file: VX-508926.mxf.
[NULL @ 0x3443620] Opening 'VX-508926.mxf' for reading
[file @ 0x3443ea0] Setting default whitelist 'file,crypto'
[mxf @ 0x3443620] Format mxf probed with size=2048 and score=100
[mxf @ 0x3443620] Dark key 06.0e.2b.34.01.01.01.01.03.01.02.10.01.00.00.00
[mxf @ 0x3443620] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.41.00
[mxf @ 0x3443620] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.23.00
[mxf @ 0x3443620] Dark key 06.0e.2b.34.02.53.01.01.0e.0f.01.01.01.01.04.01
[mxf @ 0x3443620] Dark key 06.0e.2b.34.01.01.01.01.03.01.02.10.01.00.00.00
    Last message repeated 3 times
[mxf @ 0x3443620] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.11.01.00
[mxf @ 0x3443620] Dark key 06.0e.2b.34.01.01.01.01.03.01.02.10.01.00.00.00
    Last message repeated 11 times
[mxf @ 0x3443620] none: Universal Label: 00000000.0000.0000.00000000.00000000
[mxf @ 0x3443620] none: Universal Label: 00000000.0000.0000.00000000.00000000
[mxf @ 0x3443620] mpeg2video: Universal Label: 060e2b34.0401.0103.04010202.01030300
[mxf @ 0x3443620] video_line_map: (21, 584), field_dominance: 0
[mxf @ 0x3443620] index entry 1676 + TemporalOffset 1 = 1677, which is out of bounds
[mxf @ 0x3443620] Before avformat_find_stream_info() pos: 99328 bytes read:332556 seeks:13 nb_streams:3
[mxf @ 0x3443620] Probe buffer size limit of 5000000 bytes reached
[mxf @ 0x3443620] rfps: 24.666667 0.013319
    Last message repeated 1 times
[mxf @ 0x3443620] rfps: 24.750000 0.007492
    Last message repeated 1 times
[mxf @ 0x3443620] rfps: 24.833333 0.003330
    Last message repeated 1 times
[mxf @ 0x3443620] rfps: 24.916667 0.000832
    Last message repeated 1 times
[mxf @ 0x3443620] rfps: 25.000000 0.000000
[mxf @ 0x3443620] rfps: 25.083333 0.000832
[mxf @ 0x3443620] rfps: 25.166667 0.003330
[mxf @ 0x3443620] rfps: 25.250000 0.007492
[mxf @ 0x3443620] rfps: 25.333333 0.013319
[mxf @ 0x3443620] rfps: 50.000000 0.000000
[mxf @ 0x3443620] After avformat_find_stream_info() pos: 5144612 bytes read:5377840 seeks:13 frames:91
Guessed Channel Layout for Input Stream #0.0 : mono
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mxf, from 'VX-508926.mxf':
  Metadata:
    company_name    : AVID
    product_name    : TRMG
    product_version : 3.01
    product_uid     : 00000000-0000-0000-0000-000000000000
    modification_date: 2013-07-16T10:56:27.000000Z
    generation_uid  : 6065d34e-c9bc-894d-808d-a7080f9c8ca8
    uid             : 3644d0f4-dd17-2848-ab33-28c3d37500ba
    material_package_umid: 0x060A2B340101010501010D1313000000674D58EE3343FC4597136A7F8701A21A
    material_package_name: Material Package for K2_01/V:/default/SISITMAR28JUL13
    timecode        : 01:00:00:00
  Duration: 00:01:07.08, start: 0.000000, bitrate: 35902 kb/s
    Stream #0:0, 30, 1/48000: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D13130000003049A137A953114D9EE394FB214ECE99
      file_package_name: Source Package for K2_01/V:/default/SISITMAR28JUL13
      track_name      : Material Package Audio Track #1
    Stream #0:1, 30, 1/48000: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D13130000003049A137A953114D9EE394FB214ECE99
      file_package_name: Source Package for K2_01/V:/default/SISITMAR28JUL13
      track_name      : Material Package Audio Track #2
    Stream #0:2, 31, 1/25: Video: mpeg2video (Main), 1 reference frame, yuv420p(tv, bt709, top first, left), 1920x1080 [SAR 1:1 DAR 16:9], 0/1, 25 fps, 25 tbr, 25 tbn, 50 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010D13130000003049A137A953114D9EE394FB214ECE99
      file_package_name: Source Package for K2_01/V:/default/SISITMAR28JUL13
      track_name      : Material Package Video Track #1
Successfully opened the file.
Parsing a group of options: output url /dev/null.
Applying option f (force format) with argument null.
Successfully parsed a group of options.
Opening an output file: /dev/null.
Successfully opened the file.
detected 8 logical cores
Stream mapping:
  Stream #0:2 -> #0:0 (mpeg2video (native) -> wrapped_avframe (native))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[graph_1_in_0_0 @ 0x38d2bc0] Setting 'time_base' to value '1/48000'
[graph_1_in_0_0 @ 0x38d2bc0] Setting 'sample_rate' to value '48000'
[graph_1_in_0_0 @ 0x38d2bc0] Setting 'sample_fmt' to value 's16'
[graph_1_in_0_0 @ 0x38d2bc0] Setting 'channel_layout' to value '0x4'
[graph_1_in_0_0 @ 0x38d2bc0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x4
[format_out_0_1 @ 0x34b2e40] Setting 'sample_fmts' to value 's16'
[AVFilterGraph @ 0x34434c0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[graph 0 input from stream 0:2 @ 0x34bbc80] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:2 @ 0x34bbc80] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:2 @ 0x34bbc80] Setting 'time_base' to value '1/25'
[graph 0 input from stream 0:2 @ 0x34bbc80] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:2 @ 0x34bbc80] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:2 @ 0x34bbc80] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:2 @ 0x34bbc80] w:1920 h:1080 pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[AVFilterGraph @ 0x34b4b80] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
Output #0, null, to '/dev/null':
  Metadata:
    company_name    : AVID
    product_name    : TRMG
    product_version : 3.01
    product_uid     : 00000000-0000-0000-0000-000000000000
    modification_date: 2013-07-16T10:56:27.000000Z
    generation_uid  : 6065d34e-c9bc-894d-808d-a7080f9c8ca8
    uid             : 3644d0f4-dd17-2848-ab33-28c3d37500ba
    material_package_umid: 0x060A2B340101010501010D1313000000674D58EE3343FC4597136A7F8701A21A
    material_package_name: Material Package for K2_01/V:/default/SISITMAR28JUL13
    timecode        : 01:00:00:00
    encoder         : Lavf57.84.100
    Stream #0:0, 0, 1/25: Video: wrapped_avframe, 1 reference frame, yuv420p(left), 1920x1080 [SAR 1:1 DAR 16:9], 0/1, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010D13130000003049A137A953114D9EE394FB214ECE99
      file_package_name: Source Package for K2_01/V:/default/SISITMAR28JUL13
      track_name      : Material Package Video Track #1
      encoder         : Lavc57.108.100 wrapped_avframe
    Stream #0:1, 0, 1/48000: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D13130000003049A137A953114D9EE394FB214ECE99
      file_package_name: Source Package for K2_01/V:/default/SISITMAR28JUL13
      track_name      : Material Package Audio Track #1
      encoder         : Lavc57.108.100 pcm_s16le
[mxf @ 0x3443620] invalid dts/pts combination 144
[mxf @ 0x3443620] invalid dts/pts combination 434.56 bitrate=N/A speed=12.5x
[mxf @ 0x3443620] invalid dts/pts combination 110588 bitrate=N/A speed=12.5x
[out_0_0 @ 0x34bcae0] EOF on sink link out_0_0:default.trate=N/A speed=12.5x
[out_0_1 @ 0x34b3360] EOF on sink link out_0_1:default.
No more output streams to write to, finishing.
frame= 1677 fps=316 q=-0.0 Lsize=N/A time=00:01:07.08 bitrate=N/A speed=12.7x
video:865kB audio:6289kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (VX-508926.mxf):
  Input stream #0:0 (audio): 1677 packets read (6439680 bytes); 1677 frames decoded (3219840 samples);
  Input stream #0:1 (audio): 30 packets read (115200 bytes);
  Input stream #0:2 (video): 1677 packets read (285814080 bytes); 1677 frames decoded;
  Total: 3384 packets (292368960 bytes) demuxed
Output file #0 (/dev/null):
  Output stream #0:0 (video): 1677 frames encoded; 1677 packets muxed (885456 bytes);
  Output stream #0:1 (audio): 1677 frames encoded (3219840 samples); 1677 packets muxed (6439680 bytes);
  Total: 3354 packets (7325136 bytes) muxed
3354 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x344c1c0] Statistics: 301273488 bytes read, 13 seeks
    
por Rens 05.01.2018 / 15:32

0 respostas

Tags