video-streaming

IP Camera - Streaming video with the basic authentication on Chrome

僤鯓⒐⒋嵵緔 提交于 2019-12-04 19:21:32
I have an Amcrest IP Camera. I would like to stream video to my web page. Its url is rtsp://mycamera.com:5554/stream In order to get the stream of the camera, the camera has a following API http://mycamera.com/video.mjpg It requires the basic authentication to work. By formatting the URL and putting it into the image tag like below, I can make it work on Firefox, Safari <img src="http://username:password@mycamera.com/video.mjpg" /> However, Chrome (v.40 on mine) does not allow this kind of URL, the browser will promt the user password form to be filled, or simply refuses the request. Setting

Play video in Android from a bytes stream

你说的曾经没有我的故事 提交于 2019-12-04 19:17:32
问题 Is there any way to play a video from a bytes stream in Android? I'm using an specific communications middleware so I can't just pass the http/rtsp link to the MediaPlayer object. I was wondering if I can wrap my stream with a local http/rtsp link so I can play the stream instead of waiting until the file is downloaded to play it. My middleware works over TCP so I've also thought that I can wrap my rtsp datagrams with a tcp datagram and interpret them on the client somehow, after removing the

Use one NetStream object to feed two Video objects simultaneously

我怕爱的太早我们不能终老 提交于 2019-12-04 19:14:06
I'm trying to attach a single NetStream Object to two separate Video objects instead of pulling redundant streams from the server. The expected behavior would be for both Video's to display the same content. However, it seems that the last video I attach the NetStream to is the only Video that will display the content. Has anyone else run into this? I'd rather not go to the inelegant steps of using BitmapData to clone pixels if I don't have to. Thanks Scott As of Flash 10.1 Adobe finally added some new functionality for connecting directly to the bytes for the NetStream object. The new method

Video Streaming using Python

可紊 提交于 2019-12-04 19:01:43
问题 Is there any library (or) application available in Python to support Video Streaming? It has to read the file and needs to stream over the web. 回答1: Check out Flumotion It's a streaming media server implemented in Python. 来源: https://stackoverflow.com/questions/5336643/video-streaming-using-python

Widevine video streaming on iOS and AirPlay

烂漫一生 提交于 2019-12-04 18:51:17
Could you help us please with the following problem related to the DRM (Widevine) encrypted video stream playback and use of the AirPlay? When we tried to play the video from iPhone with use of the AirPlay on Apple TV, the "failed to load content” error was shown on the TV screen. We are not sure if that is correct behaviour. We think it is, because for encrypted video playback we cannot use the AirPlay as it transports the raw unencrypted stream, right? So far we found that the only possible solution is showing video on iPhone, while playing audio on the AppleTV, it seems that for audio the

Unable to get tracks of AVAsset using HLS while retrieveing bitrate

痞子三分冷 提交于 2019-12-04 18:28:16
I am using HLS streaming in my application and I am using AVPlayer. Now I want to get bitrate of the video track using AVAsset. Although I have added observer and other stuff I am getting tracks array as empty always.Am I on right track or missing anything? HLS is adaptive, therefore, bitrate can vary across the duration of the stream based on various conditions. You are on completely the wrong track, unlike playing a file, either local or from a network URL, currentItem.asset.tracks will always be nil. You'll need to query the AVPlayer's currentItem's accessLog and inspect the appropriate

How to know which android devices support video playback?

两盒软妹~` 提交于 2019-12-04 18:18:03
I've made an app to view vine videos on Android devices. These are basically .mp4 videos being loaded into a VideoView . From the following documentation ( http://developer.android.com/guide/appendix/media-formats.html ), mp4 video playback is supported on Android version 3+ devices. I've already added a android:minSdkVersion="11" to the manifest file to filter out older android versions from downloading the app, but I'm still getting feedback from users running newer versions of Android (eg. 4.1, 4.2) that complain about getting a "Video cannot be played" error message. Since there's no way

WebRTC pause and resume stream

半城伤御伤魂 提交于 2019-12-04 17:58:01
问题 I am trying to use WebRTC to build a web application that needs to pause/resume the video/audio stream when some events trigger. I have tried the getTracks()[0].stop() but I don't know how to resume the stream. 回答1: getTracks()[0].stop() is permanent. Use getTracks()[0].enabled = false instead. To unpause getTracks()[0].enabled = true . This will replace your video with black, and your audio with silence. Try it (use https fiddle for Chrome): var pc1 = new RTCPeerConnection(), pc2 = new

Streaming Mp4 video through RTP protocol using Gstreamer in Ubuntu

杀马特。学长 韩版系。学妹 提交于 2019-12-04 16:33:38
I'm trying to fetch the video file from my local directory,enable the stream from server and capture these frames from my Client side.I have used the following pipelines: Server side: gst-launch -v filesrc location=/home/gokul/Videos/Econ_TestVideo/radioactive.mp4 ! qtdemux ! rtpmp4vpay ! udpsink host=192.168.7.61 port=5000 sync=true Setting pipeline to PAUSED ... Pipeline is PREROLLING ... /GstPipeline:pipeline0/GstRtpMP4VPay:rtpmp4vpay0.GstPad:src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1, config=(string

Move and fix moov atom of video recorded on phone iOS

烂漫一生 提交于 2019-12-04 16:03:36
问题 The question is how do you find and move the moov atom of a .mov file that is recorded on an iOS device so you can stream it over http. There is one way to do it but that requires to export it to file which in theory makes you copy the entire file over and then you would be able to stream it. Is there any other way to do this? 回答1: Using iOS AV Foundation framework and a few lines of Objective-C (you can also convert from MOV to MP4 since Android cannot read MOV): so using this code without