-
-
-
-
-/** Wraps the VEML command of the same name; requests that the renderer
-should create a video window. If show is true, then the window should be
-displayed, otherwise it should be hidden. Render will emit the signal
-replyCreateVideoXWindow() once the renderer has replied. */
-
-void Render::createVideoXWindow(WId winid, WId externalMonitor)
-{
- return;
- if (m_mltConsumer) {
- delete m_mltConsumer;
- }
-
- kDebug()<<"///////// INIT MONITOR WID";
- //Mlt::Profile profile("dv_pal");//hdv_1080_50i");
- //m_profile = profile;
- //Mlt::Producer *producer = new Mlt::Producer( profile, "/home/one/Video002.mp4" );
- Mlt::Consumer *consumer = new Mlt::Consumer( *m_mltProfile , "sdl_preview");
- //m_mltProducer = producer;
- m_mltConsumer = consumer;
- //consumer->set( "rescale", "none" );
- m_mltConsumer->set("resize", 1);
- m_mltConsumer->set("window_id", (int) winid);
- m_mltConsumer->set("terminate_on_pause", 1);
- m_externalwinid = (int) externalMonitor;
- m_winid = (int) winid;
- m_mltConsumer->listen("consumer-frame-show", this, (mlt_listener) consumer_frame_show);
- //m_mltProducer->set_speed(0.0);
- //m_mltConsumer->connect( *m_mltProducer );
- //m_mltConsumer->start( );
-/*
- m_mltConsumer = new Mlt::Consumer(m_profile, "sdl_preview");
- if (!m_mltConsumer || !m_mltConsumer->is_valid()) {
- KMessageBox::error(qApp->activeWindow(), i18n("Could not create the video preview window.\nThere is something wrong with your Kdenlive install.\n Exiting now..."));
- kError()<<"Sorry, cannot create MLT consumer, check your MLT install you miss SDL libraries support in MLT";
- exit(1);
- }
-
- m_externalwinid = (int) externalMonitor;
- m_winid = (int) winid;
-
- m_mltConsumer->set("window_id", m_winid);
- m_mltConsumer->set("resize", 1);
-
- m_mltConsumer->set("terminate_on_pause", 1);
- m_mltConsumer->set("progressive", 1);
- m_mltConsumer->set("audio_buffer", 1024);
- m_mltConsumer->set("frequency", 48000);
-
- m_mltConsumer->listen("consumer-frame-show", this, (mlt_listener) consumer_frame_show);
-*/
- /*QString aDevice = KdenliveSettings::audiodevice();
- if (!KdenliveSettings::videodriver().isEmpty()) m_mltConsumer->set("video_driver", KdenliveSettings::videodriver().ascii());
- if (!KdenliveSettings::audiodriver().isEmpty()) m_mltConsumer->set("audio_driver", KdenliveSettings::audiodriver().ascii());
- m_mltConsumer->set("audio_device", aDevice.section(";", 1).ascii());*/
-
- initSceneList();
-
- //QTimer::singleShot(500, this, SLOT(initSceneList()));
- //initSceneList();
-// m_mltConsumer->listen("consumer-stopped", this, (mlt_listener) consumer_stopped);
-// m_mltConsumer->set("buffer", 25);
-}