Commit Graph

22 Commits

Author SHA1 Message Date
dec05eba
8ca1ac70e8 Support opus flt and fltp 2023-03-04 16:02:48 +01:00
dec05eba
3413f193c1 Add opus/flac audio options (only supported my mp4/mkv) 2023-03-04 12:57:30 +01:00
dec05eba
a7e0dbd833 Refactor xcomposite into abstract capture api
Refactor c++ files into c files, more usable
2022-10-16 04:15:09 +02:00
dec05eba
88d06478d3 Fix crash caused by invalid memory write when recording audio
In some scenarios memcpy can write to 8 bytes (or more?) over the buffer
end.

Thanks to Guilherme for reporting the issue and testing the fix.
2022-10-07 03:44:54 +02:00
dec05eba
e80d7676d4 Livestream: add silent audio track if not audio input is provided (fixes youtube and other sites) 2022-10-04 01:32:27 +02:00
dec05eba
5871abc42f Allow giving audio inputs names by prefixing them with <name>/ 2022-10-02 01:04:57 +02:00
dec05eba
a1f7fedcb8 Add unique index to each audio input device name 2022-10-02 00:40:49 +02:00
dec05eba
f7606a144b Give error when using an invalid audio input with pipewire 2022-09-30 22:02:23 +02:00
dec05eba
09ad7a1eb5 Give each audio input a seperate node by giving them an unique context name 2022-09-30 21:14:12 +02:00
dec05eba
0059724fdc Read audio data from pulseaudio as it's available and buffer it. Fixes audio recording on pulseaudio (and some pipewire configs) 2022-09-22 01:44:45 +02:00
dec05eba
f810161203 Is this the final solution to the audio crackling problem? increase pts by number of samples and add dummy audio frames between 2022-09-20 20:11:56 +02:00
dec05eba
2b7729efb9 Fix build on ubuntu, use a mainloop with timeout instead of sleep 2022-09-20 11:01:34 +02:00
dec05eba
919890b7b2 Fix replay video/audio desync, fix dummy audio when dropping audio input, give each audio stream a new name so it can be replaced with pipewire graphs 2022-09-20 03:39:15 +02:00
dec05eba
6ea59acb9e Make video framerate constant, fix audio desync a bit when no audio playing for a while 2022-09-02 00:42:22 +02:00
dec05eba
16237d589a Fix audio recording with pipewire and with different pulseaudio system settings (frag) 2022-08-06 09:56:39 +02:00
dec05eba
f81bdfb29e Use /usr/lib64 instead of /usr/lib, which makes it compatible with gentoo 2022-03-22 00:29:20 +01:00
dec05eba
4418871737 Add gpl license to files 2020-06-21 14:41:11 +02:00
dec05eba
32b66c95ff Add pulseaudio, parse command line args 2020-06-21 14:41:11 +02:00
dec05eba
2fcd3ee3e5 Add audio support 2020-06-21 14:41:11 +02:00
dec05eba
34a000d836 output encoded video to stdout instead and add twitch stream script 2020-03-30 21:21:30 +02:00
dec05eba
405f810457 blabla 2020-03-29 17:48:17 +02:00
dec05eba
7c8c97b1a8 add alsa 2020-03-29 09:10:24 +02:00