Postby peppy.player » 15 Aug 2019 05:36
There is the option "-" for reading from 'stdin': https://wiki.videolan.org/Uncommon_uses/
So I tried:
rtl_fm -M fm -l 0 -A std -p 0 -s 171k -g 20 -F 9 -f 97.3M | redsea -e | cvlc -
and got the following messages:
VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
[001b90c8] pulse audio output error: PulseAudio server connection failure: Connection refused
[001d3568] core interface error: no suitable interface module
[0011f918] core libvlc error: interface "globalhotkeys,none" initialization failed
[001d3568] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[001d3568] core interface error: no suitable interface module
[0011f918] core libvlc error: interface "dbus,none" initialization failed
[001d3568] dummy interface: using the dummy interface module...
Found Rafael Micro R820T tuner
Tuner gain set to 19.70 dB.
Tuned to 97642000 Hz.
Oversampling input by: 8x.
Oversampling output by: 1x.
Buffer size: 5.99ms
Exact sample rate is: 1368000.013046 Hz
Sampling at 1368000 S/s.
Output at 171000 Hz.
[mp3 @ 0x73836cf0] Header missing
[mp3 @ 0x73836cf0] Header missing
[mp3 @ 0x73836cf0] Header missing
...
So it looks like vlc cannot detect the input stream format.The same question still remains - how can I define the sample rate of the input stream?
Thanks!