video-streaming

Displaying RTSP on website

為{幸葍}努か 提交于 2020-01-25 21:26:07
问题 I have a RTSP link to a camera which I want to display on a web page. Since the video tag does not support RTSP, and google chrome does not support VLC and QuickTime plugins anymore, what is currently the best way to display this camera using the RTSP link? 回答1: If latency is not a great consideration you can use ffmpeg to generate a HLS playlist and serve it to clients via an HTTP server - see this. Otherwise you would need solution that would output a live fragmented MP4 stream. 回答2: You

Are html5 streamed videos cacheable?

这一生的挚爱 提交于 2020-01-25 19:59:05
问题 I'm using jwplayer to play videos in html5 mode. Videos are in mp4 format. What I'm seeing in the network tab are bunch of network requests with 206 status (partial download). So my understanding is -> video is just being streamed in partial chunks, 1-2 Mb each. But can those chunks be cached in the browser? Currently I'm seeing video just being re-streamed every time... 回答1: With reference to this answer: Yes, 206 responses are cacheable. This is also explicitly stated in RFC 7233, section 4

Error while opening video file from URL and SeekFrame not working Xuggler

前提是你 提交于 2020-01-25 06:40:13
问题 I have video in Azure blob container. I opened the connection using proxy and get the inputStream from the connection and passing to Xuggler. HttpURLConnection conn = null; boolean isUseProxyConnection = proxyFileValues.isUseProxyConnection(); // Use Proxy if (isUseProxyConnection) { proxy = AzureBlobStorageProxyConnection(); } URL urlPath = new URL(inputFile); if (isUseProxyConnection) { // Open Via Proxy conn = (HttpURLConnection) urlPath.openConnection(proxy); } else { // Open without

Android intent share to share a video url on facebook

社会主义新天地 提交于 2020-01-24 22:44:36
问题 On my android app, I want to share a video url on facebook, i've tried two ways. One: Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType("text/plain"); shareIntent.putExtra(Intent.EXTRA_TEXT, videoPathURL[position]); shareIntent.setPackage("com.facebook.katana"); activity.startActivity(shareIntent); This first way only share on facebook a link like text "https://..." so you can click and open a new tab on browser that will play the video. Second: Intent sharingIntent =

How to get RTSP stream over web application

浪尽此生 提交于 2020-01-24 17:32:06
问题 Suppose this is my video stream URL: rtsp://MyUserID:MyPassword@45.113.153.42:556/cam/realmonitor?channel=1&subtype=0 The video stream works perfectly with VLC player but I want it to play it over my web application. Is there any possibility to play RTSP protocol in any web player? 回答1: Off course! You can use VLC player on your web app!! This link had all the information that you need. https://wiki.videolan.org/Documentation:WebPlugin/ In my experience this plugin is really fast a reliable

VLC desktop streaming

亡梦爱人 提交于 2020-01-23 00:41:15
问题 Edit I stopped using VLC and switched to GMax FLV Encoder. It does a much better job IMO. Original post I am sending my desktop (screen) as an H264 video stream to another machine that saves it to a file using the follwoing command lines: Sender of the stream: vlc -I dummy --sout='#transcode{vcodec=h264,vb=512,scale=0.5} :rtp{mux=ts,dst=192.168.0.1,port=4444}' Receiver of the stream: vlc -I rc rtp://@:4444 --sout='#std{access=file,mux=ps,dst=/home/user/output.mp4}' --ipv4 This works, but

Nginx is not accepting range of bytes

自作多情 提交于 2020-01-22 20:08:06
问题 I am using nginx to serve videos from the file system. I would like to enable range request. Currently this is the result returned for my file curl -I fileurl HTTP/1.1 200 OK Server: nginx Date: Sat, 29 Mar 2014 06:41:41 GMT Content-Type: video/mp4 Content-Length: 15603963 Last-Modified: Sat, 04 Jan 2014 15:02:26 GMT Connection: keep-alive Keep-Alive: timeout=300 Accept-Ranges: bytes But if I send curl --header "Range: bytes=0-50" fileurl the whole file is downloaded. This is the server in

UDP restreaming using socket resulting in NULL packets

蓝咒 提交于 2020-01-20 08:31:28
问题 I am implementing a UDP video redirection feature. Ideally incoming video packets should be processed and redirected to a specified output interface (eth0 or eth1). Here's how it's implemented: User selects the interface from a webui. The interface gets passed to the backend Video packets are processed using OpenCaster suite (here)..the following libraries are being used in order to process the packets: tsfixcc, tsdiscont, tsvbr2cbr,tstimedwrite, tspcrrestamp and tsudpsend. I modified

OpenCV real time streaming video capture is slow. How to drop frames or get synced with real time?

和自甴很熟 提交于 2020-01-20 04:24:24
问题 Goal and problem I'd like to set up an opencv system to process either HLS streams or RMTP streams, however, I am running into a strange issue regarding a reduced frame-rate and an accumulating lag. It's as if the video gets further and further behind from where it is supposed to be in the stream. I'm looking for a way to keep up to date with a live source even if it means dropping frames. Current approach import cv2 cap = cv2.VideoCapture() cap.open('https://videos3.earthcam.com/fecnetwork

Video streaming over websockets using JavaScript

放肆的年华 提交于 2020-01-18 11:10:26
问题 What is the fastest way to stream live video using JavaScript? Is WebSockets over TCP a fast enough protocol to stream a video of, say, 30fps? 回答1: Is WebSockets over TCP a fast enough protocol to stream a video of, say, 30fps? Yes.. it is, take a look at this project. Websockets can easily handle HD videostreaming.. However, you should go for Adaptive Streaming. I explain here how you could implement it. Currently we're working on a webbased instant messaging application with chat,