Registered Member
|
I want to capture video from my laptop's webcam directly to kdenlive.
The webcam works out of the box in Skype, as USB2.0 UVC VGA WebCam (/dev/video0). However when I try to setup the Capture device in kdenlive, the drop-down menu is empty (in the wizard, and in Configure->Capture->FFmpeg->Detected devices). I had /dev/video0 by default in "Video device", which is correct but doesn't help. I can't seem to run ffmpeg from a terminal (not found), although the wizard says FFmpeg & ffplay are installed. I tried installing it but found no ffmpeg to install via apt-get. Screen grab works fine. Since the webcam seems to be USB, here comes the device's lusb -v: http://pastebin.com/Fhm6v9xm I have seen this: viewtopic.php?f=19&t=120937&p=310358&hilit=webcam#p310358 . No on/off button, and as I said it works with skype. Why doesn't my device show up? Do I need to do something with Video4Linux2? Is FFmpeg the right input to use? |
Registered Member
|
Go to Settings->Configure Kdenlive->Environment to see where Kdenlive thinks FFMpeg is living at. Sorry, I don't have much help though for the webcam... |
Administrator
|
If your system doesn't have ffmpeg it may instead have avconv - so you may want to try manually running that instead.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thanks for the help. Kdenlive was indeed setup to use /usr/bin/avconv instead of ffmpeg.
I could test avconv and catpure from my webcam with:
This got me a video file, nice. Now I don't know how to make avconv work in kdenlive, any help for this next step? I tried to enter the whole command (with these options) in the Preferences, and I got a number of frames then a freeze. The latency was big too. |
Administrator
|
You might want to check the rate Kdenlive was trying to capture at - if it is trying to capture faster than your computer/camera can handle, then it could be causing problems such as the lag you experienced.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I tried to change the "-r" option to 24, that didn't help. How can I check the rate that kdenlive is trying to capture at? I don't if that's interesting, here comes what the terminal shows me:
Also, the "Capture" of the settings still has "Detected devices" empty, as well as "Capture format", and the settings "Size", "Frame rate" seem to have default values which I can't change (320x200, 15/1, ...). |
Administrator
|
Hmm, the options being disabled and the device not found is possibly indicative of why it is having capture problems...
What is the output of "solid-hardware list" on your system?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
So, it looks like it starts with some errors, but these seem to be about power.
There is a:
something wrong here? Maybe of interest: I am running kdenlive on Peppermint Linux. |
Administrator
|
Okay, so the KDE hardware framework (Solid) is aware of your webcam - the above output is what I was expecting. I'm not sure why Kdenlive wouldn't be able to detect it. Perhaps MLT or another framework is responsible for retrieving the list of devices? This would require knowledge of how this specific part of Kdenlive works unfortunately..
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Hi, It seems that your Kdenlive package is not build with libv4l2 support. Can you provide details on your distro, packages origin and version? |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]