首页 > 其他 > 详细

rtsp流转mjpeg使用vlc

时间:2017-01-07 10:55:50      阅读:1249      评论:0      收藏:0      [点我收藏+]

测试环境:

       系统: Ubuntu14.04 LTS Desktop

       码流:海康IP摄像头的rtsp

 

1、需要先安装vlc包,命令行运行

sudo apt-get update
sudo apt-get install vlc

 

2、安装完成后,使用cvlc工具,在命令行运行(注:测试环境的海康摄像头IP 10.0.10.64  ,  rtsp的端口 554 ,   关闭了http basic 验证)

cvlc -R rtsp://10.0.10.64:554/Streaming/Channels/101 --sout "#transcode{vcodec=mjpg,vb=25,scale=1.0,fps=10,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace; boundary=7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8888/videostream.cgi}"

运行返回

VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[0x1d8dff8] dummy interface: using the dummy interface module...
[mjpeg @ 0x7f39b8015320] removing common factors from framerate
[mjpeg @ 0x7f39b86cb220] removing common factors from framerate
[0x7f39b00009b8] main input error: ES_OUT_RESET_PCR called

现在可以在浏览器中访问 http://localhost:8888/videostream.cgi

 

rtsp流转mjpeg使用vlc

原文:http://www.cnblogs.com/Jim-william/p/6258811.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!