Menu

XuggleVideo can not open file

Anonymous
2014-02-23
2015-04-23
  • Anonymous

    Anonymous - 2014-02-23

    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

     
  • Jonathon Hare

    Jonathon Hare - 2014-02-23

    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"))?

     
  • Anonymous

    Anonymous - 2015-04-23
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.