2

After many attempts using pygame, or OpenCV to capture and display pictures from a standard USB-camera I decided to ask this question.

Mplayer worked with all cameras I have tested (a=Logitech, b=Creative, c=SPEEDLink). Mplayer works from commandline; I found no python adaptation.

The other libraries did not even recognize the camera or found a non existing format of the video stream. Solutions from the internet describe older Raspbian OSs, maybe that's the problem. I am using 'Stretch' now and certainly will go on to 'Buster'.

so:

  • can I use Mplayer from Python?

Other hints are welcome.

Thanks for help.

  • 1
    Raspbian Stretch is oldstable. If you start a new project you really should use the latest version Raspbian Buster. – Ingo Feb 13 at 8:53
  • @Ingo: thank you. That's true – peets Feb 14 at 9:38
  • @ingo: the question was closed with good reasons - so I worked it over, hoping it is ok now. Can you open it again, or do I have to put it as a new question? – peets Feb 14 at 9:48
  • 1
    @peets I still don't understand how you plan to use Mplayer to "capture and display pictures from python". It's a video player, not a webcam library. Could you concentrate on what you want to do, not on how you imagine doing it? Maybe you just need to look at a capture library, such as pyv4l2. – Dmitry Grigoryev Feb 14 at 12:16
  • @peets I'm not a moderator so I cannot reopen it. I only can vote to reopen it (I've done) but you need 5 votes to reopen. Please note the comment from @DmitryGrigoryev above to improve your question. – Ingo Feb 14 at 12:30