我想通过带有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
并将多路复用器更改为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