[FFmpeg-user] mpegts metadata not set

Christian Knoefel | Ilm-Provider christian.knoefel at ilm-provider.de
Wed Jun 27 17:28:26 EEST 2018


Hello,


i will remux an ts:

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

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


wit ffplay looks like this:

Input #0, rtp, from 'rtp://127.0.0.1:5000':   0KB sq=    0B f=0/0
   Duration: N/A, start: 91.443144, 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, bottom 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

Why metadate are not set?

it is the newest 64bit windows build...


thanks for your suggestion...

Christian




More information about the ffmpeg-user mailing list