Release FFMPEG Recorder as external player
#1
Hi all!

I got bored testing different addons in regard to downloading videos, as none of them seems to work the way i want, so i decided to make use of ffmpeg configured as an external player.

By doing that it will be avaliable for all addons that has playable links, and the download for most part goes on in the background, so i can continue to use kodi while it is ongoing.
You can even start multiple downloads at the same time if you wish, depending on what source you use.

Added option is now that you can watch while you are downloading, this is especially useful on livestreams.
This is done thru a "pipe", so no extra bandwidth is being consumed.

So here's how you do it:

Download ffmpeg from here: https://ffmpeg.org/download.html

It's a zip archive, so no installation required, just extract ffmpeg.exe & ffplay.exe to a location of your choice. they both have to be in the same folder.

For this purpose i have made a custom program to simplify, called FFMPEG_Recorder.exe that you can find a link to at the bottom.
Download it and put in the same folder as ffmpeg.exe, or some other permanent location from where it will work as a "dummy player" before running it.

Now start FFMPEG_Recorder.exe, and point to the location of ffmpeg.exe,
after that you will be prompted for a download location for the videos.

After execution, 2 xml files will be created in the same folder as FFMPEG_Recorder.exe,
that is playercorefactory.xml & playercorefactory2.xml.

Copy those to the %APPDATA%\Kodi\userdata\ folder.

On the desktop a shortcut will be created called "FFMPEG_Recorder Default Change" that
toggles between the 2 xml files, making FFMPEG_Recorder.exe default player.

This is necessary, as some addons don't respect the "Play using.." context menu
and will revert to the default player, and others wont display a context menu at all.

Press "Q" to stop an ongoing recording/download.

Default container format is mp4, but you can change it by editing the Options
section in ffmpeg.ini to any of the formats supported by ffmpeg, and there are plenty.
In the Options section you can also edit the timestamp switch to off,
if you don't like it in the view window.
Recorded video don't have a timestamp.

Delete ffmpeg.ini to restart setup.

Created in Autohotkey

Download here: https://github.com/dobbelina/Playground/...r-v1.5.zip

Update 2020-12-17 v1.5
  • "Watch Only" option added
  • Added parsing of rtmp links to ffmpeg
  • Added parsing of cookies
  • ffmpeg command editable in ffmpeg.ini
  • Improved detection of Kodi install location

For those that want to compile it for themselves, here's the source files:
https://github.com/dobbelina/Playground/...20Recorder
Reply
#2
To download from the youtube addon, adjust it's settings like this:
Settings=>MPEG-DASH Disable
Reply
#3
For future use.
Reply
#4
Major update to FFmpeg Recorder!

Added option to watch the video at the same time as it's being downloaded, this is especially useful on livestreams.
This is done thru a "pipe", so no extra bandwidth is being consumed.
You can also choose what type of container format you prefer by editing the ffmpeg.ini file.
mp4 is the default.

Download link is in the first post that i have edited with new instructions.
(In this version you also need ffplay.exe in the same folder as ffmpeg.exe, that comes with the ffmpeg package)

Have fun with it! Big Grin
Reply
#5
Update 2019-10-25 v1.3
  • Added parsing of user agent & referer to ffmpeg.

This makes it possible to download from more addons.
If you have installed it before, simply overwrite the old exe with the new one.
Updated link in the first post.

To download from the youtube addon, adjust it's settings like this:
Settings=>MPEG-DASH Disable
Reply
#6
Update 2020-12-17 v1.5
  • "Watch Only" option added
  • Added parsing of rtmp links to ffmpeg
  • Added parsing of cookies
  • ffmpeg command editable in ffmpeg.ini
  • Improved detection of Kodi install location

This makes it possible to download from more addons.
If you have installed it before, simply overwrite the old exe with the new one and delete
ffmpeg.ini to restart setup.

Updated link in the first post.

To download from the youtube addon, adjust it's settings like this:
Settings=>MPEG-DASH Disable
Reply
#7
(2019-01-17, 02:08)dobbelina Wrote: Hi all!

I got bored testing different addons in regard to downloading videos, as none of them seems to work the way i want, so i decided to make use of ffmpeg configured as an external player.

By doing that it will be avaliable for all addons that has playable links, and the download for most part goes on in the background, so i can continue to use kodi while it is ongoing.
You can even start multiple downloads at the same time if you wish, depending on what source you use.

Added option is now that you can watch while you are downloading, this is especially useful on livestreams.
This is done thru a "pipe", so no extra bandwidth is being consumed.

So here's how you do it:

Download ffmpeg from here: https://ffmpeg.org/download.html

It's a zip archive, so no installation required, just extract ffmpeg.exe & ffplay.exe to a location of your choice. they both have to be in the same folder.

For this purpose i have made a custom program to simplify, called FFMPEG_Recorder.exe that you can find a link to at the bottom.
Download it and put in the same folder as ffmpeg.exe, or some other permanent location from where it will work as a "dummy player" before running it.

Now start FFMPEG_Recorder.exe, and point to the location of ffmpeg.exe,
after that you will be prompted for a download location for the videos.

