This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Robert Marcano's blog
Get Firefox Use OpenOffice.org hacker emblem

MP4 tags on a PlayStation 3

robert | 27 April, 2008 19:53

The PlayStation 3 uses standard 3GPP tags and does not understand iTunes style tags so every song I imported do not show the correct information, so instead of fixing them on the PS3 (something that does not changes the file, only on the internal database) I wrote a script with the help of AtomicParsley:

#!/bin/sh

addTag() {
        line=`mp4info "$file" | grep "$2"`
        if [ "$?" -eq "0" ]
        then
                command="$command $1 \"`echo $line | sed -e "s/$2: //"`\""
        fi
} 

for file in *.m4a; do
	command="AtomicParsley \"$file\""
	addTag --3gp-title "Metadata Name"
	addTag --3gp-performer "Metadata Artist"
	addTag --3gp-album "Metadata Album"
	addTag --3gp-genre "Metadata Genre"

	exec 3<>"$file"
	read -n 8 <&3
	echo -n 3gp6 >&3
	exec 3>&-

	eval "$command" -W

	exec 3<>"$file"
	read -n 8 <&3
	echo -n mp42 >&3
	exec 3>&-
done

It add a few 3GPP style tags taken from the original iTunes style tags. As AtomicParsley rejects to add that kind of tags on non 3GPP files, the script changes the ftyp field on the file temporaly to 3gp6. The script process all files with the extension m4a on the current directory.

History meme

robert | 10 April, 2008 16:08

Everyone is doing this on Planet GNOME, so I wanted to see the results too:

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
150 cd
135 ll
105 hg
89 vi
39 less
39 find
37 sed
35 rm
35 tail
35 cat

ll = ls -al.

Addicted to Mercurial SCM

robert | 10 April, 2008 01:19

While I was learning how to use Mercurial in order to contribute to the Mozilla platform, I became addicted to it, and with the migration tools now I have access to my repositories with full history on the go, without need of permanent connection to the CVS or SVN server. I can even do offline commits to my local copies.

I had not found a nice GUI for it yet, but being restricted to the command line is not a big reason to not use the powerful offline features. ummmm OpenJDK is stored on Mercurial, and Netbeans 6.1 finall will have support for it.

Folding@home Petaflop Barrier Crossed

robert | 26 September, 2007 14:23

Amazing.... just look at the comparison with the other platforms, I am happy to have contributed at least a small part of it. This achievement is just only an example of how well made is the PlayStation 3 that its owners do not hesitate to left it turned on for continuous days doing CPU intensive calculations, with the fans working at maximum speed to reduce the machine temperature.

Nokia - do you know what is Exif?

robert | 08 August, 2007 11:36

Maybe I will have the luck that someday some Nokia developer visit this remote page, so I will ask them a little favor, please take your time to learn what is Exif. A long time ago I decided to not use more Nokia phones, but still sometimes when I meet with friends they take photos with their phones and sent them to me, I classify all of them by folders and dates so I have a chronological structure on disk. Yesterday I imported all my photos to my Playstation 3 to be able to show them more easily to family and friends and what i found, no Nokia phone I have received photos store complete Exif information, specially the date and time the photo was taken, and the PS3 uses a lot that info. The workaround was to add the metadata using exiv2 to all those photos

 
Valid XHTML 1.0 Strict and CSS.
Copyright 2003-2007 Robert Marcano. All Rights Reserved
Powered by LifeType
Original Design by Book of Styles