树莓派+官方摄像头模块+VLC串流实时输出网络视频流

sudo apt-get update
sudo apt-get install vlc
sudo raspivid -o - -t 0 -w 640 -h 360 -fps 25|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264

在电脑端,无论是Windows,Linux还是OSX,或者安卓机器,只要能安装VLC,现在就可以打开VLC,然后打开媒体-》网络串流-》输入http://PI的IP地址:8090查看实时不卡的网络监控了。

第一行是更新软件数据库

第二行是安装vlc

第三行是使用PI官方的raspivid捕获视频工具把视频流输出到vlc,通过vlc转码成h264网络视频流通过http协议以ts的形式封装,然后输出到8090端口,用这个当监控只要网络稳定绝对不卡。

看到以下内容就说明开始正常输出内容了。然后在其它VLC客户端打开网络串流就行了。

[0xd604f0] packetizer_h264 demux packetizer debug: found NAL_PPS (pps_id=0 sps_id=0)
[0xce6458] main input debug: selecting program id=0
[0xd522f8] main decoder debug: looking for packetizer module: 21 candidates
[0xd522f8] main decoder debug: using packetizer module "packetizer_h264"
[0xd522f8] main decoder debug: TIMER module_need() : 0.912 ms - Total 0.912 ms / 1 intvls)
[0xce6458] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
[0xce6458] main input debug: switching to sync mode
[0xce6458] main input debug: Buffering 0%
[0xd522f8] packetizer_h264 decoder debug: found NAL_SPS (sps_id=0)
[0xd522f8] packetizer_h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0)
[0xce6458] main input debug: Buffering 13%
[0xd5ac40] main stream output debug: adding a new sout input (sout_input:0xcee4d8)
[0xd5d270] main mux debug: adding a new input
[0xd5d270] mux_ts mux debug: adding input codec=h264 pid=68
[0xd5d270] mux_ts mux debug: new PCR PID is 68
[0xce6458] main input debug: Buffering 26%
[0xce6458] main input debug: Buffering 40%
[0xce6458] main input debug: Buffering 53%
[0xce6458] main input debug: Buffering 66%
[0xce6458] main input debug: Buffering 80%
[0xce6458] main input debug: Buffering 93%
[0xce6458] main input debug: Stream buffering done (320 ms in 22 ms)
[0xce6458] main input debug: Decoder buffering done in 0 ms
[0xd5d270] main mux warning: late buffer for mux input (30138)
[0xd5d270] mux_ts mux warning: packet with too strange dts (dts=5834500483,old=5837242731)
[0xd5d270] mux_ts mux warning: packet with too strange dts (dts=5834706185,old=5834740483)



参考:http://bbs.ickey.cn/group-topic-id-14728.html




  • 2
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
要使用VLC播放器进行RTSP串流,您可以按照以下步骤进行设置: 1. 打开VLC播放器,并确保您已经安装了最新版本的VLC播放器。 2. 在菜单栏中选择“媒体”,然后选择“打开文件”来选择您想要进行RTSP串流视频文件。 3. 在VLC播放器的菜单栏中选择“流”,然后在弹出的对话框中点击“添加”按钮。 4. 在“流输出”对话框中,选择“RTSP”作为输出协议,并设置好相应的端口和路径信息。点击“下一步”继续。 5. 在“选项设置”中,您可以调整一些高级参数,例如视频编码、传输协议等。根据您的需求进行设置,并点击“下一步”。 6. 在“流输出”对话框中,点击“流媒体”按钮开始RTSP串流。 现在,您已经设置好了VLC播放器进行RTSP串流,可以使用RTSP客户端来访问这个视频的RTSP流了。 如果您需要在另一台设备上播放RTSP流,只需在该设备上使用VLC播放器或其他支持RTSP协议的播放器,并输入相应的RTSP地址即可。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [VLC 视频转成rtsp流](https://blog.csdn.net/pxxian/article/details/105988250)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [设置VLC播放器进行RTSP推流视频](https://blog.csdn.net/u011832525/article/details/113757935)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值