This post was updated on .
CONTENTS DELETED
The author has deleted this message.
|
On Sun, 2010-12-26 at 10:10 -0800, Anirudh wrote:
> I am a newbie in the field of Gstreamer and I have just started reading the > official manual for application developers and its damn! interesting. > > I encountered that gst_init() function is used to initialize the Gstreamer. > (fine) > but I do not know what kind of parameters can be passed to it. > > They have given an example where they use it like : gst_init(&argc,&argv) > but its not given what are the values/can be the possible values of argc and > argv. (that I should pass) The options from 'gst-inspect-0.10 --help-gst' basically, ie.: GStreamer Options --gst-version Print the GStreamer version --gst-fatal-warnings Make all warnings fatal --gst-debug-help Print available debug categories and exit --gst-debug-level=LEVEL Default debug level from 1 (only error) to 5 (anything) or 0 for no output --gst-debug=LIST Comma-separated list of category_name:level pairs to set specific levels for the individual categories. Example: GST_AUTOPLUG:5,GST_ELEMENT_*:3 --gst-debug-no-color Disable colored debugging output --gst-debug-disable Disable debugging --gst-plugin-spew Enable verbose plugin loading diagnostics --gst-plugin-path=PATHS Colon-separated paths containing plugins --gst-plugin-load=PLUGINS Comma-separated list of plugins to preload in addition to the list stored in environment variable GST_PLUGIN_PATH --gst-disable-segtrap Disable trapping of segmentation faults during plugin loading --gst-disable-registry-update Disable updating the registry --gst-disable-registry-fork Disable spawning a helper process while scanning the registry However, the idea is basically that you just pass in the command line arguments a passed by the user. If you want to enable/disable any of these things from your program, you should just use the corresponding GStreamer API to enable/disable it (where available). Cheers -Tim ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
|
On Sun, 2010-12-26 at 10:37 -0800, Anirudh wrote:
> but I wanted to know what should I pass...Gstreamer manual says that u > can pass NULL as a parameter as well. So what are consequences of > passing NULL. gst_init(NULL,NULL); What do you think the consequences of that are? Simply that you can't set extra options via command line arguments. > Suppose I don't want to pass the parameters from command line then it would > be something like > gst_init(param1,param2); > > then what should be param1 and param2...can anyone give an example for > clarifying this doubt. > > something like ./a.out xyz pqr > yeah! some value...but what should be the XYZ or PQR & what will be its > consequences after gst_init(&argc,&argv) uses them to initialize Gstreamer There's nothing particularly GStreamer-specific here, it's just an extension of how main() works in C, or how gtk_init() works. The reason the addresses of argv/argc are passed is so that arguments that have been handled by GStreamer can be removed. It's quite easy to play around with this a bit in code to see how it works. Cheers -Tim ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
I would suggest looking at the application developers guide on the gstreamer website. It covers all of this with code examples.
You don't have to be concerned with overlapping arguments since all of the gstreamer library args begin with '--gst-' and I don't believe they have a short form. Best, Tim Sent from my iPhone On Dec 26, 2010, at 2:02 PM, Tim-Philipp Müller <[hidden email]> wrote: > On Sun, 2010-12-26 at 10:37 -0800, Anirudh wrote: > >> but I wanted to know what should I pass...Gstreamer manual says that u >> can pass NULL as a parameter as well. So what are consequences of >> passing NULL. gst_init(NULL,NULL); > > What do you think the consequences of that are? > > Simply that you can't set extra options via command line arguments. > > >> Suppose I don't want to pass the parameters from command line then it would >> be something like >> gst_init(param1,param2); >> >> then what should be param1 and param2...can anyone give an example for >> clarifying this doubt. >> >> something like ./a.out xyz pqr >> yeah! some value...but what should be the XYZ or PQR & what will be its >> consequences after gst_init(&argc,&argv) uses them to initialize Gstreamer > > There's nothing particularly GStreamer-specific here, it's just an > extension of how main() works in C, or how gtk_init() works. The reason > the addresses of argv/argc are passed is so that arguments that have > been handled by GStreamer can be removed. > > It's quite easy to play around with this a bit in code to see how it > works. > > Cheers > -Tim > > > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |