mjpeg

How to save a MJPEG Stream to disk (C# .NET)?

谁说我不能喝 提交于 2020-01-06 04:32:10
问题 I have an application that read the stream from a camera (MJPEG) and show it on the form in real time (in a picture box). This is working. This stream reading start when the user click on the button "Start". What I want to do is that when the user click on a button "Stop", the stream between the button "Start" and "Stop" would be save on disk as a .mpg. Right now, it write something on the disk, but I can't open it in Windows Media Player. Here is the code to write the stream private void

What format is this JPEG stream from my cheap Chinese IP webcam?

左心房为你撑大大i 提交于 2020-01-03 18:37:59
问题 I've got a cheap Chinese IP webcam that has a web interface showing live video. The video appears to be a sequence of jpeg images fed into the browser. If I point wget at the URL http://my-ip-camera/video.cgi I receive a big chunk of streamed data in the following format: --ipcamera Content-Type: image/jpeg Content-Length: 46056 JFIF header data ... lots of data ... this pattern repeats for every "frame". Is this some "standard" streaming format I can play/transcode with something, or is it

Write MJPEG stream to disk

孤者浪人 提交于 2020-01-03 15:50:10
问题 How can I write an MJPEG stream to disk in C#? (AVI, MPEG or OGG) 回答1: You create a FileStream that will be the file you want to write to and use the MJPEG stream as an input to write to this stream. 回答2: A library for reading/decoding MJPEG streams was recently released in C#, maybe it will help. You can find it here: http://channel9.msdn.com/coding4fun/articles/MJPEG-Decoder 来源: https://stackoverflow.com/questions/4658742/write-mjpeg-stream-to-disk

Frame-by-frame MJPEG streaming with C#/ASP.NET MVC

懵懂的女人 提交于 2020-01-01 14:57:54
问题 I have been trying to setup a MJPEG stream in ASP.NET. I want to retrieve a MJEPG stream from a URL, and send every frame that I get to every connected client. Examples that I have been able to find only read from a set file, instead of a continues stream from URL, and send the entire file through MultiStreamContent . Since I retrieve frame-by-frame, I cannot do this. I would like to know if it is possible to do what I want with ASP.NET MVC. I'm currently using AForge video to retrieve the

Android MJPEG stream

我们两清 提交于 2019-12-31 02:25:13
问题 I have implemented Android and MJPEG and also implemented async and certifications to run it that is mentioned here. Now i have managed to run the jpeg video stream but the issue is It keeps blinking when running the stream. It keeps getting on and off. I think it could be the issue of frames. Anyone has the idea how to handle this. Here is the complete code that i have implemented: MjpegSample.java public class MjpegSample extends Activity { private static final boolean DEBUG=true; private

MjpegView with other XML layouts

人走茶凉 提交于 2019-12-25 03:04:58
问题 I'm developing an APP that needs to gets the stream of an Airdrone through mjpeg. I'm using the classes from this topic. It works great with the example but I need to add some other elements to the same view such as the buttons to control de airdrome. The example code: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... mv = new MjpegView(this); setContentView(mv); ... What i'm trying to do but is not working... ... mv = (MjpegView) findViewById

How can I decode rtp packet of some specific rtp payload type as rtp packet with another payload type?

最后都变了- 提交于 2019-12-24 23:23:10
问题 I'm receiving rtp packets with JPEG payload with VLC. When I mannually setup the type to 26 (JPEG), vlc doesn't try open the stream; if I define it as 96, vlc opens it and displays it wrong - that is due to malformed encoding. To find out the correct encoding, i.e to find out what values of packet headers are correct, i want to compare the rtp packets with working example. Surprisingly, example uses payload type 96 instead of 26. I user wireshark to observe the headres; if works fine with

Node.js - MJPEG TCP stream to base64 images

ε祈祈猫儿з 提交于 2019-12-22 12:08:07
问题 Based on paparazzo.js lib, I'm trying to get base64 images from a MJPEG stream (streamed over TCP with GStreamer) in a Node.js server, and to send them to the clients via websockets. I think I'm pretty close, but my images are corrupted. Here is the code I'm using : var boundary = "----videoboundary"; var data = ""; var tcpServer = net.createServer(function (socket) { socket.on('data', function(chunk) { var boundaryIndex = chunk.toString().indexOf(boundary); if (boundaryIndex !== -1) { // Get

HttpWebResponse with MJPEG and multipart/x-mixed-replace; boundary=--myboundary response content type from security camera not working

帅比萌擦擦* 提交于 2019-12-20 23:19:11
问题 I have an ASP.NET application that I need to show a video feed from a security camera. The video feed has a content type of 'multipart/x-mixed-replace; boundary=--myboundary' with the image data between the boundaries. I need assistance with passing that stream of data through to my page so that the client side plugin I have can consume the stream just as it would if I browsed to the camera's web interface directly. The following code does not work: //Get response data byte[] data =