Потоковое аудио из STDIN через VLC для SDR - PullRequest
0 голосов
/ 13 декабря 2018

Я пытаюсь получить аудиопоток с Raspberry pi 2 на рабочий стол Windows.

RTL SDR на моем пи отлично работает при использовании spyserver, но есть некоторые определенные приложения, которые не могут подключиться к немунапример, метеоритный детектор

Потоковая передача звука с пи на мой рабочий стол может работать с устройством ввода стереомикшера

Моя идея - использовать VLC, но не могу понять

$ rtl_fm -f 143.050 -M wbfm -s 180k -E deemp | cvlc - -v --sout '#standard{access=http,mux=ogg,dst=localhost:8080}'
VLC media player 3.0.3 Vetinari (revision 3.0.3-1-0-gc2bb759264)
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
[01d919d8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[01d919d8] main interface error: no suitable interface module
[01d14938] main libvlc error: interface "dbus,none" initialization failed
[01d92be8] main interface error: no suitable interface module
[01d14938] main libvlc error: interface "globalhotkeys,none" initialization failed
[01d92c50] dummy interface: using the dummy interface module...
[73a01670] http access out warning: "localhost" HTTP host might be ignored in multiple-host configurations, use at your own risks.
[73a01670] http access out: Consider passing --http-host=IP on the command line instead.
[73a02dd0] mux_ogg mux: Open
Found Rafael Micro R820T tuner
Tuner gain set to automatic.
[R82XX] PLL not locked!
Tuned to 286143 Hz.
Oversampling input by: 6x.
Oversampling output by: 1x.
Buffer size: 7.59ms
Exact sample rate is: 1080000.025749 Hz
[R82XX] PLL not locked!
Sampling at 1080000 S/s.
Output at 180000 Hz.
[73a070b8] ps demux warning: this does not look like an MPEG PS stream, continuing anyway
[73a070b8] ps demux warning: garbage at input from 509, trying to resync...
[73a070b8] ps demux warning: found sync code
[73a070b8] ps demux warning: garbage at input from 89140, trying to resync...
[73a070b8] ps demux warning: found sync code
[73a070b8] ps demux warning: garbage at input from 195382, trying to resync...
[73a070b8] ps demux warning: found sync code
[73a070b8] ps demux warning: garbage at input from 279916, trying to resync...
[73a070b8] ps demux warning: found sync code
[73a070b8] ps demux warning: garbage at input from 326867, trying to resync...
[73a070b8] ps demux warning: found sync code
[73a070b8] ps demux warning: garbage at input from 434452, trying to resync...
[73a070b8] ps demux warning: found sync code
[73a070b8] ps demux warning: garbage at input from 438851, trying to resync...
[73a070b8] ps demux warning: found sync code
[73a070b8] ps demux warning: garbage at input from 454391, trying to resync...
[73a070b8] ps demux warning: found sync code
[73a070b8] ps demux warning: garbage at input from 547348, trying to resync...

Я подумал, что мог бы послать вывод rtl_fm в ffmpeg, а затем в vlc, но я просто не могу выяснить, какие опции мне нужны.

$ rtl_fm -f 143.050 -M wbfm -s 180k -E deemp | ffmpeg -acodec pcm_u8 -f oga - | vlc - -I dummy --sout '#standard{access=http,mux=ogg,dst=localhost:8080}'

Это дает аналогичный вывод выше сразличия ниже

Output #0, oga, to 'pipe:':
Output file #0 does not contain any stream
Signal caught, exiting!

User cancel, exiting...
[739070b8] mjpeg demux error: cannot peek
[73c00520] main input error: Your input can't be opened
[73c00520] main input error: VLC is unable to open the MRL 'fd://0'. Check the log for details.
[73902dd0] mux_ogg mux: Close
...