我有一个纯音频RTSP流,我可以使用以下管道播放此流:
gst-launch-1.0 rtspsrc location="rtsp://127.0.0.1:8554/test" ! rtpvorbisdepay ! decodebin ! autoaudiosink
但是,当我尝试用VLC打开它时:
vlc rtsp://127.0.0.1:8554/test
它不播放任何声音(尽管它确定了流的长度并“播放”)并且它将以下内容输出到控制台:
[00007f9ebc04fa80] vorbis decoder error: this bitstream does not contain Vorbis audio data
[00007f9ebc04fa80] vorbis decoder error: this bitstream does not contain Vorbis audio data
[00007f9ebc04fa80] vorbis decoder error: this bitstream does not contain Vorbis audio data
...等
用于播放流的管道:
str = g_strdup_printf ("( "
"filesrc location=%s ! oggdemux "
"! rtpvorbispay name=pay0 pt=96 " ")", argv[1]);
帮助?