Xuggler on Linux

668 views
Skip to first unread message

Nakul

unread,
Mar 27, 2011, 1:15:54 PM3/27/11
to xuggler-users
Hello Everyone,

Does anyone have installed xuggler on Ubuntu or any other flavour of
linux.
I am doing it on ubuntu but not getting the results.
I want to use it with Tomcat ( along with servlets).

Please some one out there pls hepl me i m badly in problem.

Thanks.

-nakul

Dilip Shah

unread,
Mar 27, 2011, 1:45:08 PM3/27/11
to xuggler-users
Hi Nakul,

I tried to install Xuggler on CentOS but it was throwing exceptions (don't
have the specifics right now) and after email exchanges with Art Clarke,
ended up building it on CentOS server. I've successfully installed it on
CentOS, deployed in Tomcat 5.5 and it has been working fine for the last 6+
months.

Let me know if I can answer any specific build related questions.

Dilip

--------------------------------------------------
From: "Nakul" <nakulk...@gmail.com>
Sent: Sunday, March 27, 2011 10:15 AM
To: "xuggler-users" <xuggle...@googlegroups.com>
Subject: [xuggler-users] Xuggler on Linux

> --
> You received this message because you are subscribed to the Google Groups
> "xuggler-users" group.
> To post to this group, send email to xuggle...@googlegroups.com.
> To unsubscribe from this group, send email to
> xuggler-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/xuggler-users?hl=en.
>
>

Art Clarke

unread,
Mar 27, 2011, 1:58:01 PM3/27/11
to xuggle...@googlegroups.com, xuggler-users
See FAQ on www.xuggle.com

Nakul

unread,
Mar 27, 2011, 2:14:47 PM3/27/11
to xuggler-users
Hi Dilip,

Thanks for ur reply. I read discuusions of u and Art Clarke.
I want to get it know that which versions of following u have used:

Tomcat, Xuggler, Java,Ant,Perl,Gcc,Gmake Yasm...etc

Have you Build xuggler by urself for ur linux?
I can use any linux. The only thing is that it should get run
successfully.

Currently i am trying it on Ubuntu 10.04 (also tried it on version 8
and 9). But i am not able to install xuggler on it.
I am using xuggle-xuggler-i386-linux.sh file.
and i m following instruction from http://xuggle.wordpress.com/2009/01/23/how-to-install-xuggler-on-linux/

But after i type command run-tests it gives me error --- Build.xml
not found.

Also one more thing xuggler has specified that we need to build xuggle
by ourself for linux version other than Ubuntu Jaunty... Is it realy
so?

-nakul

On Mar 27, 10:45 pm, "Dilip Shah" <dilipvs...@hotmail.com> wrote:
> Hi Nakul,
>
> I tried to install Xuggler on CentOS but it was throwing exceptions (don't
> have the specifics right now) and after email exchanges with Art Clarke,
> ended up building it on CentOS server. I've successfully installed it on
> CentOS, deployed in Tomcat 5.5 and it has been working fine for the last 6+
> months.
>
> Let me know if I can answer any specific build related questions.
>
> Dilip
>
> --------------------------------------------------
> From: "Nakul" <nakulkada...@gmail.com>

Art Clarke

unread,
Mar 27, 2011, 2:27:38 PM3/27/11
to xuggle...@googlegroups.com
Hi Nakul,

I build and run Xuggle on Linux 10 all the time.  I haven't tested the installed in over a year because we don't use it -- we build from scratch.

As for the tomcat issues, here's the FAQ:
http://wiki.xuggle.com/Frequently_Asked_Questions

- Art
--
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and video.

Use Xuggle to get the power of FFmpeg in Java.

Nakul

unread,
Mar 27, 2011, 2:47:43 PM3/27/11
to xuggler-users
Hi Art,

Thank u for ur reply.

As u said that u always build and run xuggle on Linux 10. So do you
build it by urself as given on http://www.xuggle.com/xuggler/downloads/build.jsp
???
Could you pls suggest me which version of following should i use.
Version :
Linux, Java, Xuggle and some thing more if reqd.....

For tomcat i already went through the FAQ. But first i want to set up
xuggle then i wll go for tomcat.

- nakul
> --http://www.xuggle.com/

Art Clarke

unread,
Mar 27, 2011, 2:53:39 PM3/27/11
to xuggle...@googlegroups.com
I follow the documentation as written.

Nakul

unread,
Mar 27, 2011, 3:00:14 PM3/27/11
to xuggler-users
Hi Art,

Could u please elaborate which documentation u followed?
Please try to understand my problem, i am not sure about which linux
and java should i use and what steps should i follow?
Please suggest me that.

