live777 icon indicating copy to clipboard operation
live777 copied to clipboard

Live777 whipinto/whepfrom RTSP BUG

Open a-wing opened this issue 7 months ago • 0 comments

WHIPINTO RTSP Server Is normal, No Bug

  • [ ] WHIPINTO RTSP Client
  • [x] WHEPFROM RTSP Server
  • [ ] WHEPFROM RTSP Client

WHIPINTO

WHIPINTO RTSP Server

Aa rtsp server receive stream

cargo run --bin=whipinto -- -i rtsp-listen://0.0.0.0:8550 -w http://localhost:7777/whip/test-rtsp --command \
        "ffmpeg -re -f lavfi -i sine=frequency=1000 -f lavfi -i testsrc=size=640x480:rate=30 -acodec libopus -vcodec libvpx -f rtsp 'rtsp://127.0.0.1:8550'"

another error:

thread 'main' panicked at src/whipinto.rs:51:6:
called `Result::unwrap()` on an `Err` value: Received empty SDP content
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: Recipe `test-whipinto-rtsp-pull` failed on line 25 with exit code 101

WHIPINTO RTSP Client

Aa rtsp client pull stream

./mediamtx

open http://localhost:8889/mystream/publish?video-codec=vp8%2F90000 use publish

Use ffplay is normal

ffplay rtsp://localhost:8554/mystream

But, use whipinto is failed

% cargo run --bin=whipinto -- -i rtsp://localhost:8554/mystream -w http://localhost:7777/whip/test-rtsp
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.34s
     Running `target/debug/whipinto -i 'rtsp://localhost:8554/mystream' -w 'http://localhost:7777/whip/test-rtsp'`
2025-04-19T08:30:21.432868Z ERROR ThreadId(01) livetwo::rtspclient: livetwo/src/rtspclient.rs:325: SETUP request failed with status: Bad Request

thread 'main' panicked at src/whipinto.rs:51:6:
called `Result::unwrap()` on an `Err` value: SETUP request failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

WHEPFROM RTSP Server

% cargo run --bin=whepfrom -- -o rtsp-listen://0.0.0.0:8551 -w http://localhost:7777/whep/test-rtsp --command "ffplay rtsp://localhost:8551/test-rtsp"
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.24s
     Running `target/debug/whepfrom -o 'rtsp-listen://0.0.0.0:8551' -w 'http://localhost:7777/whep/test-rtsp' --command 'ffplay rtsp://localhost:8551/test-rtsp'`
2025-04-19T08:35:23.351569Z  WARN ThreadId(12) livetwo::whep: livetwo/src/whep.rs:420: Connection state changed: connected
2025-04-19T08:35:24.339489Z  WARN ThreadId(13) livetwo::whep: livetwo/src/whep.rs:119: === RTSP listener started : 127.0.0.1:8551 ===

thread 'main' panicked at src/whepfrom.rs:51:6:
called `Result::unwrap()` on an `Err` value: No such file or directory (os error 2)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

NOTE: need wait RTSP listener, use ffplay rtsp://localhost:8551/test-rtsp is error

WHEPFROM RTSP Client

% cargo run --bin=whepfrom -- -o rtsp://localhost:8554/web-0 -w http://localhost:7777/whep/web-0
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s
     Running `target/debug/whepfrom -o 'rtsp://localhost:8554/web-0' -w 'http://localhost:7777/whep/web-0'`
2025-04-19T08:39:00.074044Z  WARN ThreadId(10) livetwo::whep: livetwo/src/whep.rs:420: Connection state changed: connected
2025-04-19T08:39:01.066001Z ERROR ThreadId(01) livetwo::rtspclient: livetwo/src/rtspclient.rs:524: No tracks found in SDP

thread 'main' panicked at src/whepfrom.rs:51:6:
called `Result::unwrap()` on an `Err` value: No tracks found in SDP
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

a-wing avatar Apr 19 '25 08:04 a-wing