New Widget: Video Monitor
ClosedPublic

Authored by laysrodrigues on Nov 8 2017, 11:23 AM.

Details

Summary

Widget to monitor printers using qt multimedia
This widget gets an URL and start to live stream.

Signed-off-by: Lays Rodrigues <laysrodriguessilva@gmail.com>

Add VideoMonitorWidget to MainWindow

Signed-off-by: Lays Rodrigues <laysrodriguessilva@gmail.com>

Diff Detail

Repository
R231 Atelier
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
laysrodrigues created this revision.Nov 8 2017, 11:23 AM
tcanabrava accepted this revision.Nov 8 2017, 1:55 PM
This revision is now accepted and ready to land.Nov 8 2017, 1:55 PM

Video options should be moved into a common settings dialog, most camera paths are not going to change. This will help also when / if we have support for multi preview streams
Not sure a pause/ play button is needed here. I don't forsee pausing the stream And we can use the finishedEditing () signal to do the connect / disconnect for the device.

Future thoughts: My machine has several cameras. Can this be modified to allow for more then one video widget?

src/widgets/videomonitorwidget.cpp
68

I personally perfer connects that connect to functions not ones that make the code as part of the connect.

rizzitello requested changes to this revision.EditedNov 8 2017, 9:22 PM

Nothing shows up in the media widget other then a black frame.
Tested with mjpeg streamer (http stream) and the internal web cam of my laptop (v4l2:///dev/video0) both result in no frames being shown .The light on my camera turns on so the device does seam to get opened.
No errors are shown in the app output or in the application

App log has only one load output

QGridLayout: Multi-cell fromRow greater than toRow

and two when changing tabs from video to gcode editor.

QWidget::paintEngine: Should no longer be called

Update::
I have tested also with the video widget qtmultimedia test widget and get the same behavior.

This revision now requires changes to proceed.Nov 8 2017, 9:22 PM
rizzitello accepted this revision.Nov 17 2017, 12:44 PM

I found the issue. QMultimedia has a problem with PRIME/BUMBLEBEE Laptops with the gstreamer-vaapi parts . So if you have one of these devices remove the vaapi package for gstreamer and it will work.

This revision is now accepted and ready to land.Nov 17 2017, 12:44 PM

This is working with udp h264 encode ?

This is working with udp h264 encode ?

I have only tested this with v4l2 since i've fixed my render issue.

This revision was automatically updated to reflect the committed changes.