• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

DemoCampGuelph3_GStreamer

Page history last edited by PBworks 16 years, 4 months ago

GStreamer examples from DemoCampGuelph3

Public domain

 

Example requirements:

  1. linux
  2. gstreamer
  3. plugin packages:
    1. gstreamer-plugins-base
    2. gstreamer-plugins-good
    3. gstreamer-plugins-bad
    4. gstreamer-plugins-ugly
    5. gstreamer-plugins-ffmpeg

#1 Degenerate pipeline

gst-launch-0.10 fakesrc ! fakesink

 

#2 File record and playback audio

gst-launch-0.10 alsasrc ! wavenc ! filesink location=/home/rghosh/testaudio.wav

 

gst-launch-0.10 filesrc location=/home/rghosh/testaudio.wav ! wavparse ! alsasink

 

#3 Local video camera

gst-launch-0.10 -v v4lsrc device=/dev/video0 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=800,height=600 ! ffmpegcolorspace ! xvimagesink sync=false

 

#4 Africam live streaming

gst-launch-0.10 mmssrc location=mms://stream.onenetplace.com/africam001 ! asfdemux name=adm { adm.video_00 ! queue ! decodebin ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=800,height=600 ! ffmpegcolorspace ! xvimagesink } { adm.audio_00 ! queue ! ffdec_wmav2 ! audioconvert ! alsasink }

 

#5 Four-window split

gst-launch-0.10 filesrc location=/home/rghosh/tempafricam ! asfdemux name=adm { adm.video_00 ! tee name=tee0 } { tee0.src0 ! queue ! decodebin ! ffmpegcolorspace ! videobox bottom=150 right=215 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=430,height=300 ! ffmpegcolorspace ! ximagesink } { tee0.src1 ! queue ! decodebin ! ffmpegcolorspace ! videobox bottom=150 left=215 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=430,height=300 ! ffmpegcolorspace ! ximagesink } { tee0.src2 ! queue ! decodebin ! ffmpegcolorspace ! videobox top=150 right=215 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=430,height=300 ! ffmpegcolorspace ! ximagesink } { tee0.src3 ! queue ! decodebin ! ffmpegcolorspace ! videobox top=150 left=215 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=430,height=300 ! ffmpegcolorspace ! ximagesink } { adm.audio_00 ! queue ! ffdec_wmav2 ! audioconvert ! alsasink }

 

#6 Clock overlay

gst-launch-0.10 filesrc location=/home/rghosh/tempafricam ! asfdemux name=adm { adm.video_00 ! queue ! decodebin ! ffmpegcolorspace ! clockoverlay ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=800,height=600 ! ffmpegcolorspace ! xvimagesink } { adm.audio_00 ! queue ! ffdec_wmav2 ! audioconvert ! alsasink }

 

#7 Revtv video effect

gst-launch-0.10 -v v4lsrc device=/dev/video0 ! ffmpegcolorspace ! revtv ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=800,height=600 ! ffmpegcolorspace ! xvimagesink sync=false

 

#8 Test pattern, video mixer

gst-launch videotestsrc pattern=0 ! video/x-raw-yuv, framerate=\(fraction\)5/1, width=320, height=240 ! alpha alpha=0.3 ! videomixer name=mix ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=800,height=600 ! ffmpegcolorspace ! xvimagesink v4lsrc device=/dev/video0 ! ffmpegcolorspace ! mix.

 

#9 Static text overlay

gst-launch-0.10 -v v4lsrc device=/dev/video0 ! ffmpegcolorspace ! textoverlay text=gstreamer font-desc=\"sans\ 32\" ! ffmpegcolorspace ! videoscale method=2 ! video/x-raw-yuv,width=800,height=600 ! ffmpegcolorspace ! xvimagesink sync=false