From 7218fb888592c44351779641bf3cacf83631d323 Mon Sep 17 00:00:00 2001 From: lhark Date: Mon, 22 Nov 2021 22:16:02 +0100 Subject: [PATCH] More ffmpeg --- how_to | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/how_to b/how_to index f644995..e268a52 100644 --- a/how_to +++ b/how_to @@ -383,8 +383,13 @@ Suckless sent: Hack Video and audio editing: + Inspect media file: + ffprobe in.mp{3,4} Cut video/audio: ffmpeg -ss "start" [-t "duration"|-to "end"] -i input.mp3 -acodec copy output.mp3 + Extract audio from video: + # Lossless extract, use ffprobe to identify audio stream type + ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac Remove audio from video file ffmpeg -i in.mp4 -an out.mp4 Nvidia hardware encoding @@ -719,6 +724,7 @@ Runit logging: runsv * if /log exists, redirects service's stdout to logger's stdin * by default, runsv's stderr, stdout (and stdin?) are redirected to /dev/console + Android: Uncompress android .ab backup files: # https://stackoverflow.com/questions/18533567/how-to-extract-or-unpack-an-ab-file-android-backup-file