Opened 15 months ago

Last modified 15 months ago

#6483 new defect

Failing to Multiplex Data Stream on MPEGTS file

Reported by: vicviod Owned by:
Priority: normal Component: ffmpeg
Version: unspecified Keywords: mpegts, dts, klv
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I'm trying to copy all streams from an input file to a .ts file. The input file contains two streams, a data stream and a video stream. However, I have not been able to find a way to include the data stream in the output file, and the below command, which theoretically should work, is causing issues.

>ffmpeg -i PumaMapping.mpg -map 0 -c:0:1 copy output_3.ts
ffmpeg version N-86383-g4705edb Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.1.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e
nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  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. 91.100 /  6. 91.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Input #0, mpegts, from 'PumaMapping.mpg':
  Duration: 00:15:09.91, start: 1.851444, bitrate: 15577 kb/s
  Program 1
    Stream #0:0[0x11]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001
B), yuv420p(progressive), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k t
bn, 59.94 tbc
    Stream #0:1[0x21]: Data: klv (KLVA / 0x41564C4B)
Output #0, mpegts, to 'output_3.ts':
  Metadata:
    encoder         : Lavf57.72.101
    Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yu
v420p(progressive), 720x480 [SAR 8:9 DAR 4:3], q=2-31, 29.97 fps, 29.97 tbr, 90k
 tbn, 90k tbc
    Stream #0:1: Data: klv (KLVA / 0x41564C4B)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 00000000004c3020] Application provided invalid, non monotonically incr
easing dts to muxer in stream 1: 23987 >= 10718
av_interleaved_write_frame(): Invalid argument
frame=   25 fps=0.0 q=-1.0 Lsize=     333kB time=00:00:00.76 bitrate=3551.1kbits
/s speed=76.7x
video:304kB audio:0kB subtitle:0kB other streams:1kB global headers:0kB muxing o
verhead: 9.158026%
Conversion failed!

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (1)

comment:1 Changed 15 months ago by vicviod

  • Keywords mpegts dts klv added
Note: See TracTickets for help on using tickets.