http-live-streaming

What is the reccomended way to use HLS and DASH + DRM in a player?

℡╲_俬逩灬. 提交于 2020-07-10 07:34:39
问题 I'm using the VideoJS player and have a CMAF video so I am using HLS and DASH. I'm also using all 3 types of DRM. Fairplay for hls, widevine and playready for dash. My question is should I include both hls and dash sources in the player and let the player decide which one to play? Or do I detect the browser and only insert the correct url based on that? Also DRM is the same. Can I just add all DRM to the player? Or should I only add the one that applies? 回答1: The use of HLS vs DASH is

ffmpeg : md5 of m3u8 playlists generated from same input video with different segment durations (after applying video filter) don't match

不想你离开。 提交于 2020-06-27 06:15:16
问题 Here are a few commands I am using to convert and transize a video in mp4 format to a m3u8 playlist. For a given input video (mp4 format), generate multiple video only segments with segment duration 30s ffmpeg -loglevel error -i input.mp4 -dn -sn -an -c:v copy -bsf:v h264_mp4toannexb -copyts -start_at_zero -f segment -segment_time 30 30%03d.mp4 -dn -sn -vn -c:a copy audio.aac Apply video filter (in this case scaling) on each segment and convert it to a m3u8 format ls 30*.mp4 | parallel

Pure js stream from webcamera to server

半世苍凉 提交于 2020-06-11 05:26:49
问题 Is it possible to capture stream from webcamera(in front end) and stream it to server via hls or rtmp with pure js(no flash). And if there are another protocol which let send stream as stream(unlike hls), will be prefered. 回答1: I found solution. There is no (yet) any way to "convert" stream received from navigator.getUserMedia() to rtmp in front-end. But we can use MediaRecorder Api. In client Side const stream = await navigator.getUserMedia(options) const recorder = new MediaRecorder(stream)

Media error: Format(s) not supported or source(s)

只谈情不闲聊 提交于 2020-05-17 07:47:05
问题 I am using media player js for my video, I am trying to play hls and dash video format in both ios and android. Here is what I have so far. Live demo code pen: live demo HTML <div class="video"> <video id="player1" muted autoplay controls preload="none"> source src = "//r.dcs.redcdn.pl/hls/o2/Allegro/vod/1af1b7ee-f87b-4e55-b50f-ac9d7f3e2647/playlist.smil/playlist.m3u8" type = "application/x-mpegURL" data - quality = "SD" > Here is JS $('video').mediaelementplayer({ features: ['playpause',

HLS Streaming using node JS

淺唱寂寞╮ 提交于 2020-05-09 19:26:54
问题 I'm trying to stream HLS content using node.js. And somehow it is not working. It'll be of great help if someone helps me out. Problem:- Trying to serve HLS content from node.js (not live stream, but a set of .ts files and .m3u8 playlist , or in other words VOD content ) Folder Structure stream_test |--- app.js |--- node_modules |--- streamcontent |--- test.m3u8 |--- segment0.ts |--- segment1.ts . . . |--- segment127.ts My app.js looks like this var http = require('http'), url = require('url'

Android Studio - VideoView only plays videos witth https and not http

你离开我真会死。 提交于 2020-04-18 06:10:27
问题 I have been working on an android app for live streaming and I used videoview as a player , but it only streams videos with https and throws a message "Can't play this video" if the link starts with http , that only happens on my real device not the emulator , how can I open access for http ? or how can I solve that problem actually. 回答1: here is the solution actually d this I have added this code to my Manifest and it worked all well ! android:usesCleartextTraffic="true" solution taken from

Why won't this encrypted HLS video play on iOS (but works on Windows Chrome via hls.js library)?

大憨熊 提交于 2020-04-17 18:38:40
问题 The original video is "Sample Video 5" from https://www.appsloveworld.com/download-sample-mp4-video-mp4-test-videos/. My /home/vagrant/Code/example/public/hls_hls.keyInfo is: https://example.com/hls.key /home/vagrant/Code/example/public/hls_hls.key 467216aae8a26fb699080812628031955e304a66e9e4480f9b70d31d8fe94e9a My /home/vagrant/Code/example/public/hls_hls.key was generated using PHP: hex2bin('467216aae8a26fb699080812628031955e304a66e9e4480f9b70d31d8fe94e9a') The ffmpeg command for encrypting

Why won't this encrypted HLS video play on iOS (but works on Windows Chrome via hls.js library)?

China☆狼群 提交于 2020-04-17 18:37:54
问题 The original video is "Sample Video 5" from https://www.appsloveworld.com/download-sample-mp4-video-mp4-test-videos/. My /home/vagrant/Code/example/public/hls_hls.keyInfo is: https://example.com/hls.key /home/vagrant/Code/example/public/hls_hls.key 467216aae8a26fb699080812628031955e304a66e9e4480f9b70d31d8fe94e9a My /home/vagrant/Code/example/public/hls_hls.key was generated using PHP: hex2bin('467216aae8a26fb699080812628031955e304a66e9e4480f9b70d31d8fe94e9a') The ffmpeg command for encrypting

how to reduce cpu usage of ffmpeg?

扶醉桌前 提交于 2020-02-27 03:54:14
问题 hi i am restreaming an hls stream as a hls stream SETLOCAL :loop ffmpeg -thread_queue_size 32768 -i "http://xx/636.m3u8" -f hls -hls_time 5 -hls_list_size 5 -hls_allow_cache 0 -hls_flags delete_segments -segment_list_flags +live -hls_base_url "../ts/" -hls_segment_filename "C:\nginx\html\ts\lig-%random%%random%-%%3d.svgz" -y "C:\nginx\html\hls\lig1.m3u8" > log.txt goto loop but it uses %15-20 of cpu i have to make 16 streams like that in same server but i can't. cant i make a configuration

how to reduce cpu usage of ffmpeg?

假如想象 提交于 2020-02-27 03:53:48
问题 hi i am restreaming an hls stream as a hls stream SETLOCAL :loop ffmpeg -thread_queue_size 32768 -i "http://xx/636.m3u8" -f hls -hls_time 5 -hls_list_size 5 -hls_allow_cache 0 -hls_flags delete_segments -segment_list_flags +live -hls_base_url "../ts/" -hls_segment_filename "C:\nginx\html\ts\lig-%random%%random%-%%3d.svgz" -y "C:\nginx\html\hls\lig1.m3u8" > log.txt goto loop but it uses %15-20 of cpu i have to make 16 streams like that in same server but i can't. cant i make a configuration