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

Fix Chinese cameras with wrong Session header after v1.4.0 #382

Closed
felipecrs opened this issue Apr 23, 2023 · 9 comments
Closed

Fix Chinese cameras with wrong Session header after v1.4.0 #382

felipecrs opened this issue Apr 23, 2023 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@felipecrs
Copy link
Contributor

felipecrs commented Apr 23, 2023

Logs:

2023-04-23 16:43:41.865121328  13:43:41.865 INF [streams] can't get track error="wrong response on SETUP"
2023-04-23 16:43:41.865266331  13:43:41.865 WRN github.com/AlexxIT/go2rtc/cmd/streams/producer.go:155 > error="start from CONN state" url=rtsp://admin:[email protected]:554/0/av1
2023-04-23 16:43:44.673791948  13:43:44.672 INF [streams] can't get track error="wrong response on SETUP"
2023-04-23 16:43:44.673799872  13:43:44.672 WRN github.com/AlexxIT/go2rtc/cmd/streams/producer.go:155 > error="start from CONN state" url=rtsp://admin:[email protected]:554/0/av1
2023-04-23 16:43:44.698315583  13:43:44.698 INF [streams] can't get track error="wrong response on SETUP"
2023-04-23 16:43:44.698638633  13:43:44.698 WRN github.com/AlexxIT/go2rtc/cmd/streams/producer.go:155 > error="start from CONN state" url=rtsp://admin:[email protected]:554/0/av1
2023-04-23 16:43:46.946739548  13:43:46.946 WRN [rtsp] error="exec: exit status 1" stream=rua
2023-04-23 16:43:46.996522418  13:43:46.996 INF [streams] can't get track error="wrong response on SETUP"

Configuration:

streams:
  rua:
    - rtsp://192.168.1.33:554/0/av1
    - "ffmpeg:rua#audio=aac"
  rua_hd:
    - rtsp://192.168.1.33:554/0/av0
    - rtsp://127.0.0.1:8554/rua?audio=aac
@felipecrs
Copy link
Contributor Author

Another note, with ffmpeg it seems to work:

streams:
  rua:
    - "ffmpeg:rtsp://192.168.1.33:554/0/av1#video=copy#audio=copy"
    - "ffmpeg:rua#audio=aac"
  rua_hd:
    - "ffmpeg:rtsp://192.168.1.33:554/0/av0#video=copy"
    - rtsp://127.0.0.1:8554/rua?audio=aac

@AlexxIT AlexxIT added the bug Something isn't working label Apr 23, 2023
@AlexxIT AlexxIT changed the title No longer works with one of my Chinese cameras after 1.4.0 Fix Chinese cameras with wrong Session header after v1.4.0 Apr 23, 2023
@AlexxIT AlexxIT self-assigned this Apr 23, 2023
@chex01
Copy link

chex01 commented Apr 23, 2023

I confirm, it worked on my Yi Ants camera.

streams:
  Spalnya:
    - ffmpeg:rtsp://10.10.10.23:554/ch0_0.h264#video=copy

@lolorc
Copy link

lolorc commented Apr 24, 2023

weird because it breaks connection to rtsp from mediatx (that I use to stream from my pi cam)
I went back to 2610f15 to have it working again.

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 24, 2023

@lolorc latest master broken but v1.4.0 works for you?

@lolorc
Copy link

lolorc commented Apr 24, 2023

@AlexxIT that's correct, but both work with my cheap yi cameras.

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 27, 2023

@lolorc once again - go2rtc master version can't get RTSP from Mediatx?

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 29, 2023

@lolorc you can try latest master version with another fix

@AlexxIT
Copy link
Owner

AlexxIT commented May 4, 2023

@AlexxIT AlexxIT closed this as completed May 4, 2023
@felipecrs
Copy link
Contributor Author

Thanks a ton, @AlexxIT. Amazing release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants