Configure Visual Studio 2010 for GStreamer

Kei Naga include.stdio.h.123 at gmail.com
Sun Sep 11 22:10:44 PDT 2011


If you need python26.dll, download from
http://sourceforge.jp/projects/sfnet_ciphergeekcube/releases/



2011/9/12 Kei Naga <include.stdio.h.123 at gmail.com>

> Hi Antonio.
>
> # I can speek English a little.
> # If I use funny English, I'm sorry.
>
>
> 1.install OK?
> -----------------------------------------
>     GTK & GStreamer-WinBuilds & GStreamer-WinBuilds-SDK installed, OK?
>
> 2.environment OK?
> -----------------------------------------
>     GST_PLUGIN_PATH             C:\Program
> Files\OSSBuild\GStreamer\v0.10.6\lib\gstreamer-0.10
>     OSSBUILD_GSTREAMER_DIR      C:\Program
> Files\OSSBuild\GStreamer\v0.10.6\
>     Path                        C:\Program
> Files\OSSBuild\GStreamer\v0.10.6\bin
>
> 3.check OK?
> -----------------------------------------
>     CommandPrompt > gst-launch videotestsrc ! ffmpegcolorspace !
> autovideosink
>
>
> 4.configure VC express 2008 in my case
> -----------------------------------------
> # I use VC with Japanese. I don't know VC with English.
> # I skip write configuration when you install GTK.
>
>     [property-page]
>       [property(not common)]
>         [c/c++]
>           [general]
>             [add include dir]
>               C:\Program
> Files\OSSBuild\GStreamer\v0.10.6\sdk\include\gstreamer-0.10
>
>     [property-page]
>       [property(not common)]
>         [linker]
>           [general]
>             C:\GTK\lib
>             C:\Program Files\OSSBuild\GStreamer\v0.10.6\sdk\lib
>
>     [property-page]
>       [property(not common)]
>         [linker]
>           [input]
>             gstreamer-0.10.lib
>
> 5.src (music-player.exe)
> -----------------------------------------
> #include <gst/gst.h>
>
>
> /****************************************************************************
> *       call back
> *
>
> ****************************************************************************/
> static void bus_call(GstBus *bus, GstMessage *msg, GMainLoop *mainloop )
> {
>     switch (GST_MESSAGE_TYPE (msg)) {
>     case GST_MESSAGE_EOS:
>         g_print("EOS\n");
>         g_main_loop_quit(mainloop);
>         break;
>     case GST_MESSAGE_ERROR:{
>         gchar *debug;
>         GError *error;
>         gst_message_parse_error(msg, &error, &debug);
>         g_free(debug);
>         g_printerr("Error: %s\n", error->message);
>         g_error_free(error);
>         break;
>     }
>     case GST_MESSAGE_WARNING:{
>         gchar *debug;
>         GError *error;
>         gst_message_parse_warning(msg, &error, &debug);
>         g_printerr("WARNING: %s (%s)\n", error->message, (debug) ? debug :
> "no details");
>         g_error_free(error);
>         g_free(debug);
>         break;
>     }
>     default:
>         break;
>     }
> }
>
>
> /****************************************************************************
> *       main
> *
>
> ****************************************************************************/
> int main( int argc, char *argv[] )
> {
>     GstElement *playbin;
>     GstElement *pipeline;
>     GMainLoop *loop;
>     GstBus *bus;
>
>     if(argc!=2){
>         g_printerr("usage: tinyPlayer [mediafile]\n");
>         exit(1);
>     }
>
>     gst_init(&argc, &argv);
>     pipeline = gst_pipeline_new( NULL );
>
>     /* Create gstreamer elements */
>     playbin = gst_element_factory_make( "playbin2", NULL );
>     gst_bin_add( GST_BIN(pipeline), playbin );
>     g_object_set( G_OBJECT(playbin), "uri", argv[1], NULL );
>
>     /* bus callbacks */
>     loop = g_main_loop_new( NULL, FALSE );
>     bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline) );
>     gst_bus_add_watch( bus, (GstBusFunc)bus_call, loop );
>     gst_element_set_state(pipeline, GST_STATE_PLAYING);
>
>     g_print("g_main_loop_run start \n");
>
>     /* Iterate */
>     g_main_loop_run(loop);
>
>     g_print("g_main_loop_run end \n");
>
>     /* Out of the main loop, clean up nicely */
>     gst_element_set_state( pipeline, GST_STATE_NULL );
>     gst_object_unref( GST_OBJECT(pipeline) );
>
>     return 0;
> }
>
> 6.test
> -----------------------------------------
>     CommandPrompt > music-player file://d/test/hogehoge.ogg
>
> Kei
>
>
>
>
> 2011/9/11 jam <nunzianteantonio at gmail.com>
>
>> Hi all,
>>
>> could you show me the right way to configure Visual Studio (2010 in my
>> case)
>> in order to create a simple GStreamer example?
>>
>> Thanks,
>> -Antonio
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/Configure-Visual-Studio-2010-for-GStreamer-tp3804989p3804989.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110912/0669e830/attachment-0001.htm>


More information about the gstreamer-devel mailing list