H264 playback ok with gst-launch-1.0.exe but failed with application

ooznerol ooznerol at gmail.com
Wed Feb 3 09:41:49 CET 2016


Hi all,

I develop an application with Qt 5.4.1 on windows. I want to use gstreamer
to playback h264 file.

The command : 
gst-launch-1.0 filesrc location=C:\\Carlo.h264 ! decodebin ! autovideosink
work without problem.
I use Gstreamer 1.6.3 x86.

I try to do the same in my application :

     putenv("GST_DEBUG=2");
     putenv("GST_PLUGIN_PATH_1_0=C:/gstreamer/1.0/x86/lib/gstreamer-1.0/");

     gst_init(NULL,NULL);

    /* Build the pipeline */
      pipeline = gst_parse_launch ("filesrc location=C:/carlo.h264 !
decodebin ! autovideosink", NULL);

      /* Start playing */
      gst_element_set_state (pipeline, GST_STATE_PLAYING);

This not work. I had the this error : no suitable plugins found:Missing
decoder: H.264.

I suspect this come from a warning in gst_init : Failed to load plugin
'C:/gstreamer/1.0/x86/lib/gstreamer-1.0/libgstopenh264.dll'

But I don't understood why it won't load libgstopenh264.dll. It success to
load all other plugin. And of course the libgstopenh264.dll exist and is in
the good path.

Any idea?

Thanks.








--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/H264-playback-ok-with-gst-launch-1-0-exe-but-failed-with-application-tp4675625.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list