Tuesday, May 28, 2019

Plex Cinema Trailers and Pre-Rolls

I couldn't get this to work.  Everything I saw talked about 2 places you need to set this but I figured it out.  It needs to be set in 3 different places.

1st Place:

You need to enable it in your library.


2nd Place:

In your server.

Settings -> Settings -> Extras


3rd Place:

Your client.  This will depend on the client you're using.  Here are two examples.

Web (Settings -> General -> Player)


Plex Media Player (Settings -> General -> Player)


One final thing... if none of this works, I've seen several places where if your time is off it won't work either.

Wednesday, March 6, 2019

My Notes on youtube-dl

OS: Centos 7.5

#Installing Python
TBD

#Installing FFMPEG

yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

yum install ffmpeg ffmpeg-devel fribidi zvbi lame-libs



#Downloading a video that is split in to multiple files (Verified it worked with 8 mp4 files)
$ cat mylist.txt
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'

$ ffmpeg -f concat -i mylist.txt -c copy output

#Downloading a file that you have to authenticate with first (Link, Link)

Assuming you are using chrome extension (link based in title), you click the new extension after authentication, it will give you the cookie.

Create a file that you can pass to youtube-dl.

So:

vim cookies.txt

Paste contents copied earlier

youtube-dl --cookies=cookies.txt <url>

#Downloading a group of videos

Create list called list.txt:

ex ->
<url>
<url>
<url>

Save and close

youtube-dl -a list.txt

Tuesday, February 19, 2019

Fixing Plex Guide Data For Use with HDHomeRun Premium TV

I think I got this figured out... but I'm still testing.  So this is use as your own risk.

I'm using zap2xml for guide data.

I started out by following this guide here Link

That was a huge help to get started.  I then went to https://tvlistings.zap2it.com/ and created my first account.  To keep things simple I just made it username+east@gmail.com.  I went in and added all the east coast/national channels to match my local cable provider.

Here is the list of East/West Coast Feeds -> Link

I opened another browser and created a 2nd account and called it username+west@gmail.com.  I went in and then added all the west coast channels.  I ended up using Comcast out of San Francisco (94016) since the numbers matches closely to my cable provider.

Now this part will different depending on what OS your going to do this on.  For me it was CentOS 7.5.

First install the packages you need:


yum install perl perl-HTTP-Cookies.noarch perl-libwww-perl.noarch perl-Time-Piece perl-JSON perl-JSON-XS perl-CPAN perl-LWP-Protocol-https -y


Create your directory where you will store everything: 
mkdir /epg

Download zap2xml perl script (Link)

cp zap2xml.pl /epg/

chmod 755 /epg/zap2xml.pl 
cd /epg/

Now we are going to build our configuration files:

touch east.zap2xmlrc west.zap2xmlrc

/epg/east.zap2xmlrc
start=0
days=14
ncdays=0
ncsdays=2
retries=2
user=username+east@gmail.com
pass=password
cache=/epg/east1
lang=en
outfile=/epg/east.xmltv

outformat=xmltv

/epg/west.zap2xmlrc
start=0
days=14
ncdays=0
ncsdays=2
retries=2
user=username+west@gmail.com
pass=password
cache=/epg/west1
lang=en
outfile=/epg/west.xmltv

outformat=xmltv

Now we will create the cron script that will continue to pull in new data:

touch zap2xml.sh

/epg/zap2xml.sh
#!/bin/bash
rm -f /epg/west.xmltv
rm -f /epg/east.xmltv
perl /epg/zap2xml.pl -C /root/epg/west.zap2xmlrc -L -b -T -F
perl /epg/zap2xml.pl -C /root/epg/east.zap2xmlrc -J /root/epg/west.xmltv -L -b -T -F

/usr/bin/cp -f /root/epg/east.xmltv "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/"

Change the permissions so we can launch it:

chmod 755 zap2xml.sh
./zap2xml.sh

Troubleshooting:

It suggested using the https perl module but it wasn't really a suggestion, it's required.

Also found another issue where I kept changing guide data, trying to find the right zip/channel number on the west coast and more and more channels would have the same data for 8 days straight.  To fix this I cleared the cache folders (/epg/west1 and /epg/east1).


So far so good and I will keep updating this as I test this further.


Sunday, August 19, 2018

iTunes crashes when downloading is processing the file

I ran into something weird.  I switched users in iTunes and all of a sudden anything I downloaded crashes.  Ok no big deal, I'll log out and switch to the original user.  Nope now happening all the time for all users.  I searched and there are a ton of try this try that out there but nothing worked. 

What ended up working for me was deleting the whole iTunes folder.  When I relaunched it, it created all the folders and everything was working again.

OS: Mac OS 10.12.6
iTunes 12.8.0.150

Wednesday, August 1, 2018

Facebook Business Page Name Change Denied No Matter What You Change It To

So after months and months of trying, I was ready to give up.  I tried every combo of ways of changing the name, but no matter what... Name Change Denied!  It was always a bot who replied.  You can tell for how fast it came back with the deny.  There was an option to appeal the deny, so I figured what the heck, worth a try.  Yea... nope.  I was lucky to even get a response.  Every appeal, I added a comment but no one from Facebook ever replied.  Then I got lucky.  Just searching google one day, I came across a community post that suggested how to get the bot to approve the page.  You would type your new name but also keep your old name separated by a hyphen.  Here's an example: "New Name - Old Name".  I was thinking to myself... "This is wayyyy to simple.  This is never going to work."

It worked....

I can confirm so far that this works.

Then in a week or so, change the name again by deleting the "- Old name".  Now you have the name you really wanted.

I'll update this post at a later date to confirm the 2nd name change also work.  I hope this helps someone like it helped me.

