Hellowlol / bw_plex

binge watching for plex
MIT License
366 stars 23 forks source link

Make docker template for unraid #92

Open Hellowlol opened 5 years ago

Hellowlol commented 5 years ago

and get it into ca.

CDeLeon94 commented 5 years ago

I tried my hand at one for my own server. The container installs and runs, though I haven't actually got it skipping things yet.

https://github.com/CDeLeon94/UnraidDockerTemplates/blob/master/BingeWatchForPlex.xml

Hellowlol commented 5 years ago

Can you send a PR? You should see in the logs when if it tries to skip a intro.

davidspek commented 4 years ago

First off, I would like to say thank you for creating this software. It is something I have been thinking about for a few months and it's great to see somebody took the time to make this. The version now available on community applications has an error in the configuration. The network is default set to none while it needs access to the network to contact PMS etc. Which port is used by bw_plex is also important to know as simply setting it to bridge without further information is not great. Also, I haven't been able to find a good explanation about the config file parameters or environment variables that are available. With that information, I could create a better template and or instructions.

P.S. I haven't checked the stream myself yet, but looking at the logs setting the network to bridge does seem to result in bw_plex working. I will need to verify by streaming something later to be sure.

Hellowlol commented 4 years ago

Thanks @DavidSpek . You need a /config, URL and token. The any other configs should be set in config.ini (created on startup) i have made some comments in the config.py file about the different settings. Just open a new issue if anything is unclear. Also take a look at the or that already exist and see if that’s ok or if it’s possible to improve that.

WaaromZoMoeilijk commented 4 years ago

This is great, any option for hw transcode and plexpass just lije the linuxserver.io container?

Hellowlol commented 4 years ago

@ezraholm50 it will not help as no plexpass features is needed and we don’t really transcode anything (using pms) the biggest bottleneck is if bw_plex don’t have direct access to the files and needs to download it from pms.

WaaromZoMoeilijk commented 4 years ago

So this is just a PMS right? I cant use this container together with my PMS if im right?Op 4 jan. 2020 10:48 schreef Steffen Fredriksen notifications@github.com:@ezraholm50 it will not help as no plexpass features is needed and we don’t really transcode anything (using pms) the biggest bottleneck is if bw_plex don’t have direct access to the files and needs to download it from pms.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

Hellowlol commented 4 years ago

The Docker image will only install bw_plex and nothing else. You willl still need a another Docker or some other computer where pms is installed.

So be clear, if you already have pms installed you just need to use the bw_plex docker in addition to pms.

WaaromZoMoeilijk commented 4 years ago

Oh my how foolish, ive installed another container PMS by Plexinc thinking it was yours, it all makes sense now haha... Thank you.

Edit @Hellowlol so i'm not sure if you'd like me to open a new issue on this one: It works as far as i can see, downloading stuff from my PMS and from the web, but just doesnt skip the intro on any serie, tried it on different clients, same episode over and over. Must have missed some obvious setting?

2020-01-04 15:44:02,800 :: bw_plex :: DEBUG :: plex.py:148 :: Started to process See.s01e02
2020-01-04 15:44:02,801 :: bw_plex :: DEBUG :: plex.py:886 :: Checking if we can reach See.s01e02 directly
2020-01-04 15:44:02,801 :: bw_plex :: WARNING :: plex.py:905 :: Downloading from pms..

2020-01-04 15:44:02,801 :: bw_plex :: DEBUG :: audio.py:45 :: calling ffmpeg with ffmpeg -i https://192.168.8.7:32400/library/parts/63815/1577862432/file.mkv?download=1&X-Plex-Token=<hidden> -ac 1 -ar 11025 -ss 0 -t 600 -acodec pcm_s16le /tmp/offset_pd1cak97.wav
2020-01-04 15:55:52,282 :: bw_plex :: DEBUG :: audio.py:67 :: Done converting /tmp/offset_pd1cak97.wav
2020-01-04 15:56:03,804 :: bw_plex :: DEBUG :: misc.py:189 :: NO match in the hashes.pklz just returning -1 -1
2020-01-04 15:56:03,806 :: bw_plex :: DEBUG :: plex.py:886 :: Checking if we can reach See.s01e02 directly
2020-01-04 15:56:03,806 :: bw_plex :: WARNING :: plex.py:905 :: Downloading from pms..

