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. 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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 > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |