mjpeg

Solutions to stream from a decklink card to browsers (Gstreamer -> TCP MJPEG -> ?)

 ̄綄美尐妖づ 提交于 2019-12-20 14:40:07
问题 I need to live stream from a decklink card to a browser. I also must be able to do it with a very poor network link (128kbits/s...), so I need to be able to stream at a very low fps (1 fps is fine) and a very low image quality. At the moment I'm using GStreamer to get the video from the card, to transcode it to MJPEG, and to stream it with TCP. This part is perfectly working, but now I need to tube this tcp stream to an HTTP stream. I can do this with VLC and it works well at a "normal"

Android: streaming the camera as mjpeg

非 Y 不嫁゛ 提交于 2019-12-20 09:23:54
问题 After several days of searching SO and google I'm beginning to give up, so I thought I might as well post here. I'm creating an android app which should offer some kind of video chat. As this should be as close as possible to realtime, I read about various protocols and decided to try MJPEG for starters (not concerning with audio for now). Right now streaming the data is driving me nuts. The connection gets established, the app starts writing the camera preview frames to the stream, but

How can I split this function into smaller functions without sacrificing its functionality?

感情迁移 提交于 2019-12-20 05:37:11
问题 I got the code for MJPEG decoding from here and I am trying to split the code for IDCT into smaller functions. The IDCT function in the original code is as follows: void IDCT(int32_t *input, uint8_t *output) { int32_t Y[64]; int32_t k, l; for (k = 0; k < 8; k++) { for (l = 0; l < 8; l++) Y(k, l) = SCALE(input[(k << 3) + l], S_BITS); idct_1d(&Y(k, 0)); } for (l = 0; l < 8; l++) { int32_t Yc[8]; for (k = 0; k < 8; k++) Yc[k] = Y(k, l); idct_1d(Yc); for (k = 0; k < 8; k++) { int32_t r = 128 +

.load() does not work on ipad

杀马特。学长 韩版系。学妹 提交于 2019-12-20 05:17:25
问题 I have simple script to check image, but it is not working properly on my ipad with ios 5.1. In image i receive stream of jpg's, so load must work on each frame (as in big safari), but in ipad it fires only once. May be some suggestions? $('#image').load(function(){ console.log(new Date().getTime();); }); 回答1: It is mentioned on the jQuery official website: Caveats of the load event when used with images A common challenge developers attempt to solve using the .load() shortcut is to execute a

Transcoding MJPEG to FLV or MP4

我怕爱的太早我们不能终老 提交于 2019-12-18 12:47:10
问题 I want to transcode MJPEG stream that comes from IP camera (http://xx.yy.zz.tt:8080/video.cgi) to FLV or MP4 stream under Linux OS so that users can play the file using a web based Flash player such as Flowplayer. I discovered VLC for that purpose but I cannot figure out the exact command line string. I also need HTTP authentication feature since IP camera access is password protected. I also interested in any non-VLC solution if any (ffmpeg?). 回答1: appears VLC can do HTTP authentication.

Stream local mjpg video to html canvas

徘徊边缘 提交于 2019-12-17 16:54:00
问题 I am trying to write a live stream of a mjpg video to an html canvas. The following: http://camelive.info/ has a list of public webcams with mjpeg videos but they seem to be writing < frameset > tags with frame elements and I can't pick up how its working in a fiddle. The ideal solution has any live mjpg (ideally a link?) streaming on an html canvas in fiddle. Any helpful resources are appreciated, I would like to do this without including external libraries (jquery allowed) Edit: Related:

How to Create a HTTP MJPEG Streaming Server With QTcp-Server Sockets?

倖福魔咒の 提交于 2019-12-17 13:26:32
问题 I want to create a Http Server to send an MJPEG Stream. I'm Already able to send an Image but no Live-Stream. What I did: Created an TCP-Server. When a client Connects a TCP-Socket is created. Then I implemented a ReadyRead SLOT which gots executed when the Browser sends the "GET" Request to the Server. GET / HTTP/1.1 Host: 127.0.0.1:8889 User-Agent: Mozilla/5.0... Then I run following Code QString inbound = m_Client->readAll(); QByteArray header = "HTTP/1.1 200 OK\r\n"; m_Client->write

Cross-browser solution for displaying MJPEG stream

北战南征 提交于 2019-12-17 10:40:53
问题 Is there a lightweight, free, and reliable way to display MJPEG in a cross-browser environment? I'm trying to display an MJPEG stream from an Axis 2120 IP camera on a site that I'm developing, and I've found that this is quite reliable in current versions of Firefox. However, after some testing I've found that IE, Opera and Chrome all have varying degrees of trouble doing this (no Mac access, so I'm not sure about Safari). Internet Explorer has no support for MJPEG and doesn't work at all.

Low-latency video streaming from c++ opencv application in WINDOWS [closed]

风格不统一 提交于 2019-12-13 10:41:02
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . There are quite a lot of questions on the topic, but most of them involve the use of undesired protocols - HTML5, WebRTC, etc. Basically, the problem can formulated as follows: how do I stream my own cv::Mat images over either RTSP or MJPEG [AFAIK it is better for realtime streaming] streams in Windows ? Nearly

converting jpeg char data to opencv mat

≯℡__Kan透↙ 提交于 2019-12-13 03:01:44
问题 i have a mjpeg tcp stream and want to modify it. So i can access the image data via recv-function and save it in a char-buffer. //.... const int buf_size = 512; char buf[buf_size]; //... int bytesReceived = recv(sock, buf, buf_size, MSG_WAITALL); //... Now i can extract the jpeg image data out of the char-array; i created a test char array (16*16 jpeg image): char img[] = {-1,-40,-1,-32,0,16,74,70,73,70,0,1,1,0,0,1,0,1,0,0,-1,-37,0,67,0,5,3,4,4,4,3,5,4,4,4,5,5,5,6,7,12,8,7,7,7,7,15,11,11,9,12