неделя, 20 февруари 2011 г.

How to use png2swf and how to export swf with recordmydesktop

Ok, I lost two days with this but I think I'm close to perfection. Or as close as I could get without trashing the computer :)
So you have a presentation which you want to make to an animation. With Open Office you can export to swf, but I wasn't very happy with the quality of the export. Because I have tons of high quality pictures in the presentation. Anyway. What I did is I used "export to html". This creates a bunch of png files. Then you take the pngs and you make them to a swf. How? Easy!
1. Install swftools (http://www.swftools.org/)
2. Then use png2swf. I tested quite many options but for some reason not all of them work that well on my laptop. Anyway, what worked was this.
png2swf -o poster.swf -r 0.4 img0.png img1.png
What it does is to create the file poster.swf which shows 0.4 slides per second. I tried with 1slide per second but it was too quick for my gorgeous slides.
Now you have the swf you of course need to convert it to something youtube likes. The kind of claim they recognize swf files but for some reason it didn't work for mine. But first try, maybe you'll be lucky. If you don't, here comes the funny part. I couldn't find anything to convert the swf to flv in Linux. Maybe it's my fault but anyway. I didn't find anything that can do the same in Windows either. Sure there are many programs, but first my slides are huge and the quality is very important and second I won't buy anything. So after spending almost a day searching for a good free option, I settled for the simplest decision. I recorded my screen! Now that was fun!
3. Install recordmydesktop and/or gtk-recordmydesktop. For some absolutely unknown to me reason the gtk-version gave me better results. But only after experimenting for hour or so with the command version.
4. Set you swf to play in Konqueror (or else but that's what I had) and I did it on Fullscreen with no toolbars.
5. Type xwininfo and point to the window you will record. Don't point it on the taskbar, because that will record only the taskbar :) I did that already. So use alt+tab to point it.
And then:
6. recordmydesktop --windowid 0x460008a --workdir /home/denijane/rec --delay 5[s] -o /home/denijane/rec/test4.ogg --no-sound --fps 24 --width 1100 --height 773 -x 90  --stop-shortcut Control+Shift+S
This huge thing is the command that records only the part of the screen that shows the slideshow. Here's what each of the stuffs do:
--windowid X - X is the ide you get from xwininfo . The first part of it only. From there you can get the dimensions of the window as well which are useful when setting the region to record.
--workdir is where your temp stuff will be recorded.
--delay - this means that the recording will start 5 secs after you execute the command. Very useful if you don't want to record your terminal.
-o gives the full name of the file you're about to record.
--no-sound - I didn't have any sounds on my slides, so I used that to minimize resources and be able to listen to music while recording
--fps 24 - crucial option - it fixes your frames per second. Though when you work with slides they don't change that often but still.
--width and --height are clear. They let you record only the slides and not the whole window.
-x 90 - horizontal offset, this let you move the record window to the right.
--stop-shortcut - this lets you stop the recording without switching the window. Very handy.


So after I came up with all those settings, I had the feeling it didn't work that well. I'm not sure, because I didn't try that in youtube and my ogv player kind of sucked. So what I did is that I used the gtk version.
7. Alt+F2 -> gtk-recordmydesktop
8. Again select the window you want to record. Maxout the audio/video settings. Then hit Advanced. Set the frames per second. You can set a working directory but this is useful only if something crashes (otherwise those files get deleted after the compression). In Misc add in the Extra options: --delay 5[s] -o /home/denijane/rec/test5 --width 1100 --height 773 -x 90  --stop-shortcut Control+Shift+S This will do precisely the same as in terminal, just here it worked better. Or the same. Anyway, my video is in youtube (http://www.youtube.com/watch?v=yQRgQrZZblw) for now. It's not the final cut, but it's the best so far :)
WARNING: DO NOT, I repeat DO NOT hit alt+f2 and type recordmydesktop. Because that will start recording and you'll have to kill it before it eats all of your free space. I say it because I did it :)

понеделник, 7 февруари 2011 г.

White noise generators in Linux

1. cat /dev/urandom > /dev/dsp
2. Boodler (http://boodler.org) Very nice open-source soundscape tool. You can install number of packages with sound samples and then to run them simultaneously or one after another. You should read the lengthy instructions, but once you get it, it's quite simple actually.
3. Baudline - some I haven't yet managed to work for me, but it looks quite promising.
4. Audacity
5. Online generator: http://www.speechprivacysystems.com/white-noise/ .  You can use Waterfall, Wind, Static, Rain and Beach noises and to mix them for free.
(More).

сряда, 2 февруари 2011 г.

How to root Android phone X8

I do it on windows xp sp3 (before I try to do on win7 32b)
1. Install Sony_Ericsson_PC_Companion_2.01.078_Web
2. Install .net framework 2.0
3. Connect phon to PC with activated USB-Debugging (DO NOT MOUNT THE SD-CARD!!!!)
4. Wait a few seconds (to recognized phone by system)
5. Root by SuperOneClickv1.3.0 (from topic ) source