RTL-SDR (WEB) STREAMING []

Outils pour utilisateurs

Outils du site


RTL-SDR (WEB) STREAMING

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
documentation:hamradio:sdr:rtl_sdr:streaming:index [2021/12/10 15:22] f1slsdocumentation:hamradio:sdr:rtl_sdr:streaming:index [2021/12/10 17:57] (Version actuelle) – [AUTOMATIC RECORDER] f1sls
Ligne 53: Ligne 53:
 ==== Start Stream ==== ==== Start Stream ====
 Now that the Nginx RTMP endpoint is available for streams, start the stream by running rtl_fm tuned to an FM frequency that is available in your local region. Note that we are only using wideband-FM (typical FM radio) as an example - any frequency range can work for this setup: Now that the Nginx RTMP endpoint is available for streams, start the stream by running rtl_fm tuned to an FM frequency that is available in your local region. Note that we are only using wideband-FM (typical FM radio) as an example - any frequency range can work for this setup:
- 
 <code bash> <code bash>
 $ rtl_fm -f 107.9e6 -M wbfm -s 200k -A std -l 0 -r 48k - | ffmpeg -f s16le -ac 1 -i pipe:0 -ab 128k -f flv rtmp://localhost:1935/live/test $ rtl_fm -f 107.9e6 -M wbfm -s 200k -A std -l 0 -r 48k - | ffmpeg -f s16le -ac 1 -i pipe:0 -ab 128k -f flv rtmp://localhost:1935/live/test
-The above will take the FM station 107.9 FM and pipe it to ffmpeg, which will stream to the RTMP endpoint. Your live stream is now available through the Nginx RTMP endpoint. 
 </code> </code>
 +The above will take the FM station 107.9 FM and pipe it to ffmpeg, which will stream to the RTMP endpoint. Your live stream is now available through the Nginx RTMP endpoint.
 +
  
 ==== Consume Stream ==== ==== Consume Stream ====
Ligne 69: Ligne 69:
 ==== Next Steps ==== ==== Next Steps ====
 Now that you have an RTMP streaming server in place and a way to send audio from local airwaves to it, the possibilities are endless. This configuration allows for multiple consumers at the same time, meaning you can have multiple endpoints all accessing the radio streams. The only limitation is the available processing power for the Raspberry Pi device to take on however many concurrent connections you want to throw at it! Now that you have an RTMP streaming server in place and a way to send audio from local airwaves to it, the possibilities are endless. This configuration allows for multiple consumers at the same time, meaning you can have multiple endpoints all accessing the radio streams. The only limitation is the available processing power for the Raspberry Pi device to take on however many concurrent connections you want to throw at it!
 +
 +----
 +
 +===== COMPLEMENTS =====
 +<code bash>
 +rtl_fm -p 78 -s 12.5k -f 145.5M | ffmpeg -f s16le -channels 1 -sample_rate 12.5k -i pipe:0 -f flv rtmp://localhost:7388
 +</code>
 +
 +==== INDEPENDANT STREAM ====
 +<code bash>
 +rtl_fm -p 78 -s 12.5k -f 145.5M | sox -traw -r12.5k -es -b16 -c1 -V1 - -tmp3 - | socat -u - TCP-LISTEN:7388
 +</code>
 +----
 +<code bash>
 +rtl_fm -p 78 -s 12.5k -f 145.5M | lame -b 32 -r -s 22.050 -m m - | socat -u - TCP-LISTEN:7388
 +</code>
 +
 +==== AUTOMATIC RECORDER ====
 +<code bash>
 +rtl_fm -p 78 -f 145.5M -f 433.5M -l 150 -s 12k - | sox --buffer 128 -t raw -r 12k -es -b 16 -c 1 - -p sinc 200-3.5k compand 0.1,0.8 6:0,-3 | tee >(sox -p </tmp/record.mp3>) | play --buffer 128 -p
 +</code>
documentation/hamradio/sdr/rtl_sdr/streaming/index.1639146158.txt.gz · Dernière modification : de f1sls