2017-02-28 364 views
0

我有在rtsp://172.16.4.6中产生RTSP流的LRP相机。我使用VLC来查看此流媒体。然后,我需要使用ALPR Daemon传递码流http://以识别摄像头拍摄的牌照。根据文档中应该只有http://。所以使用VLC我试图转换/转码为适当的格式。有什么问题,我不熟悉这个领域,没有时间学习基础知识。如何从RTSP制作HTTP流

我在apache2上安装了ubuntu那有port 80http://127.0.0.1的地址。然后我试图用一些方法从文档https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/,然后我试图$vlc -I http rtsp://172.16.4.6:554/HighResolutionVideo :sout='#transcode{vcodec=MJPG,vb=800,fps=5}:std{access=http{mime=multipart/x-mixed-repace},mux=mpjpeg,dst=127.0.0.1:80/go.mjpg,delay=0}'

但后来我有这样的错误日志:

[00007f5fb0001268] core access out error: socket bind error: Permission denied 
[00007f5fb0001268] core access out error: cannot create socket(s) for HTTP host 
[00007f5fb0001268] access_output_http access out error: cannot start HTTP server 
[00007f5fb0003388] stream_out_standard stream out error: no suitable sout access module for `http{mine=multipart/x-mixed-repace}/mpjpeg://172.0.0.1:80/go.mjpg' 
[00007f5fb0000b18] core stream output error: stream chain failed for `transcode{vcodec=MJPG,vb=800,fps=5}:std{access=http{mine=multipart/x-mixed-repace},mux=mpjpeg,dst=172.0.0.1:80/go.mjpg,delay=0}' 
[00007f5fb42929f8] core input error: cannot start stream output instance, aborting 
[00007f5fb0003388] access_output_http access out: Consider passing --http-host=IP on the command line instead. 
[00007f5fb0003388] core access out error: socket bind error: Permission denied 
[00007f5fb0003388] core access out error: cannot create socket(s) for HTTP host 
[00007f5fb0003388] access_output_http access out error: cannot start HTTP server 
[00007f5fb0001268] stream_out_standard stream out error: no suitable sout access module for `http{mine=multipart/x-mixed-repace}/mpjpeg://172.0.0.1:80/go.mjpg' 
[00007f5fb0000b18] core stream output error: stream chain failed for `transcode{vcodec=MJPG,vb=800,fps=5}:std{access=http{mine=multipart/x-mixed-repace},mux=mpjpeg,dst=172.0.0.1:80/go.mjpg,delay=0}' 
[00007f5fb42929f8] core input error: cannot start stream output instance, aborting 

回答

0

我认为你必须在repace一个错字,试试这个:

--sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1}}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:80/go.mjpg}