hls

windows 下 hls 的点播和直播

我只是一个虾纸丫 提交于 2019-12-03 05:02:45
Apple的动态码率自适应技术。主要用于PC和Apple终端的音视频服务。包括一个m3u(8)的索引文件,TS媒体分片文件和key加密串文件(可选)。 常用的流媒体协议主要有 HTTP 渐进下载和基于 RTSP/RTP 的实时流媒体协议,这两种基本是完全不同的东西,目前比较方便又好用的是用 HTTP 渐进下载方法。在这个中 apple 公司的 HTTP Live Streaming 是这个方面的代表。它最初是苹果公司针对iPhone、iPod、iTouch和iPad等移动设备而开发的流.现在见到在桌面也有很多应用了,HTML5 是直接支持这个。 这里介绍hls协议的点播和直播。环境为windows7系统,使用nginx搭建http服务器,使用ffmpeg处理视频和流,使用VLC软件发出流,使用iphone5手机观看直播视频。 工作流程 点播:准备好视频文件MP4,使用ffmpeg将其转成TS格式文件,然后继续使用ffmpeg将其切片并生成播放列表M3U8文件,将所得TS分片与M3U8文件放到nginx服务器目录下,开启http服务器后,同一局域网内用手机输入网络地址可查看点播视频。 直播:使用VLC软件将视频以UDP流的形式发出,使用ffmpeg接收这个UDP流并实时切割到http服务器下,开启服务器后,同一局域网内用手机输入网络地址可查看直播视频。 环境搭建

Exoplayer adaptive hls streaming

匿名 (未验证) 提交于 2019-12-03 02:18:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am looking for good and simple example/explanation how to implement ExoPlayer for HLS Adaptive streaming. I am a newbie and do not have experience and knowledge so I can figure how to do this from code example on git. There are too many 'moving parts' so beginner can understand and reuse it in own projects. Can somebody help me to learn and understand how to use/implement ExoPlayer in order to achieve this functionality? Thanks! 回答1: The easiest way to get started using ExoPlayer is to add it as a gradle dependency. You need to make sure

