m3u8

AVPlayer not playing m3u8 from local file

谁说我不能喝 提交于 2019-12-01 09:37:20
I am trying to get AVPlayer to play a m3u8 playlist that is a local file. I have narrowed this down to a simple test case using one of Apple's sample playlists: https://tungsten.aaplimg.com/VOD/bipbop_adv_fmp4_example/master.m3u8 If i play this playlist from the remote url, AVPlayer plays this fine. However, if i download this playlist to a local file, and then hand AVPlayer the local file URL, AVPlayer will not play it. It just shows the crossed out play symbol. Interestingly enough, this can be duplicated with Safari as well. Safari will play the remote playlist but not the local file. Also

EasyDSS高性能RTMP、RTSP、HLS(m3u8)、HTTP-FLV流媒体服务器是如何解决视频流跨域访问的问题

不想你离开。 提交于 2019-12-01 07:49:56
EasyDSS 流媒体服务器软件,提供一站式的转码、点播、直播、时移回放服务,极大地简化了开发和集成的工作。 其中,点播功能主要包含:上传、转码、分发。直播功能,主要包含:直播、录像,直播支持RTMP输入,RTMP/HLS/HTTP-FLV的分发输出;录像支持自定义保存时长、检索及下载。提供丰富的二次开发接口,基于JSON的封装及HTTP调用。提供播放鉴权、推流鉴权等安全保证。提供用户及相关权限管理配置。 EasyDSS解决视频流跨域访问问题 提出问题 最近一个客户遇到个问题,客户要给第三方的APP提供H5页面,里面有其他视频平台提供的HLS视频流。当客户直接播放这个H5页面时,视频流可以正常播出,但是在第三方的APP上,视频一直无法播放。 分析问题 通过现象得知,视频平台提供的视频流并无问题,将视频流直接嵌入第三方的app中也可以正常播放,但是嵌入H5页面无法播放。通过分析可知应该是视频平台存在跨域访问限制的安全机制。 解决问题: 由于视频平台已经过保,客户也找不到第三方的公司来处理,因此向我们咨询有无解决访方案。 通过了解,我们给客户推荐我们的EasyDSS系统,通过EasyDSS流媒体系统中虚拟直播功能的获取视频平台的视频流,在通过直播平台将视频流分发出去。由于EasyDSS系统没有跨域问题,因此可以在第三方的APP上播放。 ## 关于EasyDSS 来源: https:/

Android video stream mms and m3u8

大兔子大兔子 提交于 2019-12-01 06:32:08
I am trying to play some video streams from mms and m3u8 inside my Android application. It seems that the MediaPlayer doesn't have support on this and from what I have read on FFMPEG it seems there isn't any easy way with that also. I am using Android 2.1 SDK. Any ideas on what I should in order to make this work? There are some apps there in the store that already do this, but I don't know how. You may try the Vitamio library, http://vitamio.org Vitamio is a multimedia framework for all Android devices. Vitamio works like the Android's default MediaPlayer except that it includes much more

How can I capture an image when AVPlayer playing m3u8 stream?

