http-live-streaming

HLS stream not working on Apple devices

两盒软妹~` 提交于 2019-12-01 08:57:26
I have a live RTSP stream that i have managed to transcode to HLS via VLC. Now it works perfect on Android and on desktop browsers (via flash). But not on Apple (i can test it on iPad and desktop Safari on my virtual machine). I can see the player but when i press the 'play' button all i see is a black rectangle inside the player. On desktop Safari there is also a text 'Loading...' near the play/pause button and nothing else happens. My HTML: <video id="player" controls style="width:100%; height:100%"> <source src="http://178.79.164.114/playlist.m3u8" type="application/x-mpegURL"> </video> The

How to enable cookies in ffmpeg HLS

早过忘川 提交于 2019-12-01 08:30:54
Anyone know how to enable cookie interaction in ffmpeg? I have an HLS stream who need save cookies from the server , but actually that doesn't happen. There's no cookie support in ffmpeg. You'll need to implement that part on your own or perhaps use mplayer which supports cookies. You can send headers with FFmpeg Linux ffmpeg -i INPUT -headers $'Cookie: logged_in=yes; tracker=direct\r\n' Windows powershell ffmpeg -i INPUT -headers "Cookie: logged_in=yes; tracker=direct`r`n" 来源: https://stackoverflow.com/questions/16105929/how-to-enable-cookies-in-ffmpeg-hls

FFmpeg make mpeg2 ts without discontinuity

你。 提交于 2019-12-01 07:39:28
I have many MOV files recorded with iPhone and I want to convert them to mpeg2 TS. I want to use them for live video streaming with HTTP Live Streaming protocol. I set my iPhone to continiously send MOV files to server. Every video clip is 5 seconds long. I want to make mpeg2 TS out of them and add their urls to m3u8 playlist. I managed to do all of that, but when I try to play the stream VLC player plays only first two files in playlist, and last file in playlist at that moment. I searched the internet and I think this has something to do with discontinuity. Is there any way to convert

How to enable cookies in ffmpeg HLS

你说的曾经没有我的故事 提交于 2019-12-01 06:40:46
问题 Anyone know how to enable cookie interaction in ffmpeg? I have an HLS stream who need save cookies from the server , but actually that doesn't happen. 回答1: There's no cookie support in ffmpeg. You'll need to implement that part on your own or perhaps use mplayer which supports cookies. 回答2: You can send headers with FFmpeg Linux ffmpeg -i INPUT -headers $'Cookie: logged_in=yes; tracker=direct\r\n' Windows powershell ffmpeg -i INPUT -headers "Cookie: logged_in=yes; tracker=direct`r`n" 来源:

FFmpeg make mpeg2 ts without discontinuity

怎甘沉沦 提交于 2019-12-01 04:30:22
问题 I have many MOV files recorded with iPhone and I want to convert them to mpeg2 TS. I want to use them for live video streaming with HTTP Live Streaming protocol. I set my iPhone to continiously send MOV files to server. Every video clip is 5 seconds long. I want to make mpeg2 TS out of them and add their urls to m3u8 playlist. I managed to do all of that, but when I try to play the stream VLC player plays only first two files in playlist, and last file in playlist at that moment. I searched

Downloading and playing offline HLS Content - iOS 10

淺唱寂寞╮ 提交于 2019-11-30 21:47:58
Since iOS 10, Apple has provided the support for downloading HLS (m3u8) video for offline viewing. My question is: Is it necessary that we can only download HLS when it is being played ? Or we can just download when user press download button and show progress. Does anyone has implemented this in Objective C version? Actually my previous App is made in Objective C. Now I want to add support for downloading HLS rather than MP4 (previously I was downloading MP4 for offline view). I am really desperate to this. Please share thoughts or any code if implemented. The only way you can do this is to

Parse and Play a .pls file in Android

穿精又带淫゛_ 提交于 2019-11-30 19:09:43
can anybody help me how to parse and play this .pls file in android [playlist] NumberOfEntries=1 File1=http://stream.radiosai.net:8002/ MH. A quick search resulted in this very basic PlsParser from the NPR app that, by the looks of it, will simply parse the .pls file and return all embedded URLs in a list of strings. You'll probably want to take a look at that as a starting point. After that, you should be able to feed the URL to a MediaPlayer object, although I'm not completely sure about what formats/protocols are supported, or what limitations might apply in the case of streaming. The

MPEG-TS Segments HTTP Live Streaming

送分小仙女□ 提交于 2019-11-30 16:28:52
I'm trying to interleave MPEG-TS segments but failing. One set of segments was actually captured using the built in camera in the laptop, then encoded using FFMPEG with the following command: ffmpeg -er 4 -y -f video4linux2 -s 640x480 -r 30 -i %s -isync -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -s 640x480 -vcodec libx264 -fflags +genpts -b 386k -coder 0 -me_range 16 -keyint_min 25 -i_qfactor 0.71 -bt 386k -maxrate 386k -bufsize 386k -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -aspect 640:480 And the other one is an avi file that was encoded using the following command: fmpeg -er 4 -y -f avi -s

How to play m3u8 encrypted playlists by providing key file separately?

£可爱£侵袭症+ 提交于 2019-11-30 16:07:39
I have a m3u8 playlist file(lets call it prime), which points to another playlist file which in turn has the ts URLs with the key file URL. Using MPMoviePlayer I can currently play the prime m3u8 file. The segments are encrypted with AES-128 bit encryption and the key file is in the final m3u8 file. Is there a way that I can supply the final m3u8 file and tell the app to use a local key file to decrypt the video, so I don't have to publish the key file publicly. This is somewhat related to this SO question Yes -- You can modify the final m3u8 file before passing it to the player. For example,

How to play m3u8 encrypted playlists by providing key file separately?

喜你入骨 提交于 2019-11-30 16:04:36
问题 I have a m3u8 playlist file(lets call it prime), which points to another playlist file which in turn has the ts URLs with the key file URL. Using MPMoviePlayer I can currently play the prime m3u8 file. The segments are encrypted with AES-128 bit encryption and the key file is in the final m3u8 file. Is there a way that I can supply the final m3u8 file and tell the app to use a local key file to decrypt the video, so I don't have to publish the key file publicly. This is somewhat related to