Thanks,
-nakul

Dilip Shah

unread,
Mar 28, 2011, 10:24:56 AM3/28/11
to xuggle...@googlegroups.com
Hi Nakul,
 
Here are my Xuggler installation notes that may help you:

 

Install on Linux:

Note: Due to compatibility issues, Xuggler had to be build from source on the Linux server

List of prerequisites and installation steps are given on xuggler’s website:

http://www.xuggle.com/xuggler/downloads/build.jsp

 

You can use the following command to list packages installed on the server:

rpm -qa --queryformat "%{GROUP} %{NAME}-%{VERSION}\n" | sort

 

·         Install Apache Ant

·         Perl came pre-installed on the dedicated server

·         GCC / G++ came preinstalled on the dedicated server

·         gmake 3.81 came preinstalled on the dedicated server

·         Install yasm

·         Install Subversion

 

Notes:

·         Make sure ANT_HOME is defined

 

Steps followed when installed last (Apr 2010):

1.     Get the source code in a convenient folder, for example /home/dilipvshah

In one line, execute the following command:

svn checkout http://xuggle.googlecode.com/svn/trunk/java/xuggle-xuggler xuggle-xuggler

This will create folder xuggle-xuggler and get all the code in that folder

2.     Set the necessary environment variables as follows:

export XUGGLE_HOME=/usr/local/xuggler

export PATH=$XUGGLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=$XUGGLE_HOME/lib:$LD_LIBRARY_PATH

Add them in /root/.bash_profile file as well for permanent setting

3.     Before starting the installation, make sure there is no other version of FFMpeg installed in the path before the XUGGLE_HOME/lib versions (this came from Art Clarke of Xuggle)

4.     Switch to folder xuggle-xuggler and run the following command:

ant run-tests

Check that all tests ran 100% successfully. If they did, then execute:

sudo ant install

This will install Xuggler in /usr/local/xuggler directory

 

Install on Tomcat

Once Xuggler has been installed on the server, follow these steps to install it on Tomcat on that server:

1.     Place the xuggle-xuggler.jar JNI files in $CATALINA_HOME/shared/lib

These are OS specific files. Basically, copy content of

XUGGLE_HOME/lib

to

CATALINA_HOME/shared/lib

2.  Copy the Xuggler jar file in CATALINA_HOME/common/lib

Copy the content of

XUGGLE_HOME/share/java/jars

to

CATALINA_HOME/common/lib

 

Add Xuggler environment variables in Tomcat’s startup file.

Add the following to startup.sh:

echo "setting Xuggler env variables..."

export XUGGLE_HOME=/usr/local/xuggler

echo "XUGGLE_HOME=$XUGGLE_HOME"

export LD_LIBRARY_PATH=$XUGGLE_HOME/lib:$LD_LIBRARY_PATH

echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"

export PATH=$XUGGLE_HOME/bin:$PATH

echo "PATH=$PATH"

 

This completes Xuggler installation in Tomcat (5.5, in my case).

 

Hope this helps.

 

Dilip

 

Nakul

unread,
Mar 28, 2011, 1:29:13 PM3/28/11
to xuggler-users
Hi Dilip,



Thank you so much once again for such a detailed notes.

Before i go for these steps i want to clear some more points.



* You have not mentioned about installing java. Do we need to
install it ?, if yes which version ?

* What about ANT_HOME = ????

* Any Linux can b used?

* The command: sudo apt-get install Subversion is not
working....instead i tried it by command : sudo apt-get install
subversion ( small 's' ) ... is it same or diff.?



These questions might b silly but i don't want to take any risk.



Thanks.



-nakul


On Mar 28, 10:24 am, "Dilip Shah" <dilipvs...@hotmail.com> wrote:
> Hi Nakul,
>
> On Sun, Mar 27, 2011 at 11:14 AM, Nakul <nakulkada...@gmail.com> wrote:
>
>   Hi Dilip,
>
>   Thanks for ur reply. I read discuusions of u and Art Clarke.
>   I want to get it know that which versions of following u have used:
>
>   Tomcat, Xuggler, Java,Ant,Perl,Gcc,Gmake Yasm...etc
>
>   Have you Build xuggler by urself for ur linux?
>   I can use any linux. The only thing is that it should get run
>   successfully.
>
>   Currently i am trying it on Ubuntu 10.04 (also tried it on version 8
>   and 9). But i am not able to install xuggler on it.
>   I am using xuggle-xuggler-i386-linux.sh file.
>   and i m following instruction fromhttp://xuggle.wordpress.com/2009/01/23/how-to-install-xuggler-on-linux/
> --http://www.xuggle.com/

