Save any video stream from kodi by using ffmpeg as an external video player and dumping the stream in the background.
Press c on the keyboard select the play using menu,
and then select ffmpeg-save as external player to record the video in the background.
You can then return to kodi and watch another video while you record a video stream in the background using ffmpeg.
You have to manually quit the ffmpeg process by finding the ffmpeg process id and then quiting it.
# Find the process id
ps aux | grep ffmpeg
# kill the process
sudo kill process-id-from-ps-aux
# or use killalll
sudo killall ffmpeg
Kodi lets you override the built in video player and use an external video player,
by creating a text file called playercorefactory.xml
We will define ffmpeg, rtmpdump, vlc and mpv as external players in the playercorefactory.xml,
which will allow us to record video streams opened from kodi
# Git repo for playercorefactory.xml file and bash scripts
https://github.com/NapoleonWils0n/kodi-playercorefactory# youtube playlist
https://www.youtube.com/playlist?list=PL7hhhG5qUoXlpmIjqv2eEBukAeJSVNsdX...
https://www.youtube.com/watch?v=awZYG7NgTok