From 6212546315fccb968791aa125ed91fb23c91954b Mon Sep 17 00:00:00 2001 From: Jono Targett Date: Wed, 10 May 2023 10:45:48 +0930 Subject: [PATCH] Added support for streaming --- .gitignore | 3 ++- stream | 5 +++++ stream.sdp | 9 +++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 stream create mode 100644 stream.sdp diff --git a/.gitignore b/.gitignore index d37bde0..f19c848 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__/ dependencies/ -*.log \ No newline at end of file +*.log +*.wav diff --git a/stream b/stream new file mode 100755 index 0000000..06507d3 --- /dev/null +++ b/stream @@ -0,0 +1,5 @@ +#! /bin/bash + + +#rtl_sdr -f 105.5M -s 1M - | ./fm1s.py | ffmpeg -f s16le -ar 50k -ac 2 -i - -f rtp rtp://localhost:1234 +./demo.py | ./fm1s_int16.py | ffmpeg -f s16le -ar 50k -ac 2 -i - -f rtp rtp://localhost:1234 diff --git a/stream.sdp b/stream.sdp new file mode 100644 index 0000000..ed06266 --- /dev/null +++ b/stream.sdp @@ -0,0 +1,9 @@ +v=0 +o=- 0 0 IN IP4 127.0.0.1 +s=No Name +c=IN IP4 127.0.0.1 +t=0 0 +a=tool:libavformat 58.29.100 +m=audio 1234 RTP/AVP 97 +b=AS:800 +a=rtpmap:97 PCMU/50000/2