[jitsi-dev] UnsatisfiedLinkError and Video Display


#1

Hi,

did anyone already run into this error, while executing something based on libjitsi?

java.lang.UnsatisfiedLinkError: /home/vlad/arema/apps/libjitsi/lib/native/linux-64/libjnawtrenderer.so: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/../lib/amd64/libjawt.so: symbol awt_Unlock, version SUNWprivate_1.1 not defined in file libmawt.so with link time reference

The Exception is thrown while LibJitsiImpl.getService() gets invoked, when the program is executed with both java-7-openjdk-amd64 and JDK 1.7.0.

I've modified the AVReceive2 example in order to visualize the video For that manner, I initialize a VideoContainer with the VisualComponent returned by the appropriate MediaStream and attach it to a JFrame.

Executing wih another JVM e.g. JamaicaVM produces no errors, but instead the video data gets not rendered, which I also can not actually comprehend. What I noticed is, that a plenty of times 'got_picture' of 'avcodec_decode_video()' is 'false' and respectively a keyFrame is requested by the sender. Is that normal, since the sender anyway periodically generates key frames?

Is the general procedure of attaching a VideoContainer and VisualComponent to a JFrame correct and enough for getting the video displayed, or are another steps necessary which I have missed?

Greetings and Mnogo Pozdravi!

Vladimir

···

sent by the Transmitter.


#2

Since the developers have no time nor interest to answer, I forward my post here to the users ...

Hope I have more luck here ...

Cheers,
Vlad

-------- Weitergeleitete Nachricht --------

···

Betreff: [jitsi-dev] UnsatisfiedLinkError and Video Display
Datum: Thu, 16 Oct 2014 14:06:03 +0200
Von: Vladimir Nikolov <vladimir.nikolov@uni-ulm.de>
Antwort an: Jitsi Developers <dev@jitsi.org>
An: dev@jitsi.org

Hi,

did anyone already run into this error, while executing a program based
on libjitsi?

java.lang.UnsatisfiedLinkError:
.../libjitsi/lib/native/linux-64/libjnawtrenderer.so:
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/../lib/amd64/libjawt.so:
symbol awt_Unlock, version SUNWprivate_1.1 not defined in file
libmawt.so with link time reference

The Exception is thrown while LibJitsiImpl.getService() gets invoked,
when the program is executed with both java-7-openjdk-amd64 and JDK 1.7.0.

I've modified the AVReceive2 example in order to visualize the video
sent by the Transmitter.
For that manner, I initialize a VideoContainer with the VisualComponent
returned by the appropriate MediaStream and attach it to a JFrame.

Executing wih another JVM e.g. JamaicaVM produces no errors, but instead
the video data gets not rendered, which I also can not actually
comprehend. What I noticed is, that a plenty of times 'got_picture' of
'avcodec_decode_video()' is 'false' and respectively a keyFrame is
requested by the sender. Is that normal, since the sender anyway
periodically generates key frames?

Is the general procedure of attaching a VideoContainer and
VisualComponent to a JFrame correct and enough for getting the video
displayed, or are another steps necessary which I have missed?

Greetings,

Vladimir

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

did anyone already run into this error, while executing something based on
libjitsi?

java.lang.UnsatisfiedLinkError:
/home/vlad/arema/apps/libjitsi/lib/native/linux-64/libjnawtrenderer.so:
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/../lib/amd64/libjawt.so: symbol
awt_Unlock, version SUNWprivate_1.1 not defined in file libmawt.so with link
time reference

The Exception is thrown while LibJitsiImpl.getService() gets invoked, when
the program is executed with both java-7-openjdk-amd64 and JDK 1.7.0.

There are multiple Renderer implementations for video apart from
JAWTRenderer and, consequently, the expected behavior is to have one
of them automatically stand in for JAWTRenderer should the latter
fail. Does the exception loss of functionality for you? Or are you
merely letting us know that an exception is reported?

I've modified the AVReceive2 example in order to visualize the video sent by
the Transmitter.
For that manner, I initialize a VideoContainer with the VisualComponent
returned by the appropriate MediaStream and attach it to a JFrame.

Jitsi is the definite reference on the subject. Your description rings
the right bells, what I'm missing is the mention of VideoListener and
VideoEvent.

Executing wih another JVM e.g. JamaicaVM produces no errors, but instead the
video data gets not rendered, which I also can not actually comprehend.

We cannot comment on issues with libjitsi executed by JamaicaVM.

What
I noticed is, that a plenty of times 'got_picture' of
'avcodec_decode_video()' is 'false' and respectively a keyFrame is requested
by the sender. Is that normal, since the sender anyway periodically
generates key frames?

The display of a video/visual Component is a somewhat separate subject
from decoding.

Generally, (1) a failure to decode video is very likely caused by loss
of packets over the network and (2) it is normal for receiving
endpoints to request keyframes from sending endpoints.

Is the general procedure of attaching a VideoContainer and VisualComponent
to a JFrame correct and enough for getting the video displayed, or are
another steps necessary which I have missed?

Look at the references to VideoMediaStream#getVisualComponent(),
VideoMediaStream#getVisualComponents(), VideoListener, VideoEvent in
the source code of the Jitsi project.

···

2014-10-16 15:06 GMT+03:00 Vladimir Nikolov <vladimir.nikolov@uni-ulm.de>: