[needs-packaging] jmf - Java Media Framework

Bug #104511 reported by Dan Lipsitt on 2007-04-08
66
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Flywire
Wishlist
Bentokit Developers
Ubuntu
Wishlist
Bentokit Developers
Declined for Jaunty by Harald Sitter
Declined for Karmic by Harald Sitter
Declined for Lucid by Harald Sitter

Bug Description

API for manipulating audio and video with Java.

http://java.sun.com/products/java-media/jmf/

I agree, this would be really handy to have. As it is, the JMF installer shell script doesn't work on Hardy:

Permit writing local files from an applet? (recommend no, see readme.html) [yes or no]
no
Unpacking...
tail: cannot open `+309' for reading: No such file or directory
Extracting...
./install.sfx.8592: 1: cannot open ==: No such file
./install.sfx.8592: 1: ==: not found
./install.sfx.8592: 3: Syntax error: ")" unexpected
chmod: cannot access `JMF-2.1.1e/bin/jmstudio': No such file or directory
chmod: cannot access `JMF-2.1.1e/bin/jmfregistry': No such file or directory
chmod: cannot access `JMF-2.1.1e/bin/jmfinit': No such file or directory
./jmf-2_1_1e-linux-i586.bin: 305: JMF-2.1.1e/bin/jmfinit: not found
/bin/cp: cannot stat `JMF-2.1.1e/lib/jmf.properties': No such file or directory
Done.

I haven't figured out exactly what's wrong but it would be great if we could install this package the Debian way.

chiralsoftware (ericjhollander) wrote :

Oh, I found out why the installer doesn't work. Somehow the version of plain old Unix tail has slightly different command line args now. Edit the installer script and change:

tail +309 $0 > $outname

to:

tail --lines=+309 $0 > $outname

and then it runs as expected. Probably Sun should change this to detect which version of tail it's using. Or even better, they should switch to a more modern system, like why not put the whole thing in an executable jar file?

Bill Brown (wbrown) wrote :

Greetings:

I am using Hardy (8.04) on a 64bit amd processor.

I made the change suggested 'tail --lines=+309 $0 > outname' and that does not fix the issue for me

...
Unpacking...
Extracting...
chmod: cannot access `JMF-2.1.1e/bin/jmstudio': No such file or directory
chmod: cannot access `JMF-2.1.1e/bin/jmfregistry': No such file or directory
chmod: cannot access `JMF-2.1.1e/bin/jmfinit': No such file or directory
./jmf-2_1_1e-linux-i586.bin: 305: cannot create /home/bill/.jmfdir: Permission denied
./jmf-2_1_1e-linux-i586.bin: 306: JMF-2.1.1e/bin/jmfinit: not found
/bin/cp: cannot stat `JMF-2.1.1e/lib/jmf.properties': No such file or directory
Done.

It seems to not unpack anything because there is no JMF-2.1.1 folder created for me.

Do you have another suggestion for getting this installed?

aoth (lucasgrecco-gmail) wrote :

I have the same problem!

I tried to resolve:

- Create the folders bin, jmfinit, jmfreditry, jmfstudio, lib!

- Edit .bin, try sudo in some lines.....

echo sudo `pwd`/JMF-2.1.1e/lib >$HOME/.jmfdir
JMF-2.1.1e/bin/jmfinit /tmp `pwd`/JMF-2.1.1e/doc/jmf-policy $allowCapture $allowSave
sudo cp -f JMF-2.1.1e/lib/jmf.properties JMF-2.1.1e/lib/jmf.properties.orig
echo "Done."

But, no results....

mloudon (melissa-loudon) wrote :

Just to record that it works for me on Hardy, but the change to the installation script is 'tail -n=+309 $0 > outname'

linex83 (linex83) wrote :

Same problem here, this is really annoying. Also, neither of the suggested changes to the file worked for me.

Giovani (mm499736) wrote :

Ok I got this problem solved, follow this steps:

1 - Erase any jmf.bin file that you had download. Download a new one and put in a folder, and check file size:

ls -l

This is a probably result:
-rwxr-xr-x 1 nobody nogroup 2419679 2009-03-07 11:52 jmf-2_1_1e-linux-i586.bin

filezise: 2419679 bytes

2 - Give permission to file:
chmod +x jmf-2_1_1e-linux-i586.bin

THIS IS THE MOST IMPORTANT STEP
3 - Edit jmf-2_1_1e-linux-i586.bin downloaded file with vim as root
vim -b jmf-2_1_1e-linux-i586.bin (YOU HAVE TO USE THIS COMMAND -b BECAUSE IT'S A BINARY FILE)

4 - At vim type this:
/tail

Then press the key l to move to the left on that line, until the sign +.

Press i to insert text, and insert -n , with a space

5 - Now press ESC and type:
 :wq

6 - Now execute the jmf bin file.

That's it.

arkmundi (rkerver) wrote :

I followed Giovani instructions from 2009-03-07 with apparent success ... the .bin executes now. FYI, under Ubuntu {I'm using 8.04}, the instructions are incorrect at:
  http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/setup-linux.html
the setenv command doesn't exist because its a csh construct ... use export instead to set variables asked for: JMFHOME, CLASSPATH, LD_LIBRARY_PATH

Will keep this updated with anything else I discover, as I'm in process making it work. Thanks all contributors!

linex83 (linex83) wrote :

Thanks Giovani for the step-by-step instructions. In step 4 it should be said that the line should be "tail -n +309 $0 > $outname" in the end. It seems like the bin-file worked fine, but there have been some errors displayed:

java.lang.Error: Can't open video card 0
java.lang.Error: Can't open video card 1
java.lang.Error: Can't open video card 2
java.lang.Error: Can't open video card 3
java.lang.Error: Can't open video card 4
java.lang.Error: Can't open video card 5
java.lang.Error: Can't open video card 6
java.lang.Error: Can't open video card 7
java.lang.Error: Can't open video card 8
java.lang.Error: Can't open video card 9

I tried to ignore those errors. However, the given application (Lecturnity Player) still does not work properly. It says "java.lang.ClassNotFoundException: javax.media.TimeBase" whenever I try to play a video. Even though I set the variables as described above and even tried to run Java with the "-cp" argument.

I don't think that I made any mistakes while setting the classpath. So my guess would be that there is something wrong with JMF, but of course I don't really know. It would be nice if you could help. I'll be glad to provide any information you might need.

Hello brother.

About the line "tail......" depends the O.S. that are you using. I had
installed this jmf in Debian Lenny.
About the erros "can't open video card X" it's normal if you don't have a
capture card.

And finally, about your problem.
What Linux are you using?
Witch command are you using to execute Lecturnity Player?
I've tried this command and worked fine
*
java -jar player_20p4.jar*

I used this "player_20p4" version.

try this.

2009/3/16 anton.pussep <email address hidden>

> Thanks Giovani for the step-by-step instructions. In step 4 it should be
> said that the line should be "tail -n +309 $0 > $outname" in the end. It
> seems like the bin-file worked fine, but there have been some errors
> displayed:
>
> java.lang.Error: Can't open video card 0
> java.lang.Error: Can't open video card 1
> java.lang.Error: Can't open video card 2
> java.lang.Error: Can't open video card 3
> java.lang.Error: Can't open video card 4
> java.lang.Error: Can't open video card 5
> java.lang.Error: Can't open video card 6
> java.lang.Error: Can't open video card 7
> java.lang.Error: Can't open video card 8
> java.lang.Error: Can't open video card 9
>
> I tried to ignore those errors. However, the given application
> (Lecturnity Player) still does not work properly. It says
> "java.lang.ClassNotFoundException: javax.media.TimeBase" whenever I try
> to play a video. Even though I set the variables as described above and
> even tried to run Java with the "-cp" argument.
>
> I don't think that I made any mistakes while setting the classpath. So
> my guess would be that there is something wrong with JMF, but of course
> I don't really know. It would be nice if you could help. I'll be glad to
> provide any information you might need.
>
> --
> [needs-packaging] jmf - Java Media Framework
> https://bugs.launchpad.net/bugs/104511
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Ubuntu: Confirmed
>
> Bug description:
> API for manipulating audio and video with Java.
>
> http://java.sun.com/products/java-media/jmf/
>

arkmundi (rkerver) wrote :

Giovani and all, I'm using Ubuntu 8.04 and will upgrade to 8.10 in due course. According to Canonical:
 JMF has been requested for packaging and is assigned to the Ubuntu MOTU (Universe package administrators). Feel free to comment on this bug and mark it as affecting you.
    https://bugs.edge.launchpad.net/ubuntu/+bug/104511

I have largely circumvented my OpenOffice problem through the use of macros and bash scripts, so I have media capability as part of an Impress presentation. For the long-term, however, it'd be good to see JMF fully packaged by Ubuntu, binaries in repository, and available as part of the standard.

Ddorda (ddorda) wrote :

Will it be packaged for 11.04?

Changed in ubuntu:
assignee: MOTU (motu) → nobody
Tudor Holton (tudor) wrote :

I stumbled across this bug report while I was building a JMF Installer for Debian and Ubuntu GNU/Linux. Thought you might like to know about it. It's at https://launchpad.net/jmf-installer or http://www.bentokit.org/project/jmf-installer. It's in our own nightly-build debian repository for testing. Please report bugs/suggestions to https://bugs.launchpad.net/jmf-installer.

Changed in ubuntu:
assignee: nobody → Bentokit Developers (bentokitdevs)
status: Confirmed → Fix Committed
status: Fix Committed → In Progress
Changed in flywire:
assignee: nobody → Bentokit Developers (bentokitdevs)
importance: Undecided → Wishlist
status: New → Fix Committed
arkmundi (rkerver) wrote :

Tudor, thanks for the post on what you're up to and availability of a JMF installer under Debian. Got a lot on my plate right now, but will get around to attempting an install. Question - what versions of OpenOffice and/or LibreOffice are you working with?

Tudor Holton (tudor) wrote :

Sorry. I'm not using JMF as part of OpenOffice. I'm using it as part of Bentokit Flywire - a GPL3 radio broadcasting playout system.

Ken McLean (kenmclean) on 2011-04-19
Changed in flywire:
milestone: none → 0.2.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers