Record any video from Kodi on Windows, Mac osx or Linux 2016

Tags



I have set up a git repository with a set of playercorefactory.xml files for linux, mac and windows
and a set of bash scripts using ffmpeg, ffplay and ffprobe to record, play and stream videos as well as some regular expressions

I have made a video tutorial series on how to record any video from kodi by using external players.

# kodi-playercorefactory git repo
=================================

https://github.com/NapoleonWils0n/kodi-p...orefactory


# NapoleonWils0n youtube channel
================================

https://www.youtube.com/user/NapoleonWils0n/feed


# kodi record any video by using ffmpeg, rtmpdump, vlc and mpv as external players 
================================================================================​==

https://www.youtube.com/playlist?list=PL...kAeJSVNsdX


The bash scripts can be run from within kodi by using a playercorefactory.xml file i have created,
by pressing y on the keyboard while a video is playing, which brings up the play using menu 

I have defined several players in the playercorefactory.xml file that link to the different bash scripts,
to record, play and stream videos from within kodi, you can also specify a duration for recordings and streaming.

The scripts can also be used on the command line as well

How the playercorefactory.xml file and bash scripts work on different operating systems


list of players in the playercorefactory.xml file
==================================================

1 - play ( ffplay )

2 - save url ( use's echo to get the current videos url )

3 - video stats ( use's ffprobe to get stats about the current video, width, height, bitrate, file size, etc )

4 - record ( use's ffmpeg to record a video )

5 - record 30 mins ( use's ffmpeg to record a video for 30 minutes )

6 - record 1 hour ( use's ffmpeg to record a video for 1 hour )

7 - record 2 hour ( use's ffmpeg to record a video for 2 hours )

8 - record 3 hour ( use's ffmpeg to record a video for 3 hours )

9 - stream ( use's ffmpeg to multicast stream a video )

9 - stream 2 hours ( use's ffmpeg to multicast stream a video for 2 hours )

10- stream 3 hours ( use's ffmpeg to multicast stream a video for 3 hours )

9 - xml-link-extractor ( extract http video links from kodi xml playlists )



list of bash scripts
====================

The bash scripts use a set of regular expressions to catch different urls
and then case statements to run a particular ffmpeg command based on the url found 

You can save the url of the current video in kodi by pressing y on the keyboard while a video is playing, 
which brings up the play using menu, then you select the save url player i have created in the playercorefactory.xml file.

This save the video url into a text file on the desktop. 
You can then run the bash scripts and pass in the text file with the url as an argument to the script


1 - rip-play ( use ffplay to play videos )

2 - rip-record ( use ffmpeg to record and specify a duration )

3 - rip-record-batch ( use ffmpeg to batch record videos )

4 - rip-stats ( use's ffprobe to get stats about the current video, width, height, bitrate, file size, etc )

5 - rip-stream ( use ffmpeg to multicast stream a video to multiple devices at once and specify a duration )

6 - rip-xmenu ( menu that lets you choose whether to play, record or stream from a list of videos )

7 - video-regex.sh ( regular expression used to catch different video urls )

8 - pcap-link-extractor ( script using tshark to extract http video links from tcpdump pcap files )
10 - plx-link-extractor ( extract http video links from kodi plx playlists )

11 - m3u-pastebin-ripper ( script to download m3u iptv playlist links from pastebin, you can specify how many links you want )

12 - m3u-pastebin-renamer ( script to rename pastebin m3u files and add the m3u suffix )

13 - m3u-link-checker ( script that uses ffprobe to find all the working links in a m3u iptv playlist and add them to a new file )

14 - m3u-webclipper ( script that lets you clip m3u playlists from web pages and save them into a m3u file )

15 - bbc ( script that uses get-iplayer with an easy menu to watch the bbc on the command line )