Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream title always changed to "Stream" #979

Closed
1 of 13 tasks
vale-max opened this issue Jun 8, 2022 · 6 comments
Closed
1 of 13 tasks

Stream title always changed to "Stream" #979

vale-max opened this issue Jun 8, 2022 · 6 comments
Labels
enhancement New feature or request rtsp

Comments

@vale-max
Copy link

vale-max commented Jun 8, 2022

Which version are you using?

v0.19.0

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe)

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
Copy link
Member

aler9 commented Jun 22, 2022

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

@aler9 aler9 added the enhancement New feature or request label Jun 22, 2022
@aler9 aler9 added the rtsp label Jan 24, 2023
@robotiste
Copy link

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

@aler9
Copy link
Member

aler9 commented Jul 19, 2023

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 added a commit to bluenviron/gortsplib that referenced this issue Aug 22, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Aug 22, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Aug 22, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Aug 22, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Aug 22, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Aug 22, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Aug 22, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Aug 22, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Aug 22, 2023
@aler9
Copy link
Member

aler9 commented Aug 22, 2023

Fixed by bluenviron/gortsplib#371

@aler9 aler9 closed this as completed Aug 22, 2023
@aler9
Copy link
Member

aler9 commented Aug 30, 2023

fixed in MediaMTX v1.0.1

Copy link
Contributor

github-actions bot commented Mar 3, 2024

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.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request rtsp
Projects
None yet
Development

No branches or pull requests

3 participants