commit a1c8a460076eea283a8cc62cab300c6fabf6ef3f
parent 9496b84e5510f1cbcc417302f4c972c0cd9549a9
Author: pyratebeard <root@pyratebeard.net>
Date: Thu, 21 Feb 2019 13:15:21 +0000
moved ffmpeg to audio_visual. updated with record and convert commands
Diffstat:
4 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/technology/linux/audio_visual/ffmpeg.md b/technology/linux/audio_visual/ffmpeg.md
@@ -0,0 +1,22 @@
+# ffmpeg
+
+### extract audio from video
+```
+ffmpeg -i input-video.mkv -q:a 0 -map a output-audio.mp3
+```
+
+### record a video
+without audio
+```
+ffmpeg -f x11grab -r 15 -i :0.0 -acodec libmp3lame -vcodec mpeg4 -ar 48000 -qscale 0 -framerate 24 outputvideo.avi
+```
+
+with audio
+```
+ffmpeg -f alsa -ac 2 -i alsa -f x11grab -r 15 -i :0.0 -acodec libmp3lame -vcodec mpeg4 -ar 48000 -qscale 0 -framerate 24 outputvideo.avi
+```
+
+### convert video format
+```
+ffmpeg -i videofile.mp4 videofile.webm
+```
diff --git a/technology/linux/audio_visual/index.md b/technology/linux/audio_visual/index.md
@@ -1,4 +1,5 @@
# audio_visual
+- [ffmpeg](ffmpeg)
- [mpd](mpd)
- [mpv](mpv)
diff --git a/technology/linux/general/ffmpeg.md b/technology/linux/general/ffmpeg.md
@@ -1,6 +0,0 @@
-# ffmpeg
-
-### extract audio from video
-```
-ffmpeg -i input-video.mkv -q:a 0 -map a output-audio.mp3
-```
diff --git a/technology/linux/general/index.md b/technology/linux/general/index.md
@@ -4,7 +4,6 @@
- [bash](bash)
- [bin](bin)
- [dmidecode](dmidecode)
-- [ffmpeg](ffmpeg)
- [i3lock](i3lock)
- [journalctl](journalctl)
- [keymaps](keymaps)