http-live-streaming

Realtime Audio/Video Streaming FROM iPhone to another device (Browser, or iPhone)

ぐ巨炮叔叔 提交于 2019-11-27 17:45:20
I'd like to get real-time video from the iPhone to another device (either desktop browser or another iPhone, e.g. point-to-point). NOTE: It's not one-to-many, just one-to-one at the moment. Audio can be part of stream or via telephone call on iphone. There are four ways I can think of... Capture frames on iPhone, send frames to mediaserver, have mediaserver publish realtime video using host webserver. Capture frames on iPhone, convert to images, send to httpserver, have javascript/AJAX in browser reload images from server as fast as possible. Run httpServer on iPhone, Capture 1 second duration

Http Live Streaming for iPhone and why we use .m3u8 file

落爺英雄遲暮 提交于 2019-11-27 17:02:39
问题 I have done all that from This I have also made .ts and m3u8 file. In local server and live server i can play mp4 file like <video width="320" height="240" controls="controls" autoplay="autoplay"> <source src="movie.mp4" type="video/mp4" /> </object> </video> But i have problem with playing .m3u8 file <video width="320" height="240" controls="controls" autoplay="autoplay"> <source src="movie.m3u8" type="video/m3u8" /> </object> </video> My mediafilesegmenter created two .ts file and one .m3u8

How to use HTTP Live Streaming protocol in iPhone SDK 3.0

て烟熏妆下的殇ゞ 提交于 2019-11-27 14:07:06
I have developed on IPhone application and submitted to App store. But my application got rejected based on below criteria. Thank you for submitting your yyyyyyyy application. We have reviewed your application and have determined that it cannot be posted to the App Store at this time because it is not using the HTTP Live Streaming protocol to broadcast streaming video. HTTP Live Streaming is required when streaming video feeds over the cellular network, in order to have an optimal user experience and utilize cellular best practices. This protocol automatically determines bandwidth available to

how to change keyframe interval in ffmpeg

拥有回忆 提交于 2019-11-27 12:57:22
问题 I wanted to set the keyframe interval of an input video to 5 seconds. Only then can I achieve a constant 5 second HLS segmentation using FFmpeg. How to set the keyframe interval to 5 seconds using FFmpeg? (FFmpeg prompt line code appreciated) 回答1: You'll need to reencode. Set x264's keyint parameter to 5*fps and disable scenecut. If your fps is 24 for example : ffmpeg -i <input> -vcodec libx264 -x264-params keyint=120:scenecut=0 -acodec copy out.mp4 This is obviously not optimal for quality

Playing m3u8 Files with HTML Video Tag

给你一囗甜甜゛ 提交于 2019-11-27 11:47:01
I am trying to use HTTP Live Streaming (HLS) to stream video to my computers and my iPhone. After reading through the Apple 'HTTP Live Streaming Overview' as well as 'Best Practices for Creating and Deploying HTTP Live Streaming Media for the iPhone and iPad', I am a bit stuck. I took my source file (an mkv) and used ffmpeg to encode the file the MPEG-TS format and Apple-recommended settings and a Baseline 3.0 profile: ffmpeg -i "example.mkv" -f mpegts -threads:v 4 -sws_flags bicubic -vf "scale=640:352,setdar=16/9,ass=sub.ass" -codec:v libx264 -r 29.970 -b:v 1200k -profile:v baseline -level:v

How to let AVPlayer retrieve playlist secured by SSL?

淺唱寂寞╮ 提交于 2019-11-27 11:24:27
问题 We´re developing a HTTP-streaming iOS app that requires us to receive playlists from a secured site. This site requires us to authenticate using a self signed SSL certificate. We read the credentials from a .p12 file before we use NSURLConnection with a delegate to react to the authorization challenge. - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge { [[challenge sender] useCredential: self.credentials

Is Android 2.2 HTTP progressive streaming = HTTP Live Streaming?

白昼怎懂夜的黑 提交于 2019-11-27 09:42:19
问题 The Stagefrigh media framework (Android 2.2) supports HTTP progressive streaming. What's that means? I.e. is this an HTTP Live Streaming protocol realization? And how to use HTTP Live Streaming on Android, I mean what's the client - web browser, MediaPlayer or just "in-SDK" realization and I have to inherit from some class? 回答1: One big practical diffrence is that Stagefright media Framework supports mpeg3 streaming, which the old engine didn't. So you can use (shoutcast) mp3streams for

transcode and segment with ffmpeg

a 夏天 提交于 2019-11-27 09:21:12
问题 It appears that ffmpeg now has a segmenter in it, or at least there is a command line option -f segment in the documentation. Does this mean I can use ffmpeg to realtime-transcode a video into h.264 and deliver segmented IOS compatible .m3u8 streams using ffmpeg alone? if so, what would a command to transcode an arbitrary video file to a segmented h.264 aac 640 x 480 stream ios compatible stream? 回答1: Absolutely - you can use -f segment to chop video into pieces and serve it to iOS devices.

How can I get the actual video URL of a YouTube live stream?

 ̄綄美尐妖づ 提交于 2019-11-27 03:04:11
Is there a way to get the HLS URL for YouTube live streams like this one https://www.youtube.com/embed/WVZpCdHq3Qg I've tried the typical get_video_info methods but they don't seem to work with live streams. You need to get the HLS m3u8 playlist files from the video's manifest. There are ways to do this by hand, but for simplicity I'll be using the youtube-dl tool to get this information. I'll be using this live stream as an example: https://www.youtube.com/watch?v=_Gtc-GtLlTk First, get the formats of the video: ➜ ~ youtube-dl --list-formats https://www.youtube.com/watch\?v\=_Gtc-GtLlTk

FFMPEG Encryption

江枫思渺然 提交于 2019-11-27 02:25:21
问题 I am doing a project with encrypting video and I have a few questions for the procedure. I used a command to transcode mp4 to HLS with a ts segment duration of ~10 seconds. First, I need to encrypt those videos with a key from database. However, I have no idea for the encryption whether working with ffmpeg or not. Second, if the encryption can work without ffmpeg, so what should I do? I have searched in google which includes something like openssl / aes but there is no a detailed step for me