Re: Troubles when running jjmpegdemos

158 views
Skip to first unread message

Michael Zucchi

unread,
Nov 11, 2012, 6:46:30 PM11/11/12
to Andreas Lundblad, jjmpeg-...@googlegroups.com

Hi,

The error indicates that isn't finding (the right version of) libavutil
from FFmpeg. jjmpeg only works against specific versions of FFmpeg as
the interfaces change too much to attempt to track. So for example, if
you're using jjmpeg-0.11.1, it needs to run against FFmpeg-0.11.1,
although any 0.11.x should probably work, and maybe even 1.0.x as they
came close together. I thought there was a file listing the specific
library versions but maybe i removed that since the name spells it out.

If you have a different version of FFmpeg you need to compile jjmpeg
yourself - but because of the aforementioned volatility, it may not work.

Libraries on GNU or unix systems need to be called 'libxxx.so', so
renaming libavutil.so wont do any good. They need to be in the library
path, or ld.so.conf.

> I'm running Ubuntu 64-bit and "libjjmpeg.so" comes from
> "jjmpeg-0.11.1a1-natives-gnu-amd64.jar"

Oh? How could that possibly be so??

$ unzip -l jjmpeg-0.11.1a1-natives-gnu-amd64.jar
Archive: jjmpeg-0.11.1a1-natives-gnu-amd64.jar
Length Date Time Name
--------- ---------- ----- ----
0 06-22-2012 15:19 META-INF/
71 06-22-2012 15:19 META-INF/MANIFEST.MF
0 06-22-2012 15:19 lib/
91996 06-22-2012 15:19 lib/libjjmpeg011.so
1684 06-22-2012 15:19 README
35147 06-22-2012 15:19 COPYING
--------- -------
128898 6 files

I see no "libjjmpeg.so" there.

So it also looks like you're mixing versions of jjmpeg up as well and by
just renaming the files you're expecting it to magically function. This
will (i would have thought obviously) not work.

BTW The demo stuff isn't fully ported to the 0.11 branch, which is why
for example they are not packaged - without looking into it I have no
idea if they will even work as a few things changed.

In general anything not on the trunk is more experimental as i'm not
using it for any "real" code.

Please use the mailing list in future.

!Z

On 11/11/12 19:13, Andreas Lundblad wrote:
> Hi,
>
> I'm trying to run the jjmpegdemos program.
>
> The 3-button user interface shows fine. I can click "Title Creator",
> but when I click "Create" I get
>
> cannot open avutil.so
> Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError:
> au.notzed.jjmpeg.AVCodecContextNativeAbstract.init()V
> at au.notzed.jjmpeg.AVCodecContextNativeAbstract.init(Native Method)
> at au.notzed.jjmpeg.AVCodecContextAbstract.init(AVAbstract.java:240)
> at au.notzed.jjmpeg.AVNative.<clinit>(AVNative.java:71)
> ...
>
>
> I've tried _everything_ I can think of. Just to get it working I tried
> to copy all dependencies into a single directory. This is what I'm
> doing right now:
>
> $ ls
> avutil.so jjmpegdemos.jar jjmpeg.jar libjjmpeg.so
>
> $ java -cp jjmpegdemos.jar:jjmpeg.jar -Djava.library.path=. jjmpegdemos.Main
>
> (I've tried renaming "avutil.so" to "libavutil.so" and I've tried
> adding "." to the classpath to no avail.)
>
> I'm running Ubuntu 64-bit and "libjjmpeg.so" comes from
> "jjmpeg-0.11.1a1-natives-gnu-amd64.jar"
>
> It seems to me like I'm doing everything according to your
> instructions in the README. Apparently I'm missing something. :-/
>
> Any hints would be appreciated.
>
> best regards,
> Andreas Lundblad
>

Reply all
Reply to author
Forward
0 new messages