Hi,
I am trying to follow openIMAJ tutproal to draw facial key points on a video but OpenIMAJ is not able to load the video file..here is my code:
``````````````````````````````````````````````
Video<MBFImage> video;
video = new XuggleVideo("file://E:/AV/out2.flv");//XuggleVideo("file:"+fileName);
VideoDisplay<MBFImage> display = VideoDisplay.createVideoDisplay(video);
display.addVideoListener(
new VideoDisplayListener<MBFImage>() {
public void beforeUpdate( MBFImage frame ) {
FaceDetector<DetectedFace,FImage> fd = new HaarCascadeDetector(40);
List<DetectedFace> faces = fd.detectFaces( Transforms.calculateIntensity(frame));
for( DetectedFace face : faces ) {
frame.drawShape(face.getBounds(), RGBColour.RED);
}
}
public void afterUpdate( VideoDisplay<MBFImage> display ) {
}
});
````````````````````````````
It prints
file:///E:/AV/out2.flv
URL file:///E:/AV/out2.flv could not be opened by ffmpeg. Trying to open a stream to the URL instead.
11:14:12.505 [Finalizer] DEBUG com.xuggle.xuggler - Closing dangling Container (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:146)
on the screen and then just dies out. What am I doing wrong?
using new XuggleVideo(new File("E:/AV/out2.flv")); also gives the same result.. I am able to access the file when I put same url in the browser
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't got access to a windows machine at present to test, but I'd guess that you should have three slashes in front (i.e. "file:///E:/AV/out2.flv"). For the File() constructor does it work if you give the path in windows format (new File("E:\AV\out2.flv"))?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2015-04-23
Post awaiting moderation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to follow openIMAJ tutproal to draw facial key points on a video but OpenIMAJ is not able to load the video file..here is my code:
``````````````````````````````````````````````
Video<MBFImage> video;
video = new XuggleVideo("file://E:/AV/out2.flv");//XuggleVideo("file:"+fileName);
VideoDisplay<MBFImage> display = VideoDisplay.createVideoDisplay(video);
display.addVideoListener(
new VideoDisplayListener<MBFImage>() {
public void beforeUpdate( MBFImage frame ) {
````````````````````````````
It prints
file:///E:/AV/out2.flv
URL file:///E:/AV/out2.flv could not be opened by ffmpeg. Trying to open a stream to the URL instead.
11:14:12.505 [Finalizer] DEBUG com.xuggle.xuggler - Closing dangling Container (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:146)
on the screen and then just dies out. What am I doing wrong?
using new XuggleVideo(new File("E:/AV/out2.flv")); also gives the same result.. I am able to access the file when I put same url in the browser
I haven't got access to a windows machine at present to test, but I'd guess that you should have three slashes in front (i.e. "file:///E:/AV/out2.flv"). For the File() constructor does it work if you give the path in windows format (new File("E:\AV\out2.flv"))?