QGst::Ui::VideoWidget doesn't display from imxv4l2videosrc

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

QGst::Ui::VideoWidget doesn't display from imxv4l2videosrc

buttewillard
The following code causes cameraWidget to display all black.  videotestsrc
works fine, as does the following from the command-line.  Any help would be
greatly appreciated.

 gst-launch-1.0 imxv4l2videosrc ! imxg2dvideosink \      
        output-rotation=1 window-x-coord=470 \                      
        window-width=650 window-height=720 \                      
        framebuffer=/dev/fb1 force-aspect-ratio=false


   QGst::init(NULL, nullptr);

    src = QGst::ElementFactory::make("imxv4l2videosrc");
    //src = QGst::ElementFactory::make("videotestsrc");
    sink = QGst::ElementFactory::make("qwidget5videosink");
    pipeline = QGst::Pipeline::create();
    pipeline->add(src);
    pipeline->add(sink);
    if(src->link(sink) == false)
        qDebug("Link failed");

    cameraWidget = new QGst::Ui::VideoWidget(this);
    cameraWidget->setVideoSink(sink);
    cameraWidget->setGeometry(0, 0, 480, 425);
    ui->verticalLayout->addWidget(cameraWidget);

    pipeline->setState(QGst::StatePlaying);
    cameraWidget->show();




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel