On Wed, Feb 1, 2012 at 09:36, Danny Ayers <[email protected]> wrote: > Hi, > > The Messages log only seems to give limited information, is anything > like a debug log available? - i.e. is there any way to see what's > going on under the hood? > > I'm really enjoying working with LiVES, not least because I was able > to solve a transcoding problem I was seriously stuck on with > command-line tools. > > But...the particular transcoding process takes several minutes to go > through, and repeating the same procedure through LiVES every time I > make a change to my source data is getting a bit tedious. So ideally > I'd like to put together a little shell script to automate, leave > using LiVES for the more interesting bits. But I can't really tell > what's going on. I'm guessing LiVES makes direct calls on the relevant > libs for processing, but as the setup seems to be quite > pluggable/declarative, I'm rather hoping these calls would be logged > somewhere. >
Hi Danny, to answer your first question there are various ways to get debugging information, but usually they mean recompiling the source. What is going on in the sequence you describe below is basically - the frames in the original clip are decoded into a sequence of images, the images are copied/rearranged/resized by resampling and then finally the images are re-encoded using the encoder. This may sound long winded but it is really the only way to guarantee encoding when LiVES has no built-in decoder for the format, and it also makes encoder development far easier. > What I'm doing is sync'ing a LibreOffice presentation with some music > (I did find other tools/methods of doing this, but this is the only > way I found that allowed rapid slide transitions, in time with the > beats). I'm running on Ubuntu 11.10. > The full process is: > > # *** Preprocessing > # export from LibreOffice as HTML (OpenOffice Impress) - this produces > a directory full of screenshot .png files, with a bit of HTML to glue > them together > # resize.sh - a little script I have for resizing the images from > 800x600 to 640x480 > # rm html/*.html - little bit of cleanup > # python rename.py - another little script, the naming of the images > isn't properly in sequence, this fixes it > # glue the images into a video > # mencoder "mf://html/*.png" -ovc x264 -mf fps=1.16666667 -o output.avi > > *** Now - LiVES **** > open output.avi > resample to 25fps > load audio (final.mp3) > Encode & save - multi_encoder, High Quality AVI (XVID/MP3), mp3 > > I assume I should be able to also wrap the bits from mencoder onwards > into a script - but how? > For scripting you need to look at the OSC interface for LiVES http://openmediacontrol.wetpaint.com/page/LiVES+commands basically you would start LiVES with something like: lives -oscstart 49999 (or set this from Preferences). Then your script would call sendOSC - host localhost 49999 with the following commands: /clip/open/file,<string filename><float starttime>,<int nframes> */clip/resample,<float framerate> */clip/open_audio,<string filename> /clip/encode_as,<string filename>,<int width>,<int height> (The commands marked * do not exist yet, but I can add them for the next release). If you need any more guidance dont hesitate to ask. Regards, Gabriel. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Lives-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lives-users
