We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › Theora Videos encoding ("theoravideo" li
Page Index Toggle Pages: 1
Theora Videos encoding ("theoravideo" li (Read 1532 times)
Theora Videos encoding ("theoravideo" li
Mar 1st, 2008, 1:35pm
 
Hello,

I started a new project this week and I have almost
finished the first part:

a java class called TheoraMovieMaker which can encode
frames of a sketch animation in theora video format.

There are some more things to do now;
- write a portable script for compiling the project
- write the TheoraMovie class, to include theora videos in the sketch.
- make a build for Windows and Macosx (currently, the only
 available build is for Linux.
- and perhaps improve output video quality with filters

Project home page: http://poux.be/projects/

Thank you for testing it if you want to. And there are any question, you can email to manuel.dahmen@gmail.com (I can set up a forum if there is need to).

Bye Smiley
Re: Theora Videos encoding ("theoravideo"
Reply #1 - Mar 2nd, 2008, 11:15pm
 
Looks promising, however I got this error when I tried to run the videoReadTest sketch:

home/andres/Processing/processing-0135/libraries/theoravideo/library/jnilibtheor
a.so
SETUP DECODING
START DECODING
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xb7e45a15, pid=8681, tid=2977426320
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing)
# Problematic frame:
# C  [libc.so.6+0x3ba15]  _IO_vfprintf+0x35
#
# An error report file with more information is saved as hs_err_pid8681.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Re: Theora Videos encoding ("theoravideo"
Reply #2 - Mar 3rd, 2008, 2:44am
 
Tomorrow I'll make an zip file with more debugging info (fprintf!). So I hope we can track the bug.
Re: Theora Videos encoding ("theoravideo"
Reply #3 - Mar 3rd, 2008, 10:55pm
 
I have done 2 updates to the library.
The first one for show debugging informations (theroravideo-0.03.zip)
Another for problem with path to videos. now if you give a filename (without path) to the constructor of TheoraMovie or TheoraMovieMaker class, the library will assume the file is in the data subfolder of the skecth folder. (maybe I'm wrong with my code, I should find the file with a method in the PApplet class); theoravideo-0.04.zip.
Re: Theora Videos encoding ("theoravideo"
Reply #4 - Mar 3rd, 2008, 11:14pm
 
> now if you give a filename (without path) to the constructor
> of TheoraMovie or TheoraMovieMaker class,  the library will
> assume the file is in the data subfolder of the skecth
> folder.

That's the default behaviour of the built-in Movie and MovieMaker classes, isn't it?

Check these functions:

parent.savePath(filename)
parent.dataPath(filename)

for saving and loading files.

Page Index Toggle Pages: 1