mjpeg

Android MJPEG stream

天大地大妈咪最大 提交于 2019-12-01 21:46:06
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 static final String TAG = "MJPEG"; private MjpegView mv; private static final int MENU_QUIT = 1; String

how to save the mjpeg stream as 3gp or mp4 format video files to the sdcard in android

微笑、不失礼 提交于 2019-11-30 09:47:54
问题 i have saved the mjpeg stream to the sdcard as xxx.mjpeg .However, the mjpeg video file was not supported in android. so how could i encode mjpeg video into 3gp or mp4 format and then store them on sdcard ,at last ,i can play back the 3gp or mp4 video on my android phone ,thanks in advance. 回答1: I am not aware of state of mobo's ffmpeg source out there. I had built it long back. I tried the rockplayer's ffmpeg port. This has hassle free build. I was able to build it today successfully on NDK

Transcoding MJPEG to FLV or MP4

这一生的挚爱 提交于 2019-11-30 07:38:51
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?). appears VLC can do HTTP authentication. http://www.videolan.org/doc/play-howto/en/ch04.html and I believe it can output to flv. Typically I start

How to parse MJPEG HTTP Stream within C++?

馋奶兔 提交于 2019-11-29 14:15:55
I need to access and read an http stream which is sending live MJPEG footage from a network camera, in order to do some opencv image processing on the image. I can access the camera's footage through VLC, or simply by going to the URL in chrome or firefox. But how can I programmatically access the http server and separate each frame, when the server is just sending a continuous feed? The data seems to be simply formatted, looping between the HTTP Header and JPEG data. The only way I can think of approaching this is somehow sending a request to the server, parsing the data as it comes in, and

Rendering MJpeg stream in html5

心不动则不痛 提交于 2019-11-28 11:21:59
I'm trying to render MJpeg stream in HTML5 using the img tag. When I'm running the following, everything works great, meaning, the video starts to play until the video ends: <img src="http://[some ip]:[port]/mjpg"> My question is how can I get the stream frame by frame. For each frame, I want to get it, do something (ajax call to the server) and then display the frame as an image. Thanks. If the camera exposes raw JPEG images (not .MJPEG extension) you'll have to reaload it manually (if the extension is .MJPEG the browser will do everything, just put the correct src). If you have .MJPEG and

creating my own MJPEG stream

夙愿已清 提交于 2019-11-28 11:19:15
I'm trying to create an MJPEG stream, I have a series of jpegs that I want to put together into a stream so that a user can just hit a URL and get an mjpeg stream. I've been trying for the last few days to get this to work, and it may just not be possible. I've brought up ethereal and listened to the packets coming from an axis camera on the net somewhere, and tried to mimmick it. I originally tried using WCF, and returning a "stream" but then later found out that I would need to set the content type on that stream, so I then tried the WCF REST api, but that suffers from the same problem. so I

Error while using QTcpSocket

走远了吗. 提交于 2019-11-28 11:07:42
问题 I am creating a (very basic) MJPG server to show webcam data on a browser. I have partly managed to do it so far. Here is my code: TcpServer::TcpServer(QObject *parent) : QObject(parent) { server = new QTcpServer(this); // whenever a user connects, it will emit signal connect(server, SIGNAL(newConnection()), this, SLOT(newConnection())); if (!server->listen(QHostAddress::Any, 9999)) qDebug() << "Server could not start"; else qDebug() << "Server started!"; } ... void TcpServer::newConnection()

How to parse MJPEG HTTP Stream within C++?

ⅰ亾dé卋堺 提交于 2019-11-28 08:39:37
问题 I need to access and read an http stream which is sending live MJPEG footage from a network camera, in order to do some opencv image processing on the image. I can access the camera's footage through VLC, or simply by going to the URL in chrome or firefox. But how can I programmatically access the http server and separate each frame, when the server is just sending a continuous feed? The data seems to be simply formatted, looping between the HTTP Header and JPEG data. The only way I can think

Stream local mjpg video to html canvas

 ̄綄美尐妖づ 提交于 2019-11-28 01:40:50
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 make an snapshot from a MJPEG stream in HTML Edit: I too have a local mjpg to draw from like the

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

时光毁灭记忆、已成空白 提交于 2019-11-27 15:20:39
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(header); QByteArray ContentType = "Content-Type: image/jpeg\r\n\n"; m_Client->write(ContentType); Mat first