qt webcam viewer - V4lCapture
Graphics
Score 55%
Description:

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.
Last changelog:

7 years ago

initial release

freelyP

5 years ago

Hi.
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

5 years ago

Thank you for the post.
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

C

opakdil

5 years ago

I guess best solution is to move the code from main.cpp to the next form which should open webcam.

Report

Frienddy

5 years ago

now i can start it, but the problems now, what should i do to take the capture image for the video?
and i want to move the webcam form display, to another form.

Report

Frienddy

5 years ago

Thank you for the post.
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

6 years ago

I try to compile today (2010.10.22) SVN version. When I pressed [Start Capture] button here's what I've got:

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

C

opakdil

6 years ago

sound like you dont have codec to write mp4 file. but I am not sure you may disable volume and try it again.

Report

michaelwouters

7 years ago

Thank you for your posting your code. It
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

C

opakdil

7 years ago

thanks for the feedback. I check the mandelbrot and reimplement mycode same way. it looks pretier :) anyway and open a new open source project for this matter. and you can reach the project via here

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

7 years ago

it is a kernel bug, I have it too. Whem that happens, all usb devices stops working until reboot.

Report

C

opakdil

7 years ago

thanks for the feedback.

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

7 years ago

initial release

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1
updated Jul 17 2010
added Jun 20 2010
downloads today
1
page views today 2