http-live-streaming

Save HLS stream on iPhone/iPad

雨燕双飞 提交于 2019-12-05 04:35:48
问题 I have an iPhone/iPad app which play a HTTP Live Stream of a tv channel. I want to add a record functionnality to save on the device the live stream like a TV recorder. I don't know if it's possible, but I think that I have 2 ways to record the stream. Save the output stream which is displayed at the screen, but I don't know how to do this ... Open m3u8 playlists and download segments of the playlist, save it an create a m3u8 playlist with the donwloaded segments. But in this case, I will

Is there a way to add support for HLS in desktop Chrome/HTML5 player?

帅比萌擦擦* 提交于 2019-12-04 22:46:23
Desktop Chrome and FF do not support HLS. I know there is a plugin available to add HLS support to flash. Is there such plugin or technique available to enhance HTML5 on browsers which dont have HLS support yet? szatmary Not only it is possible, but it's been done numerous times. There are several open and closed source solutions available. A quick github search gave me this one. https://github.com/RReverser/mpegts EDIT: New/better option just released http://engineering.dailymotion.com/introducing-hls-js/ 来源: https://stackoverflow.com/questions/32289662/is-there-a-way-to-add-support-for-hls

Rails 4, Live Streaming, stays open, blocking requests

梦想与她 提交于 2019-12-04 21:00:51
问题 I'm trying to use Rails 4 Live Streaming component. It all works except that it seems like the stream stays open and blocks new request. How can I ensure that the connection close down properly when closing down or clicking on a new link within the application? This is my live event controller. def events response.headers["Content-Type"] = "text/event-stream" redis = Redis.new redis.psubscribe("participants.*") do |on| on.pmessage do |pattern, event, data| response.stream.write("event: #

iOS app review - Video streaming MPEG-DASH for longer than 10 minutes

匆匆过客 提交于 2019-12-04 19:48:24
we would like to use MPEG-DASH within iOS to play streaming video. However, according to review notes - Review notes - there is stated, that the app is prohibited to use another tech. than HTTP Live stream within video content longer than 10 minutes. Does anyone have any experience with kind of topic? Because I found an app approved with this technology. iOS app So if we submit the app with MPEG-DASH, are we prohibited to use streams longer than 10 minutes? We found an answer with coop of this service: Express Play . It is really easy to use and you can even try demo if you want. It is very

Android http live Streaming URL using mediaplayer

人走茶凉 提交于 2019-12-04 18:48:50
问题 I am trying to play an url but its not playing and the code i used is below..the logcat is showing Mediaplayer error(1,-1002), start state is 0 and error(-38, 0) why...? where i am going wrong......can u help me out how to play........ import java.io.IOException; import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; import android.widget.TextView; public class

Unable to get tracks of AVAsset using HLS while retrieveing bitrate

痞子三分冷 提交于 2019-12-04 18:28:16
I am using HLS streaming in my application and I am using AVPlayer. Now I want to get bitrate of the video track using AVAsset. Although I have added observer and other stuff I am getting tracks array as empty always.Am I on right track or missing anything? HLS is adaptive, therefore, bitrate can vary across the duration of the stream based on various conditions. You are on completely the wrong track, unlike playing a file, either local or from a network URL, currentItem.asset.tracks will always be nil. You'll need to query the AVPlayer's currentItem's accessLog and inspect the appropriate

How are access units aligned within PES packets in Apple's HLS?

╄→гoц情女王★ 提交于 2019-12-04 17:43:13
Does Apple specify this? How many access units should one put in a PES packet payload? Also, I'm wondering which prefix start codes (if any) are present in PES packets. I assume that the one preceding the first NAL unit within an access unit is useless and mustn't be put. Right? I'd like to know how it's done specifically in HLS - not necessarily any other MPEG-2 TS application. I'd like to know how it's done specifically in HLS - not necessarily any other MPEG-2 TS application. HLS is a standard MPEG-2 TS stream. HLS does not do it any differently, except limit to a single audio and singe

Manual encoding into MPEG-TS

非 Y 不嫁゛ 提交于 2019-12-04 16:55:26
SO... I am trying to take a H264 Annex B byte stream video and encode it into MPEG-TS in pure Java. My goals is to create a minimal MPEG-TS, Single Program, valid stream and to not include any timing information information (PCR, PTS, DTS). I am currently at the point where my generated file can be passed to ffmpeg (ffmpeg -i myVideo.ts) and ffmpeg reports... [NULL @ 0x7f8103022600] start time is not set in estimate_timings_from_pts Input #0, mpegts, from 'video.ts': Duration: N/A, bitrate: N/A Program 1 Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709),

Multi bitrate live HLS with FFmpeg on Windows

ぃ、小莉子 提交于 2019-12-04 11:30:43
I am trying to encode a live stream into Apple HLS for iPhone on windows. I was looking at different options and wowza can do it, but doesn't support CDN distribution of HLS as far as I can see. Plus it costs a lot of money. What I did find was this site: http://www.espend.de/artikel/iphone-ipad-ipod-http-streaming-segmenter-and-m3u8-windows.html I can now set up a single bitrate stream easily, but my goal is an adapive multi-bitrate live stream. Is it possible? For VOD content it can easily be accomplished with creating the different qualities then linking to them in a new m3u8, but how would

Creating HLS variants with FFMPEG

早过忘川 提交于 2019-12-04 11:05:57
I am starting with a high res video file and I would like to create 3 variants, low quality, mid quality, and high quality for mobile streaming. I want these mid/low/high variants to be segmented into ts pieces that the m3u8 file will be pointing that. Is there a way to do this in one line in ffmpeg? I have successfully generated an m3u8 file and ts segments with ffmpeg, do I need to do this 3x and set specs for low/mid/high? If so, how do I get the singular m3u8 file to point to all variants as opposed to one for each variant? This is the command I used to generate the m3u8 file along with