Motion capture camera
Hello Guys
My name is Deependra, I am new to the software lab view and I am trying to understand it, I work at a lab at the UM Dbn campus and here we' re trying to conduct a study on musculoskeletal disorders, in this, we' re trying to control the motion capture cameras with LabVIEW, I am trying to find the basic VI codes for this task, along with that, if anyone of you can give me some suggestion in this regard, I would really appreciate it.
Thanks in advance
Cheers
Deependra
We' re conducting a study on musculoskeletal disorders caused due to prolonged sitting, it's a project based on ergonomics, for that our quest to integrate all the components that we' re using, now these components inc a motion capture camera, the other hardware like force plate and emg, we have been able to calibrate them and integrate with LabVIEW, its' the motion capture camera, that we' re having issues with, so, I was hoping that if there's any VI code or any other source, citation from where I could get get some information on how to accomplish this.
Similar Messages
-
Can I use canon eos40d for stop motion capture in premiere elements 9?
I Want too do stop motion capture but when I click get media, the pop up dialog box proceeda as if to import still photos. How do I get the "capture panel" that is talked about where I can select stop motion? Is premiere elements 9 supposed to work with a still camera like mine for stop motion at all? Thanks!!' Kimberley
Kimberley
Thanks for the reply. This is my take on the situation that you describe.
You wrote
The camera was linked to PC with USB cable and then the software showed on the PC what would normally be in the camera viewfinder. The enter key on the PC worked as a shutter release and onion skinning worked. Can premiere elements do this?
That more or less describes the Premiere Elements Webcam experience if Premiere Elements recognized the Webcam.
If you have made a USB connection between the Canon 40D and the computer and you are not getting a Capture Window when you use Premiere Elements' Add Media Webcam or WDM compatible device, then Premiere Elements does not support that simple route. It is my understanding that WDM compatible device represents Windows Driver Model (a framework for device drivers).
I have done some Google searching, and I have found instance where claims have been made for the Canon 40D as a webcam. I post one of these links for informational and non promotional purposes.
http://extrawebcam.com/
Have you explore any utilities that came with the Canon that might supply drivers for the Canon as a webcam?
Have you tried to use the Canon 40D as a webcam with Windows Movie Maker?
Please review and consider. (Also, 9.0.1 Update can be downloaded and installed from the project's Help Menu/Update or obtained online from
http://www.adobe.com/support/downloads/detail.jsp?ftpID=4929
We will be watching for further developments.
Thank you.
ATR -
Hey guys,
Just wondering if you could help me out. I am an intern working with a company and they have sent me the footage along with the motion capture 3d info via .csv file which of course opens like a spreadsheet. Basically that data is so I can use to place graphics in 3d space. Anyway I have tried several things including trying copying and pasting the data to a camera, like mocha, to a layer, and to a null and nada! I also scoured the web and nothing! And once I import it does it attach to the camera or the layer that I'm working with. Thanks guys!3d info via .csv file which of course opens like a spreadsheet.
If it's 3D data, it's probly in metric units and thus mostly useless - that is without using a script to parse and scale it accordingly. Depending on what they used, you may want to have them create a dedicated AE export, which is possible using scripts and plug-ins in many 3D programs. If they are able to generate a Collada file, this plug-in might be of interest as might be things like RPF or Maya scene import. as for import via Excel, you may simply require to correctly adjust the headere and of course also multiply the values to make sense which is explained in the Chris and trish Meyer books, several articles of which are also linked from the AE help.
Mylenium -
I'm currently trying to create help files for Flash
animations using captivate instead of screen recording software
dude to file size, with the type of animation I have to activate
Full Motion Capture Recording. the problem I get is the file size
for the 10-15 seconds I'm capturing, I have reduced some of the
onscreen movement and animation so there is less action on the
recording but the file size is still a little to big and there
appears to be very little in the way of options for how the Motion
Capture is setup, in Captivate 1 there is a video quality option
which when reduced below 70% make the video un-useable so I assume
that’s why this feature is missing from Captivate 2.
Anyway I'm babbling now, I have tried to export the Motion
clip to SWF and incorporate it into Flash but upon importing to
stage the video has a lot of strange symbols that look like
possible masks captivate uses to move content in the animation, so
is there any other way to export the Motion capture in captivate to
another format.
Regards
Stuart TawseHi Klaudia78 and welcome to our community
Firstly, Captivate has always been rather weak in the full
motion category. However, having said this, you may want to look at
the following options:
Click Options > Recording Options... > Full Motion
Recording tab. You may wish to make the following changes:
* Ensure the opton "Disable hardware acceleration" is enabled
(checked)
* Ensure the option "Video color mode" is 32 Bit
Click Project > Preferences... > Preferences tab and
ensure the option "Frames per second" hasn't been changed from 30.
If so, try changing to 30.
Hopefully these help... Rick -
Cursor Trails in full motion capture
I am trying to capture a drafting exercise requiring full
motion capture. I have tried varying the frame rate as suggested in
the Help documentation but can see little improvement. Can anyone
give me some direction on how to address the issue of cursor trails
in full motion captures. My capture are is large - 1024x768
recorded at 30fps and a 2 minute movie.Hi CowanJim
If you are using Captivate 2, recording a video sequence
longer than about 4-5 seconds is asking too much of Captivate.
Captivate 3 expanded on the full motion capability, but it's
nowhere near Camtasia if your goal is to have full motion from
start to finish. This is why I see room in my toolbox for both
products. Each has its own strengths.
Things I might suggest you try would be:
* I know you have played with frame rate and didn't see much
difference.
* Close Captivate and perform some maintenance of your PC.
Clear any and all temp files, internet cache, etc. Then run a
defrag. Basically make sure the system is as optimal as you can.
Make certain you have plenty of space on your hard drive. For that
matter, if you have two hard drives, see which one is faster. You
may find that you have a C drive that is what is called a "54 spin"
or 5,400 RPM drive and you might have added a second drive that is
a "72 spin" or 7,200 RPM drive, which would be faster. So consider
clicking Options > Recording Options... > Full Motion
Recording tab. Play with the "Disable Hardware Acceleration"
setting. Here is where you might consider changing your "Working
folder". This is where Captivate stashes the full motion capture
before it gets converted to .SWF. The "Raw" data, if you will. If
you see something like C:\DOCUME~1\Rick\LOCALS~1\Temp\~CaC96, try
changing to C:\ to eliminate the folder crud. I'm thinking that may
slow things down a tad. Or, if you do have that fast second drive,
change to its drive letter. Maybe D:\. Also try changing the Video
color mode setting.
Hopefully something here will prove useful... Rick -
Hi,
1) Can a TOC with several chapters be made for a full motion capture video?
2) Can the mouse have a clicking animation, like I have used in demonstration mode?
Thank you.Hi Janet
In case the process of obliterating the Captivate_v10.dat
doesn't work (and it may not, since it's not a "cure all" as some
would have you believe) you might want to try looking at the
options for full motion capture. One of the options deals with
enabling and disabling hardware acceleration. Click Options >
Recording Options... > Full Motion Recording tab > Record at
higher full motion capture rate for smoother movie.
If this option is DE-selected, try selecting it and recording
again. If it's selected, try DE-selecting and recording again.
I'm not saying that the .DAT file isn't corrupt. So go ahead
and try that too. I'm only saying it's not the end all solution for
all problems Captivate.
Cheers... Rick -
I am wanting to do a talking 2d character, but I would like to just use motion capture instead of drawing and editing every frame to make my character talk.
All my searching for tutorials or examples on facial motion capture has either resulted in large $5 grand studio setups, tutorials on how to import it onto a 3d image in Maya or a bunch of 14 year olds putting up a tutorial on motion TRACKING...not motion CAPTURE. I need my image to adjust not just move around the screen.
My character is a pumpkin. So all I need is a set of black eyes and a black open mouth that will mimic what I say and will not be show in real time. Just need it for a short talking pumpkin movie.
The only video I have found that I think is close to what I am looking at is here:
http://www.youtube.com/watch?v=CEuUNz_w1fw
but of course he doesnt want to share any info on how he created it (or atleast not enough to be useful).
If anyone can steer me in the right direction on how to do this...I would be most greatful.Thank you very much for the information. I am watching some tutorials on both of those ideas right now and I think this might work for me.
Thank you again.
Mike -
Hello,
I'm experiencing an issue with motion capture recording. I'm
recording a desktop application that operates as a side bar. When
menus open and close during playback they leave a black outline on
the screen. this also happens when the mouse moves, so you see a
trail of residue from point to another. I have a feeling this
something to do with the refresh rate on the PC where I'm recording
but I'm not totally sure.
Has anybody else seen this happen and does anybody know how
to fix it?
Thanks,
AlexHi Alex,
Do you get the same effect when you publish your project as a
SWF? If so then to start with I would select each of the Full
Motion Recording slides in your project and choose Slide > Video
Quality > High Quality. Next publish again and see if that
improves things.
If not, then carry out the following steps:
1. Choose Edit > Preferences
2. From the Recording preferences choose Full Motion
Recording
3. Select the 32 Bit video color mode for SWF conversion
4. Click OK
5. Capture your FMR footage again.
If this still doesn't make any difference you could also try
Disabling the hardware acceleration. This option can be found in
the FMR section of the Recording Preferences.
Best - Mark -
Capture camera won't get recognized by computer via firewire
I'm running on OS 10.7.5., the mid 2011 iMac and I have both iMovie and Adobe Premiere cs5. I'm filming with a Sony vx1000 and using a Panasonic GS80 to capture via the Firewire 800. Neither the capture camera nor the vx1000 seem to get recognition from the computer at all, in either program. I've tried both the cameras on a MacBook running on 10.8 which is Mountain Lion, and neither worked. I've been reading that it has something to do with Lion, but I just want a clear answer for myself. So has anybody had this same problem, or does anybody know how I can work around it or fix it?
This screenshot is with the camera plugged in, so I'm guessing the problem lies within the firewire port itself?
And this is the only option it gives me in iMovie. In Premiere there is nothing.Have you tried restarting the computer, and ensuring no other apps are using the camera?
I have worked in the production industry for years and have experienced many a blown FireWire port. I'm not sure if they have fixed this issue, but I know, at least it used to be, that if you plugged in your items in the wrong order you could blow your port.
Check this out: http://www.focusrite.com/answerbase/en/article.php?id=1063
And here's some troubleshooting tips for FireWire: http://support.apple.com/kb/HT1151
Finally, here's an (old) post with some more info: http://www.lafcpug.org/phorum/read.php?1,191535,191688
Cheers,
-Kyle -
Noise removal in Motion capture data
Hello to you.
I am currently trying to remove noise in image sequences
containing motion capture data. As a part of this project I am
clustering pixels into groups and want to remove pixel groups with
less than 4 members as these groups are regarded as noise.
The problem is that when I have a nested list with e.g 3 sub
lists/clusters (as indicated below) and I use a repeat loop to
remove the sub lists with less than 4 pixel coordinates, but my
code does not seem me to do this correctly (There are three sub
lists where 2 of these should be removed, but only 1 of these 2 are
deleted while I am unable to remove the last one).
Does anyone have any suggestions on how I can modify the
current code so that it does the job correctly?
The code is attached below.
on exitFrame me
dataPointMembersInIndividualClusters =
[#ClusterDatapointMembers: [point(477, 453), point(477, 459),
point(477, 460), point(478, 454), point(478, 456)],
#ClusterDatapointMembers: [], #ClusterDatapointMembers: [point(462,
405),point(462, 405),point(462, 405)]]
MinimumNumberOfDataPointsInClusters = 4
repeat with analyzeCluster = 1 to
dataPointMembersInIndividualClusters.count
if dataPointMembersInIndividualClusters
[analyzeCluster].count < MinimumNumberOfDataPointsInClusters
then
dataPointMembersInIndividualClusters.deleteAt(analyzeCluster)
end if
end repeat
put dataPointMembersInIndividualClusters
halt
end
Suggestions will be happily appreciated
Have a glittering dayJan Carlo wrote:
> Hello to you.
>
> I am currently trying to remove noise in image sequences
containing
> motion capture data. As a part of this project I am
clustering pixels
> into groups and want to remove pixel groups with less
than 4 members
> as these groups are regarded as noise.
>
> The problem is that when I have a nested list with e.g 3
sub
> lists/clusters (as indicated below) and I use a repeat
loop to remove
> the sub lists with less than 4 pixel coordinates, but my
code does
> not seem me to do this correctly (There are three sub
lists where 2
> of these should be removed, but only 1 of these 2 are
deleted while I
> am unable to remove the last one).
>
> Does anyone have any suggestions on how I can modify the
current code
> so that it does the job correctly?
>
The problem is that you're deleting things from the list
you're looking at
and things get moved towards the start, thus skipping an
iteration you
wanted to examine. If you start at the end, you won't get
that problem.
on test
clusters = [ [point(477, 453), point(477, 459), point(477,
460),
point(478, 454), point(478, 456)], [], [point(462,
405),point(462,
405),point(462, 405)]]
nMin = 4
nClusters=count(clusters)
repeat with i = nClusters down to 1
if clusters [ i ].count < nMin then
clusters.deleteAt(i)
end if
end repeat
put clusters
end test
Andrew -
Continuous, triggered, high-speed motion capture
Hello,
I'm attempting to perform a continuous triggered high speed motion capture independent of the motion, and it's not clear that this is possible. Before I spend a few hours on a wild goose chase, I thought I'd ask around.
I have a digital pulse train coming in at about 100 Hz and I'd like to measure the position of my motion system in all 3 axes at each pulse. Having acquired the data, it should then get dumped to a file. This should happend continuously until the user exits the program. The continuous part of this seems unnecessarily complicated, involving on-board programming, if my reading of examples such as onboard-hsi-gpbuffer.vi and continuous_hsc.vi is correct. However, if that's the worst of it, I'll survive.
Meanwhile, the system is undergoing random motion, including starting and stopping of the axes. This is the part that has me particularly concerned. All of the examples that I have seen, both bundled and otherwise, seem to include a single move as part of the program. Since my system will be undergoing multiple moves controlled by the user, I'm concerned that these moves (or the end of the moves) will cancel the capture operations.
Does anyone have any insight into this sort of setup?
Thanks,
JasonThis seems to do the trick. It's based on the "Onboard Program - Continuous High Speed Capture into General Purpose Buffer" which can be found in the online examples. It implements an on-board program which fills a general purpose buffer. Most importantly, it runs continuously and independent of the motion or stops of the various axes. Hope someone else finds it useful.
Still curious if this is really the easiest way to accomplish this.
Jason
Attachments:
ContHSCapture.llb 160 KB -
Removing noise in optical motion capture data
Hello to you.
I am building my own optical motion capture system. In
relation to this I have coded a modified K-means clustering
algorithm in LINGO, which can be used for removing image noise in
the captured image data. Noise is in this case regarded as being
sparse groups of pixels (e.g they do not belong to a marker as
these are represented as compact pixel groups).
In order to evaluate the performance of my algorithm I need
to compare it with some other noise filtering solution. Does anyone
know if there is any suitable such LINGO code available? Possibly
Mean or Median filters…
I hope for positive replies:)Jan Carlo wrote:
> Hello to you.
>
> I am currently trying to remove noise in image sequences
containing
> motion capture data. As a part of this project I am
clustering pixels
> into groups and want to remove pixel groups with less
than 4 members
> as these groups are regarded as noise.
>
> The problem is that when I have a nested list with e.g 3
sub
> lists/clusters (as indicated below) and I use a repeat
loop to remove
> the sub lists with less than 4 pixel coordinates, but my
code does
> not seem me to do this correctly (There are three sub
lists where 2
> of these should be removed, but only 1 of these 2 are
deleted while I
> am unable to remove the last one).
>
> Does anyone have any suggestions on how I can modify the
current code
> so that it does the job correctly?
>
The problem is that you're deleting things from the list
you're looking at
and things get moved towards the start, thus skipping an
iteration you
wanted to examine. If you start at the end, you won't get
that problem.
on test
clusters = [ [point(477, 453), point(477, 459), point(477,
460),
point(478, 454), point(478, 456)], [], [point(462,
405),point(462,
405),point(462, 405)]]
nMin = 4
nClusters=count(clusters)
repeat with i = nClusters down to 1
if clusters [ i ].count < nMin then
clusters.deleteAt(i)
end if
end repeat
put clusters
end test
Andrew -
Stop-motion with camera?
I have a school project where I need to animate a stop-motion video. We used a Canon 7D to take pictures and I imported them in lightroom. What I need to do now is take all of these frames and put them together to make the video. I tried manually doing it, but it came out all shaky. There has to be an easier way then to manually do it like that.
Please help
Thanks
-RJI'm guessing that the jerkiness is based on the camera's moving from one photo to the next. While Flash has an onion-skin function for the timeline, aligning a lot of imported photos will be a long and painful process. Flash isn't really the right tool for this sort of thing. Photoshop, on the other hand, has a crop and straighten photos function that will organize all of your photos while you sit and sip your coffee. It's in the File... Automate... menu. When you have the photos aligned and cropped, you can then export a video file straight from Photoshop.
-
Motion steady cam is being crazy!
Hi, I have some HD 1080 footage in AIC codec and basically its four minutes sped up to ten seconds (lock off shot), it has very slight jitters to it every now and then so I thought i'd smoothen them out in Motion.
After the analyze I played it back and it was jumping all over the place with he film zooming from left to right and going way out of frame.
What's up with that, it has only very slight jitters, I assumed this would be a very simple steady cam test but I was wrong! Anyone know how to go about it???
I've also tried doing it in ProRes codec and using FCP's steady cam filter but with same results. Also put it into Shake but have no idea how to export a QT from Shake.
Any help would be appreciated, cheers
(FCS2 with all latest update - except the very latest ProApps update)Format shouldn't matter.
Did you try and run the stabilize behavior on the time compressed clip or did you render the time change out then work on the new 10 second clip?
o| TonyTony |o -
Capturing Camera & Sending over TCP
Hi friends,I work on network based project ,I am traing to capture webcam (audio + video) and send over network
These code is working starts the webcam saves video and audio during given time(3000 (3 seconds) saves into file then stops the webcam.
//formats[0] = new AudioFormat( AudioFormat.GSM);
//formats[1] = new VideoFormat(VideoFormat.CINEPAK);
//formats[1] = new VideoFormat(VideoFormat.H263);
//FileTypeDescriptor outputType = new
//FileTypeDescriptor( FileTypeDescriptor.QUICKTIME );
formats[0] = new AudioFormat( AudioFormat.LINEAR);
formats[1] = new VideoFormat(VideoFormat.RGB);
FileTypeDescriptor outputType = new
FileTypeDescriptor ( FileTypeDescriptor.MSVIDEO );
try {
p = Manager.createRealizedProcessor(
new ProcessorModel( formats, outputType) );
} catch( NoProcessorException e ) { System.out.println(e );
} catch( CannotRealizeException e ) { System.out.println(e );
} catch( IOException e ) { System.out.println (e );
TrackControl track[] = p.getTrackControls();
System.out.println("No. of tracks="+track.length);
for (int i = 0; i < track.length; i++) {
System.out.print("Track #"+i+": " +track.getFormat() + " \n" );
} DataSource source = p.getDataOutput();
String filename = "movies.mpg" ; // movie.avi
String locator = "file://" + System.getProperty( "user.dir")
System.getProperty( "file.separator") filename ;
MediaLocator dest = new MediaLocator(locator);
try{
fileWriter = Manager.createDataSink( source, dest );
} catch( NoDataSinkException e ) {
System.out.println("The DataSink Exception tgv :" + e);
} catch( SecurityException e ) { System.out.println(e); }
fileWriter.addDataSinkListener( new DataSinkListener() {
public void dataSinkUpdate( DataSinkEvent event) {
if ( event instanceof EndOfStreamEvent ) {
fileWriter.close();
StreamWriterControl swc = ( StreamWriterControl)p.getControl(
"javax.media.control.StreamWriterControl");
if( swc != null) {
swc.setStreamSizeLimit(1024 * 1024 );
try{
fileWriter.open();
fileWriter.start();
source.connect();
source.start();
p.start();
} catch( IOException e ) { System.out.println(e);
System.out.println( "File storage starts now \n ");
try{
Thread.sleep(3000);
} catch( Exception e ) { System.out.println( "Error:" + e ); }
System.out.println( "File storage stops now \n ");
try{
p.stop();
p.close();
fileWriter.close();
source.disconnect();
source.stop();
} catch( IOException ioe ) { System.out.println( ioe ); }
I works it is fine but I need to send it over network
So what I need? I need to capture until I prefer to close webcam.
I need to save the captured video and audio to the file every 1000 seconds then send it over network
So I tried the code with timer and I add some code to send file over network.//formats[0] = new AudioFormat( AudioFormat.GSM);
//formats[1] = new VideoFormat(VideoFormat.CINEPAK);
//formats[1] = new VideoFormat(VideoFormat.H263);
//FileTypeDescriptor outputType = new
//FileTypeDescriptor( FileTypeDescriptor.QUICKTIME );
formats[0] = new AudioFormat( AudioFormat.LINEAR);
formats[1] = new VideoFormat(VideoFormat.RGB);
FileTypeDescriptor outputType = new
FileTypeDescriptor ( FileTypeDescriptor.MSVIDEO );
try {
p = Manager.createRealizedProcessor(
new ProcessorModel( formats, outputType) );
} catch( NoProcessorException e ) { System.out.println(e );
} catch( CannotRealizeException e ) { System.out.println(e );
} catch( IOException e ) { System.out.println (e );
TrackControl track[] = p.getTrackControls();
System.out.println("No. of tracks="+track.length);
for (int i = 0; i < track.length; i++) {
System.out.print("Track #"+i+": " +track[i].getFormat() + " \n" );
} final DataSource source = p.getDataOutput();
try {
String filename = "movies.mpg"; // movie.avi
String locator = "file://" + System.getProperty("user.dir") + System.getProperty("file.separator") + filename;
MediaLocator dest = new MediaLocator(locator);
try {
fileWriter = Manager.createDataSink(source, dest);
} catch (NoDataSinkException e) {
System.out.println("The DataSink Exception tgv :" + e);
} catch (SecurityException e) {
System.out.println(e);
fileWriter.addDataSinkListener(new DataSinkListener() {
public void dataSinkUpdate(DataSinkEvent event) {
if (event instanceof EndOfStreamEvent) {
fileWriter.close();
StreamWriterControl swc = ( StreamWriterControl)p.getControl(
"javax.media.control.StreamWriterControl");
if( swc != null) {
swc.setStreamSizeLimit(1024 * 1024 );
int delay = 2000; // delay for 2 sec.
int period = 3000; // repeat every sec.
Timer timer = new Timer();
timer.scheduleAtFixedRate(new TimerTask() {
public void run() {
try {
fileWriter.open();
fileWriter.start();
source.connect();
source.start();
p.start();
} catch (IOException e) {
System.out.println(e);
System.out.println("File storage starts now \n ");
try {
Thread.sleep(3000);
} catch (Exception e) {
System.out.println("Error:" + e);
System.out.println("File storage stops now \n ");
p.stop();
p.close();
fileWriter.close();
source.disconnect();
source.stop();
System.out.println("File is Sending now \n ");
fis = new FileInputStream("C://movies.mpg");
buffers = new byte[fis.available()];
fis.read(buffers);
oos.writeObject(buffers);
oos.flush();
fis.close();
System.out.println("has been sent \n ");
} catch (IOException ex) {
Logger.getLogger(frm.class.getName()).log(Level.SEVERE, null, ex);
}, delay, period);
it works opens webcam start capture save into file ,sends over network then camera closes..
my problem is camera should still opened.
and as a lastformats[0] = new AudioFormat( AudioFormat.LINEAR);
formats[1] = new VideoFormat(VideoFormat.RGB);
FileTypeDescriptor outputType = new
FileTypeDescriptor ( FileTypeDescriptor.MSVIDEO );
try {
p = Manager.createRealizedProcessor(
new ProcessorModel( formats, outputType) );
} catch( NoProcessorException e ) { System.out.println(e );
} catch( CannotRealizeException e ) { System.out.println(e );
} catch( IOException e ) { System.out.println (e );
TrackControl track[] = p.getTrackControls();
System.out.println("No. of tracks="+track.length);
for (int i = 0; i < track.length; i++) {
System.out.print("Track #"+i+": " +track[i].getFormat() + " \n" );
} final DataSource source = p.getDataOutput();
int delay = 2000; // delay for 2 sec.
int period = 3000; // repeat every sec.
Timer timer = new Timer();
timer.scheduleAtFixedRate(new TimerTask() {
public void run() {
try {
String filename = "movies.mpg"; // movie.avi
String locator = "file://" + System.getProperty("user.dir") + System.getProperty("file.separator") + filename;
MediaLocator dest = new MediaLocator(locator);
try {
fileWriter = Manager.createDataSink(source, dest);
} catch (NoDataSinkException e) {
System.out.println("The DataSink Exception tgv :" + e);
} catch (SecurityException e) {
System.out.println(e);
fileWriter.addDataSinkListener(new DataSinkListener() {
public void dataSinkUpdate(DataSinkEvent event) {
if (event instanceof EndOfStreamEvent) {
fileWriter.close();
StreamWriterControl swc = ( StreamWriterControl)p.getControl(
"javax.media.control.StreamWriterControl");
if( swc != null) {
swc.setStreamSizeLimit(1024 * 1024 );
try {
fileWriter.open();
fileWriter.start();
source.connect();
source.start();
p.start();
} catch (IOException e) {
System.out.println(e);
System.out.println("File storage starts now \n ");
try {
Thread.sleep(3000);
} catch (Exception e) {
System.out.println("Error:" + e);
System.out.println("File storage stops now \n ");
p.stop();
// p.close();
fileWriter.close();
//source.disconnect();
source.stop();
fis = new FileInputStream("C://movies.mpg");
buffers = new byte[fis.available()];
fis.read(buffers);
oos.writeObject(buffers);
oos.flush();
fis.close();
} catch (IOException ex) {
Logger.getLogger(frm.class.getName()).log(Level.SEVERE, null, ex);
}, delay, period);
this code works open the webcam capture save and send over network contineusly with out giving any error
It creates video in my local pc and send over network I can see that video size is changing every seconds
And fourtunately I am caming to my problem If I close processor "p.close()" program create video file but it can npt be rendered by any player
it is some thing but I am sure that it is not a video
If I close processor "p" camera still opened but video is not valid
I know that I wrote lots of things but I could not figured out the problem and solution
Thanks...You won't get any help because you've overloaded us with probably-irrelevant information and done nothing at all about trying to whittle the problem down to its roots. Plus, your subject line suggests that you're asking someone to write a fairly sizable bit of your app for you, and hence will get ignored by a lot of people
Try and work out exactly what isn't working, and ask about it. As it is, you've written a load of code, it doesn't work, and you've just dumped it here expecting someone else to pick through it all and fix it - not going to happen
And please, before you reply with some cutting comment about how unhelpful I am, consider that you'd been given no replies whatsoever so far
Maybe you are looking for
-
Getting Error While Attaching Concurrent Program Output PDF file for POAPPRV Workflow
Hi All, I am getting the below error when I am trying to attach concurrent program output to the PO Approval Notification. An Error occurred in the following Workflow. Item Type = POAPPRV Item Key = 1040589-528378 User Key =945871 Error Name = WF_ERR
-
Small input program (html) using sockets.
I'm having problems with the following whenever a cd is inputted via cdinput.html it runs cdprocess.jsp to create an XML document with DOM in memory this is sent to the server and is later printed out to the users screen. The server must be started i
-
T440S OSD Brightness control failure after resume from Sleep
Hi, I have owned a T440S since late 2013. Relevant Details: T440S Model : 20AQCTO1WW OS : Windows 7 professional (original installation by Lenovo) Latest Drivers installed as of June 2014 - including HotKey and Power Management HotKey ver : 8.30 Powe
-
Alert status GREY in BPM configuration
Hello Everybody, I am configuring BPM in Solution Manager for "Order to Cash" process concentrating on "IDOC monitoring". The IDOC monitor will monitor the IDOC status in my ECC system, so no need to define interfaces. The configuration is completed
-
Simple question, hard solution (for me)
Hi, I've made a jsp base application that works without problems Now I have to execute a class included in WAR file by command prompt because I want to make a scheduled batch procedure. I went to war directory and: C:\Program Files\Apache Group\Tomca