[gst-embedded] [SPAM] file source element

Sergiy Skuratov skuratov at ukr.net
Fri Jan 22 00:34:34 PST 2010


  2010/1/21 Sergiy Skuratov <skuratov at ukr.net>:  
>  
>>> hello!  
>>> if use "gst-launch playbin uri=file:///absolut/path/to/file", playbin use  
>>> filesrc element by default.  
>>> I'm created new file source, e.g. "newfilesrc", and I need that playbin  
>>> use  
>>> it. how can I do it?  
>>  
>> In this particular case, you should explain why you want to replace  
>> filesrc, and add the features you need to filesrc - or (more likely)  
>> we can suggest a better way to accomplish your goals.  
>>  
>> To more directly answer your question, playbin2 (you should be using  
>> this instead of playbin) will select the highest-ranked element that  
>> can handle the uri it's given, so you'd give your new element a higher  
>> rank than filesrc.  
>>  
>> Mike  
>>  
>>  
>> I need read files ciphered other my program, and deciph it. no file sourse  
>> element, which can do it.  
>> really, playbin2 works like I need -- it takes my newfilesrc!  
>> so thank you again  
  
> You should write a decoder element to decode your format then -  
> replacing the source element is a bad design. It means you won't be  
> able to read your format from elsewhere - this is a pretty basic part  
> of designing gstreamer plugins.  
  
> Mike  
  
  
  
I see. but, at this time, I needn't more.  
  
  Sergiy  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20100122/441f3142/attachment.htm>


More information about the Gstreamer-embedded mailing list