screen-recording-with-audio-in-linux

JSON

rev 3  |  foxhop  |  1378392799000  |  JSON

rev 2
rev 3
17 import gst17 import gst
1818
t19 mypipeline = """v4l2src ! ffmpegcolorspace ! queue ! vp8enc quality=10 speed=4 t19 mypipeline = """v4l2src ! ffmpegcolorspace ! queue ! vp8enc quality=10 speed=6 
>! mux. pulsesrc !>! mux. pulsesrc !
20 audio/x-raw-int ! queue ! audioconvert ! vorbisenc ! mux. webmmux name=mux ! fi20 audio/x-raw-int ! queue ! audioconvert ! vorbisenc ! mux. webmmux name=mux ! fi
>lesink location=screencast2.webm""">lesink location=screencast2.webm"""
2121
rev 2  |  foxhop  |  1378390589000  |  JSON

rev 1
rev 2
77
8  gst-launch ximagesrc ! ffmpegcolorspace ! queue ! vp8enc quality=10 speed=2 ! 8  gst-launch ximagesrc ! ffmpegcolorspace ! queue ! vp8enc quality=10 speed=2 ! 
>mux. pulsesrc ! audio/x-raw-int ! queue ! audioconvert ! vorbisenc ! mux. webmmu>mux. pulsesrc ! audio/x-raw-int ! queue ! audioconvert ! vorbisenc ! mux. webmmu
>x name=mux ! filesink location=screencast2.webm>x name=mux ! filesink location=screencast2.webm
tt9 
10python gstreamer binding example
11====================================
12 
13Access the webcam from python:
14 
15.. code-block:: python
16 
17 import gst
18 
19 mypipeline = """v4l2src ! ffmpegcolorspace ! queue ! vp8enc quality=10 speed=4 
 >! mux. pulsesrc !
20 audio/x-raw-int ! queue ! audioconvert ! vorbisenc ! mux. webmmux name=mux ! fi
 >lesink location=screencast2.webm"""
21 
22 # create pipeline object
23 pipeline = gst.parse_launch(mypipeline)
24 
25 # start capturing video from webcam!
26 pipeline.set_state(gst.STATE_PLAYING)
27 
28 # stop capturing video from webcam
29 pipeline.set_state(gst.STATE_NULL)
30 
31 
rev 1  |  foxhop  |  1378376480000  |  JSON

empty
rev 1
tt1Screen Recording with audio on Linux
2=========================================
3 
4I use this command to record my screen and audio into webm format:
5 
6.. code-block:: bash
7 
8  gst-launch ximagesrc ! ffmpegcolorspace ! queue ! vp8enc quality=10 speed=2 ! 
 >mux. pulsesrc ! audio/x-raw-int ! queue ! audioconvert ! vorbisenc ! mux. webmmu
 >x name=mux ! filesink location=screencast2.webm