Getting a list of registered file extents?
Stirling Westrup
swestrup at gmail.com
Fri May 2 08:27:59 PDT 2014
On Fri, May 2, 2014 at 3:36 AM, Sebastian Dröge
<sebastian at centricular.com>wrote:
> On Do, 2014-05-01 at 11:40 -0400, Stirling Westrup wrote:
> > Never mind, just after asking this, I remembered how to get the list. For
> > those interested, here's a command line to pull the list out of the
> > gst-inspect data:
> >
> > $ gst-inspect-1.0 | grep "^typefindfunctions: \(audio\|video\|image\)" |
> > grep -v "no extensions" | cut -d' ' -f3- | tr -d ' ' | xargs -d, -L 1
> echo
> > | sort | uniq | xargs echo
>
> You can obviously also get this via GStreamer API. But it will only
> include the known file extensions, not all of these are necessarily
> supported... and more formats than those file extensions could be
> supported.
>
> I realize that, but my manager doesn't want to present users with a media
selection box that shows *.*, as he would prefer us not to show files like
.pdfs which we know we can't display. So, for now, this will have to do.
--
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140502/45332433/attachment.html>
More information about the gstreamer-devel
mailing list