Python script to see & hear(or Record) a USB WEBCAM VIDEO & MIC of your CW Keyer's paddles & straight key in action

cool python script i just found for to activate a usb webcam for LIVE VIDEO & LIVE webcam mic AUDIO

Script modified from here: https://brettviren.github.io/pygst-tutorial-org/pygst-tutorial.html

uses Gstreamer

https://gstreamer.freedesktop.org/download/

on the script from brettviren, at the link above, under the "9 Webcam Viewer" section, line 33 was modified...

from this:

self.player = Gst.parse_launch ("v4l2src ! autovideosink")

to this:

self.player = Gst.parse_launch ("alsasrc device=hw:6 buffer-time=20000000 ! audio/x-raw, channels=1, rate=48000 ! queue ! audioconvert ! audioresample ! queue ! pulsesink sync=false async=false v4l2src device=/dev/video0 ! video/x-raw, width=800, height=600, frame-rate=30/1 ! queue ! videoconvert ! queue ! autovideosink sync=false async=false ")

CW KEYER was from the hasak keyer project from

RECRI KEYER

https://github.com/recri/keyer

https://github.com/recri/hasak

https://groups.google.com/g/i_cw/c/Oz1vdiXDAC4

webcam mic picks up an FM radio playing in the room as well as a CW KEYER's morse code audio output for paddles & straight key

Views: 27

Comment

You need to be a member of QRQcw to add comments!

Join QRQcw

© 2024   Created by Chuck aa0hw.   Powered by

Badges  |  Report an Issue  |  Terms of Service