1 |
Hi, |
2 |
|
3 |
After unsuccessfully trying vlc with a Logitech C920 HD Pro Webcam |
4 |
(over 2 seconds delay between audio and video). I played around |
5 |
with gstreamer and from bits and pieces from the web I build |
6 |
this line: |
7 |
|
8 |
gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-h264,width=1920,height=1080,framerate=30/1 ! \ |
9 |
h264parse ! muxout. alsasrc device="hw:3,0" ! queue ! audioconvert ! lamemp3enc ! \ |
10 |
muxout. matroskamux name=muxout streamable=true ! filesink location=c920.mp4 |
11 |
|
12 |
which records a Full HD video with audio to my harddisc. The delay is |
13 |
minimal and the sync between audio and video is good. |
14 |
|
15 |
But there is one disadvantage: |
16 |
I cannot see what I am recording and I cannot watch the webcams stream |
17 |
before I fire up the script because otherwise the device would be "already |
18 |
in use" (I dont like scripts, which simply kill other applications when |
19 |
called). |
20 |
|
21 |
Any ideas or hints how to manage that? |
22 |
|
23 |
Thank you very much in advance for any help! |
24 |
Best regards, |
25 |
mcc |