Dilip Shah

unread,
Mar 28, 2011, 2:21:59 PM3/28/11
to xuggler-users
Hi Nakul,

Yes, you need to have Java installed on the machine. I have jdk1.6.0_23 on
the server on which I installed Xuggler.

For Ant (1.8.1), here are my installation notes:
1. Download ant’s .tar.gz file
2. Copy the tar.gz file to parent folder of the folder in which you wish to
install ant. For example in, /usr/local folder
3. sudo as root user (command: su -)
4. Switch to the folder in which the tar.gz file is copied
5. Issue the command:
tar -xzvf apache-ant-1.8.1-bin.tar.gz
Ant will be installed in folder /usr/local/apache-ant-1.8.1

Before using Ant, make sure that the following environment variables are
set:
export ANT_HOME=/usr/local/apache-ant-1.8.1
export JAVA_HOME=/usr/local/jdk1.6.0_23
export PATH=${PATH}:${ANT_HOME}/bin

I haven't built Xuggler on any Linux other than CentOS.

My notes on installing Subversion on Linux:
1. Get Subversion’s RPM file, such as
CollabNetSubversion-client-1.6.9-1.i386.rpm from the web -
http://subversion.apache.org/packages.html
2. Extract the files from the RPM by executing the following command from
the directory that has the RPM file
rpm –ivh CollabNetSubversion-client-1.6.9-1.i386.rpm
* In general, where rpm installs the file is a mystery but Subversion gets
installed in /opt directory
3. Add the following in ./root/bash_profile file
export SVN_HOME=/opt/CollabNet_Subversion
export PATH=$SVN_HOME/bin:$PATH

Good luck!

Dilip

--------------------------------------------------
From: "Nakul" <nakulk...@gmail.com>
Sent: Monday, March 28, 2011 10:29 AM
To: "xuggler-users" <xuggle...@googlegroups.com>
Subject: [xuggler-users] Re: Xuggler on Linux

Dilip Shah

unread,
Mar 28, 2011, 2:25:54 PM3/28/11
to xuggler-users
Nakul,

Just in case you need Yasm installation steps...

Install Yasm on Linux:
1. Download Yasm’s tar.gz file
http://www.tortall.net/projects/yasm/wiki/Download


2. Copy the tar.gz file to parent folder of the folder in which you wish to

install Yasm. For example in usr/local folder
3. Issue the command:
tar -xzvf yasm-1.0.0.tar.gz
4. Yasm will get untarred in folder /usr/local/yasm-1.0.0
5. To configure yasm , go to the installation folder and give the following
command:
./configure
6. Type make to build the nasm and ndisasm binaries
7. Type make install to install them in /usr/local/bin and install the man
pages nasm.1 and ndisasm.1 in /usr/local/man/man1

Reference:
http://www.nasm.us/doc/nasmdoc1.html#section-1.3

Dilip


--------------------------------------------------
From: "Dilip Shah" <dilip...@hotmail.com>
Sent: Monday, March 28, 2011 11:21 AM
To: "xuggler-users" <xuggle...@googlegroups.com>

Nakul

unread,
Mar 30, 2011, 2:06:37 AM3/30/11
to xuggler-users
Hi Dilip,

I followed ur steps....but still it doesm't working. There are some
points that i want to discuss with u.

1. I installed Jdk1.6 update 24.
i installed Ant. After that i installed subversion, but i didnot find
any rpm for my Ubuntu. At the link provided by u there are two options
one is .deb file and another is command : sudo apt-get install
subversion
i went for command.

Problem with this-- the env variables
export SVN_HOME=/opt/CollabNet_Subversion
export PATH=$SVN_HOME/bin:$PATH

i am not able to set these bcoz i m able to location where it get
installed. How would i solve this.? One more thing u hav mentioned
that set these env var in ./root/bash_profile but this file is empty
in my ubuntu .... Is it fine if i go for ~/.basrc file ?

Next i installed Yasm . I followed upto 6 th step. Then at 7th step i
fire command : sudo make install. In this point u mentioned to
install the man pages nasm.1 and ndisasm.1 in /usr/local/man/man1

i dont know how to install man pages for these two. Now i have only
man page for yasm at that location.



Now finally i started installing Xuggler. At this point i downloaded
source code for xuggler as .tar.gz file. untar it. Then i set the env
var.

Question- dont we need to configure this xuggler source code using ./
configure command?

Next i followed further steps... When i fired command sudo ant run-
tests it shows me following error :
command not found -ant

