m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Chrzanowski <martin@celo.org>2019-01-12 16:54:39 -0500
committerMartin Chrzanowski <martin@celo.org>2019-01-12 16:54:39 -0500
commita73b9397caf50d19175aea3f4b455e184209bedd (patch)
tree3cce64e558335b2f008013044d628794647c4d3a
parent472219bbb7aea178cbe29a9eabbccc7acfc4bfe7 (diff)
Move all ffmpeg commands to one file
-rw-r--r--ffmpeg.md11
-rw-r--r--video.md12
2 files changed, 11 insertions, 12 deletions
diff --git a/ffmpeg.md b/ffmpeg.md
index 6abed19..28a5730 100644
--- a/ffmpeg.md
+++ b/ffmpeg.md
@@ -1,5 +1,16 @@
# ffmpeg tricks
+## Cut
+
+ ffmpeg -i in.mp4 -codec:v copy -codec:a copy -ss START_TIME -t DURATION out.mp4
+ ffmpeg -ss START_TIME -t DURATION -i in.mp4 -codec:v copy -codec:a copy out.mp4
+
+## Resize
+
+ ffmpeg -i in.mp4 -s 720x480 out.mp4
+ # -1 means to automatically preserve aspect ratio
+ ffmpeg -i in.mp4 -filter:v scale=720:-1 out.mp4
+
## Record screen
ffmpeg -f x11grab -s 1920x1080 -i :0.0 out.mkv
diff --git a/video.md b/video.md
deleted file mode 100644
index d885d12..0000000
--- a/video.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Video editing
-
-## Cut
-
- ffmpeg -i in.mp4 -codec:v copy -codec:a copy -ss START_TIME -t DURATION out.mp4
- ffmpeg -ss START_TIME -t DURATION -i in.mp4 -codec:v copy -codec:a copy out.mp4
-
-## Resize
-
- ffmpeg -i in.mp4 -s 720x480 out.mp4
- # -1 means to automatically preserve aspect ratio
- ffmpeg -i in.mp4 -filter:v scale=720:-1 out.mp4