http-live-streaming

How send to stream video from iOS device to server?

有些话、适合烂在心里 提交于 2019-12-06 02:09:02
问题 I must send video in real-time from iPhone to server. I create capture session and use AVCaptureMovieFileOutput. NSError *error = nil; captureSession = [[AVCaptureSession alloc] init]; // find, attach devices AVCaptureDevice *muxedDevice = [AVCaptureDevice defaultDeviceWithMediaType: AVMediaTypeMuxed]; if (muxedDevice) { NSLog (@"got muxedDevice"); AVCaptureDeviceInput *muxedInput = [AVCaptureDeviceInput deviceInputWithDevice:muxedDevice error:&error]; if (muxedInput) { [captureSession

Error while implementing AVAssetDownloadURLSession to download HLS stream

爱⌒轻易说出口 提交于 2019-12-05 22:36:21
I'm trying to implement an offline mode to a streaming application. The goal is to be able to download an HLS stream on the device of the user to make it possible to watch the stream even while the user is offline. I have recently stumble on this tutorial . It seems to answer the exact requirements of what I was trying to implement but I'm facing a problem while trying to make it work. I've created a little DownloadManager to apply the logic of the tutorial. Here is my singleton class: import AVFoundation class DownloadManager:NSObject { static var shared = DownloadManager() private var config

HLS preset settings for 480p | 720p | 1080p

跟風遠走 提交于 2019-12-05 22:26:06
问题 We are trying to transcode mp4 videos into HLS using AWS transcoder. We see that there are only few presets available ( highest being 2M ). The max resolution this gives us is 360p on JWPlayer . If we want higher resolution ( 480p | 720p | 1080p ), we understand that we need to transcode videos at higher bit rate. For that we will need to create new presets. Could someone help us with different transcoder settings to create these presets? We don't understand most of the fields presented in

JWPlayer and HLS streaming - “Error loading player: No playable sources found”

こ雲淡風輕ζ 提交于 2019-12-05 21:28:24
The problem I have a server (nginx-rtmp-module) that streams from IP camera to HLS. I want to embed the live stream to popular browsers: Chrome, Firefox and IE. The stream is not working on some desktop browsers. Test player: https://content.jwplatform.com/previews/KCpvutTz-FfTLdraP What I tried Tested devices and browsers: Firefox on PC - "Error loading player: No playable sources found" IE 11 - OK Chrome on PC - OK Chrome on Android - OK iPhone - OK The questions How to resolve these issues? Is the flash a requirement for live HLS streaming on desktop browsers? After contacting jwpplayer

MediaPlayer, only video m3u8 HTML streams work

余生颓废 提交于 2019-12-05 20:51:11
I'm using the MediaPlayer with a m3u8 audio stream. This results in a log error message: Error(1, -1010) The first argument seems ok when I look at the error codes: https://github.com/android/platform_external_opencore/blob/master/pvmi/pvmf/include/pvmf_return_codes.h Only -1010 , is strange. When I use the apple video m3u8 url it's working great! This is the url: http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8 The code I'm using is simple: MediaPlayer mediaPlayer = new MediaPlayer(); try { mediaPlayer.setDataSource("http://devimages.apple.com/iphone/samples/bipbop/gear1

Convert H.264 Annex B to MPEG-TS

ⅰ亾dé卋堺 提交于 2019-12-05 17:50:37
SO... I have RAW H.264 video data captured via RTSP in a local file and I am attempting to playback the video in a Java FX application. In order to do this, I need to use Http Live Streaming. I have successfully prototyped a Java FX architecture that can play a video via HLS with a local server using a local folder containing a .m3u8 (HLS index) file and collection of .ts (MPEG-TS) files. The last piece for me is to replace the .ts files with .264 / .h264 files and in the local server, perform the conversion / wrapping of the H.264 Annex B data into MPEG-TS. I am having trouble figuring out

AVPlayer making extraneous http request prior to playback of HLS / AES-encrypted video

拈花ヽ惹草 提交于 2019-12-05 16:12:48
We're using AVPlayer on iOS 8.4 to play HLS, AES-encrypted video. Our .m3u8 files include the url of the license server, e.g.: EXT-X-KEY:METHOD=AES-128,URI="https://...." In our iOS application, we're using AVAssetResourceLoaderDelegate method resourceLoader:shouldWaitForLoadingOfRequestedResource: to intercept the request that gets sent by the AVPlayer (or some object within AVFoundation) to the license server. Within that method, we add a token (required by the license server) to the request's queryString. The license server receives the request with the token, returns the encryption key,

Android VideoView live tv stream (HLS)

北战南征 提交于 2019-12-05 14:56:54
I'am trying to develop app for tv streaming (HLS). Using code below I tested stream on 2.3.3, 3.0 and 4.0.1 version Android devices, but encountered several problems. On Android 2.3.3 stream plays for >1 minute and then just stops. On Android 3.0 it plays well and on Android 4.0.3 it displays message 'This file cannot be played' (if I remember correctly). So my question would be: How can I play stream on ether of these devices, without having stream playing problems? Or where can I read more about solutions to these problems (tried to search but found nothing useful)? Code in Main_Activity:

Does the Chromecast support casting videos from Reddit? (HLS and Dash videos)

那年仲夏 提交于 2019-12-05 13:13:18
Called proxy with URL http://192.168.xx.xx:8080/3hyw7hwoajn21/HLSPlaylist.m3u8 Called proxy with URL http://192.168.xx.xx:8080/3hyw7hwoajn21/HLS_540_v4.m3u8 Called proxy with URL http://192.168.xx.xx:8080/3hyw7hwoajn21/HLS_AUDIO_160_K_v4.m3u8 Called proxy with URL http://192.168.xx.xx:8080/3hyw7hwoajn21/HLS_224_v4.m3u8 Here's an example Reddit video: https://www.reddit.com/r/me_irl/comments/b3vrs4/me_irl Looking through the JSON , it has a few options for video sources: "reddit_video": { "dash_url": "https://v.redd.it/3hyw7hwoajn21/DASHPlaylist.mpd", "duration": 76, "fallback_url": "https://v

Android Widevine HLS/DRM support

拟墨画扇 提交于 2019-12-05 10:24:16
It will be soon 2 years since Google acquires the Widevine company that provides the DRM support for protecting e.g. the HLS H.264/AAC streams. According to the http://www.widevine.com/ not only Android, but also iPhone/iPad and game consoles like Wii or PS3 ares supported. Does anybody experience with the Android Widevine DRM? Regards, STeN you must be certified by google to work with the Widevine APIs. the certification is called CWIP and requires paying a substantial sum and going through a course. 来源: https://stackoverflow.com/questions/10350245/android-widevine-hls-drm-support