video-streaming

Why is fs.createReadStream … pipe(res) locking the read file?

帅比萌擦擦* 提交于 2019-12-07 15:55:35
问题 I'm using express to stream audio & video files according to this answer. Relevant code looks like this: function streamMedia(filePath, req, res) { // code here to determine which bytes to send, compute response headers, etc. res.writeHead(status, headers); var stream = fs.createReadStream(filePath, { start, end }) .on('open', function() { stream.pipe(res); }) .on('error', function(err) { res.end(err); }) ; } This works just fine to stream bytes to <audio> and <video> elements on the client.

How to do rtmp streaming in kurento media server?

可紊 提交于 2019-12-07 14:45:43
问题 I was just wondering if there is any feature like RTMP in Kurento Media Server . I need it to stream my vod content . Any ideas ? anyhow RTP can be used for it ? Thanks Pawan 回答1: There isn't a rtmp endpoint in Kurento, at least yet. But we have streamed content to a Wowza mediaserver using an RTP Endpoint with the last kurento development version. Maybe this can also work for you. 来源: https://stackoverflow.com/questions/27203318/how-to-do-rtmp-streaming-in-kurento-media-server

Detecting and intercepting video playback in UIWebView

无人久伴 提交于 2019-12-07 10:54:27
问题 I would like to intercept a click in an UIWebView and then use the URL of the video. How is this possible? I found a somewhat similar post which pointed met to the webView:shouldStartLoadWithRequest:navigationType: delegate. I cant seem to get the loaded url of the video with this delegate. I am trying to get the code working in iOS8 回答1: There is a hacky way of finding the URL by listening for the AVPlayerItemBecameCurrentNotification notification. This notification is fired when a UIWebView

ExoPlayer: How to play http live stream?

左心房为你撑大大i 提交于 2019-12-07 09:32:14
问题 i want to use ExoPlayer library for my Android application to play live streaming videos. I was looking through the exoplayer website and documentation as well as Github page but i wasn't satisfied with the explanations. Anyone can give me a hint how do you play a http live streaming video through ExoPlayer? Thanks in advance. 回答1: I was able to play LiveStream right away in ExoPlayer. Just download this sample at https://drive.google.com/file/d/0Byr1H33Pe7u-MW93UUpmMUhGTTQ/view and modify

Change Frames Per Second for VLC Stream

感情迁移 提交于 2019-12-07 08:53:40
问题 We are currently experimenting with streaming a webcam attached to one of our Linux servers (Ubuntu 12.04) using VLC, and although we are able to successfully stream the video and view it remotely, we need to change the number of frames per second (which is defaulting to 24). We are currently using the following command to create the stream: vlc v4l2:// :v4l2-dev=/dev/video0 \ :v4l2-width=640 \ :v4l2-height=480 -- \ sout="#transcode{vcodec=theo,vb=256}:standard{access=http,mux=ogg,dst=:8090}"

Playing video from app cache dir

与世无争的帅哥 提交于 2019-12-07 08:27:18
问题 Can anyone explain why downloading/playing a video from my applications cache directory does not work, but downloading/playing the same video from my sdcard does work? Note: this video is being downloaded. I am saving to memory before calling VideoView.setVideoPath(...) . // Works File file = new File(Environment.getExternalStorageDirectory(), "vid-test.3gp"); // Does not work File file = new File(getCacheDir(), "vid-test.3gp"); In each case the file in question does exist. If I attempt to

PHP Streaming video handler

放肆的年华 提交于 2019-12-07 08:19:08
问题 I'm trying to implement a video streaming solution based on user access. I have many video streams located on a private network connected to the server (http//192.168.100.101/mpeg4/1/media.amp), and I want to "proxy" that video stream through the web server. I know how to setup the user access part, but how can I proxy the video stream to the user? I have tried something like this, but it does not seem to work. header('Content-type: application/x-rtsp-tunnelled'); $ch = curl_init (); curl

Ios rotate, filter video stream in ios

亡梦爱人 提交于 2019-12-07 07:20:48
问题 Hello There I am rotating and applying image filters by GPUImage on vide live stream The task is consuming more time than expected resulting over-heating of iPhone Can anybody help me out in optimising my code Following is my used code: - (void)willOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer{ //return if invalid sample buffer if (!CMSampleBufferIsValid(sampleBuffer)) { return; } //Get CG Image from sample buffer CGImageRef cgImageFromBuffer = [self cgImageFromSampleBuffer:sampleBuffer]

Android Widevine HLS/DRM support

﹥>﹥吖頭↗ 提交于 2019-12-07 05:23:47
问题 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 回答1: 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

how to stream video from internet via nanoHTTPd to VideoView

会有一股神秘感。 提交于 2019-12-07 04:30:34
问题 I want to download and play video files during downloading. Since VideoView is not helping with this matter I decided to work with nanoHTTPd to create a pseudo HTTP server and inside my own server try to download video file and play it afterward but my problem is : 1-How can I flush downloaded part to videoview and download the remaining parts? Following is my source : public class VideoStreamingServer extends NanoHTTPD { public VideoStreamingServer() { // by default listening on port 8080