From 703d7f2758a3278dcac19a07622748bea454154e Mon Sep 17 00:00:00 2001 From: Matthew Clark Date: Sun, 25 Feb 2018 17:16:54 +0000 Subject: [PATCH] Better video conversion example --- basics.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/basics.md b/basics.md index 5d800b5..3a45e3f 100644 --- a/basics.md +++ b/basics.md @@ -97,3 +97,15 @@ gst-launch-1.0 -v \ autovideosink ``` +Here's a more complete example, that keeps the audio, and changes the size and framerate: + +``` +gst-launch-1.0 filesrc location=$SRC ! \ + qtdemux name=demux demux.audio_0 ! queue ! decodebin ! audioconvert ! audioresample ! \ + autoaudiosink \ + demux.video_0 ! queue ! \ + decodebin ! videoconvert ! videoscale ! videorate ! \ + 'video/x-raw, format=(string)I420, width=(int)320, height=(int)240, framerate=(fraction)30/1' ! \ + autovideosink +``` +