Created
October 27, 2015 20:46
-
-
Save kazzmir/8ba5a8d58d3ab74b1750 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/autoload/Replay.vim b/autoload/Replay.vim | |
index 856486a..76abd40 100644 | |
--- a/autoload/Replay.vim | |
+++ b/autoload/Replay.vim | |
@@ -250,11 +250,12 @@ fun! Replay#ScreenCapture(on, ...) "{{{1 | |
\ '2> '. s:replay_record_param['log'] : '') | |
else | |
" fall back using ffmpeg/avconv | |
- let cmd = printf('%s %s -i %s -vf crop=%d:%d:%d:%d %s/%s_%d.%s %s', | |
+ let cmd = printf('%s %s -s %sx%s -i %s+%d,%d %s/%s_%d.%s %s', | |
\ s:replay_record_param['exe'], | |
\ s:replay_record_param['opts'], | |
+ \ geom.width, geom.height, | |
\ (strlen($DISPLAY) == 2 ? $DISPLAY.'.0' : $DISPLAY), | |
- \ geom.width, geom.height, geom.x, geom.y, | |
+ \ geom.x, geom.y, | |
\ (filewritable(getcwd()) == 2 ? getcwd() : '$HOME'), | |
\ s:replay_record_param['file'], | |
\ strftime('%Y%m%d', localtime()), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment