GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS : No files created
adrien Schwartzentruber
adrien.schwartzentruber at gmail.com
Wed Jan 16 18:42:58 PST 2013
Hello,
I'm really new over here, and I had some difficulties to dump a pipe inside
my program. Indeed, I configured the GST_DEBUG_DUMP_DOT_DIR to a writtable
path, I launched gst-launch and got some files, but when I'm calling
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS inside my program, files aren't created.
Anyone have an idea about this issue ?
Thank you.
Gstreamer Version : 0.10.36
System : Ubuntu 12.04
IDE : eclipse
Folder : ~/tmp with rwxrwxrwx
GST_DEBUG_DUMP_DOT_DIR=~/tmp
Program code :
_____________________________________________
/*
* main.cpp
*
* Created on: Jan 16, 2013
* Author: ubuntu
*/
#include <gst/gst.h>
int main(int argc, char * argv[] ) {
printf("Gstreamer Tutorial 1 : playBin2\n");
GstBus * bus;
GstMessage * msg;
gst_init(NULL,NULL);
GstElement* pipeline = gst_parse_launch("playbin2
uri=rtsp://192.168.1.12:8554/stream",NULL);
if (pipeline != NULL) {
GstStateChangeReturn retr =
gst_element_set_state(pipeline,GST_STATE_PLAYING);
if (true) {
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(pipeline),
GST_DEBUG_GRAPH_SHOW_ALL, "tuto_01.dot");
bus = gst_element_get_bus (pipeline);
msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE,
GST_MESSAGE_ERROR | GST_MESSAGE_EOS);
} else {
printf("Gstreamer Tutorial 1 : Change State failed\n");
}
} else {
printf("Gstreamer Tutorial 1 : Create pipeline failed\n");
}
if (msg != NULL)
gst_message_unref (msg);
if (bus != NULL)
gst_object_unref (bus);
if (pipeline != NULL) {
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (pipeline);
}
return 0;
}
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/GST-DEBUG-BIN-TO-DOT-FILE-WITH-TS-No-files-created-tp4657968.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list