[FFmpeg-user] Preserving both Video and Data Streams in Output file
Victor Odouard
vicviodlogin at gmail.com
Fri Jun 23 02:54:05 EEST 2017
Hi Moritz,
Thanks for the response!
I've taken your advice, and it looks like I'm making progress because I no
longer get the above error. However, I do get this one:
>*ffmpeg -i PumaMapping.mpg -map 0 -c:0:1 copy output_2.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_2.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 @ 00000000005c3020] 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!
Do you know what this means, and how I might be able to fix it?
Best,
Victor
On Fri, Jun 23, 2017 at 7:08 AM, Moritz Barsnick <barsnick at gmx.net> wrote:
> On Thu, Jun 22, 2017 at 11:37:41 +0000, Victor Odouard wrote:
> > So I've been trying this:
> > ffmpeg -i PumaMapping.mpg -map 0 output.mpg
>
> Are you sure an MPEG Program Stream is the right format for you? Your
> UDP URL should default to something else, so the output of that command
> would be more interesting.
>
> > Stream #0:1[0x21]: Data: klv (KLVA / 0x41564C4B)
> > [mpeg @ 0x7ff51918e400] Invalid media type data for output stream #1
>
> Either ffmpeg cannot map data into MPEG-PS, or it doesn't know how to
> map "klv" data.
>
> Firstly you should choose an MPEG Transport Stream for the output -
> change the extension to ".ts". (You can also use MPEG-TS for UDP: Add
> "f mpegts" as output option, if that's not the default.)
>
> Secondly, you definitely need to copy the data, not encode, if at all.
> There's no data encoder.
>
> Thirdly, that still may not work, if ffmpeg refuses to mux the data.
> Since your input is already in MPEG-TS format, perhaps you can just
> pipe it to UDP (using something like socat), instead of using ffmpeg?
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list