raullalves / player-cpp-ffmpeg-sdl

SDL2 and FFmpeg Video Player in C++
MIT License
91 stars 42 forks source link

Erro = Invalid argument for webcam #1

Open busrakb opened 6 years ago

busrakb commented 6 years ago

Hi,

I want to use my webcam, but i am taking error that is, Erro = Invalid argument

The run code; ./player /dev/video0

How can it work ? Can you help me, please?

raullalves commented 6 years ago

The argument is the vídeo address to a vídeo file If you want live web cam stream, please check my other github Project

Raul Alves Development Engineer at Samsung

Em Sáb, 7 de abr de 2018 15:34, busrakb notifications@github.com escreveu:

Hi,

I want to use my webcam, but i am taking error that is, Erro = Invalid argument

The run code; ./player /dev/video0

How can it work ? Can you help me, please?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/raullalves/player-cpp-ffmpeg-sdl/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AOjtXuGcLvSbzj1X6mUmhQjSl5yPgukCks5tmQavgaJpZM4TLMnE .

raullalves commented 4 years ago

@busrakb ffmpeg does not access the webcam directly. You need to set up an API for acquiring such data. I will work on that...