通过VLC从STDIN传输音频以进行SDR

时间:2018-12-13 15:48:15

标签: ffmpeg raspberry-pi vlc

我正在尝试从Raspberry pi 2到Windows桌面的音频流。

使用spyserver时,我的pi上的RTL SDR很棒,但是某些某些应用程序无法连接到它,例如回声流星探测器

将音频从pi流传输到我的桌面可以与立体声混音器输入设备一起使用

我的想法是使用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

0 个答案:

没有答案