Opened 5 weeks ago

Last modified 4 weeks ago

#6757 new defect

Copying pgs sub stream(s) results in non incrementing dts error

Reported by: FFmpegUser9 Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: pgssub
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Attempting to mux a h265 mkv(Video.mkv) that contains hdmv_pgs_subtitles with an mkv(TrueHD.mkv) containing only TrueHD 7.1 audio results in this error.

[matroska @ 0000024dcd75c1a0] Application provided invalid, non monotonically increasing dts to muxer in stream 5: 12554 >= 12552
av_interleaved_write_frame(): Invalid argument
size= 2kB time=00:00:12.55 bitrate= 1.2kbits/s speed=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 5425.714355%
Conversion failed!

If I don't map the subtitles no errors occur and the files mux normally. These tickets seem to have the same error or very similar
https://trac.ffmpeg.org/ticket/4450
https://trac.ffmpeg.org/ticket/5472

How to reproduce:

>ffmpeg -i Video.mkv -i TrueHD.mkv -c:v copy -c:a copy -map 0:s? -c:s copy out.mkv

ffmpeg version N-87871-g7480f232d2 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
  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

Extra Details

The video file was originally AVC from a blu-ray converted to h265
ffmpeg -i file.m2ts -map 0:0 -c:v hevc_nvenc -b:v 6M Video.mkv

The audio was copied from the blu-ray
ffmpeg -i file.m2ts -map 0:2 -c:a copy TrueHD.mkv

Attachments (1)

ffmpeg-20171018-161031.log (132.3 KB) - added by FFmpegUser9 5 weeks ago.
-report

Download all attachments as: .zip

Change History (4)

Changed 5 weeks ago by FFmpegUser9

-report

comment:1 follow-up: Changed 5 weeks ago by cehoyos

Did you upload an input sample?

comment:2 in reply to: ↑ 1 Changed 4 weeks ago by FFmpegUser9

Replying to cehoyos:

Did you upload an input sample?


I am not sure how. The ftp (upload.ffmpeg.org) times out. Is there a new way? I attempted to connect with windows ftp command and with the ftp program WinSCP which I use for other ftps.

comment:3 Changed 4 weeks ago by FFmpegUser9

Here are 10mb samples of the files I am getting the error with.
http://www.datafilehost.com/d/05b781f5 (video)
http://www.datafilehost.com/d/5bfca76b (audio)

I'll keep trying the ftp as well.

Note: See TracTickets for help on using tickets.