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

Error getting rtsp stream: [RTSP source] invalid SDP: sdp: invalid syntax o=Channel1 3910280086 3910366486 IN IP4 #2762

Closed
2 of 13 tasks
v1ct0rv opened this issue Nov 29, 2023 · 4 comments
Labels
bug Something isn't working rtsp

Comments

@v1ct0rv
Copy link

v1ct0rv commented Nov 29, 2023

Which version are you using?

MediaMTX v1.3.1

Which operating system are you using?

Linux, using docker image bluenviron/mediamtx:latest-ffmpeg

  • 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

Describe how to replicate the issue

  1. Create docker compose file:
services:
  mediamtx:
    container_name: mediamtx
    image: bluenviron/mediamtx:latest-ffmpeg
    restart: unless-stopped
    network_mode: "host"
    volumes:
      - $PWD/mediamtx.yml:/mediamtx.yml
  1. create mediamtx.yml:
# Enable the HTTP API.
api: yes
# Address of the API listener.
apiAddress: 0.0.0.0:9997

# Settings in "pathDefaults" are applied anywhere,
# unless they are overridden in "paths".
pathDefaults:
  ###############################################
  # Default path settings -> Authentication

  # Username required to publish.
  # SHA256-hashed values can be inserted with the "sha256:" prefix.
  publishUser:
  # Password required to publish.
  # SHA256-hashed values can be inserted with the "sha256:" prefix.
  # echo -n "userpass" | openssl dgst -binary -sha256 | openssl base64
  publishPass:
  # IPs or networks (x.x.x.x/24) allowed to publish.
  publishIPs: []

  # Username required to read.
  # SHA256-hashed values can be inserted with the "sha256:" prefix.
  readUser:
  # password required to read.
  # SHA256-hashed values can be inserted with the "sha256:" prefix.
  readPass:
  # IPs or networks (x.x.x.x/24) allowed to read.
  readIPs: []

###############################################
# Path settings

# Settings in "paths" are applied to specific paths, and the map key
# is the name of the path.
# Any setting in "pathDefaults" can be overridden here.
# It's possible to use regular expressions by using a tilde as prefix,
# for example "~^(test1|test2)$" will match both "test1" and "test2",
# for example "~^prefix" will match all paths that start with "prefix".
paths:
  vvs-local-simulator-1/ch00/1:
    # Path to the source stream.
    source: rtsp://username:[email protected]/ch00/1/live.3gp
    sourceOnDemand: yes
    sourceProtocol: tcp
  # Settings under path "all_others" are applied to all paths that
  # do not match another entry.
  all_others:
  1. Start the server docker compose -up.
  2. Try to get the video http://localhost:8889/vvs-local-simulator-1/ch00/1/

Did you attach the server logs?

yes
mediamtx.log

Did you attach a network dump?

yes
network.zip

@aler9
Copy link
Member

aler9 commented Dec 1, 2023

Hello, please test this nightly release and let me know if it fixes the issue (click on "artifacts", "binaries"):

https://github.com/bluenviron/mediamtx/actions/runs/7063920372

aler9 added a commit to bluenviron/gortsplib that referenced this issue Dec 8, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Dec 8, 2023
@aler9
Copy link
Member

aler9 commented Dec 8, 2023

Fixed by #bluenviron/gortsplib#476

@aler9 aler9 closed this as completed Dec 8, 2023
@v1ct0rv
Copy link
Author

v1ct0rv commented Dec 12, 2023

It is working now! thanks! 🚀

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

Successfully merging a pull request may close this issue.

2 participants