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 :)
Няма коментари:
Публикуване на коментар