GST-launch Samples

Source: Internet
Author: User

Player

AVI (Xvid, MP3)
GST-launchfilesrc location =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux name = Demux. audio_00! Mad! Audioconvert! Audioresample! Autoaudiosink Demux. video_00! Queue! Xviddec! Ffmpegcolorspace! Videoscale! Autovideosink

Time overlay
GST-launchfilesrc location =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux name = Demux. audio_00! Mad! Alsasink Demux. video_00! Queue! Xviddec! Ffmpegcolorspace! Timeoverlay! Xvimagesink

With seeking
GST-launchfilesrc location =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux name = Demux. audio_00! Mad! Alsasink Demux. video_00! Queue! Xviddec! Ffmpegcolorspace! Progressreport! Navseekseek-offset = 10! Timeoverlay! Xvimagesink

Video transition
GST-launch-V videotestsrc pattern = 1! SMPTE name = s border = 20000 type = 234 duration = 2000000000! Ffmpegcolorspace! Ximagesink videotestsrc! S.

GST-launchfilesrc location =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux! Xviddec! Ffmpegcolorspace! SMPTE name = s border = 20000 type = 234 duration = 2000000000! Ffmpegcolorspace! Xvimagesink filesrclocation =/mediasamples/movies/aeonflux/aeon2.avi!
Avidemux! Xviddec! S.

Overlay
GST-launch filesrclocation =/home/magpie/sample-multimedia/wowintro2.avi! Avidemuxname = Demux. audio_00! Mad! Alsasink Demux. video_00! Queue! Xviddec! Ffmpegcolorspace! Timeoverlay! Xvimagesink

Multi video
GST-launch filesrc location =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux! Xviddec! Ffmpegcolorspace! Videoscale! Video/X-raw-YUV, width = 320! Videobox border-alpha = 0 alpha = 1 Top =-10 Bottom = 0 left =-150! Videomixer name = mix! Ffmpegcolorspace!
Xvimagesink filesrclocation =/home/magpie/sample-multimedia/Texas. Avi! Avidemux! Xviddec! Ffmpegcolorspace! Videoscale! Video/X-raw-YUV, width = 640! Alphaalpha = 1! Mix.

GST-launch filesrclocation =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux! Xviddec! Ffmpegcolorspace! Videoscale! Video/X-raw-YUV, width = 320! Videobox border-alpha = 0 alpha = 0.5 Top =-10 Bottom = 0 left =-150! Videomixer name = mix! Ffmpegcolorspace
! Ffenc_mpeg4! Avimux! Filesink location = test01.avi filesrclocation =/mediasamples/movies/wowintro2.avi! Avidemux! Xviddec! Ffmpegcolorspace! Videoscale! Video/X-raw-YUV, width = 640! Alphaalpha = 1! Mix.

Slide Show
Multifilesrclocation1_image-000005d.jpg num-Buffers = 25! Image/JPEG, fig = 25/1! Jpegdec! Videoflip method = vertical-flip! Jpegenc! Multifilesinklocation1_image-out-000005d.jpg

Fakesink and capsfilter
GST-luanchfilesrc location =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux! Xviddec! Videoscale! "Video/X-raw-RGB, width = 176, Height = 144 "! Ffmpegcolorspace! Videorate! "Video/X-raw-RGB, bpp = 32, depth = 32, framerate = 3/1 "! Fakesink

Comf player gstreamer Link

If not use fakesink
GST-launch filesrc location =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux! Xviddec! Videoscale! Video/X-raw-YUV! Ffmpegcolorspace! Videobalance! Videorate! Video/X-raw-YUV, width = 320, framerate = 25/1! Xvimagesink

GST-launch filesrclocation =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux! Xviddec! Videoscale! Video/X-raw-YUV! Ffmpegcolorspace! Xvimagesink

For target Maru 0.2.
GST-launch filesrc location =./wow_qcif.avi! Avidemux! Ffdec_mpeg4! Videoscale! Video/X-raw-YUV, width = 320, Height = 240! Ffmpegcolorspace! Ximagesink
GST-launch filesrc location =./wow_qcif.avi! Avidemux! Ffdec_mpeg4! Videoscale! Video/X-raw-YUV, width = 640, Height = 480! Ffmpegcolorspace! Videorate! Ximagesink

GST-launch filesrc location =./wow_qcif.avi! Avidemux name = Demux. audio_00! Mad! Audioconvert! Audioresample! Autoaudiosink Demux. video_00! Queue! Ffdec_mpeg4! Videoscale! Video/X-raw-RGB, width = 640, Height = 480! Ffmpegcolorspace! Ximagesink

GST-launch filesrc location =./wow_qcif.avi! Avidemux name = Demux. audio_00! Mad! Audioconvert! Audioresample! Autoaudiosink Demux. video_00! Queue! Ffdec_mpeg4! Videoscale! Video/X-raw-YUV, width = 640! Ffmpegcolorspace! Ximagesink

GST-launch playbin uri = file: // opt/COSMOS/sample-multimedia/zippel.mp4
GST-launch playbin uri = file: // opt/COSMOS/sample-multimedia/wowintro2.avi-V
GST-launch playbin uri = file: // opt/COSMOS/sample-multimedia/wow_qcif.avi-V

? Above italic text means that player use playbin Pipeline

If do use fakesink
GST-launch filesrc location =/home/magpie/sample-multimedia/wowintro2.avi! Avidemux! Xviddec! Videoscale! Video/X-raw-RGB! Ffmpegcolorspace! Videorate! Video/X-raw-RGB, width = 320, Height = 240, framerate = 25/1, bpp = 32, depth = 32, red_mask = 0x0000ff00, blue_mask = 0xff000000, alpha_mask = 0x000000ff
! Fakesink-V

Recorder

Example link element for recording
GST-launch v4lsrc! Video/X-raw-YUV, width = 320, Height = 240, framerate = 25/1! Xvimagesink
Gst-launchv4lsrc! Video/X-raw-YUV, width = 320, Height = 240, framerate = 25/1! Ffmpegcolorspace! Tee! Queue! Video/X-raw-RGB! Ximagesink
Gst-launchv4lsrc! Video/X-raw-YUV, width = 320, Height = 240, framerate = 25/1, bpp = 16, depth = 16! Ffmpegcolorspace! Tee! Queue! Video/X-raw-RGB! Ximagesink

Fakesink
GST-launch v4lsrc! Video/X-raw-YUV, width = 320, Height = 240, framerate = 25/1, bpp = 16, depth = 16! Ffmpegcolorspace! Tee! Queue! Video/X-raw-RGB, bpp = 32, depth = 32, red_mask = 0x0000ff00, blue_mask = 0xff000000, alpha_mask = 0x000000ff, framerate = 25/1! Fakesink-V

Link element in comf Recorder

Comf_recording_type_mp3_divx_avi: comf_recording_type_mp3_xvid_avi

To display
V4lsrc! Capsfilter (input-filter )! Ffmpegcolorspace! Tee! Queue! Capsfilter (fake-filter )! Fakesink
V4lsrc! Capsfilter (input-filter )! Ffmpegcolorspace! Tee! Queue! Ximagesink

Gst-launchv4lsrc! Video/X-raw-YUV, width = 320, Height = 240, framerate = 25/1, bpp = 16, depth = 16! Ffmpegcolorspace! Tee! Queue! Capsfilter (fake-filter )! Fakesink
GST-launch v4lsrc! Video/X-raw-YUV, width = 320, Height = 240, framerate = 25/1, bpp = 16, depth = 16! Ffmpegcolorspace! Tee! Queue! Ximagesink

To record (filesink)
Di

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.