VLC:如何通过HTTP流波

问题描述 投票:0回答:1

我想通过带有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

raspberry-pi vlc audio-streaming libvlc
1个回答
1
投票

并非所有编解码器都可以被多路复用,请勾选VLC documentation

当前只能在RTP中将PCM(wave)复用。

mux是流式传输所需的封装方法。 VLC中的wav是用于存储的容器。

© www.soinside.com 2019 - 2024. All rights reserved.