1.推流
要使用VLC播放器推流,可以按照以下步骤操作:
(1)打开VLC播放器

(2)打开媒体
点击“媒体”菜单,然后选择“流(S)”。

(3)添加源文件
在“文件”选项卡中,点击“添加”按钮添加要推流的视频文件或网络流媒体 URL。也可以拖放文件到列表上。最后点击右下角“串流”。

(4)输出流
这里不用操作,直接点击“下一个”。

(5)配置输出协议
选择“RTP / MPEG Transport Stream”作为输出协议。然后点击“添加”。

(6)配置RTP/TS
端口号配置RTSP默认端口:554,然后再设置一个路径。

(7)配置输出流
配置编解码方式,这里选择如下。

(8)开始推流
点击“流”按钮开始推流。

2.拉流
填入推流PC VLC加载视频源时配置的组播 ip地址和端口号。
(1)ffplay方式拉流
ffplay rtp://10.10.101.59:5004
(2)VLC播放器拉流
如:rtp://10.10.101.59:5004
1)打开VLC播放器
2)打开媒体
点击“媒体”菜单,选择“打开网络串流(N)”,然后输入:rtp://10.10.101.59:5004

3)点击播放

网友评论