0

我有 LRP 摄像机,它在rtsp://172.16.4.6. 我以前VLC经常看这个流媒体。然后我需要ALPR Daemon用于传入流http://以识别相机捕获的车牌。根据文档中的应该只是http://. 因此,VLC我正在尝试将其转换/转码为正确的格式。什么问题,我不熟悉这个领域,没有时间学习基础。

我安装apache2ubuntu那个有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
4

1 回答 1

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}
于 2017-02-28T17:24:17.863 回答