Capturing webcam as DVAVI type-2
I started a discussion yesterday that was too narrowly focused on graphedit. I need help from any editors who have successfully captured DVAVI type-2 from a source OTHER THAN firewire. In this case, it's one of these VGA to USB devices, which the computer reads as a webcam. I've gone through several different titles" "Debut video capture", "Captureflux" and "Graphedit Plus". So far, all have failed. Captureflux seemed promissing, as it was showing the capture codec properly as DVAVI type 2. But the output was a train wreck. Graphedit plus came the closest, but I believe that the filter it's calling "DV compressor" is still type-1, and the video freeze-framed after 8 minutes. Attempting to add the Cedodida DV codec into the program did not work.
My goal is to get editable video that I can work with in After Effects or Premiere. I have been able to capture sucessfully with a DIVX codec, but getting it to an editable form took about 10hrs/per hour of video in Media Encoder.
Can anyone offer suggestions/advice with this? I'm desperate to find a solution before the end of the week, as I'm supposed to use this to capture presentations on Monday!!
>capture presentations
Depending on your PPro version, you may have the OnLocation program... which is designed to capture video from a camera directly to a computer
Or, if you have CS6 (which does not, as far as I know, have OnLocation) check into the idea of using PPro itself to capture to computer via Firewire connected camera
Similar Messages
-
Capture webcam success! Now how to make it repeat itself??
I have a code which captures my webcam and saves (and displays) a jpg image.
However, I want to make it so my code captures my webcam once every second or so.
Wait one second ---> Capture image -----> save (replace) over the previous image ------> do it again...
My current code is as follows:
import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.util.*;
import javax.media.control.*;
import javax.media.protocol.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
public class camagain extends Panel implements ActionListener
public static Player player;
public CaptureDeviceInfo DI;
public MediaLocator ML;
public JButton CAPTURE;
public Buffer BUF;
public Image img;
public VideoFormat VF;
public BufferToImage BtoI;
public ImagePanel imgpanel;
public camagain()
setLayout(new BorderLayout());
setSize(320,550);
imgpanel = new ImagePanel();
CAPTURE = new JButton("Capture");
CAPTURE.addActionListener(this);
String str1 = "vfw:Logitech USB Video Camera:0";
String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
DI = CaptureDeviceManager.getDevice(str2);
ML = new MediaLocator("vfw://0");
try
player = Manager.createRealizedPlayer(ML);
player.start();
Component comp;
if( (comp = player.getVisualComponent()) != null )
add(comp,BorderLayout.NORTH);
add(CAPTURE,BorderLayout.CENTER);
add(imgpanel,BorderLayout.SOUTH);
catch (Exception e)
e.printStackTrace();
public static void main(String[] args)
Frame f = new Frame("SwingCapture");
SwingCapture cf = new SwingCapture();
f.addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
playerclose();
System.exit(0);
f.add("Center",cf);
f.pack();
f.setSize(new Dimension(320,550));
f.setVisible(true);
public static void playerclose()
player.close();
player.deallocate();
public void actionPerformed(ActionEvent e)
JComponent c = (JComponent) e.getSource();
if(c == CAPTURE)
// Grab a frame
FrameGrabbingControl fgc = (FrameGrabbingControl)
player.getControl("javax.media.control.FrameGrabbingControl");
BUF = fgc.grabFrame();
// Convert it to an image
BtoI = new BufferToImage((VideoFormat)BUF.getFormat());
img = BtoI.createImage(BUF);
// show the image
imgpanel.setImage(img);
// save image
saveJPG(img,"c:\\test.jpg");
class ImagePanel extends Panel
public Image myimg = null;
public ImagePanel()
setLayout(null);
setSize(320,240);
public void setImage(Image img)
this.myimg = img;
//repaint();
public void paint(Graphics g)
g.drawImage(myimg, 0, 0, this);
public static void saveJPG(Image img, String s)
BufferedImage bi = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = bi.createGraphics();
g2.drawImage(img, null, null);
FileOutputStream out = null;
try
out = new FileOutputStream(s);
catch (java.io.FileNotFoundException io)
System.out.println("File Not Found");
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
param.setQuality(0.5f,false);
encoder.setJPEGEncodeParam(param);
try
encoder.encode(bi);
out.close();
catch (java.io.IOException io)
System.out.println("IOException");
}Please help me.import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.util.*;
import javax.media.control.*;
import javax.media.protocol.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
public class camagain extends Panel implements ActionListener {
public static Player player;
public CaptureDeviceInfo DI;
public MediaLocator ML;
public JButton CAPTURE;
public Buffer BUF;
public Image img;
public VideoFormat VF;
public BufferToImage BtoI;
public ImagePanel imgpanel;
public javax.swing.Timer timer = new javax.swing.Timer(200, this); // 200ms is too fast increase it to suit your need
public camagain() {
setLayout(new BorderLayout());
setSize(320, 550);
imgpanel = new ImagePanel();
CAPTURE = new JButton("Capture");
CAPTURE.addActionListener(this);
String str1 = "vfw:Logitech USB Video Camera:0";
String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
DI = CaptureDeviceManager.getDevice(str2);
ML = new MediaLocator("vfw://0");
try {
player = Manager.createRealizedPlayer(ML);
player.start();
Component comp;
if ((comp = player.getVisualComponent()) != null) {
add(comp, BorderLayout.NORTH);
add(CAPTURE, BorderLayout.CENTER);
add(imgpanel, BorderLayout.SOUTH);
Thread.sleep(5000); // this is important, otherwise you may get NPE somewhere, needs polishing ;-)
timer.start(); // start timer
} catch (Exception e) {
e.printStackTrace();
public static void main(String[] args) {
Frame f = new Frame("SwingCapture");
camagain cf = new camagain(); // I didn't had 'SwingCapture, so I added camgain.....
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
playerclose();
System.exit(0);
f.add("Center", cf);
f.pack();
f.setSize(new Dimension(320, 550));
f.setVisible(true);
public static void playerclose() {
player.close();
player.deallocate();
public void actionPerformed(ActionEvent e) {
if (e.getSource() instanceof JComponent) {
JComponent c = (JComponent) e.getSource();
if (c == CAPTURE) {
action(); // maoved every thing to new method action()
} else if (e.getSource() instanceof javax.swing.Timer) {
action(); // timer event , call action() again
public void action() { // your action handler code.....
// Grab a frame
FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
BUF = fgc.grabFrame();
// Convert it to an image
BtoI = new BufferToImage((VideoFormat) BUF.getFormat());
img = BtoI.createImage(BUF);
// show the image
imgpanel.setImage(img);
// save image
saveJPG(img, "d:\\test.jpg");
class ImagePanel extends Panel {
public Image myimg = null;
public ImagePanel() {
setLayout(null);
setSize(320, 240);
public void setImage(Image img) {
this.myimg = img;
repaint();
public void paint(Graphics g) {
super.paint(g);
g.drawImage(myimg, 0, 0, this);
public static void saveJPG(Image img, String s) {
BufferedImage bi = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = bi.createGraphics();
g2.drawImage(img, null, null);
FileOutputStream out = null;
try {
out = new FileOutputStream(s);
} catch (java.io.FileNotFoundException io) {
System.out.println("File Not Found");
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
param.setQuality(0.5f, false);
encoder.setJPEGEncodeParam(param);
try {
encoder.encode(bi);
out.close();
} catch (java.io.IOException io) {
System.out.println("IOException");
} -
Capturing webcam works on one computer, not the other.
Step 1 - I did all the JMF stuff and got the JMStudio working on my laptop that has a built in webcam.
Step 2 - I went into the JMF Registry, pulled out the video capture device (vfw:Microsoft WDM Image Capture (Win32):0) and edited it into the SwingCapture application posted below and got the custom application working flawless.
Step 3 - Everything worked perfect so I loaded all the JMF/Eclipse stuff onto my uncle's laptop and plugged in his Panasonic PV-GS120 handheld video camera that also has webcam drivers.
Step 4 - Got the JMStudio working perfect with this webcam device and all is well.
Step 5 - Copied over my modified application (SwingCapture) and pulled the appropriate capture device (vfw:Microsoft WDM Image Capture (Win32):1) from JMF Registry and edited it into the right spot in the application.
Step 6 - Tried to run the application and got the following error:
java.io.IOException: Could not connect to capture device
java.io.IOException: Could not connect to capture device
javax.media.NoPlayerException: Error instantiating class: com.sun.media.protocol.vfw.DataSource : java.io.IOException: Could not connect to capture device
at javax.media.Manager.createPlayerForContent(Manager.java:1362)
at javax.media.Manager.createPlayer(Manager.java:417)
at javax.media.Manager.createRealizedPlayer(Manager.java:553)
at SwingCapture1.<init>(SwingCapture1.java:58)
at Runner.main(Runner.java:17)SwingCapture1 Code:
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import javax.media.*;
import javax.media.control.FrameGrabbingControl;
import javax.media.format.VideoFormat;
import javax.media.util.BufferToImage;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
import java.util.Timer;
import java.util.TimerTask;
public class SwingCapture1 extends Panel implements Runnable, ActionListener
private static final long serialVersionUID = 1L;
public static Player player = null;
public CaptureDeviceInfo di = null;
public MediaLocator ml = null;
public JButton capture = null;
public JLabel frequencyLabel = new JLabel("Frequency:");
public JTextField frequencyInputField = new JTextField(10);
public JPanel southPanel = new JPanel();
public static Buffer buf = null;
public static Image img = null;
public VideoFormat vf = null;
public static BufferToImage btoi = null;
public static ImagePanel imgpanel = null;
static int i = 0;
static String filePrefix = "";
static String imagesDirectory = "c:\\images\\";
Thread capThread;
Toolkit toolkit;
public SwingCapture1()
setLayout(new BorderLayout());
// setSize(640, 480);
imgpanel = new ImagePanel();
capture = new JButton("Capture");
capture.addActionListener(this);
System.out.println("TEST1");
final String str = "vfw:Microsoft WDM Image Capture (Win32):1";
di = CaptureDeviceManager.getDevice(str);
ml = new MediaLocator(str);
try
player = Manager.createRealizedPlayer(ml);
System.out.println("TEST2");
player.start();
Component comp;
if ((comp = player.getVisualComponent()) != null)
add(comp, BorderLayout.LINE_START);
// add(capture);
add(imgpanel, BorderLayout.LINE_END);
add(southPanel, BorderLayout.SOUTH);
southPanel.add(frequencyLabel);
southPanel.add(frequencyInputField);
southPanel.add(capture);
catch (final Exception e)
System.out.println("ERROR 1");
e.printStackTrace();
public static void playerclose()
player.close();
player.deallocate();
public void actionPerformed(final ActionEvent e)
final JComponent c = (JComponent) e.getSource();
if (c == capture)
{ // Grab a frame
snapPicture();
public static void snapPicture()
final FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
buf = fgc.grabFrame(); // Convert it to an image
btoi = new BufferToImage((VideoFormat) buf.getFormat());
img = btoi.createImage(buf); // show the image
imgpanel.setImage(img); // save image
// saveJPG(img, "c:\\java\\Tomcat\\webapps\\loadimage\\main.jpg");
i++;
saveJPG(img, imagesDirectory + filePrefix + i + ".jpg");
public static void saveJPG(final Image img, final String s)
final BufferedImage bi = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
final Graphics2D g2 = bi.createGraphics();
g2.drawImage(img, null, null);
FileOutputStream out = null;
try
out = new FileOutputStream(s);
catch (final java.io.FileNotFoundException io)
System.out.println("ERROR 2");
System.out.println("File Not Found");
final JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
final JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
param.setQuality(0.5f, false);
encoder.setJPEGEncodeParam(param);
try
encoder.encode(bi);
out.close();
catch (final java.io.IOException io)
System.out.println("ERROR 3");
System.out.println("IOException");
public void start()
if (capThread == null)
capThread = new Thread(this, "Capture Thread");
capThread.start();
public Image getFrameImage()
// Grab a frame
final FrameGrabbingControl fgc = (FrameGrabbingControl)
player.getControl("javax.media.control.FrameGrabbingControl");
buf = fgc.grabFrame();
// Convert it to an image
btoi = new BufferToImage((VideoFormat)buf.getFormat());
return btoi.createImage(buf);
public void run()
try
// Image img = getFrameImage();
System.out.println("SNAPPER");
//do something with the image here
snapPicture();
Thread.sleep(1000);
catch (final InterruptedException iex)
System.out.println("ERROR 5");
} Edited by: DeX on Mar 21, 2008 3:28 PMYou probably have manually installed JMF on the other system, and you have not placed JMF native system libraries in OS Path.
On Windows place the dll libraries found in JMFHOME\lib\*.dll in Windows System32 dir -
Capturing image to monochrom type format
i am capturing am image from camera
i can save image as
ImageIO.write(buffImg, "bmp", new File("c:/Test.bmp"));
But,
1) how to save an image in a monochrome type bitmap to a file
2)how to save an image in a monochrome type jpeg format
or
3) how to set player.getVisualComponent() to black n white color so that image caputured is an monochromeThanks for the useful info, I do need to capture an image of
the final movie clip state (i.e. with all the options chosen) which
will then be displayed at a later opportunity within the app - and
not in the Flash environment. So ideally I will use the bitmap
class draw() method and use mstone's method to store the pixel info
in a db.
mstone, how are you outputting the pixel info to a string?
Not an officianado of the draw method (or GD lib for that matter),
if you could divulge some of the more technical aspects of your
solution I'd really appreciate it! -
Excise Capturing at 301 Movement type
Hi All
Is it possible to capture and post the excise invoice for movement type 301.
if yes then plz give me in deatil
Thanx..Truptihi
maintain following settings
Go to SPRO - IMG - Logistics General - Tax on Goods Movement - India - Account Determination - Assign G/L account for Excise transactions.
EWPO Credit CENVAT clearing account
EWPO Debit RG 23 AED account
EWPO Debit RG 23 BED account
EWPO Debit RG 23 ECS Account
EWPO Debit RG 23 NCCD Account
EWPO Debit RG 23 SED account
EWPO 10 Credit CENVAT clearing account
EWPO 10 Debit RG 23 AED account
EWPO 10 Debit RG 23 BED account
EWPO 10 Debit RG 23 ECS Account
EWPO 10 Debit RG 23 NCCD Account
EWPO 10 Debit RG 23 SED account
J1IEX
regards
kunal -
Hi,
I have flash working with flash media server to record a
webcam. There are two things I also need the application to do
which it currently doesn't.
1) How do you capture a still image from the webcam? At the
moment im using this line of code to record:
publish_ns.publish("allAboutMe + 1", "record");
2) How do you show what is being recorded as you record?, at
present it records with a blank screen and you cant see the results
until you play it back. This is the code used at the moment.
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://localhost/allAboutMe");
var publish_ns:NetStream = new NetStream(my_nc);
publish_ns.attachVideo(Camera.get());
publish_ns.attachAudio(Microphone.get());
publish_ns.publish("allAboutMe + 1", "record");
thanks
GavinFor starters, you should not call NetStream.publish() until
AFTER you receive a NetConnection.Connect.Success message from the
server. Failure to do so may prevent anything from streaming.
Create a new "onStatus" method as follows:
var my_nc:NetConnection = new NetConnection();
my_nc.onStatus = function (info:Object)
if(info.code == "NetConnection.Connect.Success")
// Publish your stream here
var publish_ns:NetStream = new NetStream(my_nc);
publish_ns.attachVideo(Camera.get());
publish_ns.attachAudio(Microphone.get());
publish_ns.publish("allAboutMe + 1", "record");
my_nc.connect("rtmp://localhost/allAboutMe");
To watch the video, you need to create a Video component on
the stage and then attach the camera as follows:
var video:Video; // Don't forget to create this component on
the stage!
video.attachVideo(Camera.get());
As for capturing a single image, I'm not sure how to do that,
but you can make the player display a single image like this:
your_netstream.play(yourstream, -1, 0);
The zero parameter tells Flash to play the stream for zero
seconds (i.e. 1 frame)
Good luck,
Barry -
Problem in capturing webcam image
To capture image directly, I'm using the following code:
import java.io.*;
import java.awt.*;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Vector;
import javax.media.*;
import javax.media.control.*;
import javax.media.protocol.*;
import javax.media.util.*;
import javax.media.format.RGBFormat;
import javax.media.format.VideoFormat;
import javax.media.*;
import javax.media.control.*;
import javax.media.util.*;
import java.awt.image.*;
import java.awt.event.*;
import javax.swing.*;
import javax.imageio.*;
import javax.swing.*;
import javax.swing.border.*;
import java.io.*;
import javax.media.*;
import javax.media.datasink.*;
import javax.media.format.*;
import javax.media.protocol.*;
import javax.media.util.*;
import javax.media.control.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
import java.io.IOException;
import java.util.Locale;
import javax.imageio.ImageReader;
import javax.imageio.spi.ImageReaderSpi;
import javax.imageio.stream.ImageInputStream;
import com.sun.media.protocol.vfw.VFWCapture; // JMF 2.1.1e version
// set up player
JPanel videoPanel = new JPanel();
// note I just set the media locator directly
MediaLocator ml = new MediaLocator("vfw://0");
try {
Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, new Boolean(true));
player = Manager.createRealizedPlayer(ml);
player.start();
Component comp;
if ((comp = player.getVisualComponent()) != null) {
videoPanel.add(comp, BorderLayout.CENTER);
videoPanel.setSize(new Dimension(320, 240));
videoPanel.setMinimumSize(new Dimension(320, 240));
videoPanel.setMaximumSize(new Dimension(320, 240));
playerUp=true;
catch (Exception e) {
// process error
// action code on capture button
public void actionPerformed(ActionEvent e) {
JComponent c = (JComponent) e.getSource();
if (c == capture) {
// Grab the frame
FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
Buffer buf = fgc.grabFrame();
// Convert to image
BufferToImage btoi = new BufferToImage((VideoFormat)buf.getFormat());
Image img = btoi.createImage(buf);
// now go and display the captured image
But it gives the error package javax.media does not exist. I'm using jdk 1.4. Classpath is set becoz it doesn't give error for javax.swing, which I'm using in my code. What could be the problem?You need to get and install JMV.
http://java.sun.com/products/java-media/jmf/
rykk -
How to capture Boolean returned by Type Function in rule
Hi All,
I have created a Rule by using Type(Where exist) with certain condition. My rule is returning false. So my execution rule is not triggering.
So my requirement is!
Type returns false then i want to return true to make sure my rule is triggering.
Thanks,
GuptaGupta,
If it returns False, then you don't want your action to execute, correct? What does your rule look like? If you are having trouble writing or testing the rule, run it on the Windows based ATE (Agentry Test Environment) and turn on rule debugging for that rule. You will be able to see the execution log for the rule and see where the problem is so you can modify it successfully. Unfortunately, there is no way to see or debug rule execution on smart devices to this point.
Jason Latko - Senior Product Developer at SAP -
BitmapData.draw fails to capture webcam
I am trying take a snapshot from a webcam. I'm using
BitmapData.draw(video). This works fine on my desktop but when I
try to do it in the browser it fails. Apparently this is some kind
of security restriction. Is there a way to get around it?Hello jspoon27,
I am working on a locally run flash application that is very
similar to your post about wanting to save a snapshot of a local
webcam. Could you share your code for doing that or explain your
steps? I would like to have a webcam running then take a snapshot
of the webcam with a button and then email the saved snapshot. My
main interest is how you created the snapshot and button for it.
Thank you,
LeverLock2 -
Capture webcam snapshot as bitmap and send to server
I have a local webcam stream appearing on the stage in a
movieclip.
When I click a "snapshot button", a still image from the
webcam gets attached to a new movieclip on the stage with
attachbitmap and then draw()
The snapshot shows up in the movieclip on the stage as a
preview.
I want to know how to send the data of this bitmap in the
movieclip to a server (php or coldfusion) to be saved as a JPEG.
I can't figure out how to access the bmp data and send it to
a server... any answers?Hello jspoon27,
I am working on a locally run flash application that is very
similar to your post about wanting to save a snapshot of a local
webcam. Could you share your code for doing that or explain your
steps? I would like to have a webcam running then take a snapshot
of the webcam with a button and then email the saved snapshot. My
main interest is how you created the snapshot and button for it.
Thank you,
LeverLock2 -
Epiphan screen record imported to PP CS5 problems
Hello,
I am using the Epiphan VGA2PCI-e internal screen recorder to record an external device. External device is running at 60Hz and the recorder is too. I am getting a very smooth .avi clip. I used the compressor that they recommended "Epiphan recommends using ffvfw MPEG-4 Codec for signal capture."
When imported into PP CS5 and increase the scale I get this:
Basically it is blurry unlike the .avi played in WM player.
I setup the sequence like this:
Editing Mode: Desktop
Timebase: 60 fps
square pixel
Progressive scan
checked Maximum render quality
Is this a terrible compressor / codec to use?
Why does the .avi look great but terrible when imported?
Thanks in advanceDUDE - you and I are having the EXACT same problem. See my post: Capturing webcam as DVAVI type-2
I'm using one of ephiphans VGA to USB devices too. YES - every codec I've tried is crap in Premiere and After effects, even though it plays fine in Windows Media. In After Effects, I got repeated, jerky frames etc. And rendering it didn't help. So, I re-encoded the whole thing in Media Encoder. It played fine in AFX then, the problem is that it encodes at about a rate of 10hours/per hour of video.
You don't have to use the Epiphan software to capture, as your computer sees the device as just an ordinary webcam. It seemed like an easy thing: just download the cedocida DV codec, load it in to any number of software titles and capture as DVAVI type 2. As a 2nd choice, I'd take H.264, as long as it plays back smoothly in Premiere or AFX. I've tried both (with DV codec just mentioned and the x264vfw codec). Terrible results either way. I've tried Virtual dub, Captureflux, Epiphan, Debut Video and GraphEditplus. Failure in every case.
I'm suspicious that our problem may stem from the inconstant frame rates that the epiphan device spits out. Debut video allows you to change the frame rate of the device. It thought this would fix it - setting it at 29.97 or 30. But it doesn't. The software crashes. I also had high hopes for GraphEditPlus, as the software allows so much flexibility. But so far, I have not figured out how to import the DVAVI type2 codec. And I don't know how to force the frame rate in graphedit either, but I haven't looked in to this much.
Oh, and here's the Cedocida codec: http://www.free-codecs.com/download/cedocida_dv_codec.htm
Epiphan can see it, but it can't encode to it because of the frame rate (gives an error message). I haven't tried the Panasonic codec, but I've heard it's outdated and really buggy anyway.
I still think our best bet is software that can force the frame rate somehow, whether with the DV codec or H.264
I am working pretty much full-time trying to find a solution to this problem, as I need something ready to go by next Monday. If you find a fix - PLEASE POST IT!!! -
Capturing attendance type in Time type
Hi All,
I have bit idea about time types which I learnt from SCN only. I want an absence type to be captured in a time type .I have created a time type and maintained it in T555Y (TM04 schema).
What other steps I need to do so that I can see that hours in my time type in TIP table.
Thanks ,
GopalHi Gopal,
You can write the below pcr.
ZTST
OUTTPCOGOS
COLOP *
2
HRS=PNUM
ADDDBXXXXZ (XXXX is your time type)
Use this pcr with function RTIP after TIMTP function.
Check and tell me.
Regards,
Sankarsan -
Design capture of report files of type .sql
Hope someone would be kind enough to help me out here.
I'm trying to reengineer some report files using Oracle designers (release 6) Design Capture facilities. The facilities allow me to capture report files of type '.rdf' but it does not allow me to capture report files of type '.sql '.
Would you know a way i can capture these files into the repository. Whats the trick? if any.Hi,
First of all put an exception block and see what exact exeption it is throwing and then post that exception. You also have to check wheather you have created a directory and it has sufficient privileges.
create or replace procedure verify as
declare
ACTIVITY_FILE UTL_FILE.FILE_TYPE;
log varchar2(600);
begin
ACTIVITY_FILE := UTL_FILE.fopen('/dacscan/Mani',log,'W');
EXCEPTION
WHEN others THEN
DBMS_OUTPUT.PUT_LINE(SQLCODE||SQLERRM);
end;
/ -
Trouble with webcam, Emgu CV, Capture()
I created a simple program that uses Emgu CV to capture webcam video and put it to a pictureBox, which I then process. It was working fine as long as I was running the software that came on this HP laptop, Cyberlink youcam. However, something changed, and
my program stopped working.
The exception I'm getting occurs when the oject attempts to instantiate the _capture variable, "_capture = new Capture(); " It complains like so: {"Unable to load DLL 'opencv_core242': The specified module could not be found. (Exception
from HRESULT: 0x8007007E)"} I've included a screen shot of the exception details below. (never mind, I'm not allowed to post images...)
I've added the references to the Emgu CV. And like I said, it was working fine, but suddenly stopped. The only thing I can think of is that I was experimenting with the Capture() constructor method. It's overloaded so you can specify the 'camera index',
so I tried specifying one, which caused the capture to stop working all together for the program. I changed it back but now the exception appears. I opened another program that uses this same bit of code, and it's stopped working too, no changes, so I assume
it's not the code, but some .Net complexity that I don't understand.
Any advice would be appreciated. thanks.
Here's my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
namespace LineFollow
public partial class Form1 : Form
Capture _capture = null;
int threshold = 150;
delegate void displayStringDelegate(String s);
public Form1()
InitializeComponent();
this.KeyPreview = true;
this.KeyDown += Form1_KeyDown;
private void Form1_Load(object sender, EventArgs e)
_capture = new Capture();
_capture.ImageGrabbed += Display_Process_Captured;
_capture.Start();
void Display_Process_Captured(object sender, EventArgs e)
int num_white_px = 0;
float percent_white = 0;
Image<Gray, Byte> gi = _capture.RetrieveGrayFrame().Resize(imageBox.Width, imageBox.Height,
Emgu.CV.CvEnum.INTER.CV_INTER_LINEAR);
gi = gi.ThresholdBinary(new Gray(threshold), new Gray(255));
imageBox.Image = gi.Bitmap;
for (int h = 0; h < imageBox.Height; h++)
for (int w = 0; w < imageBox.Width; w++)
if (gi.Data[h, w, 0] == 255)
num_white_px++;
percent_white = num_white_px * 100 / (imageBox.Size.Width * imageBox.Size.Height);
if (percent_white > 50)
this.BackColor = Color.Red;
else
this.BackColor = Color.Green;
dispStr(num_white_px.ToString() + " " + percent_white.ToString() + " " + threshold.ToString());
private void Form1_KeyDown(object sender, KeyEventArgs e)
if (e.Control && e.KeyCode == Keys.Up)
threshold += 1;
if (threshold >= 255) threshold = 255;
else if (e.Control && e.KeyCode == Keys.Down)
threshold -= 1;
if (threshold <= 0) threshold = 0;
if (!e.Control && e.KeyCode == Keys.Up)
threshold += 10;
if (threshold >= 255) threshold = 255;
else if (!e.Control && e.KeyCode == Keys.Down)
threshold -= 10;
if (threshold <= 0) threshold = 0;
public void dispStr(string s)
if (InvokeRequired)
displayStringDelegate dispStrDel = dispStr;
this.BeginInvoke(dispStrDel, s);
else
labelLeft.Text = s;Thanks for the replies, everyone.
I've made some progress. Like I said, before this problem occurred, I had to start my laptop's webcam software (CyberLink YouCam) before starting my .Net applications. If I failed to start YouCam, instead of a video feed I would receive an image from YouCam
instructing me to start YouCam. This is annoying because I have to run YouCam, which is not a light program, along with my stuff.
I wanted to find a way to run my .Net stuff on its own, so I began experimenting, which included uninstalling YouCam. After uninstalling, .Net couldn't get the video feed at all, so I reinstalled. This is when the weird error above appeared, but only for
SOME projects, oddly.
Last night I experimented further. I have three versions of Visual Studio on this system, so I pulled up 2010 to give it a try. Same issue. This lead me to believe the issue was not only outside of my code, but outside of project scope all together.
After a system restore to a point prior to uninstalling and reinstalling miserable YouCam, my video programs worked again, meaning I still have to start YouCam. It seems YouCam is monopolizing something, or maybe the un/reinstall messed something up.
The method I'm using from Emgu CV library is called Capture(), which creates an object to access the video feed. By default, it accesses the default camera. However, you can specify with an index a different camera. I'm suspicious that YouCam might be creating
a virtual webcam and making it the default, so perhaps if I specify a different index, I'll be able to access a camera directly.
Further thoughts are appreciated. Thanks. -
Hello,
designer is allways changing the order of attributes during capture of existing object types from DB.
Do you know how to keep existing order
of attributes for database object types
in designer?
Regards, AZ.i use designer 9.0.2 to create a server model.
i'd like to store images in the DB. i read about intermedia which looks very nice i think.
any experience with designer and ORDImage? or do i have to use BLOB for storing the images?
thanks.
Maybe you are looking for
-
Then I get this once outlook is open: Cannot start Microsoft Outlook. Cannot open the Outlook window. The set of folders cannot be opened. The operation cannot be performed because the connection to the server is offline". Outlook 2013 client Exchang
-
What are the reasons for following Javascript error in Report Viewer
Post Author: dhuka CA Forum: Crystal Reports Hello Everybody! I am using Crystal Reports 10 in my web application. But unfortunately I am surrounded with strange problem related to it because of which I have been unable to deploy is on client-side. I
-
How to display images in a table
Hi all, I have to display five different images in five rows of a table.For this purpose i am trying to create a node element with value attribute.How can i set an image to the node.If it is possible to set an image to the node then i can bind it
-
Have no setup cd for wvc210. Download will not load on win 7
I have a new PC and cannot find my setup CD for my wvc210 camera. This PC is running Win 7 Home Premium 64. When I try to download the AVM_APP_2.0.2.1 file I get "The program can't start because QtCore4.dll is missing from your computer. Try reins
-
LiveType/Final Cut Express HD and HDV
Hey, Is it true if I create content with LiveType compressed with the 1080i format that to make a viewable DVD it has to be compressed another way for it to be viewable? Chris