Giter VIP home page Giter VIP logo

Comments (11)

leaumar avatar leaumar commented on May 30, 2024

I found the repository reference on another page, so that solves that

<repository>
    <id>Sonatype OSS Snapshot Repository</id>
    <url>http://oss.sonatype.org/content/repositories/snapshots</url>
</repository>

from gst1-java-core.

neilcsmith-net avatar neilcsmith-net commented on May 30, 2024

The library is published to Maven - see https://mvnrepository.com/artifact/org.freedesktop.gstreamer/gst1-java-core

Please update to 0.9.3 and JNA 4.5.1. This might break though as our API has changed. If you can still reproduce with current code please reopen.

from gst1-java-core.

leaumar avatar leaumar commented on May 30, 2024
<dependency>
	<groupId>com.github.sarxos</groupId>
	<artifactId>webcam-capture-driver-gst1</artifactId>
	<version>0.3.13-SNAPSHOT</version>
</dependency>
<dependency>
	<groupId>org.freedesktop.gstreamer</groupId>
	<artifactId>gst1-java-core</artifactId>
	<version>0.9.3</version>
</dependency>
<dependency>
	<groupId>net.java.dev.jna</groupId>
	<artifactId>jna</artifactId>
	<version>4.5.1</version>
</dependency>
Caused by: com.github.sarxos.webcam.WebcamException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: No such Gstreamer factory: ksvideosrc
	at com.github.sarxos.webcam.WebcamDiscoveryService.getWebcams(WebcamDiscoveryService.java:124)
	at com.github.sarxos.webcam.Webcam.getWebcams(Webcam.java:893)
	at com.github.sarxos.webcam.Webcam.getDefault(Webcam.java:956)
	at com.github.sarxos.webcam.Webcam.getDefault(Webcam.java:933)
	at com.github.sarxos.webcam.Webcam.getDefault(Webcam.java:911)
	at net.leaumar.americam.PictureProvider.<init>(PictureProvider.java:31)
	at net.leaumar.americam.HttpServer.<clinit>(HttpServer.java:18)
	... 1 more
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: No such Gstreamer factory: ksvideosrc
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at com.github.sarxos.webcam.WebcamDiscoveryService.getWebcams(WebcamDiscoveryService.java:116)
	... 7 more
Caused by: java.lang.IllegalArgumentException: No such Gstreamer factory: ksvideosrc
	at org.freedesktop.gstreamer.ElementFactory.makeRawElement(ElementFactory.java:221)
	at org.freedesktop.gstreamer.ElementFactory.make(ElementFactory.java:91)
	at com.github.sarxos.webcam.ds.gst1.Gst1Driver.getDevices(Gst1Driver.java:71)
	at com.github.sarxos.webcam.WebcamDiscoveryService$WebcamsDiscovery.call(WebcamDiscoveryService.java:36)
	at com.github.sarxos.webcam.WebcamDiscoveryService$WebcamsDiscovery.call(WebcamDiscoveryService.java:26)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

from gst1-java-core.

leaumar avatar leaumar commented on May 30, 2024

@neilcsmith-net I can't reopen so I'm just calling out...

from gst1-java-core.

neilcsmith-net avatar neilcsmith-net commented on May 30, 2024

Ok. Which install profile did you choose when installing GStreamer? If typical rather than full, try reinstalling everything. Camera support might be missing.

Also check out the gst1-java-examples repo and try the simple webcam example there.

from gst1-java-core.

leaumar avatar leaumar commented on May 30, 2024

The full shebang installed:

Caused by: com.github.sarxos.webcam.WebcamException: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: Could not load library: gstinterfaces
	at com.github.sarxos.webcam.WebcamDiscoveryService.getWebcams(WebcamDiscoveryService.java:124)
	at com.github.sarxos.webcam.Webcam.getWebcams(Webcam.java:893)
	at com.github.sarxos.webcam.Webcam.getDefault(Webcam.java:956)
	at com.github.sarxos.webcam.Webcam.getDefault(Webcam.java:933)
	at com.github.sarxos.webcam.Webcam.getDefault(Webcam.java:911)
	at net.leaumar.americam.PictureProvider.<init>(PictureProvider.java:31)
	at net.leaumar.americam.HttpServer.<clinit>(HttpServer.java:18)
	... 1 more
Caused by: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: Could not load library: gstinterfaces
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at com.github.sarxos.webcam.WebcamDiscoveryService.getWebcams(WebcamDiscoveryService.java:116)
	... 7 more
Caused by: java.lang.UnsatisfiedLinkError: Could not load library: gstinterfaces
	at org.freedesktop.gstreamer.lowlevel.GstNative.load(GstNative.java:56)
	at org.freedesktop.gstreamer.lowlevel.GstPropertyProbeAPI.<clinit>(GstPropertyProbeAPI.java:30)
	at org.freedesktop.gstreamer.interfaces.PropertyProbe.<init>(PropertyProbe.java:55)
	at org.freedesktop.gstreamer.interfaces.PropertyProbe.wrap(PropertyProbe.java:46)
	at com.github.sarxos.webcam.ds.gst1.Gst1Driver.getDevices(Gst1Driver.java:75)
	at com.github.sarxos.webcam.WebcamDiscoveryService$WebcamsDiscovery.call(WebcamDiscoveryService.java:36)
	at com.github.sarxos.webcam.WebcamDiscoveryService$WebcamsDiscovery.call(WebcamDiscoveryService.java:26)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
WARNING: no real random source present!

from gst1-java-core.

leaumar avatar leaumar commented on May 30, 2024

The camera test in gst1-examples works fine

from gst1-java-core.

neilcsmith-net avatar neilcsmith-net commented on May 30, 2024

OK, in that case please report to the sarxos webcam project or use this library directly - they're attempting to use functionality that doesn't exist in the GStreamer 1.x bindings.

Thanks, Neil

from gst1-java-core.

leaumar avatar leaumar commented on May 30, 2024

Oh, looks like I mixed up the project on which to post the issue :) I actually did mean to post it to sarxos, not gstreamer. My mistake, sorry

from gst1-java-core.

leaumar avatar leaumar commented on May 30, 2024

Thanks for the help btw

from gst1-java-core.

neilcsmith-net avatar neilcsmith-net commented on May 30, 2024

No problem! This project is neither btw. It's the binding in the middle so that Java applications can use GStreamer.

from gst1-java-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.