2

I have a raspberry pi with a raspberrypi cam and a usb webcam. With raspivid I can display the raspberrypi cam video on screen and with vlc I can didplay the usb webcam.

I need to display the usb webcam on top of the raspberrypi cam feed, but raspivid is always on top.

How can I play the usb webcam feed ontop of the raspberrypi cam feed?

1

From my experience , for raspivid option:

--preview, -p Preview window settings <'x,y,w,h'>

You can use this for your raspivid window position on the screen. Assume raspivid on the left on your screen, then you can open vlc in a new window and put it on the right of the screen.

If you want a foreground window, you can use OPENCV highgui and put the window where you want, you can also use python picamera.

EDIT: This solution not work : VLC gui can be by default, manipulate by the user and then you can put it on top with a very usefull Linux trick:

right click on the vlc window (in the window header on the side of the window title) and choose Position:

Always on top
  • I tried the vlc always on top option, but it's still under raspivid – user1282931 Jun 4 at 11:54
  • ho, sorry... the best choice is probably to not use rapivid but picamera python lib or opencv (imshow()) for display a new manipulable window. – Ephemeral Jun 4 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.