
qt webcam viewer - V4lCapture
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
qt webcam viewer for linux. it takes v4l data/image frames and show them in the qwidget. you need to modify the code for make it work in your machine. for width and height parts check the code please.
this project lives in sourceforge now please check it out.
http://qtv4lcapture.sourceforge.net
if you got any idea feel free to contact me.
10 years ago
initial release
10 years ago
initial release
freelyP
9 years ago
Nice application.
Trying to build and test in on Ubuntu 64 bit at my place , ( libv4l installed )
got the following ( both building from Qt Creator and using build.sh ):
state= 0
start oluo
dev: /dev/video0
Output #0, mp4, to './deneme1.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 640x480, q=2-31, 10000 kb/s, 90k tbn, 24 tbc
heheheh
pOutputFormat->audio_codec: 86018
ses stream opened.
codec not found
Also when volume muted ( muted all ) and when middle level. ( then passes states 0 , 2 , 0
Why can't find codec ?
Report
Frienddy
9 years ago
but, now i have a problem with Qt and openCV.
we usually put the openCV.show in the main.cpp, so when we run the program, the webcam will active as soon as possible. but in my program, i want show the webcam after another widget show.
for example, first i have widget for login, after i successfully login, next widget will show the webcam. how is it?
what shoul i do?
thank you for the attention.
Report
opakdil
9 years ago
Report
Frienddy
9 years ago
and i want to move the webcam form display, to another form.
Report
Frienddy
9 years ago
but, now i have a problem with Qt and openCV.
we usually put the openCV.show in the main.cpp, so when we run the program, the webcam will active as soon as possible. but in my program, i want show the webcam after another widget show.
for example, first i have widget for login, after i successfully login, next widget will show the webcam. how is it?
what shoul i do?
thank you for the attention.
Report
tetsujin28
10 years ago
dev: /dev/video0
Output #0, mp4, to './denemel.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 640x480, q=2-31, 10000 kb/s, 90k tbn, 24tbc
heheheh
pOutputFormat->audio_codec: 86018
ses stream opened
codec not found
Any idea what's wrong ?
Thanks
Report
opakdil
10 years ago
Report
michaelwouters
10 years ago
was a very quick way to get video capture going for me.
There seems to be a bug though. Your demo crashes very quickly if you just move the window around or resize it.
The problem seems to be calling update() on your display widget from within the capture thread. This is not allowed, AFAIK. The mandelbrot example that comes with Qt might be a better model for doing updates - the captured image is passed via a signal. Crashes in my own code stopped when I reimplemented updates this way.
Report
opakdil
10 years ago
http://sourceforge.net/projects/qtv4lcapture/
or here
http://qtv4lcapture.sourceforge.net/
it does not crashes anymore but somehow I break the libv4l part I am not sure about it :) it can save videos anyway:)
Report
kalac
10 years ago
Report
opakdil
10 years ago
its not a suprise to me. sometime my all usb devices just dies and I start pulling and plugging them till they get better :) and that situation does not related to my app. when my app gaves that error it just dissapperas.
Report