gst-screencast.sh: flush on EOS to make videos usable in video editors
authorAntonio Ospite <ao2@ao2.it>
Mon, 31 Jul 2017 10:54:36 +0000 (12:54 +0200)
committerAntonio Ospite <ao2@ao2.it>
Mon, 31 Jul 2017 10:54:36 +0000 (12:54 +0200)
shell/gst-screencast.sh

index e9c03d0..e601a62 100755 (executable)
@@ -116,7 +116,7 @@ else
     AUDIO_PIPELINE="pulsesrc ! audioconvert ! audio/x-raw,rate=44100,channels=2 ! queue ! mux."
   fi
 
     AUDIO_PIPELINE="pulsesrc ! audioconvert ! audio/x-raw,rate=44100,channels=2 ! queue ! mux."
   fi
 
-  gst-launch-1.0 -v \
+  gst-launch-1.0 -v -e \
     matroskamux name=mux ! filesink location="$FILENAME" \
     ximagesrc use-damage=0 show-pointer=$SHOW_POINTER $XIMAGESRC_ARGS ! video/x-raw,framerate=25/1 ! \
     videoconvert ! videorate ! $VIDEO_CODEC ! queue ! mux. \
     matroskamux name=mux ! filesink location="$FILENAME" \
     ximagesrc use-damage=0 show-pointer=$SHOW_POINTER $XIMAGESRC_ARGS ! video/x-raw,framerate=25/1 ! \
     videoconvert ! videorate ! $VIDEO_CODEC ! queue ! mux. \