使用 VLC over http 流式传输 MP4 视频没有音频

No audio from streaming MP4 video using VLC over http

我尝试使用 VLC 播放器流式传输我的视频文件。我选择 http 传输协议和 MP4 编码器 (H.264 + MP3(MP4))。并自动获得下一个命令行预设:

:sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:8080/} :sout-all :sout-keep

流媒体播放效果很好,但没有声音。 我在 Windows 上的 PC localhost 和本地网络上启动了它,但我没有 results.If 我将编码器更改为 H.264 + MP3 TS:

:sout=#transcode{vcodec=h264,vb=800,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ts,dst=:9000/}

如果我将传输协议更改为 RTSP(或 RTP),声音将开始使用任何类型的编码器播放。 F.e:

:sout=#transcode{vcodec=h264,scale=auto,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:9000/test} :sout-all :sout-keep

为什么使用编码器 (H.264 + MP3(MP4)) 无法播放声音?

Streaming is works great but no audio sound...

尝试使用 acodec=mp3acodec=aac,因为它们是 FLV 容器支持的格式。

示例:

:sout=#transcode{vcodec=h264,acodec=mp3,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:8080/} :sout-all :sout-keep