Media discoverer interface
void |
|
FluDiscoverer * |
|
FluDiscoverer * |
|
void |
|
gboolean |
void flu_discoverer_info_free (FluDiscovererInfo *info);
Free a FluDiscovererInfo instance.
Since: 1.0
FluDiscoverer * flu_discoverer_new (void);
Since: 1.0
The newly created discoverer
FluDiscoverer * flu_discoverer_ref (FluDiscoverer *thiz);
Add a reference to a FluDiscoverer
Since: 1.1
The discoverer to be referenced
The same object, for programming convenience.
[transfer full]
void flu_discoverer_unref (FluDiscoverer *thiz);
Remove a reference from a FluDiscoverer
Since: 1.1
The discoverer to unreference
gboolean flu_discoverer_info_get (FluDiscoverer *thiz, const gchar *media_uri, FluDiscovererInfo **info, FluStreamVideoFrameFormat default_cover_format, GError **error);
Extract information from a media.
Since: 1.1
The FluDiscoverer instance
URI of the media to analyze
Pass the address of a pointer to a FluDiscovererInfo structure. On success, this pointer will be filled back with the address of a new FluDiscovererInfo instance containing all information about the analyzed media. On failure, the pointer will be filled back with NULL. If the returned value points to a valid FluDiscovererInfo instance, you will need to free it up using the flu_discoverer_info_free() function.
Specify the default format for covers information. In case that analyzed media doesn't contain any embedded cover information but contains at least one video stream, a thumbnail will be extracted from this stream in the specified default format and used as cover information.
Pass the address of a GError pointer to store back detailed information about any error that may occur while analyzing the media. You can pass NULL to ignore detailed error reporting. If the returned value points to a valid GError instance, you will need to free it up using g_error_free().
TRUE if successful, FALSE otherwise
typedef struct { FluMediaInfo media_info; GList *video_streams_info; GList *audio_streams_info; GList *text_streams_info; GList *data_streams_info; } FluDiscovererInfo;
Comprehensive information about a media and all its streams.
typedef struct { } FluDiscoverer;
An opaque structure representing a media discoverer instance.