[FFmpeg-user] mpegts metadata not set

Kopfstation Geschwenda kopfstation at ilm-provider.de
Mon Jul 2 10:10:17 EEST 2018


Hello,
> >/ffmpeg -re -i rtmp://live.net/rtmp/live -vcodec mpeg2video -s 720x576 -r />/25 -flags cgop+ilme -sc_threshold 1000000000 -b:v 5M -minrate:v 5M />/-maxrate:v 5M -bufsize:v 3.5M -acodec mp2 -ac 2 -b:a 192k -metadata />/"service_provider=Some Provider" -metadata "service_name=Some Channel />/Name" -f rtp_mpegts rtp://127.0.0.1:5000?pkt_size=1316 /
> Complete, uncut console output missing.
o.k.

here is the complete output:

  c:\ffmpeg>ffmpeg -re -i rtmp://rtmp.cdn.fem-net.de/rtmp/istuff_live -vcodec mpeg
2video -s 720x576 -r 25 -flags cgop+ilme -sc_threshold 1000000000 -b:v 5M -minra
te:v 5M -maxrate:v 5M -bufsize:v 3.5M -acodec mp2 -ac 2 -b:a 192k -f rtp_mpegts
-metadata service_provider="Some provider" -metadata service_name="Some Channel"
  rtp://127.0.0.1:5000?pkt_size=1316
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
   built with gcc 7.3.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --e
nable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libblur
ay --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enab
le-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-li
bvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --en
able-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enabl
e-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enabl
e-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enab
le-dxva2 --enable-avisynth
   libavutil      56. 14.100 / 56. 14.100
   libavcodec     58. 18.100 / 58. 18.100
   libavformat    58. 12.100 / 58. 12.100
   libavdevice    58.  3.100 / 58.  3.100
   libavfilter     7. 16.100 /  7. 16.100
   libswscale      5.  1.100 /  5.  1.100
   libswresample   3.  1.100 /  3.  1.100
   libpostproc    55.  1.100 / 55.  1.100
Input #0, flv, from 'rtmp://rtmp.cdn.fem-net.de/rtmp/istuff_live':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp
     Stream #0:1: Video: h264 (Constrained Baseline), yuv420p(progressive), 1280x
720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 1k tbn, 100 tbc
[udp @ 00000000021e0080] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[udp @ 00000000021e0180] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
Stream mapping:
   Stream #0:1 -> #0:0 (h264 (native) -> mpeg2video (native))
   Stream #0:0 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
Output #0, rtp_mpegts, to 'rtp://127.0.0.1:5000?pkt_size=1316':
   Metadata:
     service_provider: Some provider
     service_name    : Some Channel
     encoder         : Lavf58.12.100
     Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9]
, q=2-31, 5000 kb/s, 25 fps, 90k tbn, 25 tbc
     Metadata:
       encoder         : Lavc58.18.100 mpeg2video
     Side data:
       cpb: bitrate max/min/avg: 5000000/5000000/5000000 buffer size: 3500000 vbv
_delay: -1
     Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
     Metadata:
       encoder         : Lavc58.18.100 mp2
frame=    8 fps=0.0 q=2.0 size=      94kB time=00:00:00.52 bitrate=1456.9kbits/s
frame=   21 fps= 20 q=2.0 size=     450kB time=00:00:01.02 bitrate=3577.5kbits/s
frame=   34 fps= 22 q=2.0 size=     797kB time=00:00:01.53 bitrate=4257.0kbits/s
frame=   46 fps= 22 q=2.0 size=    1130kB time=00:00:02.06 bitrate=4489.4kbits/s
frame=   59 fps= 23 q=2.0 size=    1491kB time=00:00:02.58 bitrate=4715.1kbits/s
frame=   72 fps= 23 q=2.0 size=    1854kB time=00:00:03.09 bitrate=4907.9kbits/s
frame=   85 fps= 24 q=2.0 size=    2213kB time=00:00:03.62 bitrate=5005.8kbits/s
frame=   98 fps= 24 q=1.6 size=    2600kB time=00:00:04.12 bitrate=5161.3kbits/s
frame=  111 fps= 24 q=2.0 size=    2948kB time=00:00:04.62 bitrate=5216.0kbits/s
frame=  124 fps= 24 q=2.0 size=    3296kB time=00:00:05.15 bitrate=5235.5kbits/s
frame=  127 fps= 22 q=2.0 size=    3380kB time=00:00:05.30 bitrate=5222.3kbits/s
frame=  149 fps= 24 q=2.0 size=    3989kB time=00:00:06.16 bitrate=5299.6kbits/s
frame=  162 fps= 24 q=2.0 size=    4353kB time=00:00:06.71 bitrate=5308.1kbits/s
frame=  175 fps= 24 q=2.0 size=    4713kB time=00:00:07.22 bitrate=5345.5kbits/s
frame=  188 fps= 24 q=2.0 size=    5072kB time=00:00:07.72 bitrate=5378.1kbits/s
frame=  201 fps= 24 q=2.0 size=    5435kB time=00:00:08.25 bitrate=5394.3kbits/s
frame=  204 fps= 24 q=2.0 Lsize=    5552kB time=00:00:08.37 bitrate=5431.3kbits/


returns into:


c:\ffmpeg>ffprobe.exe rtp://127.0.0.1:5000
ffprobe version N-91378-g3f953379e1 Copyright (c) 2007-2018 the FFmpeg developer
s
   built with gcc 7.3.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --e
nable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libblur
ay --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enab
le-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-li
bvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --en
able-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enabl
e-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enabl
e-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enab
le-dxva2 --enable-avisynth
   libavutil      56. 18.102 / 56. 18.102
   libavcodec     58. 20.104 / 58. 20.104
   libavformat    58. 17.101 / 58. 17.101
   libavdevice    58.  4.101 / 58.  4.101
   libavfilter     7. 25.100 /  7. 25.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100
[udp @ 00000000020ddd40] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[udp @ 00000000020f0b80] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[udp @ 00000000020e0680] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[udp @ 0000000002113100] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[mpeg2video @ 0000000002139640] Invalid frame dimensions 0x0.
     Last message repeated 4 times
Input #0, rtp, from 'rtp://127.0.0.1:5000':
   Duration: N/A, start: 22.672811, bitrate: 5192 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:1: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, b
ottom first), 720x576 [SAR 64:45 DAR 16:9], 5000 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
     Stream #0:0: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192
  kb/s

c:\ffmpeg>


The Stream is for an DVB-C Modulator, that only understud mpegts.

Thank you for your suggestions.



> This seems to be a limitation / bug in the rtp_mpegts muxer.
>
> I don't think there is more than one way to put title and provider
> into mpegts.
>
> Carl Eugen



More information about the ffmpeg-user mailing list