m3u8

Can't able to get Video Tracks from AVURLAsset for HLS videos(.m3u8 format) for AVPlayer?

a 夏天 提交于 2021-02-18 17:40:08
问题 I am developing a custom video player to stream HLS videos from server. I can successfully play HLS videos using AVPlayerItem and AVPlayer. After that I want to add subtitle track and audio tracks for my video player. So I used AVMutableComposition to do so. So now the issue is when I am creating AVURLAsset for HLS Videos, I can't able to get video tracks from AVURLAsset. It is giving me always 0 tracks. I tried "loadValuesAsynchronously" of AVURLAsset and I tried adding KVO for "tracks" of

Playing .m3u8 video using php curl

折月煮酒 提交于 2021-02-10 20:53:45
问题 I'm attempting to play a .m3u8 video using a php curl proxy. The following code seems to work, although it only returns the video #EXTM3U information but does not play the video. Code: <?php //....proxy info $auth = 'username:password'; $proxy_ip = '1.2.3.4.5'; $proxy_port = 8080; $path = $_GET['link']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $path); //curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_PROXYPORT, $proxy_port); curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP')

Playing .m3u8 video using php curl

北城余情 提交于 2021-02-10 20:51:25
问题 I'm attempting to play a .m3u8 video using a php curl proxy. The following code seems to work, although it only returns the video #EXTM3U information but does not play the video. Code: <?php //....proxy info $auth = 'username:password'; $proxy_ip = '1.2.3.4.5'; $proxy_port = 8080; $path = $_GET['link']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $path); //curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_PROXYPORT, $proxy_port); curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP')

Playing .m3u8 video using php curl

早过忘川 提交于 2021-02-10 20:50:15
问题 I'm attempting to play a .m3u8 video using a php curl proxy. The following code seems to work, although it only returns the video #EXTM3U information but does not play the video. Code: <?php //....proxy info $auth = 'username:password'; $proxy_ip = '1.2.3.4.5'; $proxy_port = 8080; $path = $_GET['link']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $path); //curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_PROXYPORT, $proxy_port); curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP')

Generate .m3u8 on the fly from .ts files

断了今生、忘了曾经 提交于 2021-02-06 14:01:01
问题 I have a list of .ts file segments that follow this pattern http://www.someaddress.com/file_11223344.ts http://www.someaddress.com/file_11223345.ts http://www.someaddress.com/file_11223346.ts ... Since I need a m3u8 file in order to open this videos, is there a way to generate this m3u8 manually (from ts segments) in .php for example. Original m3u8 is protected and generated only if I have user/pass id etc. This is live stream that is always updated and generated based on a timestamp 回答1: if

Generate .m3u8 on the fly from .ts files

半城伤御伤魂 提交于 2021-02-06 14:00:49
问题 I have a list of .ts file segments that follow this pattern http://www.someaddress.com/file_11223344.ts http://www.someaddress.com/file_11223345.ts http://www.someaddress.com/file_11223346.ts ... Since I need a m3u8 file in order to open this videos, is there a way to generate this m3u8 manually (from ts segments) in .php for example. Original m3u8 is protected and generated only if I have user/pass id etc. This is live stream that is always updated and generated based on a timestamp 回答1: if

How can I batch/sequentially download m3u8 files using ffmpeg?

元气小坏坏 提交于 2020-12-06 19:18:44
问题 I'm currently downloading m38u playlists individually using the following on Mac: ffmpeg -i <"URL with m3u8"> -codec copy output.ts If I want to do multiple files, I currently do it from separate Terminal windows. What I would like to do is, in a single instance, tell ffmpeg to e.g. take URLs from a .txt file and download them in sequence, with a sequential output name for each (fine for them to all go in same output folder). Sample code from m3u8 file: #EXTM3U #EXT-X-VERSION:3 #EXT-X-MEDIA