Add audio support

This commit is contained in:
dec05eba
2020-04-01 19:25:16 +02:00
parent 5e60805c36
commit 2fcd3ee3e5
5 changed files with 233 additions and 64 deletions

View File

@@ -2,6 +2,8 @@
This is a screen recorder that has minimal impact on system performance by recording a window using the GPU only,
similar to shadowplay on windows.
The output is an h264 encoded video with aac audio.
This project is still early in development.
# Performance
@@ -12,11 +14,10 @@ the fps remains at 30.
`gpu-screen-recorder 0x1c00001 mp4 60 > test_video.mp4`
# Requirements
X11, Nvidia (cuda)
X11, Nvidia (cuda), pulseaudio
# TODO
* Scale video when the window is rescaled.
* Use the sound source in src/sound.cpp to record audio and mux it with ffmpeg to the final video.
* Support AMD and Intel, using VAAPI. cuda and vaapi should be loaded at runtime using dlopen instead of linking to those
libraries at compile-time.
* Clean up the code!