摘要本文以搭建远程机器人实验系统为背景,完成了一个可以实现实时监控,传 输对摄像头的控制命令和提供程序上传至服务器功能的客户端,包括基于 FFmpeg 的 H。264 编码标准下的 RTMP 流的解码器的实现,基于 SDL 的对解码后图像的显示, 基于 TCP 的命令和文件的传输和识别,基于 PHP 的网页开发和与数据库的连接。
在视频流传输方面,本文基于 FFmpeg,通过实现熵解码,宏块解码(帧内宏 块),宏块解码(帧间宏块),环路滤波,以达成对 RTMP 视频流的解析。对于解 析 RTMP 流得到的 YUV 图像,使用 SDL 库通过 GDI(图形设备接口),显示在屏幕 上。测试表明,经过流媒体服务器的转发后,视频依然能够正常显示。77725
在登录界面和数据传输方面,本文利用 web browser 组件使客户端可以访问 使用 ADODB 连接数据库的登录界面并在登陆成功后访问视频界面。在传输数据的 处理上,本文通过重新定义 TCP 包内数据部分所装内容的格式,完成内容和控制 命令的区分。
毕业论文关键词 RTMP 熵解码 宏块解码 TCP
Title Design and Implementation of Remote Robot Experiment System--Client Human-computer Interaction design
Abstract Against the background of realizing a Remote Robot Experiment System,this thesis presents a client which can provide the function of real time monitoring,transferring camera control command to the sever and uploading the file。This client includes the implementation of RTMP stream decoder based on FFmpeg,display of decoded image based on SDL,transfer and identification of commands and files based on TCP and Web page development and database connection based on PHP。
About the video streaming transmission, this thesis bases on FFmpeg, through the implementation of entropy decoding, macro block decoding (intra macro block), macro block decoding (inter frame macro block), loop filter,to achieve the analysis of the RTMP video stream。This thesis uses the SDL library through the GDI (graphics device interface) to display YUV images obtained from analytic RTMP flow on the screen。Test shows that after the forwarding of streaming media server,the video screen is still able to display normal。
About the log-in interface and data transmission,this thesis uses web browser components to enable the client to access the log-in screen which uses ADODB to connect database。After landing successfully,it will Access the video interface。In the process of data transmission,this thesis completes distinction between content and control commands by re defining the format of the contents of the data section in the TCP package
Keywords RTMP Entropy decoding Macro block decoding TCP1 引言 1
1.1 课题背景 1
1.2 客户端人机交互设计概述 1
1.3 课题所做工作及论文内容安排 2
2 解码器解码原理 4
2。1 H。264 标准 4
2。2 实时消息传输协议 RTMP 4
2。3 解码器(decoder) 4