Author: Martin Ahnelöv Date: To: FreeJ mailinglist Subject: Re: [FreeJ] can't save to file
mån 2008-03-24 klockan 01:28 +0100 skrev Jeroen Tuyn: > Hi list,
>
> i have been using 0.9.1 for a while now, and we get along now,
> after i know how to get used to commandline vjing and javascripting
> simple tasks.
> but one thing i can't figure out is how to save to file.
> So i tried to edit the orginal copy of "stream.js" , and changed the
> directory
> it would save to, but while vjing there was no sign of any file.
> I tried adjusting the directories many times, but no succes there,
> do i simple got the wrong code, maybe i just misunderstood, or did i
> overlook some rights?
>
> , Jeroen Tuyn
>
> > /// simple example script for streaming
> > /// do any action above here and then include the code below to stream
> > // don't forget to edit it with your streaming authentication
> >
> > // create a video encoder object
> > // values 1-100 video quality video bitrate audio
> > quality audio_bitrate
> > encoder = new VideoEncoder(10, 64000,
> > 0, 24000);
> >
> > encoder.stream_host("giss.tv");
> > encoder.stream_port(8000);
> > encoder.stream_title("testing new freej");
> > encoder.stream_username("source");
> > encoder.stream_password("hackme");
> > encoder.stream_mountpoint("example.ogg");
> >
> > register_encoder(encoder);
> > encoder.start_stream();
> > //encoder.start_filesave('/home/toulcit/Videos/prologue.ogg');
>
Hi!
I use this script to start recording to file:
// create a video encoder object
// values 1-100 video quality video bitrate audio quality
audio_bitrate
encoder = new VideoEncoder(10, 64000, 5,
24000);
register_encoder(encoder);
encoder.start_filesave("prova.ogg");
And this file to stop recording:
encoder.stop_stream()
encoder.stop_filesave()
It'll create a file named "prova.ogg" in the directory you started freej
from.