http-live-streaming

Create a Live Streaming APP for Android [closed]

天大地大妈咪最大 提交于 2019-12-02 16:48:08
I am having quite a trouble lately. I want to develop an Android App with a livestreaming embeded, but I just don't know how to start. I tried using an Webview with the livestreaming tag embeded, but it didn't work (most likely the stream is provided via Flash). I also tried to use a VideoView component but it also didn't work. I know it's possible because those publishers have their own APP, but the format we are provided is usually Flash. Not a mobile friendly format. Can someone, please, show me any idea on how to start or if there is some workaround? Thanks in advance! EDIT: What I would

How to minimize the delay in a live streaming with ffmpeg

て烟熏妆下的殇ゞ 提交于 2019-12-02 15:52:28
i have a problem. I would to do a live streaming with ffmpeg from my webcam. I launch the ffserver and it works. From another terminal I launch ffmpeg to stream with this command and it works: sudo ffmpeg -re -f video4linux2 -i /dev/video0 -fflags nobuffer -an http://localhost:8090/feed1.ffm In my configuration file I have this stream: <Stream test.webm> Feed feed1.ffm Format webm NoAudio VideoCodec libvpx VideoSize 720x576 VideoFrameRate 25 # Video settings VideoCodec libvpx VideoSize 720x576 # Video resolution VideoFrameRate 25 # Video FPS AVOptionVideo flags +global_header # Parameters

Getting Error when trying to download a m3u8 video using AVAssetDownloadURLSession in iOS

心不动则不痛 提交于 2019-12-02 15:19:36
问题 Trying to download a .m3u8 video file (http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8) using AVAssetDownloadURLSession. When i run the code in Xcode, I get an error: "Error Domain=AVFoundationErrorDomain Code=-11800 \"The operation could not be completed\" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-12780), NSLocalizedDescription=The operation could not be completed}" . The code that I have used: import UIKit import AVFoundation class ViewController:

How does HTTP Adaptive Bitrate Streaming work on the iPhone?

强颜欢笑 提交于 2019-12-02 14:12:57
Apple has included HTTP Adaptive Bitrate Streaming in the iPhone OS 3.0, in particular Safari handles this automatically. I'd like to play with this in a low cost manner, but I expect it'll require a custom HTTP server in the worst case, and interesting PHP/etc scripting in the best case. But first I need to know what the protocol differences or standard is. HTTP is reasonably simple as a protocol, but adaptive bitrate means the file size is different, the chunk locations are different at different bitrates, etc. For instance, does the client tell the server anything special about the stream

FFMPEG mp4 from http live streaming m3u8 file? [closed]

邮差的信 提交于 2019-12-02 13:48:35
How Can I extract mp4 from http live streaming m3u8 file? I Tried this command below: ffmpeg -i {input file} -f rawvideo -bsf h264_mp4toannexb -vcodec copy out.mp4 I took this error: [NULL @ 0000000002f07060] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: I aergistal Your command is completely incorrect. The output format is not rawvideo and you don't need the bitstream filter h264_mp4toannexb which is used when you want to convert the h264 contained in an mp4 to

HLS with AES 128 encryption on Android (Ice Cream Sandwich)

我的未来我决定 提交于 2019-12-02 12:26:23
问题 I am starting to put an App together that will require the use of HLS video. I want to use Ice Cream sandwich as the target SDK, but I am not certain if this api will support HLS with encryption. Here is what the developer site says: Applications can now pass an M3U playlist URL to the media framework to begin an HTTP Live streaming session. The media framework supports most of the HTTP Live streaming specification, including adaptive bit rate. It doesn't specifically state what I am looking

Add custom headers to videojs player source

被刻印的时光 ゝ 提交于 2019-12-02 08:03:28
I have a backend api (using express) that handles a streaming video m3u8 file. http://localhost:3000/api/stream.m3u8 This endpoint will only work with a proper user token . router router.get('/api/stream.m3u8', controller.stream); controller exports.stream = function(req, res) { var token = ''; // ? not sure how to get access to a sent up token if (!token) res.status(401).json('Not authorized'); // if token is valid, proceed }; On the front end, I am using videojs. var player = videojs('my-player', {}) // set source to my backend api m3u8 file player.src({ src: 'http://localhost:3000/api

HLS with AES 128 encryption on Android (Ice Cream Sandwich)

耗尽温柔 提交于 2019-12-02 04:51:06
I am starting to put an App together that will require the use of HLS video. I want to use Ice Cream sandwich as the target SDK, but I am not certain if this api will support HLS with encryption. Here is what the developer site says: Applications can now pass an M3U playlist URL to the media framework to begin an HTTP Live streaming session. The media framework supports most of the HTTP Live streaming specification, including adaptive bit rate. It doesn't specifically state what I am looking for, so my question is this - has anyone had any luck using HLS with an encrypted feed on ICS? If so,

AVPlayer Stops Playing AES encrypted offline HLS Video in online mode

断了今生、忘了曾经 提交于 2019-12-01 11:29:19
问题 I have written a code to download HLS video and play it in offline mode. This code works fine for encoded video. Now I have a video which is AES encrypted and we are having custom encryption key for it. After downloading AES encrypted HLS video I am using below given code to supply key for decryption of video. - (BOOL)resourceLoader:(AVAssetResourceLoader *)resourceLoader shouldWaitForLoadingOfRequestedResource:(AVAssetResourceLoadingRequest *)loadingRequest { NSString *scheme =

How can I precisely detect HLS support on different browsers and different OS?

只谈情不闲聊 提交于 2019-12-01 10:00:54
问题 According to this answer, to test the browser's capabilities to play HLS video, the MIME application/x-mpegURL can be used. But the problem with this approach is that it is returning maybe for iPhone (actually supports HLS) as well as for Firefox for Android (which doesn't support). Though this works well by returning an empty string in case of desktop browsers such as Chrome and Firefox. Is there any precise way to check for HLS support in a browser? HTML5test.com could able to predict the