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

RTSP stream crashes and can't restart #115

Open
SaulMoonves opened this issue Apr 4, 2024 · 0 comments
Open

RTSP stream crashes and can't restart #115

SaulMoonves opened this issue Apr 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SaulMoonves
Copy link

XIU version
v0.12.6

Describe the bug
I am using the ffmpeg streaming command from the docs for RTSP. After a while, the stream crashes and then you are unable to start the stream again on the same URL and xiu has to be restarted.

To Reproduce

ffmpeg -re -stream_loop -1  -i my-file.mp4 -c:v copy  -c:a copy  -rtsp_transport tcp -f rtsp "rtsp://my-server/live/test?token=123"

It works for a while then crashes with:

[out#0/rtsp @ 0x600002da8780] Could not write header (incorrect codec parameters ?): Invalid data found when processing input
Error opening output file <url>.
Error opening output files: Invalid data found when processing input

Backend says:

Apr 04 10:15:02 falco xiu[32042]: [2024-04-04T10:15:02Z ERROR xrtsp::rtsp] session run error, err: bytes read error: not enough bytes to read
Apr 04 10:29:17 falco xiu[32042]: [2024-04-04T10:29:17Z DEBUG xrtsp::session] dollar sign: false
Apr 04 10:29:17 falco xiu[32042]: [2024-04-04T10:29:17Z DEBUG xrtsp::session] dollar sign: false
Apr 04 10:29:18 falco xiu[32042]: [2024-04-04T10:29:18Z INFO  xrtsp::session] media_name: video
Apr 04 10:29:18 falco xiu[32042]: thread 'tokio-runtime-worker' panicked at protocol/rtsp/src/session/mod.rs:679:26:
Apr 04 10:29:18 falco xiu[32042]: called `Option::unwrap()` on a `None` value
Apr 04 10:29:18 falco xiu[32042]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It is doing this with every file I try. After this happens I have to restart xiu because retrying doesn't work after that point.

Expected behavior
no errors

@harlanc harlanc added the bug Something isn't working label Apr 10, 2024
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

2 participants