[gst-devel] fuse & gstreamer transcoding

Stefan Kost ensonic at hora-obscura.de
Thu Aug 5 23:27:20 CEST 2010


Am 02.08.2010 16:23, schrieb Leon Bogaert:
> Hi all,
> 
> I'm trying to create a FUSE fs which transcodes all sound files to mp3 (or whatever). My first idea is to use gstreamer as the backend for transcoding.
> I thought about using this pipeline:
> gst-launch -v filesrc location=01\ New\ Born.flac ! decodebin ! audioconvert ! lame vbr=4 vbr-quality=9 ! id3v2mux ! appsink
> 
> The python bindings of fuse calls this function when a file is being read:
> def read(self, length, offset):
> 
> How would I transfer the buffer from gstreamer to the fuse fs? I don't how to handle this. I've never used appsink before. And how to handle the seeking when a user skips a part of the songs for example?
> 
> I hope it's clear what I mean.

Well you would nee to write a bridge to fuse fs. App-sink is the right element.
Fdsink might be an option too (it would save to a file-descriptor which you
could pipe somewhere else.

Stefan

> 
> Thanks in advance!
> 
> Regards,
> Leon
> 
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list