Questions tagged [http-live-streaming]

HTTP Live Streaming is a method of media streaming that consists of downloading segments of a mpeg2ts file, containing video (H.264) and/or audio (AAC or MP3). The specification was introduced by Apple and is widely used in iOS.

HTTP Live Streaming is a way to send audio and video over HTTP from a web server to client software on the desktop or to iOS-based devices.

HTTP Live Streaming sends audio and video as a series of small files, typically of about 10 seconds duration, called media segment files. An index file, or playlist, gives the clients the URLs of the media segment files. The playlist can be periodically refreshed to accomodate live broadcasts, where media segment files are constantly being produced.

References:

2691 questions
24
votes
0 answers

Convert NSDate from AVDateRangeMetadataGroup to CMTime

AVPlayer primarily measures times with CMTime. However when using an AVPlayerItemMetadataCollector to collect date range metadata from an HLS stream, the resulting AVDateRangeMetadataGroups hold NSDates instead of CMTimes. My problem is I want to…
Lily Ballard
  • 182,031
  • 33
  • 381
  • 347
24
votes
1 answer

HTML5 video: How to test for HLS playing capability? (video.canPlayType)

I have video which is delivered over HLS. Now I'd like to test in JavaScript if the device actually can play HLS video in HTML5. Usually in Javascript I did something like document.createElement('video').canPlayType('video/mp4') However I can't…
Felix Schwarz
  • 2,938
  • 4
  • 28
  • 41
23
votes
2 answers

iPhone HE-AAC Streaming over Mobile Network (3G)

Developed an internet radio streamer using jPlayer which utilizes the html5 audio tags with jQuery and has a flash fall back for unsupported browsers. Upon testing the player on the iPhone (iOS 5.0.1), we ran into a very peculiar issue. When the…
RMX
  • 313
  • 5
  • 15
23
votes
6 answers

Play m3u8 video in android

I want to live streaming the video and it is in m3u8 format. So i tried the below code public class StreamingPlayer extends Activity implements OnBufferingUpdateListener, OnCompletionListener, OnPreparedListener, OnVideoSizeChangedListener,…
Ramakrishna
  • 4,066
  • 16
  • 48
  • 72
22
votes
1 answer

How to serve HLS streams from S3 in secure way (authorized & authenticated)

Problem: I am storing number of HLS streams in S3 with given file structure: Video1 ├──hls3 ├──hlsv3-master.m3u8 ├──media-1 ├──media-2 ├──media-3 ├──media-4 ├──media-5 ├──hls4 ├──hlsv4-master.m3u8 …
22
votes
6 answers

How to download and decrypt HTTP Live Streaming (HLS) videos in iOS?

I want to download M3U8 file chunks (HLS) and store that video (after decrypting it) for later viewing. I have made a demo to play M3U8 file but I want to download video data for later view.
NSPratik
  • 4,714
  • 7
  • 51
  • 81
22
votes
2 answers

HLS 'EVENT' playlists failing to start in players

I have HLS playlists that look like…
Dominic Bou-Samra
  • 14,799
  • 26
  • 100
  • 156
22
votes
1 answer

Separate segment and encrypt steps for Adobe HDS

Adobe HTTP Dynamic Streaming (HDS)'s File Packager supports segmenting and encrypting video files with one command. However, we have a workflow need whereby we perform additional processing steps on segmented files before we encrypt those…
Jason Shah
  • 2,595
  • 3
  • 23
  • 25
21
votes
3 answers

How to get video size for HLS stream inside AVPlayer?

I am trying to get video resolution when playing hls stream. I have typical player init: let urlAsset = AVURLAsset(URL: currentVideoUrl) self.player=AVPlayer(playerItem: AVPlayerItem(asset:urlAsset)) ....... I use KVO and i try to get video size…
DixieFlatline
  • 7,895
  • 24
  • 95
  • 147
21
votes
2 answers

Mp4 to HLS using ffmpeg

I'm trying to convert a local .mp4 video to HLS using ffmpeg in an iOS app. I have integrated the ffmpeg wrapper using pods and generated all the segmented .ts files and the m3u8 file, but some of the .ts file segments are not listed in the .m3u8…
Vishnu Kumar. S
  • 1,797
  • 1
  • 15
  • 35
21
votes
1 answer

Validate the .m3u8 file on linux

I am new to HLS streaming. On MAC there is a mediastreamvalidator tool using which I can validate the .m3u8 file. The question is how to do validate the same on Linux. I have looked around but have found no way.
user27111987
  • 995
  • 2
  • 10
  • 26
21
votes
4 answers

stream live video to Android

How can I stream live video to Android (2.1 and higher), I have two links: m3u8 and f4m (As I know, f4m is not supported). From what I saw on stackoverflow, there is a way to stream m3u8 with vitamio (but the link is not working ). Is there any…
20
votes
1 answer

Play raw h264 live stream in browser

I'm looking for a solution to play raw h264 stream coming from a native server through WebSocket live on a browser. I tried many third party h264 decoders in JavaScript and each one has its own issues. Decoders based on broadway cannot decode main…
Kiran Raj
  • 201
  • 1
  • 2
  • 4
20
votes
1 answer

How to convert .movpkg to mp4

I am streaming a video (.m3u8) by using AVPlayer let url = URL(string: "http:myUrl.m3u8") let player = AVPlayer(url: url!) let playerLayer = AVPlayerLayer(player: player) playerLayer.frame = videoView.bounds playerLayer.backgroundColor =…
Vineesh TP
  • 7,755
  • 12
  • 66
  • 130
20
votes
2 answers

How do I alter my FFMPEG command to make my HTTP Live Streams more efficient?

I want to reduce the muxing overhead when creating .ts files using FFMPEG. Im using FFMPEG to create a series of transport stream files used for HTTP live streaming. ./ffmpeg -i myInputFile.ismv \ -vcodec copy \ -acodec copy \ …
Robert
  • 37,670
  • 37
  • 171
  • 213