UPDATE: This worked perfect.  I didn't even have to delete the old name part.  I just merged the pages and done.

Wednesday, May 2, 2018

iTunes Err (stopped = 3050)

I got this error and it was acting like it couldn't get to the internet.  Even though every other app had internet access. I have determined that it was the endpoint protection/anti-virus software that I installed.  I disabled the firewall, still blocked.  I uninstalled it and it now works.  There weren't many google results for this error.  The few that were didn't help.  Hopefully this helps someone.

Wednesday, April 18, 2018

The Remote Session was Disconnected because there are no Remote Desktop License Servers available to Provide a License. - Remote Desktop Gateway Server

I was testing out the remote desttop gateway server role and everything was working fine.  Other projects came up and a remote desktop user cals were never added.  Now I'm getting this error.  Thankfully I came across this thread:

https://community.spiceworks.com/topic/490289-no-remote-desktop-license-servers-available-unable-to-login


I was able to login with an admin account after opening the run box (windows+r) and then running the command mstsc /admin

The /admin is the key piece you need.  Hopefully this helps you too!

Source: Windows Server 2016 Standard

Friday, October 20, 2017

How to unassociated a file type in Redhat/CentOS 7

They are located in:

/home/username/.config/mimeapps.list

Inside you should see the file type.  Remove and save it.  It should go back to how it was originally.

Friday, October 6, 2017

How to add remote disc to macOS 10.12

Open a terminal:

mac:~ user$ sudo defaults write /Library/Preferences/com.apple.NetworkBrowser EnableODiskBrowsing -bool true
Password:
mac:~ user$ killall Finder

Open Finder
Go to Devices
Select your hard drive
You should now see Remote Disc

Tuesday, September 26, 2017

Building a Media Server with Plex

I've been using Plex (www.plex.tv) for a while now but I just could never find the right setup. I think I'm getting closer so I decided I'm going to start documenting it here. Throughout my search, I've never found 1 page that says here is how you do it. Hopefully that will change with this page.

Step 1
Purchase a DVD or Bluray and then Rip it. For this step we are using MakeMKV (www.makemkv.com).  After installing and running it, put the disc in and have it start scanning the disc.  Once it loads you will see multiple lines that look the same. You want to select all lines that have a lot of chapters. That is one way of knowing it's the feature film.  We just don't know which is the language we want.

Step 2
Select the Subtitles of your language and the forced subtitles below the line you already selected. For example, sometimes you might find more than 1 english, so select them all. If you are unsure if the movie has subtitles, here is a google doc that people are updating. Click Here.  You can also set this language in the menus so it only checks the language you set when you open it.

Step 3
Go ahead and start the ripping process.  Once it's done, you'll either have 1 file or multiple ones.  If you have multiple ones you need to figure out which one is the one you want.  Download VLC Player and open it there.  Once you hit the title of the movie you'll know if it's the right language.

Step 4
Extracting subtitles would be the next thing to do.  This where things start to get tricky.  You'll need at least a Windows machine (maybe a Mac).

You need to download:
  • https://mkvtoolnix.download/
  • https://www.videohelp.com/software/Subtitle-Edit
Next thing is to open back up VLC and turn the subtitles on and off one at a time.  Based off the google doc, some lines tell you which track # was the forced subtitles.  This just takes a little trial and error.  Once you figure it out, open mkvtools and open the mkv.

Select the track subtitle and click extract.  Once it's done, you're going to open it in Subtitle-Edit.  It will allow you to review your subtitles and then it exports it as a srt.  Copy it to the folder where your movie will be.  We will rename it to The_Exact_Name_of_the_Movie.language.forced.srt.  Plex will know its forced and auto select it.

Step 5
We need to convert the mkv to something that will direct play.  I've fought with this a lot always trying to rip it as high of quality as I can so it looks good on any screen.  The only problem is by doing that it buffers a ton or it has to transcode.  My new goal is to get everything where they play without transcoding and still look good.

I used the sickbeard_mp4_automater (Link) to convert it to mp4.  Here is my code:

autoProcess.ini
[MP4]
ffmpeg = C:\Users\Username\Desktop\sickbeard_mp4_automator-master\ffmpeg.exe
ffprobe = C:\Users\Username\Desktop\sickbeard_mp4_automator-master\ffprobe.exe
threads = auto
output_directory = 
copy_to = 
move_to = 
output_extension = mp4
output_format = mp4
delete_original = False
relocate_moov = True
video-codec = h264,x264
video-bitrate = 8000
video-crf = 
video-max-width = 
h264-max-level = 
use-qsv-decoder-with-encoder = True
ios-audio = True
ios-first-track-only = True
ios-audio-filter = 
ios-move-last = False
max-audio-channels = 
audio-codec = ac3,mp3,dts,dca,aac
audio-language = eng
audio-default-language = eng
audio-channel-bitrate = 256
audio-filter = 
audio-copy-original = False
subtitle-codec = srt
subtitle-language = eng
subtitle-default-language = eng
subtitle-encoding = 
fullpathguess = True
convert-mp4 = False
tagfile = True
tag-language = en
download-artwork = Poster
download-subs = False
embed-subs = False
embed-only-internal-subs = False
sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles
permissions = 0777
post-process = False
pix-fmt = 
aac_adtstoasc = False
preopts = 
postopts = 
Couple of things to note:
video-bitrate I leave blank when I am testing out something.  That way it doesn't have to re-encode so its faster testing.  I'm still testing but size vs quality, I'm thinking Bluray will be around 8000 and DVDs will be around 3000.

I scrapped all of the sickbeard stuff for right now.  It's quality was ok but file sizes were still huge.  I have switched over to handbrake.  I'm doing super high quality for Blurays and High Quality for DVDs. I've been super happy with quality.

Some additional Links worth tagging:


ShareThis