This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Trying capture video from my Namtai eyetoy webcam

Tags: None
(comma "," separated)
birdfan
Registered Member
Posts
1
Karma
0
I just got kdenlive and I'm trying to figure out how to use it. :)
I got it as an .rpm through OpenSuSE's repos and this is the version:Version 0.8.2.1 and I'm running OpenSuSE 11.4 64 bit.

When I try to capture video from my Namtai eyetoy webcam, I got this message when I started it in a terminal:

GStreamer-CRITICAL **: gst_debug_add_log_function: assertion `func != NULL' failed
project monitor connected
clip monitor connected
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
[alsa @ 0x2695320] Estimating duration from bitrate, this may be inaccurate
[video4linux2,v4l2 @ 0x2709500] ioctl(VIDIOC_DQBUF): Input/output error
[video4linux2,v4l2 @ 0x2709500] Estimating duration from bitrate, this may be inaccurate
[swscaler @ 0x2784080] Warning: data is not aligned! This can lead to a speedloss
[mpeg2video @ 0x2708860] MPEG1/2 does not support 15/1 fps
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x264e000] VBV buffer size not set, muxing may fail
[alsa @ 0x2695320] ALSA buffer xrun.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x2b81a40] max_analyze_duration 5000000 reached at 5016000
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x2b6d720] max_analyze_duration 5000000 reached at 5016000
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x2b6d500] max_analyze_duration 5000000 reached at 5016000
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x2b8d4e0] max_analyze_duration 5000000 reached at 5016000
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x7f7bb4006b80] max_analyze_duration 5000000 reached at 5016000
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x7f7bb400d260] max_analyze_duration 5000000 reached at 5016000
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x1fcc480] max_analyze_duration 5000000 reached at 5016000
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x2708d40] max_analyze_duration 5000000 reached at 5016000
detected format: JPEG: JPEG
Size: 320x240:
Size: 640x480:


When I start the capture, I use Video4Linux, and kdenlive tells me that my video will be saved in /home/myusername/kdenlive/ but after stopping the capture, there is no video file.
The eyeToy seems to work fine, I can see my image in the preview window.

Other times, I might get:

[alsa @ 0x2bcec20] cannot open audio device hw:0,0 (Device or resource busy)
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM alsa:hw:0,0
[alsa @ 0x2bcec20] cannot open audio device alsa:hw:0,0 (No such file or directory)
[alsa @ 0x2bcec20] cannot open audio device hw:0,0 (Device or resource busy)
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM alsa:hw:0,0
[alsa @ 0x2bcec20] cannot open audio device alsa:hw:0,0 (No such file or directory)
[video4linux2,v4l2 @ 0x2bf9ea0] ioctl(VIDIOC_DQBUF): Input/output error
[video4linux2,v4l2 @ 0x2bf9ea0] Estimating duration from bitrate, this may be inaccurate
[mpeg2video @ 0x359c0a0] MPEG1/2 does not support 15/1 fps
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[mpeg @ 0x2719540] VBV buffer size not set, muxing may fail
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.


And after another try, I'll get:

[alsa @ 0x36e8260] cannot open audio device hw:0,0 (Device or resource busy)
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM alsa:hw:0,0
[alsa @ 0x36e81c0] cannot open audio device alsa:hw:0,0 (No such file or directory)
[alsa @ 0x36e8600] cannot open audio device hw:0,0 (Device or resource busy)
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM alsa:hw:0,0
[alsa @ 0x36e8640] cannot open audio device alsa:hw:0,0 (No such file or directory)
[video4linux2,v4l2 @ 0x3724880] ioctl(VIDIOC_DQBUF): Input/output error
[video4linux2,v4l2 @ 0x3724880] Estimating duration from bitrate, this may be inaccurate
[mpeg2video @ 0x273c4c0] MPEG1/2 does not support 15/1 fps


My recording devices are as follows:

arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Audigy [SB Audigy 1 [SB0090]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Audigy [SB Audigy 1 [SB0090]], device 1: emu10k1 mic [Mic Capture]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Audigy [SB Audigy 1 [SB0090]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Namtai [EyeToy USB camera Namtai], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

If I do this in a terminal:
ffmpeg -f alsa -ac 1 -ar 48000 -i hw:0,0 -acodec mp2 -f video4linux2 -s 640x480 -r 30 -i /dev/video0 -vcodec mjpeg -sameq test.avi

It works nicely.

Is there a tutorial around somewhere that I can follow? Can I edit an .avi file in kdenlive that I already recorded?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]