Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm trying to save .ts segments to the disk drive from an HLS stream to achieve record functionality. After going through Record HTTP Live Streaming Video To File While Watching? and Save HLS stream on iPhone/iPad came to the conclusion to save the files to disk and set up a server locally and stream it from there. Bu I'm having issues parsing an M3U8 file. Found an M3U8Kit but not what I was looking for. Can anyone point me in the right direction as how to parse an M3U8 file? It looks something like this
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10,
http://media.example.com/segment0.ts
#EXTINF:10,
http://media.example.com/segment1.ts
#EXTINF:10,
http://media.example.com/segment2.ts
#EXT-X-ENDLIST
Also for those who might need this, M3U8Paser is an extended library of M3U8Kit to parse an m3u8 file to get the links for multiple m3u8 files used for adaptive streaming
I know it is an old question but the open source, MIT Licensed, Pantomime may serve your needs.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have to perform load tests on a video streaming server does anybody know a good tool that can help me? if it were free or open source, it would be perfect
Actually there is nothing special in testing MPEG Dash as it is a subset of HTTP Live Streaming so any load testing tool which supports HTTP protocol will fit.
If you're looking for a specific recommendation check out Apache JMeter, it is free, open source, has relatively large community and you don't have to know any programming language as JMeter tests can be created using GUI approach.
Check out Load Testing Video Streaming with JMeter: Learn How article for detailed instructions with regards to the most popular video streaming protocols load testing using JMeter
You can use this commercial plugin for Apache JMeter.
It is available through jmeter-plugins manager and allows you to reastically test all flavors of MPEG-DASH.
It simulates how players download manifests, chunks, init segments and provides video related metrics.
Disclaimer: I am member of the team that delivers it
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a video and audio streaming urls.I want to check the user's band width if its slow it should play the audio. If its fast enough should play the video. How can I check whether the bandwidth is slow or fast in swift
m3u8 Structure
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM- INF:BANDWIDTH=814508,CODECS="avc1.66.51,mp4a.40.34",RESOLUTION=720x576
chunklist_w247403833.m3u8
If your video and audio files are of the same content, then you should be able to configure a m3u8 file for your needs. I've not done this in practice but you should be able to create a m3u8 file like the example below and Apple's media streamer should then automatically detect the bandwidth and play the appropriate file, and as the bandwidth changes Apple should automatically switch files to provide the best experience
(you'll need to tweak the file below but this should give you a head start)
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=216000,RESOLUTION=400x300
amazingVideo.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=100000,RESOLUTION=400x300
justAudio.m3u8
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm looking to build an app which plays and streams RTMP media.
Playback
What's a recommended library that supports RTMP playback? I can't seem to find a good one.
Streaming
I've tried the demo from https://github.com/shogo4405/lf.swift, but can't get it to stream to an RTMP server. Are there any other recommended libraries, preferably in Swift?
Note: The reason for using RTMP over HLS is the better latency.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I wonder how to get the direct url of youtube video. For example, when i analyzed the video code of https://www.youtube.com/watch?v=OrTyD7rjBpw
i found some URLs inside the js code of the player, like https://r6---sn-w511uxa-cjoe.googlevideo.com/videoplayback?mt=1440164084&mv=m&ms=au&mm=31&mn=sn-w511uxa-cjoe&upn=ELDhWOVFRzM&id=o-AM6zxCNJwi5l5gjbq_262NpEnieXQ2iQTkGLLDieVKs4&ip=188.77.186.165&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&fexp=3300113%2C3300134%2C3300137%2C3300164%2C3310699%2C3312381%2C3312531%2C9407535%2C9408710%2C9409069%2C9412877%2C9413010%2C9414935%2C9415365%2C9415417%2C9415485%2C9416023%2C9416105%2C9416126%2C9416522%2C9417353%2C9417707%2C9418060%2C9418153%2C9418203%2C9418449%2C9419675&dur=0.000&initcwndbps=1298750&pl=20&ratebypass=yes&source=youtube&gcr=es&pcm2cms=yes&requiressl=yes&expire=1440185744&mime=video%2Fwebm&key=yt5&ipbits=0&lmt=1365511426344921&sver=3&itag=43
But it doesn't redirect to the youtube video, so i'm thinking that code is more obfuscated
There's a library for that, and a linux tool, called youtube-dl and libquvi, respectively, which support URL extraction from player pages. You can call youtube-dl -g https://www.youtube.com/watch?v=OrTyD7rjBpw to get a URL pointing to the video.
Note that many CDNs won't give you a redistributable URL for a video -- instead, it's a URL that will only work for whoever requested the video.
Also note: there's not "one" video stream at a youtube page, but several ones, for different qualities and devices.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm curious to know, how to download the subtitles for the videos of Khan Academy. As far as I know, universalsubtitles[dot]org has the subtitles. But I'm unable to get any results from my API calls. Here are a few sample calls that I tried which do not give any result but rather says that 'We're sorry - the page you are trying to access does not exist':
http://www.universalsubtitles.org/api/1.0/subtitles/?video_url=http://www.youtube.com/watch?v=qYZF6oIZtfc&feature=youtube_gdata_player
http://www.universalsubtitles.org/api/1.0/subtitles/?video_url=http://www.youtube.com/watch?v=qYZF6oIZtfc&feature=youtube_gdata_player&language=en
I tried quite a few other formats of the above API calls too, but none of them seem to work. So could someone please help me out on how to access subtitles of Khan Academy videos. I would also appreciate your answers, even if they have other ways of accessing Khan Academy videos' subtitles other than accessing it from universalsubtitles[.]org
You can use the undocumented API call "http://www.khanacademy.org/api/internal/videos/%s/transcript" where %s is the YouTube ID of the video. You will get the transcript lines for the video with start and end times for each line. I don't know if there is a better way.