[gst-devel] Save a stream to different file every hour

Eric Streit eric at yojik.eu
Wed Jun 17 10:48:14 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

I do it differently: here is the python program which implement the
feature you're looking for.

Eric!
- ----



Viraj Karandikar a écrit :
> Hi Jura,
> I guess to have this functionality you will have to write C code for
> creating a pipeline.
> And after every hour you will have to: pause the pipeline, create new
> filesink, disconnect old filesink, connect new filesink and close old
> filesink.
> You can do above things in another independent thread which will just
> wait till 1 hour is complete.
>  
> Regards,
> Viraj
>  
> 
> Date: Tue, 16 Jun 2009 14:01:44 +0530
> From: Bibin joseph <josebibin1984 at gmail.com
> <mailto:josebibin1984 at gmail.com>>
> Subject: Re: [gst-devel] Save a stream to different file every hour
> To: Discussion of the development of GStreamer
>        <gstreamer-devel at lists.sourceforge.net
> <mailto:gstreamer-devel at lists.sourceforge.net>>
> Message-ID: <4A375870.7040208 at gmail.com <mailto:4A375870.7040208 at gmail.com>>
> Content-Type: text/plain; charset=UTF-8; format=flowed
> 
> Juraj Kubelka wrote:
>> Hi,
>>
>> i am newbie with GStreamer and I would like to save an audio stream
>> from microphone to OGG file and moreover to change filename every hour
>> without loosing data. I found out a pipeline should be composed like:
>> alsasrc ! audioconvert ! vorbisenc ! oggmux ! filesink. What is the
>> procedure for changing output file? How can I do it properly without
>> loosing any data?
>>
>> Thank you for any idea!
>> Jura
>> ------------------------------------------------------------------------
>>
>>
> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
> <mailto:gstreamer-devel at lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
> What you mean by "changing" the output file? You want to change the
> output location where the file is to be stored, or something else?
> 
> Thanks and Regards,
> Bibin
>  
> 
> -- 
> - Viraj
> Reality is merely an illusion, albeit a very persistent one.
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAko4rc4ACgkQkouUNm4lemz9cACfdz47YP7e+foN24Fypp31z0XV
7IcAoOPG33CbfzlgxndAYBHMmR5bLQoY
=jX/v
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rec9.py
Type: text/x-python
Size: 43809 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090617/9f613398/attachment.py>


More information about the gstreamer-devel mailing list