From 9a1b08b36a5ad75d93c0f87acfcdeb064dce6183 Mon Sep 17 00:00:00 2001 From: a-wing <1@233.email> Date: Mon, 26 Aug 2024 20:59:31 +0800 Subject: [PATCH] fix(docs): developer.md --- docs/guide/developer.md | 4 ++-- docs/zh/guide/developer.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guide/developer.md b/docs/guide/developer.md index 0953e3db..4605d971 100644 --- a/docs/guide/developer.md +++ b/docs/guide/developer.md @@ -65,8 +65,8 @@ cargo run --package=whepfrom So. We support parameter `command`, You can use this: ```bash -cargo run --package=whipinto -- -c vp8 -u http://localhost:7777/whip/777 --command \ -"ffmpeg -re -f lavfi -i testsrc=size=640x480:rate=30 -vcodec libvpx -f rtp 'rtp://127.0.0.1:{port}?pkt_size=1200'" +cargo run --package=whipinto -- -i stream.sdp -w http://localhost:7777/whip/777 --command \ +"ffmpeg -re -f lavfi -i testsrc=size=640x480:rate=30 -vcodec libvpx -f rtp 'rtp://127.0.0.1:5002' -sdp_file stream.sdp" ``` So. You can use this diff --git a/docs/zh/guide/developer.md b/docs/zh/guide/developer.md index bbbd8ed1..d9fa46e0 100644 --- a/docs/zh/guide/developer.md +++ b/docs/zh/guide/developer.md @@ -65,8 +65,8 @@ cargo run --package=whepfrom So. We support parameter `command`, You can use this: ```bash -cargo run --package=whipinto -- -c vp8 -u http://localhost:7777/whip/777 --command \ -"ffmpeg -re -f lavfi -i testsrc=size=640x480:rate=30 -vcodec libvpx -f rtp 'rtp://127.0.0.1:{port}?pkt_size=1200'" +cargo run --package=whipinto -- -i stream.sdp -w http://localhost:7777/whip/777 --command \ +"ffmpeg -re -f lavfi -i testsrc=size=640x480:rate=30 -vcodec libvpx -f rtp 'rtp://127.0.0.1:5002' -sdp_file stream.sdp" ``` So. You can use this