【发布时间】:2020-01-08 13:14:29
【问题描述】:
我想使用 VLC 通过 HTTP 从我的 rapsberry 麦克风流式传输。
这个命令可以正常工作:
vlc -vvv alsa://hw:1,0 --sout '#transcode{vcodec=none,acodec=mpga,ab=128,channels=2,samplerate=44100}:standard{access=http,mux=mp3,dst=192.168.178.30:8080}'
但是当将代码更改为 s16l 并将 mux 更改为 wav 时,我在 VLC 中听不到任何声音。
这是我尝试过的命令:
vlc -vvv alsa://hw:1,0 --sout '#transcode{vcodec=none,acodec=s16l,channels=1,samplerate=16000,scodec=none}:standard{access=http,mux=wav,dst=192.168.178.30:8080}'
使用 RTP 的相同编解码器可以工作:
vlc -vvv alsa://hw:1,0 --sout '#transcode{vcodec=none,acodec=s16l,channels=1,samplerate=16000,scodec=none}:rtp{dst=192.168.178.30,port=1234,sdp=rtsp://192.168.178.30:8080/test.sdp}'
一些日志:https://gist.github.com/timaschew/9e7e027cd1b371b01b0f186f23b47068
【问题讨论】:
标签: raspberry-pi vlc audio-streaming libvlc