曲靖师范学院学报 ›› 2024, Vol. 43 ›› Issue (3): 78-84.

• 计算机科学研究 • 上一篇    下一篇

基于Raspberry Pi的实时流媒体直播系统设计

王灵芝1, 陈颖频2, 王朝慧1, 陈士豪1   

  1. 1.厦门城市职业学院 人工智能学院,福建 厦门 361008;
    2.闽南师范大学 物理与信息工程学院,福建 漳州 363000
  • 收稿日期:2024-04-01 出版日期:2024-05-26 发布日期:2024-06-14
  • 作者简介:王灵芝,厦门城市职业学院人工智能学院副教授,主要从事嵌入式及图像处理研究.
  • 基金资助:
    福建省自然科学基金项目“面向脑磁共振影像分割的多分辨率驱动下跨域聚类模型研究”(2020J0816);厦门城市职业学院高层次人才科研启动金(G3R2022-9).

The Design of Real-Time Streaming Media Live Broadcast System Based on Raspberry Pi

WANG Lingzhi1, Chen Yingping2, Wang Chaohui1, Chen Shihao1   

  1. 1. Department of Artificial Intelligence, Xiamen City University, Xiamen Fujian 361008, China;
    2. School of Physics and Information Engineering, Minnan Normal University, Zhangzhou Fujian 363000, China
  • Received:2024-04-01 Published:2024-05-26 Online:2024-06-14

摘要: 在“全民直播、万物皆可播”时代背景下,阐述了一种实时流媒体直播系统的设计过程. 系统以Raspberry Pi 4B作为主控,搭载Linux操作系统. 系统由视频采集端、流媒体服务器端、客户端三部分组成. 视频采集端实时获取摄像头视频数据,利用FFmpeg协议对视频流封包并推送到流媒体服务器. 服务端运行SRS流媒体服务器,提供视频存储、推送与软件更新服务. 客户端支持视频流拉取、直播、片段回放功能. 系统采用QT配合触摸屏设计人机交互界面,可远程进行软件更新. 本系统具有成本低、部署便捷、延迟短等优点,经测试系统的整体延时小于 200 ms.

关键词: 流媒体直播系统, Raspberry Pi, FFmpeg, SRS流媒体服务器, QT

Abstract: In the era of live streaming for all, everything can be broadcasted. This paper elucidates the design process of a real-time streaming media system employing Raspberry Pi 4B as its central controller, running on a Linux operating system. It comprises video capture terminal, streaming media server, and client end. The video capture terminal acquires camera video data in real time, encapsulates the video stream using FFmpeg protocol, and pushes it to the cloud streaming media server. The server operates SRS streaming media server that providing services such as video storage, push services, and software updates. The client supports functionalities such as video stream retrieval, live broadcasting, and segmented playback. The system adopts QT to design the human-computer interaction interface with touch screen. It also enhances remote software updates capability. This cost-effective system offers convenient deployment with minimal latency, achieving an overall test system delay of less than 200 ms.

Key words: streaming media live broadcast system, Raspberry Pi, FFmpeg, SRS streaming media server , QT

中图分类号: