encoding loops for pdp: a howto for lazy people

bitchvj, pure data No Comments »

In the Pure Data old school PDP lovers there are a bunch of ninja roads to walk before you can feel comfortable. One of them is to find yourself a comfortable “∞ 2 pure-data” system. You can really get in the deepness of the codec world or you can do it the lazy way. The lazy way is also hard, but the deep way is harder…

This system will depend mostly of the platform(s) you use and the tools you need to produce your video. In my case I like to render video trough the quick pdp/pidip combo.

I run debian unstable and also ubuntu on my work machines. Adding to that the debian multimedia repository I can get almost everything I need, except for the liblame to make pdp and pidip work.

Codecs

The first (tainted) hint I give you is: If you are going to mess around with videos from the Internet, when you install your system you have to spend sometime getting all kinds of codecs. Sad but true. Even more sad: some codecs are forbidden in some countries: check before use.

Install all the non-free codecs, (the video player’s ones and the codec libraries also, and all codecs you find). You will never, ever have too many codecs if you want to be able to use all kinds of formats you find over the Net. Think about the codecs and codec libraries as if they were the weapons in your inventory, or the skills your machine can learn.

Many codecs come comfortably as video packages:

root@omelas:/home/tatiana# apt-get install libavcodec libxvidcore w32codecs

Others come along with video applications:

root@omelas:/home/tatiana# apt-get install ffmpeg mplayer vlc totem

Wathever. You just try to install more and more, download them and install them, always. Each time you use a system. Codec libraries for sure use space, but we have big harddrives lately. Maybe there are some you are not going to use, but honestly I prefer to do

root@omelas:/home/tatiana# apt-cache search codec

… and install everything, than to keep a list, as video population varies a lot.

Demuxers

Then, we have to download the mplayer codecs also, as the MEncoder is one of the main tools we are going to use in this tutorial. Mencoder is a commandline application that converts from one video to another: a demuxer.

The other demuxer we are going to use is the Transcode demuxer. Thanks to the developers!

Video files

Now for the batch encoding to go smoothly, and also for the VJ task in general, we need the files to be in folders, and the folder we use to contain JUST videos and nothing else. No other files or folders. Just videos. We can transcode different types of videos but we always are going to choose badly our encoding if we mix videos with different qualities.

The less encoding we apply, less information we are going to loose. Translation: each time we encode, the loop will get worse quality. If we can skip decoding steps we skip them. When in front of a group of videos we can try different encodings taking one video as a test, and checking if it works with pure data.

We will use a small shell script to do the encoding to pure data. The basic script goes like this:

#! /bin/bash
for A in `ls`; do mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mjpeg $A -o $A.avi; done;

This means that the script, when run, will make an ls on the directory and with each one of the files it founds it will do mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mjpeg filename -o filename.avi. That’s why we need to have the videos on folders with no other content.

Depending on the origin of the videos, we may not be able to decode them directly with mencoder, or maybe we need to resize them to our usual size. For this I recommend to have different variations of the script for different needs. In my /usr/local/bin directory, I have currently this variations:

pd_mencoderRESIZE_320-240  pd_transcode24fps.sh       pd_transcodePARACORTAR
pd_mencoder.sh             pd_transcode50fps.sh       pd_transcode.sh
pd_mencoderVOB             pd_transcodeAVI
pd_transcode12fps.sh       pd_transcodeNORESIZE

For more info on mencoder or transcode, have a look at the man pages.

Here you can have all this scripts on a tarball:

video_encoding_for_pd_shell_scripts.tar.gz download

And for testing the resulting codecs, have a look at the I published before.

como cambiar archivos de mp3 a ogg

howto No Comments »

La mayoría de las personas usan el formato mp3 ya que es muy difundido pero no todos saben que es un formato propietario, si alguien quiere usar este formato debe pagar una licencia. En el mundo del software libre tenemos una alternativa muy bueno que es el formato ogg.

