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

ERR: invalid transport header: encoding/hex: odd length hex string #396

Closed
5 tasks
eljefe80 opened this issue May 21, 2021 · 8 comments
Closed
5 tasks

ERR: invalid transport header: encoding/hex: odd length hex string #396

eljefe80 opened this issue May 21, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@eljefe80
Copy link

Which version are you using?

v0.16.1 from docker hub

Which operating system are you using?

OS

  • [ x] Linux
  • Windows
  • macOS

Architecture

  • [ x] amd64
  • arm64
  • arm7
  • arm6

Describe the issue

I have a no-name ip camera that does not seem to be working with rtsp-simple-server. The error is as stated in the title:

ERR: invalid transport header: encoding/hex: odd length hex string

I have attached a tcpdump capture of the interchange between rtsp-simple server and this ip camera

Describe how to replicate the issue

  1. start the server

Did you attach a network dump?

yes
rtsp-simple-server-failure.txt
rtsp-simple-server-logs.txt

@aler9 aler9 added the bug Something isn't working label May 29, 2021
@aler9
Copy link
Member

aler9 commented May 29, 2021

Hello, thanks for reporting this issue and providing the logs, your camera is sending these kinds of (invalid) hex values:

ssrc=4317f

I can add support for your camera, but i need to understand if this value corresponds to 4317f0 or to 04317f; in order to do this, i need a dump of the RTP packets between the camera and the server, that can be generated in this way:

  1. Download wireshark (https://www.wireshark.org/)
  2. Start capturing on the interface used for exchanging RTSP (the one of your network card)
  3. Start reading the camera stream with VLC
  4. Stop capturing after some seconds, save the result in .pcap format
  5. Attach

@eljefe80
Copy link
Author

Wireshark capture file attached.

Thanks!

vlc-ipcam-dump.txt

@aler9
Copy link
Member

aler9 commented May 29, 2021

Thanks, it seems that

4317f

is

04317f

This is supported in main and will be added to the next release.

@eljefe80
Copy link
Author

Hi, this seems to have moved us forward, but I'm getting a new error:

ERR: invalid transport header: invalid SSRC

Should I open a new ticket for this?

Thanks!

aler9 added a commit to bluenviron/gortsplib that referenced this issue May 29, 2021
@aler9
Copy link
Member

aler9 commented May 29, 2021

I did another change, please try again with the latest main.

@koshkamau
Copy link

Hi!
I have a camera from "VOLDRELI 0322 Store" on Aliexpress.
I tried the latest prebiult version of this rtsp-server and got an error message "[path proxied1] [rtsp source] ERR: invalid transport header: encoding/hex: odd length hex string".
Then I tried as suggested in the last message and everything works fine for now.

I just found out about this rtsp-simple-server but it looks very promising.
Thank you :)

@aler9
Copy link
Member

aler9 commented May 30, 2021

added to v0.16.2

@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2023

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 Jan 1, 2023
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