then i installed ant again by switching to xuggle folder sing command:
sudo apt-get install ant

Then i fired command : sudo ant-run-tests
Now the error changed as follows:

harshu@ubuntu:~/xuggle-xuggler$ sudo ant run-tests
Buildfile: build.xml

windows-init:

mac-init:

unix-init:

os-init:

java6.check:
[echo] Java: java.home is /usr/lib/java6u24/jre and the target
version is 1.6
[echo] Ant: ant.home is /usr/share/ant and the target version is
Apache Ant version 1.7.1 compiled on September 8 2010

ivy-init:
[echo] Initing ivy from /home/harshu/xuggle-xuggler/mk/buildtools/
lib/ivy-2.0.0.jar
[echo] Ivy task loaded
[echo] Ivy settings file set

revision:
[delete] Deleting: /home/harshu/xuggle-xuggler/build/OS.properties
[echo] Building for OS: i686-pc-linux-gnu
[echo] Building Library Version: 3.4.1012

init:
[echo] Installing to /usr/local (a.k.a. /usr/local)

uptodate-native:
[echo] /home/harshu/xuggle-xuggler/configure exists=true
[echo] /home/harshu/xuggle-xuggler/build/native/i686-pc-linux-gnu/
Makefile exists=${native.makefile.exists}

configure-native:
[exec] Result: 2
[echo] executing: ../../../configure --prefix=/usr/local
[exec] checking for a BSD-compatible install... /usr/bin/install -
c
[exec] checking whether build environment is sane... yes
[exec] checking for a thread-safe mkdir -p... /bin/mkdir -p
[exec] checking for gawk... gawk
[exec] checking whether make sets $(MAKE)... yes
[exec] configure: error: source directory already configured; run
"make distclean" there first

BUILD FAILED
/home/harshu/xuggle-xuggler/mk/buildtools/buildhelper.xml:1122: exec
returned: 1

Total time: 2 seconds


This is what all i did. Please help me out. and let me know if
something is still not clear.

Thank u.

nakul



On Mar 28, 2:25 pm, "Dilip Shah" <dilipvs...@hotmail.com> wrote:
> Nakul,
>
> Just in case you need Yasm installation steps...
>
> Install Yasm on Linux:
> 1. Download Yasm’s tar.gz filehttp://www.tortall.net/projects/yasm/wiki/Download
> 2. Copy the tar.gz file to parent folder of the folder in which you wish to
> install Yasm. For example in usr/local folder
> 3. Issue the command:
> tar -xzvf yasm-1.0.0.tar.gz
> 4. Yasm will get untarred in folder /usr/local/yasm-1.0.0
> 5. To configure yasm , go to the installation folder and give the following
> command:
> ./configure
> 6. Type make to build the nasm and ndisasm binaries
> 7. Type make install to install them in /usr/local/bin and install the man
> pages nasm.1 and ndisasm.1 in /usr/local/man/man1
>
> Reference:http://www.nasm.us/doc/nasmdoc1.html#section-1.3
>
> Dilip
>
> --------------------------------------------------
> From: "Dilip Shah" <dilipvs...@hotmail.com>
> > From: "Nakul" <nakulkada...@gmail.com>
> ...
>
> read more »

Nakul

unread,
Mar 30, 2011, 2:18:32 AM3/30/11
to xuggler-users
Hi Diilp,

My prev mail states what i did at yesterday. After that i again did
all the steps. I formatted my machine. This time i did not installed
java bcoz when i am installing ant using command : sudo apt-get
install ant , then it installs packages for openjdk. Then system
containd multiple java.

All the other steps are as stated in prev mail.

Now this time when i fire command : sudo ant run-tests it build source
code of xuggler successfully.
Then i fired command : sudo ant install
It takes some time and completes with success.

But there is test command given on xuggler installation link :
http://xuggle.wordpress.com/2009/01/23/how-to-install-xuggler-on-linux/
I tried with that but it gives me error : "UnsatisfiedLinkError"

Do you know some solution for this.

Thank u.

-nakul





