配置VLC实现RTSP/RTP播放

摘自:https://www.wowza.com/forums/content.php?64-How-to-configure-VLC-media-player-for-RTSP-RTP-playback-(RTSP-RTP-interleaved-and-tuning)&s=628fa19f3898506f5901a02f16edc01d

Changing the stream transport protocol


To switch VLC from HTTP streaming to RTP/RTSP streaming:

  1. On the VLC media player Tools menu, click Preferences.

  2. In the Simple Preferences dialog box, click Input / Codecs in the contents panel.

  3. In Input & Codecs Settings, in the Network area, change the Live555 stream transport option from HTTP (default) to RTP over RTSP (TCP).

  4. Click Save.

Starting stream playback


By default, VLC media player is configured with a very small caching buffer. This can lead to choppy playback initially but it will eventually smooth out over time as VLC automatically increases the size of this buffer. The steps below explain how to change the default cache size before connecting to the stream. 

To set the default cache size and play a live or on demand stream:

  1. On the VLC media player Media menu, click Open Network Stream.

  2. At the bottom of the Open Media dialog box, select the Show more options check box.

  3. Set the Caching value to a higher value such as 1200 ms. This value is retained between VLC media player playback sessions and restarts.

  4. Enter the URL of the stream that you want to play in the Please enter a network URL field and then click Play

    The examples below show possible stream URLs for each type of application:

    VOD

    rtsp://[wowza-ip-address]:1935/vod/mp4:sample.mp4

    Live

    rtsp://[wowza-ip-address]:1935/live/myStream.stream

    Where [wowza-ip-address] is the IP address or domain name of the Wowza media server.

翻译摘自:http://blog.csdn.net/defonds/article/details/23772843
本文介绍配置 VLC 以播放基于 TCP 的 RTSP/RTP 流。在穿过一个没有开放 UDP 的防火墙 / 路由的情况下这种模式的流被认为表现的更好。(原文注明本文配置适用于 VLC 版本 1.1.X - 2.0.1。笔者 VLC 版本 2.1.3,64 位 Windows 2007 下配置成功)
        1. 打开 VLC
        2. 菜单栏选择工具 -> 首选项
        3. 选择输入 / 编解码器页项
        4. Live555 流传输选择 RTP over RTSP (TCP)
        5. 点击保存按钮
        默认情况下,VLC 配置的缓冲很小。这将导致播放起来断断续续的,随着时间推移这个会慢慢消除,因为 VLC 会自动把这一缓存给调大。执行以下步骤以将默认缓冲大小设置到一个合理值:
        1. 打开 VLC
        2. 菜单栏选择媒体 -> 打开网络串流...
        3. 选中显示更多选项
        4. 将正在缓冲的值设置为一个更大值,比如 1200 ms
        5. 在请输入网络 URL 域中输入你想要播放的流然后点击播放按钮
        你设置的这个值将在 VLC (本次) 播放会话和 (VLC) 重启之前有效。
原文链接:http://www.wowza.com/forums/content.php?64

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值