几种浏览器播放RTSP视频流的方案

忘光了,感谢网友的整理

https://www.zhihu.com/question/29973696

 

https://bnlt.org/2019/%E5%87%A0%E7%A7%8D%E6%B5%8F%E8%A7%88%E5%99%A8%E6%92%AD%E6%94%BERTSP%E8%A7%86%E9%A2%91%E6%B5%81%E7%9A%84%E6%96%B9%E6%A1%88/

 

#rtsp2rtmp

ffmpeg -i "rtsp://admin:q12345678@172.16.23.150:554/H.264/ch1/main/av_stream" -f flv -vcodec copy -acodec copy -an rtmp://xx.xxx.134.242:1935/live/001

 

html

<html> 
<body> 
 
   <object type='application/x-vlc-plugin' id='vlc' events='True' 
       classid='clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921' codebase="http://comic.sjtu.edu.cn/vlc/cab/axvlc.cab" width="1920" height="1080"> 
          <param name='mrl' value='rtsp://admin:q12345678@172.16.23.201:554/H.264/ch1/sub/av_stream' /> 
          <param name='volume' value='50' /> 
          <param name='autoplay' value='true' /> 
          <param name='loop' value='false' /> 
          <param name='fullscreen' value='false' /> 
    </object> 

<!--
    <object type='application/x-vlc-plugin' id='vlc' events='True' width="720" height="540" pluginspage="http://www.videolan.org" codebase="http://downloads.videolan.org/pub/videolan/vlc-webplugins/2.0.6/npapi-vlc-2.0.6.tar.xz"> 
        <param name='mrl' value='rtsp://admin:q12345678@172.16.23.224:554/H.264/ch1/sub/av_stream' /> 
        <param name='volume' value='50' /> 
        <param name='autoplay' value='true' /> 
        <param name='loop' value='false' /> 
        <param name='fullscreen' value='false' /> 
    </object> 
-->
</body 
</html>

 

posted @ 2020-02-14 22:12  dong1  阅读(1338)  评论(0编辑  收藏  举报