[FFmpeg-user] mpegts metadata not set

Christian Knoefel | Ilm-Provider christian.knoefel at ilm-provider.de
Thu Jun 28 17:33:13 EEST 2018


Hello,


Am 28.06.2018 um 00:54 schrieb Carl Eugen Hoyos:
> 2018-06-27 16:28 GMT+02:00, Christian Knoefel | Ilm-Provider
> <christian.knoefel at ilm-provider.de>:
>
>> 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 it is:


Call:
c:\ffmpeg\ffmpeg-istuff -re -i 
rtmp://rtmp.cdn.fem-net.de/rtmp/istuff_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 
-f rtp_mpegts -metadata service_provider="Some provider" -metadata 
service_name="Some Channel" rtp://192.168.1.244:5000?pkt_size=1316

(now i have set metadata after "rtp-mpegts")

c:\ffmpeg>ffmpeg -re -i rtmp://rtmp.cdn.fem-net.de/rtmp/istuff_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 -f rtp_mpegts -metadata service_provider="Some 
provider" -metadata service_name="Some Channel" 
rtp://127.0.0.1:5000?pkt_size=1316
ffmpeg version N-91330-ga990184007 Copyright (c) 2000-2018 the FFmpeg 
developers
   built with gcc 7.3.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-libopencore-amrnb 
--enable-libopencore-amrwb --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-libvo-amrwbenc --enable-libmysofa 
--enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx 
--enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va 
--enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
   libavutil      56. 18.102 / 56. 18.102
   libavcodec     58. 20.103 / 58. 20.103
   libavformat    58. 17.100 / 58. 17.100
   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
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), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 1k 
tbn, 100 tbc
[udp @ 000001eeee230fc0] 'circular_buffer_size' option was set but it is 
not supported on this build (pthread support is required)
[udp @ 000001eeedd20e80] 'circular_buffer_size' option was set but it is 
not supported 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.17.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.20.103 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.20.103 mp2
frame= 1583 fps= 25 q=2.0 size=   43825kB time=00:01:03.38 
bitrate=5663.8kbits/s dup=0 drop=1579 speed=0.999x


it brings:

c:\ffmpeg>ffprobe rtp://127.0.0.1:5000
ffprobe version N-91330-ga990184007 Copyright (c) 2007-2018 the FFmpeg 
developers
   built with gcc 7.3.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-libopencore-amrnb 
--enable-libopencore-amrwb --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-libvo-amrwbenc --enable-libmysofa 
--enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx 
--enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va 
--enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
   libavutil      56. 18.102 / 56. 18.102
   libavcodec     58. 20.103 / 58. 20.103
   libavformat    58. 17.100 / 58. 17.100
   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 @ 000001e79550ddc0] 'circular_buffer_size' option was set but it is 
not supported on this build (pthread support is required)
[udp @ 000001e79550dec0] 'circular_buffer_size' option was set but it is 
not supported on this build (pthread support is required)
[udp @ 000001e795510200] 'circular_buffer_size' option was set but it is 
not supported on this build (pthread support is required)
[udp @ 000001e795510300] 'circular_buffer_size' option was set but it is 
not supported on this build (pthread support is required)
[mpeg2video @ 000001e795511a00] Invalid frame dimensions 0x0.
     Last message repeated 2 times
Input #0, rtp, from 'rtp://127.0.0.1:5000':
   Duration: N/A, start: 31.443144, bitrate: 5192 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv, bottom first), 720x576 [SAR 64:45 DAR 16:9], 5000 kb/s, 25 
fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 
s16p, 192 kb/s

c:\ffmpeg>

with another Provider and name...


shure, mpegts is old, but the encoder-pc should send the stream to an 
DVB-C Modulator, that only understand mpeg-ts. I will not lokk the 
program over an VLC or someone else...


thank you.
Christian

>
> 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
> _______________________________________________
> 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