Opened 5 years ago

Closed 2 years ago

#4096 closed defect (fixed)

FFmpeg Unable to Restream to -f tee mux some streams

Reported by: BlackDream Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords: tee mpegts
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

This one works:

ffmpeg -i "buggy_tee_mux.ts" -codec copy -f mpegts /tmp/test.ts

This one:

ffmpeg -i "buggy_tee_mux.ts" -codec copy -f tee -map 0 "[f=mpegts]something.ts"
Input #0, mpegts, from 'buggy_tee_mux.ts':
  Duration: 00:00:11.36, start: 83041.460678, bitrate: 1444 kb/s
  Program 1
    Stream #0:0[0x44]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv), 720x576 [SAR 1:1 DAR 5:4], 30 tbr, 90k tbn, 60 tbc
    Stream #0:1[0x45]: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 123 kb/s
Output #0, tee, to '[f=mpegts]something.ts':
  Metadata:
    encoder         : Lavf56.4.101
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 1:1 DAR 5:4], q=2-31, 30 tbn, 30 tbc
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, 123 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x408a760] pts (0) < dts (273000) in stream 0
av_interleaved_write_frame(): Invalid argument
frame=    3 fps=0.0 q=-1.0 Lsize=N/A time=00:00:03.08 bitrate=N/A
video:49kB audio:49kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

Does not work

Attachments (1)

buggy_tee_mux.ts (2.0 MB) - added by BlackDream 5 years ago.
This has been dumped from a live stream

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by BlackDream

This has been dumped from a live stream

comment:1 Changed 5 years ago by BlackDream

Btw: -fflags +genpts arg doesnt change anything.

comment:2 Changed 5 years ago by cehoyos

Please provide the complete, uncut console output of the failing command to make this a valid ticket.

comment:3 Changed 5 years ago by BlackDream

root@test:~/ffmpeg-git-20141108-64bit-static# ./ffmpeg -i "buggy_tee_mux.ts" -codec copy -f tee -map 0 "[f=mpegts]something.ts"
ffmpeg version N-41954-g2b14593-   http://johnvansickle.com/ffmpeg/    Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov  8 2014 01:22:18 with gcc 4.8 (Debian 4.8.3-13)
  configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 12.100 / 56. 12.100
  libavformat    56. 12.103 / 56. 12.103
  libavdevice    56.  2.100 / 56.  2.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[h264 @ 0x3c76640] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3c76640] decode_slice_header error
[h264 @ 0x3c76640] no frame!
[mpegts @ 0x3c72880] PES packet size mismatch
    Last message repeated 1 times
Input #0, mpegts, from 'buggy_tee_mux.ts':
  Duration: 00:00:11.36, start: 83041.460678, bitrate: 1444 kb/s
  Program 1
    Stream #0:0[0x44]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv), 720x576 [SAR 1:1 DAR 5:4], 30 tbr, 90k tbn, 60 tbc
    Stream #0:1[0x45]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 123 kb/s
Output #0, tee, to '[f=mpegts]something.ts':
  Metadata:
    encoder         : Lavf56.12.103
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 1:1 DAR 5:4], q=2-31, 30 tbn, 30 tbc
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, 123 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x3c59e00] pts (0) < dts (273000) in stream 0
av_interleaved_write_frame(): Invalid argument
frame=    3 fps=0.0 q=-1.0 Lsize=N/A time=00:00:03.08 bitrate=N/A
video:49kB audio:49kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

comment:4 Changed 5 years ago by cehoyos

  • Keywords tee mpegts added

comment:5 Changed 4 years ago by BlackDream

hey any news about this bug?

comment:6 Changed 2 years ago by cehoyos

  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.