我用libVLC编写了一个流服务器。一切都很顺利。我在流中使用这个参数
#transcode{vcodec=h264}: rtp{mux=ts,dst=239.255.255.239,sdp=sap,name=test"但是我也想缩减流音频文件的文件大小,比方说是原始文件大小的1/2。有什么方法可以用转码参数或其他方法来解决这个问题吗?
发布于 2015-08-22 12:35:43
其中一个VLC示例包含以下示例代码字符串:
MP4高中:
#transcode{vcodec=h264,venc=x264{cfr=16},scale=1,acodec=mp4a,ab=160,channels=2,samplerate=44100}MP4低:
#transcode{vcodec=h264,venc=x264{cfr=40},scale=1,acodec=mp4a,ab=96,channels=2,samplerate=44100}OGG High:
#transcode{vcodec=theo,venc=theora{quality=9},scale=1,acodec=vorb,ab=160,channels=2,samplerate=44100}奥格洛:
#transcode{vcodec=theo,venc=theora{quality=4},scale=1,acodec=vorb,ab=96,channels=2,samplerate=44100}WEBM高中
#transcode{vcodec=VP80,vb=2000,scale=1,acodec=vorb,ab=160,channels=2,samplerate=44100}WEBM低
#transcode{vcodec=VP80,vb=1000,scale=1,acodec=vorb,ab=96,channels=2,samplerate=44100}改变各种参数,如降低比特率,将减少媒体的大小.
https://stackoverflow.com/questions/32142887
复制相似问题