Por suerte hay una gran cantidad de reproductores que están de moda que tiene soporte para esta clase de formato libre y en un desarrollo casi constante.

La forma de instalarlo es simple en mi debian con la gran herramienta apt-get, con solo escribir desde la linea de comando:

apt-get install mp32ogg

Solucionamos el problema y la manera de usarlo es simple, nuevamente dentro del directorio donde tenemos nuestros mp3 tipeamos:

mp32ogg archivo.mp3 archivo.ogg

Muy potente y simple no se si vale la aclaración de lo que acabo de hacer pero ahí va, le dije al programa que convirtiera mi archivo.mp3 a archivo.ogg, usando los comodines podemos pasar toda una carpeta con una sola linea:

mp32ogg *.mp3 *.ogg

Y así conservaran sus nombres, espero que empiece a ver mas .ogg por el mundo informático.

Howto encontrado en: Mp3 a ogg, propietario a libre | Nicoman

 
icon for podpress  mp32ogg: Play Now | Play in Popup | Download

in a world without fences, who needs windows and gates?

abbadingo, software No Comments »

aaaagh stop it! why you come here?

Abbadingo last week’s visitors operating systems:

O.S. Visits Percentage
Windows XP 881
33.2%
Windows 98 696
26.2%
Windows Server 2003 242
9.1%
Ubuntu Linux 207
7.8%
Windows NT 4 134
5%
Linux 123
4.6%
Debian Linux 108
4.1%

I remember this friend that was giving capoeira classes in Plaza Francia. He refused to give classes to people that “wanted to try”.

“You don’t need my time to know if you want to do it. If you decide you want to do it, then come back and I will give you classes.”

If you are interested in Linux and free software, go to any distribution, Ubuntu being more simple, and download a liveCD and try it!

And next time you come here, come with an operating system that don’t lies to you and don’t send the IPs you visit to the NSA.

Thank you very much

how to set up a music system with linux on a local network

debian, howto, music No Comments »

This is intented as a howto for configuring a machine to share and play music on the local network. In houses, social centers, bars, we always have the need of a system to organize, play share music.

How can we do that in Debian?

mpd - ncmpc - jinzora is the answer! with this combination you are going to have access to:

  • Web server to administer, improve, order your music collection
  • Console client for the nerd of the house / social centerjinzora - music database
  • A permanent daemon that runs on your machine since you start it until you turn it down.

mpd Music player daemon

ncmpc: mpd console client

jinzora: php/mysql based music library manager

Prepare the machine - Sound

Your machine has to be able to play sound and be connected to a local network (heh…). In my configuration I use ALSA around the system, but you can use also other daemons that go with mpd.

Howto install mpd and the programs and libraries it needs. usually is just apt-get install mpd ncmpc

Prepare the machine - Web server

For installing jinzora, we need a LAMP install.

Don’t forget the gd library, for being able to have the pretty thumbnails of the CDs.

apt-get install php5-gd

Once you’ve done it, install Jinzora.

The process is simple, has a web interface.

You finish with a great music library:

jinzora - music database

I want to be able to edit and improve the tags of my music, so I edited the file services/settings.php on the jinzora dir and added the line

$allow_id3_modify = “true”;

mpdscribble

Download mpdscribble (http://www.frob.nl/scribble-download.html) debian package, and follow the instructions.

Add your last.fm user. ( you can get a username here: https://www.last.fm/join/ )

Razorgirl has seen the light

debian No Comments »

Yes, well, the machine sits here now, is not really noisy for beng sucha beast.

I will call her Razorgirl.

Some pics of her first moments:

partition table empty

Here we can see the partition table all new…

baptism Here the new Debian graphic installer, run with “installgui vga=792″. Just the net installer cd, and you are on the way!

the HID of my power supply (Human Interface Device)…You can spot here an approximation of the power consumption.the HID of my CoolerMaster power supply (Human Interface Device)…