about summary refs log tree commit diff
path: root/content/sw-notes/ffmpeg-cut-video.md
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2024-04-24 22:47:39 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2024-04-24 22:48:05 +0700
commit11a7b9b66ce34258a895d2d875fe1e7c0a278b9c (patch)
treef73ad46b083c4edf90736f99a74609ff1451f59a /content/sw-notes/ffmpeg-cut-video.md
parent94f18e532f73ea80076953daf9b3a616378e91eb (diff)
downloadblog-11a7b9b66ce34258a895d2d875fe1e7c0a278b9c.tar.gz
Rename TIL to software notes
Diffstat (limited to 'content/sw-notes/ffmpeg-cut-video.md')
-rw-r--r--content/sw-notes/ffmpeg-cut-video.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/content/sw-notes/ffmpeg-cut-video.md b/content/sw-notes/ffmpeg-cut-video.md
new file mode 100644
index 0000000..fb95f08
--- /dev/null
+++ b/content/sw-notes/ffmpeg-cut-video.md
@@ -0,0 +1,14 @@
+---
+title: "How to cut videos with ffmpeg"
+date: 2024-04-24
+translationKey: ffmpeg-cut-video
+categories: [software, guide]
+tags: [ffmpeg]
+---
+
+To cut video with ffmpeg, use the flag `-ss` for the beginning of the cut and
+`-to` for the end of the cut.  For example:
+
+```sh
+ffmpeg -i in.mp4 -ss 00:00:02 -to 00:00:14 out.mp4
+```