Low Latency DASH Nginx RTMP

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I use arut nginx-rtmp-module ( https://github.com/arut/nginx-rtmp-module ) on the media server, then I tried to stream using FFmpeg to the dash application, then I test the stream by playing it using VLC. And it waits around 30secs to start playing, and it plays from the beginning, not the current timestamp. This is my current config on the RTMP block rtmp { server { listen 1935; application live { live on; exec ffmpeg -re -i rtmp://localhost:1935/live/$name -c:a libfdk_aac -b:a 32k -c:v libx264 -b:v 128K -f flv rtmp://localhost:1935/hls/

Playing HLS (m3u8) in Cocoa OS X AVPlayer - Swift

匿名 (未验证) 提交于 2019-12-03 01:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Basically I am trying to play an m3u8 (HLS Live Stream) using AVPlayer in Cocoa Swift. I'm relatively new to the language, so basically grabbed some example code for playing local video files and tried modifying it to play a live stream... But get this instead: http://i.stack.imgur.com/bU9GM.png This is what I got so far (commented lines are to play local file, which does work): import Cocoa import AVKit import Foundation import AVFoundation class ViewController: NSViewController { @IBOutlet weak var playerView: AVPlayerView! var videoPlayer

HLS (http live streaming) on Android 3.0 and seeking

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We have a provider that gives us m3u8 files for HLS streams (originally intended for use in an iOS app). Android 3.0+ supports http live streaming (http://developer.android.com/guide/appendix/media-formats.html) - and we can in fact play these m3u8 files using the standard VideoView on Android 3.0+. EDIT: Android seems to treat this as "real-time" video feed, and disables the ability to seek or calculate a video duration. (Where-as iOS let's you seek within the stream without issue) Is there any way to force android 3.0+ to seek within these

HTML5 Video: Detecting Bandwidth

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a 1080p video that I'm displaying in an HTML5 <video> tag on my page. Is there a simple(ish) javascript method of detecting bandwidth so I can switch out the video for lower quality versions if the user's connection is too slow to stream the video? Similar to the logic behind YouTube's 'auto' video size chooser. 回答1: In google chrome at least there are these properties on a video element: webkitVideoDecodedByteCount: 0 webkitAudioDecodedByteCount: 0 These should be enough to determine how fast the client can decode the video. As the

How to show HLS embedded captions on Exoplayer

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: how do I enable and also select different subtitles that are embedded in a Vimeo video in HLS format using Exoplayer, ExoMedia or another player? In iOS this same video already presents the option of subtitles natively but in Android I cannot find means to implement it. 回答1: My answer here will look a lot like this one , so you might want to check that one out first. ExoPlayer is the library you'll want for Android. It's a non- trivial task to get the subtitles to show, but the demo app for that library has all the code you'll need to get

vue2.0+vue-dplayer实现hls播放

匿名 (未验证) 提交于 2019-12-03 00:41:02
vue2.0+vue-dplayer实现hls播放 开始 安装依赖 npm install vue-dplayer -S 1,编写组件HelloWorld.vue < template > < div class ="hello" > < d-player ref ="player" @play ="play" :logo ="logo" :lang ="lang" :video ="video" :contextmenu ="contextmenu" ></ d-player > </ div > </ template > < script > import VueDPlayer from ‘ ./VueDPlayerHls ‘ ; import logoImg from ‘ @/assets/logo.png ‘ ; export default { name: ‘ HelloWorld ‘ , data () { return { video: { quality: [{ name: ‘ 240P ‘ , url: ‘ https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8 ‘ , },{ name: ‘ 360P ‘ , url: ‘ https://video-dev.github.io/streams

一篇文章解读阿里云视频点播内容安全机制

匿名 (未验证) 提交于 2019-12-03 00:39:02
摘要: 如何保障视频内容的安全,不被盗链、非法下载和传播,是困扰众多企业已久的问题,特别是独播剧、在线教育、财经金融、行业培训等在线版权视频领域尤为迫切,处理不好会造成极为严重的经济损失,甚至法律风险。阿里云视频点播提供了完善的内容安全保护机制,可以满足不同业务场景的安全需求。 1. 概述 如何保障视频内容的安全,不被盗链、非法下载和传播,是困扰众多企业已久的问题,特别是独播剧、在线教育、财经金融、行业培训等在线版权视频领域尤为迫切,处理不好会造成极为严重的经济损失,甚至法律风险。 阿里云视频点播提供了完善的内容安全保护机制,可以满足不同业务场景的安全需求。 2. 访问限制 访问限制是在云端配置视频资源的访问策略,达到基本的保护目的,主要手段有: Referer、IP和UA(User-Agent)的黑白名单 一定周期内,URL的访问次数限制、独立IP数限制 2.1 Referer黑白名单 基于 HTTP 协议支持的 Referer机制,通过 Referer跟踪来源,对来源进行识别和判断,用户可配置访问的 Referer 黑、白名单(二者互斥)来限制视频资源被访问的情况。 支持黑名单和白名单两种模式,访客对资源发起请求后,请求到达CDN 节点,节点会根据用户预设的防盗 链黑名单或白名单进行过滤,符合规则可顺利请求到视频数据;若不符合,请求会被拒绝,并返回403响应 码。

FPGA实践教程之:在Xilinx zynq-7z035上运行LeNet(二)vivado HLS软件使用

匿名 (未验证) 提交于 2019-12-03 00:22:01
本文档系列是我在实践将简单的神经网络LeNet-5实现到Xilinx 的zynq-7z035的FPGA上遇到的问题和解决方法。 本文档重点探讨vivado HLS软件的使用。 完成本过程可以参阅的文档有: UG902:Vivado Design Suite User Guide: High-Level Synthesis 该文档主要涉及vivado HLS的理解,vivado HLS软件的初步使用,以及相应的HLS相关的c语言库等,我们主要关注该文档的第一章:用vivado HLS软件实现HLS(高层综合High-level Synthesis) UG871:Vivado Desigh Suite Tutoril:High-level Synthesis 该文档主要涉及vivado HLS软件的具体操作过程,包括HLS的介绍、c的验证、管脚综合、任意精度数、设计分析、优化分析、RTL验证、用HLS生成集成IP、在Zynq的AP Soc设计中用HLS生成的IP、这个文档是操作的重点。文档中有较多设计实例可以参考。 一、打开及创建工程 打开软件,creat project这些基础的操作就不讲了。我们的版本是vivado HLS 2016.4 相应的LeNet-5的源码去github上下载,注意需要是c或者c++版本的代码。运行前务必看懂其中的代码,至少知道每个函数的意思和调用关系