2020-01-04 15:56:03,806 :: bw_plex :: DEBUG :: misc.py:283 :: Calling find_offset_ffmpeg with command ffmpeg -i https://192.168.8.7:32400/library/parts/63815/1577862432/file.mkv?download=1&X-Plex-Token=<hidden> -t 600 -vf blackdetect=d=0.5:pix_th=0.1 -af silencedetect=n=-50dB:d=0.3 -f null -
2020-01-04 16:07:52,076 :: bw_plex :: DEBUG :: misc.py:218 :: final_video [['00:00', '00:07', '00:07'], ['00:12', '00:14', '00:02'], ['00:15', '00:16', '00:00'], ['00:18', '00:19', '00:00'], ['00:19', '00:21', '00:01'], ['00:26', '00:28', '00:01'], ['00:30', '00:32', '00:02'], ['00:37', '00:39', '00:01'], ['00:40', '00:41', '00:00'], ['00:43', '00:45', '00:02'], ['00:46', '00:47', '00:00'], ['00:48', '00:55', '00:06'], ['00:56', '00:57', '00:00'], ['00:58', '00:59', '00:00'], ['01:00', '01:01', '00:00'], ['01:06', '01:09', '00:02'], ['01:11', '01:14', '00:03'], ['01:16', '01:17', '00:01'], ['01:19', '01:24', '00:04']]
2020-01-04 16:07:52,077 :: bw_plex :: DEBUG :: misc.py:219 :: final_audio [['-1:59', '00:02', '00:02'], ['01:10', '01:11', '00:00'], ['01:11', '01:11', '00:00'], ['01:12', '01:14', '00:01'], ['01:19', '01:26', '00:06']]
2020-01-04 16:07:52,077 :: bw_plex :: DEBUG :: misc.py:221 :: fin v [[0.0, 7.633, 7.633], [12.221, 14.473, 2.252], [15.807, 16.725, 0.918], [18.56, 19.061, 0.501], [19.895, 21.23, 1.335], [26.735, 28.487, 1.752], [30.28, 32.741, 2.461], [37.079, 39.039, 1.96], [40.958, 41.625, 0.667], [43.502, 45.963, 2.461], [46.588, 47.547, 0.959], [48.423, 55.222, 6.799], [56.723, 57.224, 0.501], [58.934, 59.726, 0.792], [60.477, 61.019, 0.542], [66.942, 69.319, 2.377], [71.154, 74.7, 3.546], [76.368, 77.744, 1.376], [79.288, 84.167, 4.879]]
2020-01-04 16:07:52,077 :: bw_plex :: DEBUG :: misc.py:222 :: fin a [[-0.012, 2.24, 2.252], [70.612, 71.232, 0.62], [71.252, 71.968, 0.716], [72.724, 74.304, 1.58], [79.668, 86.144, 6.476]]
2020-01-04 16:07:52,077 :: bw_plex :: DEBUG :: misc.py:250 :: Matching windows are [['01:06', '01:09', '00:02'], ['01:11', '01:14', '00:03'], ['01:16', '01:17', '00:01'], ['01:19', '01:24', '00:04']]
2020-01-04 16:07:52,078 :: bw_plex :: DEBUG :: misc.py:715 :: Checking if See.s01e02 has a recap with phrase previously on, last season, last episode using subtitles
2020-01-04 16:07:52,107 :: bw_plex :: DEBUG :: misc.py:675 :: Downloading subtitle from PMS
2020-01-04 16:07:53,459 :: bw_plex :: DEBUG :: plex.py:221 :: Added See.s01e02 to media.db
2020-01-04 16:13:40,747 :: bw_plex :: DEBUG :: plex.py:1250 :: Redbad was added to unRAID
2020-01-04 16:13:40,747 :: bw_plex :: DEBUG :: plex.py:1256 :: Didn't start to process Redbad is process_recently_added is disabled
2020-01-04 16:26:13,436 :: bw_plex :: DEBUG :: plex.py:1188 :: Found See.s01e01 theme start 00:00, theme end 00:00, ffmpeg_end 01:06 progress 00:00 fake_progress 00:10 best_time 01:06 credits_start 00:00 credits_end 00:00
Roxedus commented 4 years ago

@DavidSpek Good catch, i will fix that ASAP

@Hellowlol Sorry, should have at least notified you about me adding a template. Its in a repo i manage. https://github.com/selfhosters/unRAID-CA-templates/blob/master/templates/bw_plex.xml

I will also add some more descriptions in the template on how to run it.

If you want to reach out to me, we share the Tautulli server on Discord

Hellowlol commented 4 years ago

@Roxedus Only thing i could see (i just glanced at it) It would be nice if some info was added that the user should add the path to the media files as they are on plex, if bw_plex has direct access to the files i can just use them directly instead of downloading them from via pms (much faster with direct access)

Roxedus commented 4 years ago

@Hellowlol Added a description for the volume. currently in the testing branch

shedman214 commented 9 months ago

I'm getting this error when it tries to download theme music: https://logpaste.com/LQiYtHwb