screen-recording-with-audio-in-linux

screen-recording-with-audio-in-linux

Screen Recording with audio on Linux

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

python gstreamer binding example

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)

webcam capture with Guvcview

on fedora install rpmfusion then:

.. code-block:: console

sudo yum install guvcview

this application kicks the pants off cheese