Archive for the ‘Ubuntu’ Category

Cinelerra with external ffmpeg

Saturday, March 7th, 2009

This post is the continuation to my previous post here. Today we will compile Cinelerra to use external ffmpeg support. If you haven’t read previous post I strongly recommend you to do so now. This post picks up where I have left there.

1. Prerequisites

To compile Cinelerra we need to install:

$ sudo apt-get install automake1.9 autoconf g++ x11proto-xf86vidmode-dev libxxf86vm-dev

installing dependencies:

$ sudo apt-get install libasound2-dev libiec61883-dev libsndfile1-dev liba52-0.7.4-dev libfftw3-dev uuid-dev libdv4-dev libopenexr-dev libmjpegtools-dev

2. Getting Cinelerra sources

$ cd ~/video
$ git clone git://git.cinelerra.org/j6t/cinelerra.git cinelerra
$ cd cinelerra

3. Compiling

Before we can start compiling we have to make few modifications to the system files. Without modifications Cinelerra configuration and compilation scripts want be able to find
needed libraries. I bet there is other way to make it work but I have found this way to be the only way to do that with the newest Cinelerra and ffmpeg code. If you happen to know the proper
way to do that using FFMPEG_TEMP_CFLAGS, FFMPEG_TEMP_LIBS, FFMPEG_CFLAGS, FFMPEG_LIBS or any other flags please post a comment.

$ cd /usr/local/lib/pkgconfig

Copy following files to save place:

$ cp libavcodec.pc  libavdevice.pc  libavfilter.pc  libavformat.pc  libavutil.pc  libpostproc.pc  libswscale.pc ~/video

Now we have to edit those files. In each of this files edit the line starting with includedir=${prefix}/include and add the library name after backslash. For libavcodec.pl file your line should look like
includedir=${prefix}/include/libavcodec for libswscale.pc: includedir=${prefix}/include/libswscale. We are of course editing files in /usr/local/lib/pkgconfig.

now we are ready to configure and compile Cinelerra

$ ./autogen.sh
$ ./configure --prefix=/usr/local --enable-opengl --with-external-ffmpeg
$ make
$ sudo make install
$ sudo ldconfig

4. Clean up

Copy saved pkgconfig files back where they ware:

$ cd ~/video
$ sudo cp lib*.pc /usr/local/lib/pkgconfig/

Thats all! You can now test your new Cinelerra.

Repairing apachetop in Intrepid Ibex (8.10)

Tuesday, December 16th, 2008

It’s a shame that one of my favorite tools is broken in Ubuntu 8.10. It crashes right after you rune it with segmentation fault.  There is a patch in launchpad Bug #294599 but it did not work for me. I was getting some crypted error message. Finally after 10 minutes of googleing and trying i got the solution.

Here are the steps to build your own package:

  1. sudo apt-get install build-essential fakeroot devscripts
  2. mkdir apachetop && cdapachetop
  3. wget http://launchpadlibrarian.net/19754557/apachetop.debdiff
  4. apt-get source apachetop
  5. cd apachetop-0.12.6 && patch -p1 < ../apachetop.debdiff

Now before you do anything we have to make one small change to the code by hand:

$ vim src/apachetop.cc

go to line 967 (in vim write 967G) and replace line

char realfile[MAXPATHLEN];

with:

char realfile[PATH_MAX];

now go to the apachetop-0.12.6 directory and do:

$ debuild -uc -us

after compiling is successfully you can install your new package with:

$ sudo dpkg -i ../apachetop_0.12.6-8ubuntu1_i386.deb

Hope it will help someone.

PS: Installation steps based on https://wiki.ubuntu.com/UbuntuPackagingGuide/BuildFromDebdiff?highlight=(debdiff)

XDebug and Target Management for Eclipse

Saturday, June 21st, 2008

Welcome to another exciting episode. This time you will learn:

  • how to send your files to remote development server from within Eclipse using Target Management and secure FTP (sftp).
  • make files sent via sftp belong to certain user group and have write permissions for this group (umask).
  • configure and use XDebug with Eclipse PDT.

You can find the link to the tutorials about XDdebug I have mentioned on the show in show notes for Episode #7.

Timeline:

00:58 Install Target Management Plugin
02:48 Connecting to development server using Target Management Plugin
03:45 Adjust development server folder permission
07:30 Changing umask for files created using sftp
12:25 Exporting files to development server
15:25 Re-send files to server after changes
16:30 Using XDebug with Eclipse PDT debugging perspective
16:50 Eclipse PDT debugging perspective
17:07 Configuring Eclipse PDT for XDebug
19:10 Start debugging
20:50 Setting conditional breakpoints
21:50 Watch expressions
24:20 Using XDebug functions in your code

Best viewed in full screen with scaling off !!!


Episode #8. Using XDebug and Target Management with Eclipse by ralphz from ralphz on Vimeo.