How To Get Stream Of Data From DVR And Control CCTV Camera
Jul 26, 2014
I am going to to develop an app for my final year project. basically the app is to show live video streaming on android phone from remote CCTV . The project is just in design phase i know the networking part i.e static ip for dvr etc but i dnt know how to get stream of data from dvr and how to control the CCTV camera i.e camera movement....
I am developing some application in Java. The need is to continuously do a video streaming in the software. I am new to this and want to know how to do it.
But is not working. I was thinking may be API is not work with java 7 because i got the following warning (AudioStream is internal proprietary API and may be removed in a future release);
I a simple server that receives bytes using TCP and then saves them to a file stream.Through many tests I have seen that the first packet received is always just the filename with no other data. The second packet received only has one byte and it is the first letter of the input text file. After this all packets are sent correctly, but I can't seem to figure out what is messing up the second packet. It also appears that the last packet is written twice.
Here is an example Input/Output: [URL] .....
InputStream in = clntSock.getInputStream(); //server's input stream - gets data from the client OutputStream out = clntSock.getOutputStream(); //server's output stream - server sends data to the client byte[] byteBuffer = new byte[BUFSIZE]; int count = in.read(byteBuffer, 0, BUFSIZE); String firstRead = new String(byteBuffer, 0, count);
[Code] ....
Another peculiarity to me is that the second to last packet is always just "-" and then the last packet has the remainder of the magic string which terminates the file output stream.
I am aware that it is not safe to make the assumption that the file name will be sent in one go before the loop, but I wil fix that later. I am not concerned about it at all now. THe problem si that the loop should account for any amount read in, but for some reason the first packet always contains one letter, and the second packet picks up around 16000 bytes later for some reason. Why would this be?I can't edit my above post so here is the code with code tags.
InputStream in = clntSock.getInputStream(); //server's input stream - gets data from the client OutputStream out = clntSock.getOutputStream(); //server's output stream - server sends data to the client byte[] byteBuffer = new byte[BUFSIZE]; int count = in.read(byteBuffer, 0, BUFSIZE); String firstRead = new String(byteBuffer, 0, count);
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>
[Code] ....
In servlet the below code
DataInputStream din = new DataInputStream(request.getInputStream()); byte[] data = new byte[0]; byte[] buffer = new byte[50]; int bytesRead; while ((bytesRead = din.read(buffer)) > 0 ) {
package timerApp; import java.util.Scanner; import java.util.Timer; import java.util.TimerTask; import sun.audio.*; import java.io.*; public class timerDriver { static int interval;
[Code]...
So I'm trying to make a program that plays an mp3 file after a timer reaches 0, but i keep receiving the error "could not create audio stream from input stream" the audio file is 3.44 MB and 00:03:45 minutes long if that's a problem
I finally made the app to draw 10x10 map out of 50x50 pixel blocks.Now I can't imagine how to make a camera and lock it on character. I know how to make a character, but I just want to understand how locking the camera on character would look.
package tiled; import org.newdawn.slick.*; import org.newdawn.slick.state.*; public class play extends BasicGameState { int xSize = 10; int ySize = 10;
I am new to java and i want to create an application which detect an image which took from camera and to process it so that it can be verified ..for example number plate of the vehicle ..if i need to extract the numbers from the image ..
Where can I find tutorials about how you like have a big image, bigger than the specified screen, for the map of a game, and then you have camera view, the image is being printed on the screen continously as the character moves in different areas depending on what area of the map the character is in?
NOTE!!! I don't want to move objects around, I just want a camera view on a large image!
1: 3D space. How do i define the space where i will make my world? Is there a certain point that i will define as 0,0,0 or is there some other way.
2: Camera positioning. When i have the 3D space, how to i make it so that the camera will show that what i want it to show. Lets say il define its lokatios 30,50,100 and direction is NW, then how to i make it so that is see the SW direction from the point 30,50,100?
So I'm working on some networking code and I have the Server running as its own thread, then I have a PacketListener which is contained in the Server, that is running on its own thread too. As of right now, the PacketListener waits for packets via DatagramSocket.receive() and then adds them to a queue. The Server runs in a loop and it checks that queue for packets and then polls the most recent and process it before sleeping for 1 millisecond. Here is my question though, I'm considering changing the program to a more observer pattern structure in that when the PacketListener would receive a packet, rather than add it to the queue, it'd notify the server which would process it. However, wouldn't this cause additional time required within the PacketListener thread dedicated to processing the packets rather than listening for them?
I have a multithreaded java program. I have a few worker threads which process data over a udp server. Then I have another thread for console input. The problem is when there is an error with one of the worker threads, and it prints to the console, my console thread loses "focus", that is, the while loop seems to no longer run. Here is the console thread:
soo, is there a way to (via sockets or something like that) connect to a stream via the streamers url (or just via anything) and then get the actual stream? like the images that keeps updating? so that i can display the images/stream on a jframe?
I'm a student designing and developing an Air Traffic Control (ATC) system for incoming aircraft, mainly implementing the part which handles the queuing system for approaching aircraft.
I'm trying to implement a functionality which will control the visibility of three outputText. I'm using a selectOneMenu, which has three options. Each option will enable visibility of one outputText, and rest will be invisible.
Initially all outputText s is invisible as rendered value is false, but when I select different options, their respective outputText s are not visible.
I am having a problem with the SelectOneMenu control. I want the the selected item to be be displayed via the valueChange Ajax event listen. But this is not happening.
However, when I change the value in the SelectOneMenu and then click on the Submit button, then selected value is getting displayed via the 'save' bean function
The relevant xhtml code is as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"> <h:head> <style type="text/css">
I have developed JavaFx application with playback option using JavaFx Media player and slider controls. I am updating slider value using javafx mediaplayer.currentTime().addListener() method by adding Change/Invalidate listener.
While playing MP4 video, slider values are not updating (Change/Invalidate listener not getting triggered while playing video) on Mac OS(version : 10.9.1). Below is the sample code snippet.