technology/linux/audio_visual/ffmpeg.md
... ...
@@ -0,0 +1,22 @@
1
+# ffmpeg
2
+
3
+### extract audio from video
4
+```
5
+ffmpeg -i input-video.mkv -q:a 0 -map a output-audio.mp3
6
+```
7
+
8
+### record a video
9
+without audio
10
+```
11
+ffmpeg -f x11grab -r 15 -i :0.0 -acodec libmp3lame -vcodec mpeg4 -ar 48000 -qscale 0 -framerate 24 outputvideo.avi
12
+```
13
+
14
+with audio
15
+```
16
+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
17
+```
18
+
19
+### convert video format
20
+```
21
+ffmpeg -i videofile.mp4 videofile.webm
22
+```
technology/linux/audio_visual/index.md
... ...
@@ -1,4 +1,5 @@
1 1
# audio_visual
2 2
3
+- [ffmpeg](ffmpeg)
3 4
- [mpd](mpd)
4 5
- [mpv](mpv)
technology/linux/general/ffmpeg.md
... ...
@@ -1,6 +0,0 @@
1
-# ffmpeg
2
-
3
-### extract audio from video
4
-```
5
-ffmpeg -i input-video.mkv -q:a 0 -map a output-audio.mp3
6
-```
technology/linux/general/index.md
... ...
@@ -4,7 +4,6 @@
4 4
- [bash](bash)
5 5
- [bin](bin)
6 6
- [dmidecode](dmidecode)
7
-- [ffmpeg](ffmpeg)
8 7
- [i3lock](i3lock)
9 8
- [journalctl](journalctl)
10 9
- [keymaps](keymaps)