I use this command to record my screen and audio into webm format:
.. code-block:: bash
gst-launch ximagesrc ! ffmpegcolorspace ! queue ! vp8enc quality=10 speed=2 ! mux. pulsesrc ! audio/x-raw-int ! queue ! audioconvert ! vorbisenc ! mux. webmmux name=mux ! filesink location=screencast2.webm
Access the webcam from python:
.. code-block:: python
import gst
mypipeline = “““v4l2src ! ffmpegcolorspace ! queue ! vp8enc quality=10 speed=6 ! mux. pulsesrc ! audio/x-raw-int ! queue ! audioconvert ! vorbisenc ! mux. webmmux name=mux ! filesink location=screencast2.webm”“”
# create pipeline object pipeline = gst.parse_launch(mypipeline)
# start capturing video from webcam! pipeline.set_state(gst.STATE_PLAYING)
# stop capturing video from webcam pipeline.set_state(gst.STATE_NULL)
on fedora install rpmfusion then:
.. code-block:: console
sudo yum install guvcview
this application kicks the pants off cheese