[FFmpeg-devel] [PATCH] libavformat/aviobuf.c: don't treat 0 from read_packet as EOF

Daniel Kučera daniel.kucera at gmail.com
Sat Jun 3 09:58:24 EEST 2017


>
> breaks:
> ffmpeg  -i subfile,,start,10000,end,400000,,:matrixbench_mpeg2.mpg subfile.avi
>
> (infnite loop)
>
>

Where can I get that matrixbench_mpeg2.mpg test file? If I run it
against fate-suite/mpeg2/matrixbench_mpeg2.lq1.mpg it works:

./ffmpeg  -i subfile,,start,10000,end,400000,,:fate-suite/mpeg2/matrixbench_mpeg2.lq1.mpg
subfile.avi
ffmpeg version N-86331-gec2a3962af Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (Ubuntu 6.3.0-12ubuntu2) 20170406
  configuration: --enable-debug=3 --enable-gpl --enable-libx264
  libavutil      55. 63.100 / 55. 63.100
  libavcodec     57. 96.101 / 57. 96.101
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 90.100 /  6. 90.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
[mpeg2video @ 0x55a3295e43a0] Invalid frame dimensions 0x0.
    Last message repeated 9 times
Input #0, mpeg, from
'subfile,,start,10000,end,400000,,:fate-suite/mpeg2/matrixbench_mpeg2.lq1.mpg':
  Duration: 00:00:00.88, start: 0.620000, bitrate: 3545 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bottom
first), 716x236 [SAR 1:1 DAR 179:59], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
Output #0, avi, to 'subfile.avi':
  Metadata:
    ISFT            : Lavf57.72.101
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 716x236
[SAR 1:1 DAR 179:59], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.96.101 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame=   13 fps=0.0 q=10.7 Lsize=      73kB time=00:00:00.92 bitrate=
650.1kbits/s speed=33.9x
video:67kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 9.237288%



S pozdravom / Best regards
Daniel Kucera.


More information about the ffmpeg-devel mailing list