首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从RTSP生成HTTP流

如何从RTSP生成HTTP流
EN

Stack Overflow用户
提问于 2017-02-28 16:47:52
回答 1查看 2.3K关注 0票数 0

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

我在有port 80http://127.0.0.1地址的ubuntu上安装了apache2。然后,我尝试使用documentation 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}'

但是我有这个错误日志:

代码语言:javascript
复制
 [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
EN

回答 1

Stack Overflow用户

发布于 2017-03-01 01:24:18

我认为你在repace中有一个拼写错误,试试这个:

代码语言:javascript
复制
--sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1}}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:80/go.mjpg}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42503993

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档