diff options
-rw-r--r-- | ffmpeg.md | 11 | ||||
-rw-r--r-- | find.md | 5 | ||||
-rw-r--r-- | video.md | 12 |
3 files changed, 16 insertions, 12 deletions
@@ -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 @@ -0,0 +1,5 @@ +# The find Unix utility + +## Ignoring directories + + find . -not -ipath "dir/*" 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 |