On Mar 28, 2:25 pm, "Dilip Shah" <dilipvs...@hotmail.com> wrote:
> Nakul,
>
> Just in case you need Yasm installation steps...
>
> Install Yasm on Linux:
> 1. Download Yasm’s tar.gz filehttp://www.tortall.net/projects/yasm/wiki/Download
> 2. Copy the tar.gz file to parent folder of the folder in which you wish to
> install Yasm. For example in usr/local folder
> 3. Issue the command:
> tar -xzvf yasm-1.0.0.tar.gz
> 4. Yasm will get untarred in folder /usr/local/yasm-1.0.0
> 5. To configure yasm , go to the installation folder and give the following
> command:
> ./configure
> 6. Type make to build the nasm and ndisasm binaries
> 7. Type make install to install them in /usr/local/bin and install the man
> pages nasm.1 and ndisasm.1 in /usr/local/man/man1
>
> Reference:http://www.nasm.us/doc/nasmdoc1.html#section-1.3
>
> Dilip
>
> --------------------------------------------------
> From: "Dilip Shah" <dilipvs...@hotmail.com>
> > From: "Nakul" <nakulkada...@gmail.com>
> ...
>
> read more »

Dilip Shah

unread,
Mar 30, 2011, 10:18:50 AM3/30/11
to xuggler-users
Hi Nakul,

I don't recall encountering this error but Xuggler faq has some explanation
on it: http://wiki.xuggle.com/Frequently_Asked_Questions

Dilip

--------------------------------------------------
From: "Nakul" <nakulk...@gmail.com>
Sent: Tuesday, March 29, 2011 11:18 PM


To: "xuggler-users" <xuggle...@googlegroups.com>
Subject: [xuggler-users] Re: Xuggler on Linux

> Hi Diilp,


>
> My prev mail states what i did at yesterday. After that i again did
> all the steps. I formatted my machine. This time i did not installed
> java bcoz when i am installing ant using command : sudo apt-get
> install ant , then it installs packages for openjdk. Then system
> containd multiple java.
>
> All the other steps are as stated in prev mail.
>
> Now this time when i fire command : sudo ant run-tests it build source
> code of xuggler successfully.
> Then i fired command : sudo ant install
> It takes some time and completes with success.
>
> But there is test command given on xuggler installation link :
> http://xuggle.wordpress.com/2009/01/23/how-to-install-xuggler-on-linux/
> I tried with that but it gives me error : "UnsatisfiedLinkError"
>
> Do you know some solution for this.
>
> Thank u.
>
> -nakul
>
>
>
>
>
> On Mar 28, 2:25 pm, "Dilip Shah" <dilipvs...@hotmail.com> wrote:
>> Nakul,
>>
>> Just in case you need Yasm installation steps...
>>
>> Install Yasm on Linux:

>> 1. Download Yasm�s tar.gz

>> > 1. Download ant�s .tar.gz file


>> > 2. Copy the tar.gz file to parent folder of the folder in which you
>> > wish
>> > to install ant. For example in, /usr/local folder
>> > 3. sudo as root user (command: su -)
>> > 4. Switch to the folder in which the tar.gz file is copied
>> > 5. Issue the command:
>> > tar -xzvf apache-ant-1.8.1-bin.tar.gz
>> > Ant will be installed in folder /usr/local/apache-ant-1.8.1
>>
>> > Before using Ant, make sure that the following environment variables
>> > are
>> > set:
>> > export ANT_HOME=/usr/local/apache-ant-1.8.1
>> > export JAVA_HOME=/usr/local/jdk1.6.0_23
>> > export PATH=${PATH}:${ANT_HOME}/bin
>>
>> > I haven't built Xuggler on any Linux other than CentOS.
>>
>> > My notes on installing Subversion on Linux:

>> > 1. Get Subversion�s RPM file, such as


>> > CollabNetSubversion-client-1.6.9-1.i386.rpm from the web -
>> >http://subversion.apache.org/packages.html
>> > 2. Extract the files from the RPM by executing the following command
>> > from
>> > the directory that has the RPM file

>> > rpm �ivh CollabNetSubversion-client-1.6.9-1.i386.rpm

>> >>> List of prerequisites and installation steps are given on xuggler�s


>> >>> website:
>>
>> >>>http://www.xuggle.com/xuggler/downloads/build.jsp
>>
>> >>> You can use the following command to list packages installed on the
>> >>> server:
>>
>> >>> rpm -qa --queryformat "%{GROUP} %{NAME}-%{VERSION}\n" | sort
>>

>> >>> � Install Apache Ant
>>
>> >>> � Perl came pre-installed on the dedicated server
>>
>> >>> � GCC / G++ came preinstalled on the dedicated server
>>
>> >>> � gmake 3.81 came preinstalled on the dedicated server
>>
>> >>> � Install yasm
>>
>> >>> � Install Subversion
>>
>> >>> Notes:
>>
>> >>> � Make sure ANT_HOME is defined

>> >>> Add Xuggler environment variables in Tomcat�s startup file.

>> read more �

Reply all
Reply to author
Forward
0 new messages