Opened 8 years ago

Last modified 8 years ago

#6065 reopened defect

47724 images instead of 2000

Reported by: doublemax Owned by:
Priority: important Component: undetermined
Version: git-master Keywords: mpegts regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffmpeg creates 47724 images.
The first ~45000 look the same.
The "-r" is 1 - so ffmpeg should only create 1 per second.

How to reproduce:

wget http://doppelbauer.name/too-many-jpegs.ts
ffmpeg -i /tmp/too-many-jpegs.ts -f image2 -r 1 -vcodec mjpeg /tmp/s/%d.jpg

FFmpeg output:

ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --enable-bzlib --enable-zlib --enable-openssl --enable-gnutls --enable-libx264 --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libopus --enable-libspeex
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] SPS unavailable in decode_picture_timing
[h264 @ 0x344f8e0] non-existing PPS 0 referenced
[h264 @ 0x344f8e0] decode_slice_header error
[h264 @ 0x344f8e0] no frame!
Input #0, mpegts, from '/tmp/too-many-jpegs.ts':
  Duration: 13:47:14.18, start: 13306.520000, bitrate: 33 kb/s
  Program 1 
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, progressive), 854x480 [SAR 1:1 DAR 427:240], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 63 kb/s
[swscaler @ 0x3484260] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to '/tmp/s/%d.jpg':
  Metadata:
    encoder         : Lavf57.56.100
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 854x480 [SAR 1:1 DAR 427:240], q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
    Metadata:
      encoder         : Lavc57.64.101 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[h264 @ 0x34a9da0] co located POCs unavailable
frame=47724 fps=196 q=4.5 Lsize=N/A time=13:15:24.00 bitrate=N/A dup=47722 drop=57318 speed= 196x    
video:1165236kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Change History (4)

comment:1 by Carl Eugen Hoyos, 8 years ago

Keywords: mpegts added

Is this issue reproducible with current FFmpeg git head?

comment:2 by Elon Musk, 8 years ago

Resolution: needs_more_info
Status: newclosed

File is gone.

comment:3 by Carl Eugen Hoyos, 8 years ago

Keywords: regression added
Priority: normalimportant
Resolution: needs_more_info
Status: closedreopened
Version: unspecifiedgit-master

Regression since 1e5271a9, related to ticket #2143.
Both this file and the file from ticket #2143 used to work fine before 0ff4f0c0 mentioned in ticket #2143.

$ ffmpeg -i too-many-jpegs_cut.ts -qscale 2 out.mov
ffmpeg version N-83637-g178cd50 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 81.100 / 57. 81.100
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 74.100 /  6. 74.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[h264 @ 0x3d36ee0] SPS unavailable in decode_picture_timing
[h264 @ 0x3d36ee0] non-existing PPS 0 referenced
[h264 @ 0x3d36ee0] SPS unavailable in decode_picture_timing
[h264 @ 0x3d36ee0] non-existing PPS 0 referenced
[h264 @ 0x3d36ee0] decode_slice_header error
[h264 @ 0x3d36ee0] no frame!
[h264 @ 0x3d36ee0] SPS unavailable in decode_picture_timing
[h264 @ 0x3d36ee0] non-existing PPS 0 referenced
[h264 @ 0x3d36ee0] SPS unavailable in decode_picture_timing
[h264 @ 0x3d36ee0] non-existing PPS 0 referenced
[h264 @ 0x3d36ee0] decode_slice_header error
[h264 @ 0x3d36ee0] no frame!

...

[h264 @ 0x3d36ee0] SPS unavailable in decode_picture_timing
[h264 @ 0x3d36ee0] non-existing PPS 0 referenced
[h264 @ 0x3d36ee0] SPS unavailable in decode_picture_timing
[h264 @ 0x3d36ee0] non-existing PPS 0 referenced
[h264 @ 0x3d36ee0] decode_slice_header error
[h264 @ 0x3d36ee0] no frame!
[h264 @ 0x3d36ee0] SPS unavailable in decode_picture_timing
[h264 @ 0x3d36ee0] non-existing PPS 0 referenced
[h264 @ 0x3d36ee0] SPS unavailable in decode_picture_timing
[h264 @ 0x3d36ee0] non-existing PPS 0 referenced
[h264 @ 0x3d36ee0] decode_slice_header error
[h264 @ 0x3d36ee0] no frame!
[mpegts @ 0x3d323c0] PES packet size mismatch
Input #0, mpegts, from 'too-many-jpegs_cut.ts':
  Duration: 13:18:34.25, start: 13306.520000, bitrate: 3 kb/s
  Program 1
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, progressive), 854x480 [SAR 1:1 DAR 427:240], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 63 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
Output #0, mov, to 'out.mov':
  Metadata:
    encoder         : Lavf57.66.102
    Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 200 kb/s, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc57.81.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s
    Metadata:
      encoder         : Lavc57.81.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x3d70180] co located POCs unavailable
More than 1000 frames duplicated
[mpegts @ 0x3d323c0] PES packet size mismatchtime=13:15:23.60 bitrate= 791.4kbits/s dup=1431707 drop=5373 speed=54.2x
[h264 @ 0x3e00f40] error while decoding MB 0 16, bytestream -15
[h264 @ 0x3e00f40] concealing 805 DC, 805 AC, 805 MV errors in P frame
frame=1431709 fps=1625 q=2.0 Lsize= 4617579kB time=13:15:23.60 bitrate= 792.6kbits/s dup=1431707 drop=5720 speed=54.2x
video:4609741kB audio:1657kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.134021%
[aac @ 0x3d65580] Qavg: 211.341

Output file is out-of-sync / unplayable.
The cut input file plays with ffplay for 192 seconds (dropping many video frames), this is also the audio duration.

comment:4 by doublemax, 8 years ago

Yes sorry. File is here:

http://doppelbauer.name/too-many-jpegs.ts

I could (more or less) fix this issue (but with AV desync):

ffmpeg -use_wallclock_as_timestamps 1 -i INPUT.ts -c copy TEMP.ts
ffmpeg -i TEMP.ts -c copy OUTPUT.ts
Note: See TracTickets for help on using tickets.