http-live-streaming

I want to perform HLS (HTTP Live Streaming) using Gstreamer

我们两清 提交于 2019-12-03 03:41:21
I would like to stream web cam video to http web page. I know how to read from web cam and archive it to file. But how to stream via web. What is the pipeline for that? Use hlssink element from gst-plugins-bad : gst-launch-1.0 videotestsrc is-live=true ! x264enc ! mpegtsmux ! hlssink It will generate playlist and segments files. You need to provide HTTP access to these files, you can use any webserver, nginx or Apache , for example. You can tweak hlssink 's parameters to specify target location, segments count, etc. All options can be listed with: gst-inspect-1.0 hlssink If you need better low

Create a Live Streaming APP for Android [closed]

天大地大妈咪最大 提交于 2019-12-03 03:17:38
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . 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

How to minimize the delay in a live streaming with ffmpeg

流过昼夜 提交于 2019-12-03 02:20:39
问题 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

How does HTTP Adaptive Bitrate Streaming work on the iPhone?

只谈情不闲聊 提交于 2019-12-03 02:11:07
问题 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

Playing .m3u8 file on iOS

笑着哭i 提交于 2019-12-03 00:29:56
I have .m3u8 link which I need to play on iOS which supports the HLS Protocol . When I assign URL directly to the MPMoviePlayerController and play, video is not visible but I can hear the audio. NSURL *movieURL = [NSURL URLWithString:@"http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8"]; MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] initWithContentURL:movieURL]; [self.view addSubview:self.moviePlayer.view]; if (mp) { // save the movie player object self.moviePlayer = mp; [self.moviePlayer setFullscreen:YES]; // Play the movie! [self.moviePlayer play]; } What

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

只谈情不闲聊 提交于 2019-12-03 00:02:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . 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

Reduce HLS latency from +30 seconds

元气小坏坏 提交于 2019-12-02 19:47:29
Ubuntu 12.04 nginx 1.2.4 avconv -version avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers built on Feb 6 2014 20:56:59 with gcc 4.6.3 avconv 0.8.10-4:0.8.10-0ubuntu0.12.04.1 libavutil 51. 22. 2 / 51. 22. 2 libavcodec 53. 35. 0 / 53. 35. 0 libavformat 53. 21. 1 / 53. 21. 1 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 15. 0 / 2. 15. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 52. 0. 0 / 52. 0. 0 I'm using avconv and nginx to create an HLS stream but right now my latency is regularly well over 30 seconds. After much reading I am aware that HLS has

How to create byte-range m3u8 playlist for HLS?

你离开我真会死。 提交于 2019-12-02 19:36:40
Apple gives an example of support for byte-range segments in m3u8 files for HLS #EXTM3U #EXT-X-TARGETDURATION:11 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-VERSION:4 #EXTINF:10.0, #EXT-X-BYTERANGE:75232@0 media.ts #EXTINF:10.0, #EXT-X-BYTERANGE:82112@752321 media.ts #EXTINF:10.0, #EXT-X-BYTERANGE:69864 media.ts But I cannot figure out how to create such playlist for given .ts file. Are there any tools for that? There is -hls_flags as a ffmpeg option. ( https://www.ffmpeg.org/ffmpeg-formats.html ) Following command generates single ts file which is segmented by byte range feature(supported from HLS version

Can AVFoundation be coerced into playing a local .ts file?

落爺英雄遲暮 提交于 2019-12-02 19:36:05
Clearly, AVFoundation (and Quicktime X) can demux and play properly encoded .ts containers, because .ts containers underly HTTPS live streaming. Short of setting up a local web service to serve the .m3u8 and associated .ts files, I'd really like to be able to either: convince AVURLAsset and/or URLAssetWithURL to accept a local file .m3u8 URI as if it were an HTTP URI, or better yet, be able to use AVQueuePlayer to load and play a sequence of .ts files without jumping through the live streaming hoops. The reason I'm wanting to do this is that I need to locally generate movie assets on-the-fly

Mp4 to HLS using ffmpeg

℡╲_俬逩灬. 提交于 2019-12-02 17:38:41
I'm trying to convert a local .mp4 video to HLS using ffmpeg in an iOS app. I have integrated the ffmpeg wrapper using pods and generated all the segmented .ts files and the m3u8 file, but some of the .ts file segments are not listed in the .m3u8 playlist file as shown below. It is always listing the last 5 video segments. #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:2 #EXT-X-MEDIA-SEQUENCE:13 #EXTINF:2, out13.ts #EXTINF:1, out14.ts #EXTINF:2, out15.ts #EXTINF:2, out16.ts #EXTINF:1, out17.ts #EXT-X-ENDLIST I used the following codes to generate the HLS. FFmpegWrapper *wrapper = [