After execution, 2 xml files will be created in the same folder as FFMPEG_Recorder.exe,
that is playercorefactory.xml & playercorefactory2.xml.

Copy those to the %APPDATA%\Kodi\userdata\ folder.

On the desktop a shortcut will be created called "FFMPEG_Recorder Default Change" that
toggles between the 2 xml files, making FFMPEG_Recorder.exe default player.

This is necessary, as some addons don't respect the "Play using.." context menu
and will revert to the default player, and others wont display a context menu at all.

Press "Q" to stop an ongoing recording/download.

Default container format is mp4, but you can change it by editing the Options
section in ffmpeg.ini to any of the formats supported by ffmpeg, and there are plenty.
In the Options section you can also edit the timestamp switch to off,
if you don't like it in the view window.
Recorded video don't have a timestamp.

Delete ffmpeg.ini to restart setup.

Created in Autohotkey

Download here: https://github.com/dobbelina/Playground/...r-v1.5.zip

Update 2020-12-17 v1.5
  • "Watch Only" option added
  • Added parsing of rtmp links to ffmpeg
  • Added parsing of cookies
  • ffmpeg command editable in ffmpeg.ini
  • Improved detection of Kodi install location

For those that want to compile it for themselves, here's the source files:
https://github.com/dobbelina/Playground/...20Recorder
This works perfect, but I have a question.
How do I also get the subtitle with the download.
Source is Swedsh URplay
Best regards
Reply
#8
@dobbelina :

"To download from the youtube addon, adjust it's settings like this:
Settings=>MPEG-DASH Disable"...:

could you pls explain more easly..??...as you were talking to a little child..
better making some examples..
thxs so much in adv

cheers

Smile
Reply
#9
(2019-01-17, 02:08)dobbelina Wrote: Hi all!

I got bored testing different addons in regard to downloading videos, as none of them seems to work the way i want, so i decided to make use of ffmpeg configured as an external player.

By doing that it will be avaliable for all addons that has playable links, and the download for most part goes on in the background, so i can continue to use kodi while it is ongoing.
You can even start multiple downloads at the same time if you wish, depending on what source you use.

Added option is now that you can watch while you are downloading, this is especially useful on livestreams.
This is done thru a "pipe", so no extra bandwidth is being consumed.

So here's how you do it:

Download ffmpeg from here: https://ffmpeg.org/download.html

It's a zip archive, so no installation required, just extract ffmpeg.exe & ffplay.exe to a location of your choice. they both have to be in the same folder.

For this purpose i have made a custom program to simplify, called FFMPEG_Recorder.exe that you can find a link to at the bottom.
Download it and put in the same folder as ffmpeg.exe, or some other permanent location from where it will work as a "dummy player" before running it.

Now start FFMPEG_Recorder.exe, and point to the location of ffmpeg.exe,
after that you will be prompted for a download location for the videos.

After execution, 2 xml files will be created in the same folder as FFMPEG_Recorder.exe,
that is playercorefactory.xml & playercorefactory2.xml.

Copy those to the %APPDATA%\Kodi\userdata\ folder.

On the desktop a shortcut will be created called "FFMPEG_Recorder Default Change" that
toggles between the 2 xml files, making FFMPEG_Recorder.exe default player.

This is necessary, as some addons don't respect the "Play using.." context menu
and will revert to the default player, and others wont display a context menu at all.

Press "Q" to stop an ongoing recording/download.

Default container format is mp4, but you can change it by editing the Options
section in ffmpeg.ini to any of the formats supported by ffmpeg, and there are plenty.
In the Options section you can also edit the timestamp switch to off,
if you don't like it in the view window.
Recorded video don't have a timestamp.

Delete ffmpeg.ini to restart setup.

Created in Autohotkey

Download here: https://github.com/dobbelina/Playground/...r-v1.5.zip

Update 2020-12-17 v1.5
  • "Watch Only" option added
  • Added parsing of rtmp links to ffmpeg
  • Added parsing of cookies
  • ffmpeg command editable in ffmpeg.ini
  • Improved detection of Kodi install location

For those that want to compile it for themselves, here's the source files:
https://github.com/dobbelina/Playground/...20Recorder

hi, following these yr project that works for ffmpeg recorder, but it is not so confidently as a player  cause it is so difficoult to be interactive with ffmpeg player..i mean the watch only opt you add.
i set vlc as external player and in most of the cases works..but in some cases as for ex:
_https://www1071.ff-03.com/token=QPc-wABctsWB158Ht7M31w/1645276383/151.29.0.0/130/9/40/f28b38d6f91bfbec7697db20af74f409-480p.mp4|User-Agent=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%3B+rv%3A88.0%29+Gecko%2F20100101+Firefox%2F88.0&Referer=https%3A%2F%2Fstreamm4u.club%2Fv%2F602z5b042jydzdm&verifypeer=false

i put the _ at beginning  of the stream to not insert live links here in my post but obviously it has to be removed when trying the example..

it fails...and only the default kodi player works...
is there a way to have the external player working also for links like this..??
if not vlc is there another..??
thxs so much in avd.

cheers
Reply

Logout Mark Read Team Forum Stats Members Help
FFMPEG Recorder as external player1
This forum uses Lukasz Tkacz MyBB addons.