[亡魂溺海] 提交于 2019-12-01 06:26:07
I use AVPlayer to play a m3u8 file, and I want to capture an image in these code: AVAssetImageGenerator *gen = [[AVAssetImageGenerator alloc] initWithAsset:self.player.currentItem.asset]; gen.appliesPreferredTrackTransform = YES; NSError *error = nil; CMTime actualTime; CMTime now = self.player.currentTime; [gen setRequestedTimeToleranceAfter:kCMTimeZero]; [gen setRequestedTimeToleranceBefore:kCMTimeZero]; CGImageRef image = [gen copyCGImageAtTime:now actualTime:&actualTime error:&error]; UIImage *thumb = [[UIImage alloc] initWithCGImage:image]; NSLog(@"%f , %f",CMTimeGetSeconds(now)

Android video stream mms and m3u8

给你一囗甜甜゛ 提交于 2019-12-01 05:40:43
问题 I am trying to play some video streams from mms and m3u8 inside my Android application. It seems that the MediaPlayer doesn't have support on this and from what I have read on FFMPEG it seems there isn't any easy way with that also. I am using Android 2.1 SDK. Any ideas on what I should in order to make this work? There are some apps there in the store that already do this, but I don't know how. 回答1: You may try the Vitamio library, http://vitamio.org Vitamio is a multimedia framework for all

How can I capture an image when AVPlayer playing m3u8 stream?

白昼怎懂夜的黑 提交于 2019-12-01 05:04:17
问题 I use AVPlayer to play a m3u8 file, and I want to capture an image in these code: AVAssetImageGenerator *gen = [[AVAssetImageGenerator alloc] initWithAsset:self.player.currentItem.asset]; gen.appliesPreferredTrackTransform = YES; NSError *error = nil; CMTime actualTime; CMTime now = self.player.currentTime; [gen setRequestedTimeToleranceAfter:kCMTimeZero]; [gen setRequestedTimeToleranceBefore:kCMTimeZero]; CGImageRef image = [gen copyCGImageAtTime:now actualTime:&actualTime error:&error];

利用selenium和ffmpeg爬取m3u8 ts视频《进击的巨人》

岁酱吖の 提交于 2019-12-01 01:30:54
需求 想看下动漫《进击的巨人》,发现到处被和谐,找不到资源,但是在一个视频网站找到了在线播放, https://www.55cc.cc/dongman/17890/player-2-1.html ,然而不能下载下来(喜欢的东西我一般都看很多遍) 于是想爬虫爬取下,但是看源代码发现视频是m3u8的ts流,而且是双层m3u8的,并且m3u8地址还隐藏在js代码中,于是有2种处理方法: 1.直接requests源码,把js代码的部分逐字解析,找出m3u8地址。 2.直接调用浏览器渲染,将渲染后的网页代码拿到,就可以看到iframe标签中src地址了 获取到首层m3u8地址后就简单了,直接requests请求到第二层m3u8地址,这就是真实地址了,下载后可以看到是很多的ts流小文件,于是有2种处理方法了: 1.直接逐个获取ts地址,然而写到本地磁盘的同一个文件,最后转码到mp4(ts格式太占空间) 2.直接调用ffmpeg,能根据m3u8地址下载ts流并合并为一个文件且同步转码为mp4 上述均采用第二种方法,于是写出个简单的该网站的视频爬虫 源代码 from selenium import webdriver from bs4 import BeautifulSoup import re import requests import os if __name__ == '__main__'

Downloading and playing offline HLS Content - iOS 10

淺唱寂寞╮ 提交于 2019-11-30 21:47:58
Since iOS 10, Apple has provided the support for downloading HLS (m3u8) video for offline viewing. My question is: Is it necessary that we can only download HLS when it is being played ? Or we can just download when user press download button and show progress. Does anyone has implemented this in Objective C version? Actually my previous App is made in Objective C. Now I want to add support for downloading HLS rather than MP4 (previously I was downloading MP4 for offline view). I am really desperate to this. Please share thoughts or any code if implemented. The only way you can do this is to

Playing .m3u8 file through HTTPS on android 2.3

末鹿安然 提交于 2019-11-30 17:33:45
问题 At some point in my code, the app finds an URL that points to a .m3u8 file. This is what happens next : mVideoView.setVideoURI(Uri.parse(feed.getUrl().toString())); // feed.getUrl returns the url mVideoView.start(); And it works FINE on Android 3.1+. Not on earlier versions because it uses https (see this : http://developer.android.com/guide/appendix/media-formats.html ) So what I did is I created a new version of my app for Android 2.2+ that uses vitamio , a library that's supposed to make

ffmpeg下载m3u8流媒体

旧时模样 提交于 2019-11-30 03:05:39
安装 编译好的windows可用版本的下载地址(官网中可以连接到这个网站,和官方网站保持同步): http://ffmpeg.zeranoe.com/builds/ 该版本为FFMPEG的Static,Static里面只有3个应用程序:ffmpeg.exe,ffplay.exe,ffprobe.exe,每个exe的体积都很大,相关的Dll已经被编译到exe里面去了。 使用 ffmpeg.exe ffmpeg是用于转码的应用程序 命令行进入bin目录,输入以下命令即可将m3u8下载为指定格式的文件 C:\01-python\59-ffmpeg\ffmpeg\bin\ffmpeg -i http://vodcdn.yst.vodjk.com/201909191433/2afc693f2edda43e677598144b12a31e/company/1/2019/8/1/18852t5bfe/sd/a84ccae0440549398f8080f6d336075b.m3u8 .\video\1416.mp4 # C:\01-python\59-ffmpeg\ffmpeg\bin\ffmpeg ffmpeg.exe路径 # http://vodcdn.yst.vodjk.com/201909191433/2afc693f2edda43e677598144b12a31e/company/1