bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
12.25k stars 1.53k forks source link

Stream title always changed to "Stream" #979

Closed vale-max closed 1 year ago

vale-max commented 2 years ago

Which version are you using?

v0.19.0

Which operating system are you using?

Describe the issue

Description When streaming from ffmpeg using Title metadata the title gets always changed to "Stream"

The conversation between ffmpeg and the server is:

OPTIONS rtsp://localhost:8554/virgin_radio RTSP/1.0
CSeq: 1
User-Agent: Lavf59.16.100

RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib

ANNOUNCE rtsp://localhost:8554/virgin_radio RTSP/1.0
Content-Type: application/sdp
CSeq: 2
User-Agent: Lavf59.16.100
Content-Length: 299

v=0
o=- 0 0 IN IP4 127.0.0.1
s=Dab radio
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 59.16.100
m=audio 0 RTP/AVP 96
b=AS:160
a=rtpmap:96 MPEG4-GENERIC/48000/2
a=fmtp:96 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=119056E500
a=control:streamid=0

Then the log between the server and mpv:

OPTIONS rtsp://raudio.lan:8554/virgin_radio RTSP/1.0
CSeq: 1
User-Agent: libmpv

RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib

DESCRIBE rtsp://raudio.lan:8554/virgin_radio RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: libmpv

RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://raudio.lan:8554/virgin_radio/
Content-Length: 257
Content-Type: application/sdp
Server: gortsplib

v=0
o=- 0 0 IN IP4 127.0.0.1
s=Stream
c=IN IP4 0.0.0.0
t=0 0
m=audio 0 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/48000/2
a=fmtp:96 profile-level-id=1; mode=AAC-hbr; sizelength=13; indexlength=3; indexdeltalength=3; config=119056e500
a=control:trackID=0

Describe how to replicate the issue

  1. start the server
  2. publish with: ffmpeg -re -stream_loop -1 -ar 48000 -ac 2 -f s16le -i $MYPIPE -vn -c:a aac -b:a 160k -metadata title="Dab radio" -f rtsp rtsp://localhost:$3/$4 >/dev/null 2>&1 &
  3. read with mpd or mpv

Did you attach the server logs?

no

Did you attach a network dump?

no

aler9 commented 2 years ago

This is currently unsupported but it can be a good enhancement.

robotiste commented 1 year ago

are we able to transfer the metadata in any of the protocol?

aler9 commented 1 year ago

The issue is that this kind of initial metadata is really protocol specific - we can surely support it, but we will never be able to entirely convert it from a protocol to another.

aler9 commented 1 year ago

Fixed by https://github.com/bluenviron/gortsplib/pull/371

aler9 commented 1 year ago

fixed in MediaMTX v1.0.1

github-actions[bot] commented 8 months ago

This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.