[FFmpeg-trac] #7757(avformat:new): mpegts muxer HEVC: invalid output DTS values

FFmpeg trac at avcodec.org
Tue Mar 12 12:34:51 EET 2019


#7757: mpegts muxer HEVC: invalid output DTS values
-------------------------------------+-------------------------------------
             Reporter:  Ace17        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:  hevc dts     |               Blocked By:
  mpegts                             |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by Ace17):

 > Is the issue reproducible with current FFmpeg git head?

 Yes.
 I just reproduced the issue with git commit
 d227ed5d598340e719eff7156b1aa0a4469e9a6a .

 > Is the issue reproducible with ffmpeg, the application?

 No, because the ffmpeg application fails muxing the corresponding HEVC
 elementary stream.

 {{{
 bin$ ./ffmpeg -i /tmp/ordered.hevc -vcodec copy -y output.ts
 ffmpeg version git-2019-03-12-d227ed5 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 8 (Debian 8.2.0-21)
   configuration: --prefix=/tmp/ffmpeg-sysroot
   libavutil      56. 26.100 / 56. 26.100
   libavcodec     58. 47.103 / 58. 47.103
   libavformat    58. 26.101 / 58. 26.101
   libavdevice    58.  6.101 / 58.  6.101
   libavfilter     7. 48.100 /  7. 48.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
 Input #0, hevc, from '/tmp/ordered.hevc':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR
 16:9], 50 fps, 50 tbr, 1200k tbn, 50 tbc
 Output #0, mpegts, to 'output.ts':
   Metadata:
     encoder         : Lavf58.26.101
     Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR
 16:9], q=2-31, 50 fps, 50 tbr, 90k tbn, 1200k tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 [mpegts @ 0x5622429eddc0] Timestamps are unset in a packet for stream 0.
 This is deprecated and will stop working in the future. Fix your code to
 set the timestamps properly
 [mpegts @ 0x5622429eddc0] first pts value must be set
 av_interleaved_write_frame(): Invalid data found when processing input
 frame=    1 fps=0.0 q=-1.0 Lsize=       0kB time=-00:00:00.01 bitrate=
 -0.0kbits/s speed=N/A
 video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 Conversion failed!
 bin$
 }}}

 The resulting output.ts is empty, but this is another issue.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7757#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list