Tool/software: Linux
Hi,
In our project we converted g-streamer pipeline to c code to display an mp4 file.
G-streamer pipeline :
gst-launch-1.0 filesrc location=/home/TearOfSteel-AV-Short-720x406.mp4 ! decodebin name=dec ! videoconvert ! autovideosink dec. ! audioconvert ! audioresample ! alsasink
after compiling and running the code we are facing some Warnings like
(gst:12557): GLib-GObject-WARNING **: g_object_set_valist: object class 'GstAutoVideoSink' has no property named 'location'
(gst:12557): GLib-GObject-WARNING **: g_object_set_valist: object class 'GstAlsaSink' has no property named 'time'
Linked all the Elements together
Unable to set the pipeline to the playing state.
part of code where we got warning and stuck :
g_object_set (G_OBJECT (sink), "location", "/home/TearOfSteel-AV-Short-720x406.mp4/",filename, NULL) ;
g_object_set(G_OBJECT (asink), "time", "%d.mp4", "max-size-time", 60000000000, NULL);
...........................................................................................................................................................................................................................................................
gst_element_link_many (source, decoder, videoconverter, sink, audioconverter, audioresampler, asink, NULL) ;
g_print("Linked all the Elements together\n");
/* The element is set to accept data */
gst_element_set_state (pipeline, GST_STATE_PLAYING);
if (ret == GST_STATE_CHANGE_FAILURE)
{
g_printerr ("Unable to set the pipeline to the playing state.\n");
gst_object_unref (pipeline);
return -1;
}
g_print ("Running...\n");
g_main_loop_run (loop);
let me know where did i done the mistake.
Regards,
GAG