More ffmpeg

This commit is contained in:
lhark 2021-11-22 22:16:02 +01:00
parent 412ee1d52b
commit 7218fb8885

6
how_to
View file

@ -383,8 +383,13 @@ Suckless sent:
Hack Hack
Video and audio editing: Video and audio editing:
Inspect media file:
ffprobe in.mp{3,4}
Cut video/audio: Cut video/audio:
ffmpeg -ss "start" [-t "duration"|-to "end"] -i input.mp3 -acodec copy output.mp3 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 Remove audio from video file
ffmpeg -i in.mp4 -an out.mp4 ffmpeg -i in.mp4 -an out.mp4
Nvidia hardware encoding Nvidia hardware encoding
@ -719,6 +724,7 @@ Runit logging:
runsv runsv
* if <service>/log exists, redirects service's stdout to logger's stdin * if <service>/log exists, redirects service's stdout to logger's stdin
* by default, runsv's stderr, stdout (and stdin?) are redirected to /dev/console * by default, runsv's stderr, stdout (and stdin?) are redirected to /dev/console
Android: Android:
Uncompress android .ab backup files: Uncompress android .ab backup files:
# https://stackoverflow.com/questions/18533567/how-to-extract-or-unpack-an-ab-file-android-backup-file # https://stackoverflow.com/questions/18533567/how-to-extract-or-unpack-an-ab-file-android-backup-file