http-live-streaming

Using AVPlayer in iOS can you know the current .ts file or the current timestamp from the encoder?

北城以北 提交于 2019-12-04 10:56:56
Since we are unable to get Closed caption data or subtitle data out of the AVPlayer, we are looking at other trigger methods, such as timecode or at least the knowledge of the .ts file that is currently active. I couldn't find anything in the documentation and the CMTime from the player doesn't give me the timecode that is embedded in the m3u8 files. NSLog(@"%f", CMTimeGetSeconds([mPlayer currentTime] ) ); is not what I'm looking for. #EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:562 #EXT-X-PROGRAM-DATE-TIME:2020-10-23T14:18:59+08:00 #EXTINF:10, http://aedsgios1-i.akamaihd.net/hls

How send to stream video from iOS device to server?

微笑、不失礼 提交于 2019-12-04 09:59:38
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 addInput:muxedInput]; } } else { AVCaptureDevice *videoDevice = [AVCaptureDevice defaultDeviceWithMediaType:

WOWZA + RTMP to play on Multiple Devices?

血红的双手。 提交于 2019-12-04 09:04:22
I'm still a newbie to Wowza/Streaming but when i setup everything (RHEL + Wirecast), i can somehow stream-out/broadcast from my home pc to EC2 Server. As i followed according to Wowza Live-Streaming Tutorial, i used RTMP and after that all i got FOR PUBLIC (Viewer) side are: rtsp ://xx.xx.xx.xx:1935/live/myStream http ://xx.xx.xx.xx:1935/live/myStream/playlist. m3u8 That means, i can ONLY PLAY via Flash and iOS. But on Androids and Windows Phones , there is NO FLASH supported. Now my very basic questions are (may be i'm missing out something, but): When i stream RTMP , do i only get two such

Use VLC to stream RTSP feed as HTTP Live Stream

隐身守侯 提交于 2019-12-04 07:44:08
I have a really high quality RTSP feed coming into a windows server. I'm attempting to use VLC to restream it as Http Live Streaming. Does anyone know whether it is possible to establish this stream through VLC's graphic user interface as opposed to the command line? If so, how? The examples I've found so far (on here and elsewhere) have all been command line examples and none of them have worked at all. I would love to hear from anyone who has actually accomplished a successful restream of RTSP to an http live stream using a windows server. Incidentally, I already have the website set up to

How to add external WebVTT subtitles into HTTP Live Stream on iOS client

浪子不回头ぞ 提交于 2019-12-04 07:14:55
We have videos encoded via bitmovin.com and provided as HTTP Live Streams (Fairplay HLS), but subtitles although in WebVTT format are exposed separately as direct URLs for the whole file, not individual segments and are not part of the HLS m3u8 playlist. I am looking for the way how an external .vtt file downloaded separately can still be included in the HLS stream and be available as a subtitle in AVPlayer. I know Apple's recommendation is to include segmented VTT subtitles into the HLS playlist, but I can't change the server implementation right now, so I want to clarify if it is even

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

[亡魂溺海] 提交于 2019-12-04 04:20:43
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 the presets. Thanks I believe the fasted way to remedy this issue would be to take an existing high

VideoView triggers OnPreparedListener too early for HLS

只愿长相守 提交于 2019-12-04 02:59:38
I want to show user some ProgressDialog while he waits for VideoView to start play HLS. I try to use OnPreparedListener for this, but he triggers to early (after player downloaded m3u8 file, not when video started). VideoView player = (VideoView) findViewById(R.id.player); String httpLiveUrl = "http://example.com/playlist.m3u8"; player.setVideoURI(Uri.parse(httpLiveUrl)); player.setMediaController(new MediaController(this)); player.requestFocus(); player.setOnPreparedListener(new OnPreparedListener() { public void onPrepared(MediaPlayer mp) { progress.dismiss(); } }); progress.show(); player

Wildcards on ATS Domain exceptions?

帅比萌擦擦* 提交于 2019-12-04 02:16:14
问题 In my production Xamarin apps, we retrieve a non-defined list of HLS playlist within differents domains. Is possible to use wildcards on the ATS exception dictionary? I tried something like that but without success: <key>http://*.domain.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> <true/> <key>NSIncludesSubdomains</key> <true/> </dict> 回答1: Try this : <key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> <dict> <key>domain.com</key> <dict> <key

How to show HLS embedded captions on Exoplayer

廉价感情. 提交于 2019-12-03 21:05:46
how do I enable and also select different subtitles that are embedded in a Vimeo video in HLS format using Exoplayer, ExoMedia or another player? In iOS this same video already presents the option of subtitles natively but in Android I cannot find means to implement it. This works well! TrackGroupArray trackGroups = mappedTrackInfo.getTrackGroups(rendererIndex); TrackSelectionArray currentTrackGroups = player.getCurrentTrackSelections(); TrackSelection currentTrackSelection = currentTrackGroups.get(rendererIndex); for (int groupIndex = 0; groupIndex < trackGroups.length; groupIndex++) {

iOS - How to get all audio tracks from a video file?

荒凉一梦 提交于 2019-12-03 17:26:18
My Requirement: I need to get list of all audio tracks from a video then switch to selected audio track. Approach and Problem: I am using two ways because some time first way do not provide result in that case I am using second one and sometimes both do not get result while VLC media player shows video have audio tracks. I looked apple documentation https://developer.apple.com/library/mac/releasenotes/AudioVideo/RN-AVFoundation/index.html#//apple_ref/doc/uid/TP40010717-CH1-DontLinkElementID_1 that suggested first way. My Code for getting Audio tracks -: - (NSArray *)getAvailableAudioTracks {