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

Converting RTMP to RTSP is not working when there is audio #932

Closed
1 of 13 tasks
TKFRvisionOfficial opened this issue Apr 30, 2022 · 8 comments
Closed
1 of 13 tasks
Labels
bug Something isn't working

Comments

@TKFRvisionOfficial
Copy link

Which version are you using?

v0.18.1

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

If you stream via rtmp and receive via rtsp the stream freezes after three seconds. Receiving with rtmp does work.

Describe how to replicate the issue

  1. https://github.com/aler9/rtsp-simple-server#from-obs-studio
  2. Watch rtsp stream using mpv
@Enverex
Copy link

Enverex commented May 11, 2022

Seeing the same issue with the current GIT version. Streams published via RTMP aren't available as RTSP.

@aler9
Copy link
Member

aler9 commented May 12, 2022

Hello, i was able to replicate the issue, it seems specific to mpv player.
ffmpeg, GStreamer and VLC all works when reading with RTSP a stream that is being published with RTMP.
mpv doesn't work when the stream contains video and audio, or contains audio only.
Will investigate further.

@aler9 aler9 added the bug Something isn't working label May 12, 2022
@aler9 aler9 changed the title Converting RTMP to RTSP is not working Converting RTMP to RTSP is not working when reading with mpv May 12, 2022
@aler9 aler9 changed the title Converting RTMP to RTSP is not working when reading with mpv Converting RTMP to RTSP is not working when there is audio May 13, 2022
@aler9
Copy link
Member

aler9 commented May 13, 2022

Thanks for reporting this bug, it has been fixed. It was caused by the fact that the server was advertising payload type "96" for the audio track, but was encoding audio with payload type "97". You can check that everything is all right by using this nightly version:
[link removed]

@Enverex
Copy link

Enverex commented May 13, 2022

For the record I still cannot have a RTMP source read back as RTSP, the logs show:

May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53089] closed (VersionInvalid(79))
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53090] opened
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53090] closed (VersionInvalid(68))
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53091] opened
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53091] closed (VersionInvalid(83))
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53092] opened
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53092] closed (VersionInvalid(79))
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53093] opened
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53093] closed (VersionInvalid(79))
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53094] opened
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53094] closed (VersionInvalid(68))
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53095] opened
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53095] closed (VersionInvalid(83))
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53096] opened
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53096] closed (VersionInvalid(79))
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53097] opened
May 13 17:16:03 17:16:03 INF [RTMP] [conn (ipremoved):53097] closed (VersionInvalid(79))
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53098] opened
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53098] closed (VersionInvalid(68))
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53099] opened
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53099] closed (VersionInvalid(83))
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53100] opened
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53100] closed (VersionInvalid(79))
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53101] opened
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53101] closed (VersionInvalid(79))
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53102] opened
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53102] closed (VersionInvalid(68))
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53103] opened
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53103] closed (VersionInvalid(83))
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53104] opened
May 13 17:16:04 17:16:04 INF [RTMP] [conn (ipremoved):53104] closed (VersionInvalid(79))
May 13 17:16:05 17:16:05 INF [RTMP] [conn (ipremoved):53105] opened
May 13 17:16:05 17:16:05 INF [RTMP] [conn (ipremoved):53105] closed (VersionInvalid(79))
May 13 17:16:05 17:16:05 INF [RTMP] [conn (ipremoved):53106] opened
May 13 17:16:05 17:16:05 INF [RTMP] [conn (ipremoved):53106] closed (VersionInvalid(68))
May 13 17:16:05 17:16:05 INF [RTMP] [conn (ipremoved):53107] opened
May 13 17:16:05 17:16:05 INF [RTMP] [conn (ipremoved):53107] closed (VersionInvalid(83))
May 13 17:16:05 17:16:05 INF [RTMP] [conn (ipremoved):53108] opened
May 13 17:16:05 17:16:05 INF [RTMP] [conn (ipremoved):53108] closed (VersionInvalid(79))
May 13 17:16:07 17:16:07 INF [RTMP] [conn (ipremoved):53109] opened
May 13 17:16:07 17:16:07 INF [RTMP] [conn (ipremoved):53109] closed (VersionInvalid(79))
May 13 17:16:07 17:16:07 INF [RTMP] [conn (ipremoved):53110] opened
May 13 17:16:07 17:16:07 INF [RTMP] [conn (ipremoved):53110] closed (VersionInvalid(68))
May 13 17:16:07 17:16:07 INF [RTMP] [conn (ipremoved):53111] opened
May 13 17:16:07 17:16:07 INF [RTMP] [conn (ipremoved):53111] closed (VersionInvalid(83))```

@aler9
Copy link
Member

aler9 commented May 13, 2022

@Enverex that is evidently another problem. Please open another issue and follow the instructions in order to provide data needed to replicate the issue (for instance, which client are you using?).

@Enverex
Copy link

Enverex commented May 13, 2022

Will do.

@aler9
Copy link
Member

aler9 commented May 19, 2022

added in v0.18.4.

@aler9 aler9 closed this as completed May 19, 2022
@github-actions
Copy link
Contributor

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 Dec 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants