From 73647d2866976087fc8bb2314c9e154cd48bbec9 Mon Sep 17 00:00:00 2001 From: gcolpart Date: Thu, 15 Sep 2016 23:52:36 +0200 Subject: [PATCH] add screencast commands via ffmpeg and kazam sucks --- GNULinux/HowtoVideo.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/GNULinux/HowtoVideo.md b/GNULinux/HowtoVideo.md index 06bf69c0..b0bfbaa2 100644 --- a/GNULinux/HowtoVideo.md +++ b/GNULinux/HowtoVideo.md @@ -1,9 +1,10 @@ # Howto vidéo sous GNU/Linux - # apt install ffmpeg kazam + # apt install ffmpeg mediainfo Infos sur une vidéo : + $ mediainfo $ ffprobe Convertir une vidéo .mp4 en .wbm : @@ -14,7 +15,18 @@ Couper une vidéo, exemple en prenant les 23 premières secondes : $ ffmpeg -i input.mp4 -ss 0 -c copy -t 23 output.mp4 -Enregistrement d'un screencast : +Enregistrement d'un screencast (capture vidéo via x11grab et audio via pulse) en WEBM : + + $ ffmpeg -threads auto -f pulse -i -f x11grab -s 1024x768 -i :0.0+0,0 \ + -c:v libvpx -vpre 720p -vsync cfr -r 15 -c:a libvorbis -q:a 6 output.webm + +Avec deux sources audios : + + $ ffmpeg -threads auto -f pulse -i -ac 1 -f pulse -i -ac 2 \ + -f x11grab -s 1024x768 -i :0.0+0,0 -c:v libvpx -vpre 720p -vsync cfr -r 15 \ + -c:a libvorbis -q:a 6 -filter_complex amix=inputs=2 output.webm + +On peut aussi utiliser *kazam* qui est plus convivial... mais il s'appuie sur gstreamer et a souvent des soucis de désynchro audio/vidéo ! $ kazam @@ -23,9 +35,3 @@ Enregistrement d'un screencast : SUPER-CTRL-F - Finish Recording SUPER-CTRL-W - Show/Hide main window SUPER-CTRL-Q - Quit - - - - - -