dvdec = gst_elementfactory_make ("dvdec", "decoder");
cspace = gst_elementfactory_make ("colorspace", "cspace");
- //videoscale = gst_elementfactory_make ("videoscale", "videoscale");
- //gtk_object_set (GTK_OBJECT (videoscale), "width", 352, "height",288, NULL);
+ videoscale = gst_elementfactory_make ("videoscale", "videoscale");
+ gtk_object_set (GTK_OBJECT (videoscale), "width", 352, "height",288, NULL);
encoder = gst_elementfactory_make ("mpeg2enc", "mpeg2enc");
fdsink = gst_elementfactory_make ("fdsink", "fdsink");
gst_bin_add (GST_BIN (bin), GST_ELEMENT (src));
gst_bin_add (GST_BIN (bin), GST_ELEMENT (dvdec));
gst_bin_add (GST_BIN (bin), GST_ELEMENT (cspace));
- //gst_bin_add (GST_BIN (bin), GST_ELEMENT (videoscale));
+ gst_bin_add (GST_BIN (bin), GST_ELEMENT (videoscale));
gst_bin_add (GST_BIN (bin), GST_ELEMENT (encoder));
gst_bin_add (GST_BIN (bin), GST_ELEMENT (fdsink));
gst_element_connect (src, "src", dvdec, "sink");
- gst_element_connect (cspace, "src", encoder, "sink");
- //gst_element_connect (videoscale, "src", encoder, "sink");
+ gst_element_connect (cspace, "src", videoscale, "sink");
+ gst_element_connect (videoscale, "src", encoder, "sink");
gst_element_connect (encoder, "src", fdsink, "sink");
gst_element_connect (dvdec, "video", cspace, "sink");
// cspace = gst_elementfactory_make ("colorspace", "cspace");
videosink = gst_elementfactory_make ("xvideosink", "videosink");
if (!videosink) fprintf(stderr,"no dvdec\n"),exit(1);
- gtk_object_set(GTK_OBJECT(videosink),"width",720,"height",480,NULL);
+ gtk_object_set(GTK_OBJECT(videosink),"width",720,"height",576,NULL);
gst_bin_add(GST_BIN(bin),GST_ELEMENT(src));
gst_bin_add(GST_BIN(bin),GST_ELEMENT(dvdec));
draw = gst_util_get_int_arg (GTK_OBJECT (videosink), "xid"),
gtk_socket = gtk_socket_new ();
- gtk_widget_set_usize(gtk_socket,720,480);
+ gtk_widget_set_usize(gtk_socket,720,576);
gtk_widget_show (gtk_socket);
gnome_app_set_contents(GNOME_APP(appwindow), vbox1);