summaryrefslogtreecommitdiff
path: root/guides/applications/ffmpeg.org
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2025-01-14 22:48:35 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2025-01-14 23:26:44 +0100
commitcf8a3f15ee1c80b874be10cbdd34496b84560f59 (patch)
treec7a77d6938c6d8d539a6ae1e72160732d440ccf5 /guides/applications/ffmpeg.org
parentfaf50994d58d2651a2ab1bb1ed94dce1feb246bd (diff)
downloadmemory-leaks-cf8a3f15ee1c80b874be10cbdd34496b84560f59.tar.xz
Sort guides up a bit
Diffstat (limited to 'guides/applications/ffmpeg.org')
-rw-r--r--guides/applications/ffmpeg.org22
1 files changed, 22 insertions, 0 deletions
diff --git a/guides/applications/ffmpeg.org b/guides/applications/ffmpeg.org
new file mode 100644
index 0000000..eded0e9
--- /dev/null
+++ b/guides/applications/ffmpeg.org
@@ -0,0 +1,22 @@
+ffmpeg recipes I should stuff into config files or scripts, but
+haven't yet.
+* Extracting parts of videos
+~-c copy -map 0~ ensures all streams (audio & subtitles) are kept.
+The timestamp syntax is described in the "Time duration" section of
+=ffmpeg-utils(1)=; =MM:SS= works fine.
+
+#+begin_src sh
+ffmpeg -i $input -c copy -map 0 \
+ -ss $tstart -to $tend \
+ $output
+#+end_src
+
+* Reduce file size
+** with =-vf=: ~-vf "scale=iw/2:ih/2"~
+** with H.265
+openSUSE Tumbleweed's ffmpeg is not built with H.265 support AFAICT.
+
+1. Install =libx265-devel=
+2. Clone =https://git.ffmpeg.org/ffmpeg.git=
+3. ~./configure --enable-libx265 --enable-gpl~
+4. ~ffmpeg -i $input -vcodec libx265 -crf 28~