Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用vlc将视频流传输到android_Android_Video Streaming_Vlc_Transcoding - Fatal编程技术网

使用vlc将视频流传输到android

使用vlc将视频流传输到android,android,video-streaming,vlc,transcoding,Android,Video Streaming,Vlc,Transcoding,我按如下方式启动服务器: vlc --ttl 12 -vvv --color -I telnet --telnet-password something --rtsp-host localhost:5544 然后,我将telnet连接到服务器并执行以下操作: new test vod setup test output #transcode{vcodec=h264,vb=256,fps=20,scale=0,width=320,height=180,acodec=mp3,ab=64,chann

我按如下方式启动服务器:

vlc --ttl 12 -vvv --color -I telnet --telnet-password something --rtsp-host localhost:5544
然后,我将telnet连接到服务器并执行以下操作:

new test vod
setup test output #transcode{vcodec=h264,vb=256,fps=20,scale=0,width=320,height=180,acodec=mp3,ab=64,channels=1,samplerate=22050}
setup test input "/home/snot/Desktop/stream/Abby Main.wmv"
setup test enabled
我似乎找不到合适的转码参数,因为无论我输入哪个设备都不会播放视频

就我个人而言,我使用的是安卓4.0.3,但我希望它能在2.3.3版和更低版本上运行。但现在,我很高兴能在某个版本上工作

感谢您的帮助


Seb

视频必须使用h264设置进行编码,这些设置统称为“基线配置文件”。Android真的很讨厌b帧

我用这个:

转码{vcodec=h264,width=320,vb=110,venc=x264{keyint=5,vbv bufsize=250,vbv maxrate=110,partitions=all,level=3.1,ratetol=0.1,bframes=0},acodec=mp4a,ab=24,channels=1,samplerate=44100,去交错,音频同步}); ^^我认为它拥有android喜欢的基线配置文件中的大部分设置(对我来说很有用),或者你可以尝试使用实际的配置文件