HemaNage / gstreamer-java

Automatically exported from code.google.com/p/gstreamer-java
1 stars 0 forks source link

VideoScale Element with Bilinear Method issue (freezes when image blank) #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
  source = ElementFactory.make("souphttpsrc", "Source");
        demux = ElementFactory.make("multipartdemux", "Depay");
        decoder = ElementFactory.make("jpegdec", "Decoder");
        videoscale_elem = ElementFactory.make("videoscale", "videoscale_elem");
        videocolorspace_elem = ElementFactory.make("ffmpegcolorspace", "Colorspace");

pipe = new Pipeline("pipeline");

        videoscale = ElementFactory.make("capsfilter", "videoscale");

   videoscale.setCaps(Caps.fromString("video/x-raw-yuv, width=" + videoSize.width + ", height=" + videoSize.height));
 pipe.addMany(source, demux, decoder, videoscale_elem, videoscale, videocolorspace_elem, videosink);
        Element.linkMany(source, demux);
        Element.linkMany(decoder, videoscale_elem, videoscale, videocolorspace_elem, videosink);

        this.demux.connect(new Element.PAD_ADDED() {

            @Override
            public void padAdded(Element element, Pad pad) {
                pad.link(decoder.getStaticPad("sink"));
            }
        });

        Pad p = new Pad(null, PadDirection.SRC);
        source.addPad(p);

What is the expected output? What do you see instead?

Video works fine under normal conditions but when pitch dark or extreme glare 
the pipeline freezes. Default videoscale properties as one can see from the 
code above.

Have you tried to verify this is a gstreamer-java specific issue, and not a
problem with the gstreamer framework itself?
No. Will do soon.

What version of the product are you using? On what operating system?
Ubuntu 10.04, gstreamer-java 1.5

Please provide any additional information below.

Original issue reported on code.google.com by enthusia...@gmail.com on 4 Sep 2012 at 2:41

GoogleCodeExporter commented 8 years ago
Ok I verified. This is an issue with the Gstreamer itself. Its nothing to do 
with videoscale. 

 $ gst-launch souphttpsrc location="http://user:@192.168.1.90/moxa-cgi/mjpeg.cgi" ! multipartdemux ! jpegdec ! ffmpegcolorspace ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstJpegDec:jpegdec0: Failed to 
decode JPEG image
Additional debug info:
gstjpegdec.c(1264): gst_jpeg_dec_chain (): 
/GstPipeline:pipeline0/GstJpegDec:jpegdec0:
Error #69: Unsupported marker type 0xf4

Will file bug in gstreamer

Original comment by enthusia...@gmail.com on 4 Sep 2012 at 10:04

GoogleCodeExporter commented 8 years ago

Original comment by lfar...@lfarkas.org on 5 Sep 2012 at 10:51