Cayars - Setup walk through and some tips and tricks

@jjross

Probably the best way to learn about recovery (few ways) is to do a quick read of the FAQ page on SnapRAID’s site. http://www.snapraid.it/faq
If you have any questions feel free to come back and ask and if I can answer I will.

SnapRAID has a feature called SCRUBBING that compares the media to the hashes stored. Taken from the manual:

To periodically check the data and parity for errors, you can run the “scrub” command.

snapraid scrub

This command verifies the data in your array comparing it with the hash computed in the “sync” command.

Every run of the command checks about the 8% of the array, but not data already scrubbed in the previous 10 days. You can use the -p, --plan option to specify a different amount, and the -o, --older-than option to specify a different age in days. For example, to check 5% of the array older than 20 days use:

snapraid -p 5 -o 20 scrub

If during the process, silent or input/output errors are found, the corresponding blocks are marked as bad in the “content” file, and listed in the “status” command.

snapraid status

To fix them, you can use the “fix” command filtering for bad blocks with the -e, --filter-error options:

snapraid -e fix

Hope that helps,
Carlo

@cayars
From previous images of your setup, I think I’ve seen arrays of USB-discs but when I read the recommendations on SnapRAID they do not recommend USB-discs.
You haven’t had any problems with that?
// T

Good question.

I don’t recall ever reading anything about network or USB drives being an issue with SnapRAID.

From my experience and from looking at the code I don’t see why it would matter in the least. As long as the program can access the data in order to hash the files it really doesn’t care.

I don’t use those dozen 4TB drives anymore like that. I gutted them and put them in 8 bay DAS units for a bit more tidy setup. Plus they are plug and play. However, I still connect these 8 bay boxes via USB.

I’ll also note, I store my parity on network shares residing on WD NAS boxes.

So in a nutshell I’m using about a dozen USB drives and 2 network drives as part of my SnapRAID setup.
Works just fine.

Hope that helps,
Carlo

@cayars said:
Good question.

I don’t recall ever reading anything about network or USB drives being an issue with SnapRAID.

I just found a note of it in the FAQ:
Which hardware configuration is recommended?

For best performance it’s recommended to have all the disks connected with SATA and not with USB.

@cayars said:

@don.alcombright said:
Awesome and thank you. I am in the process of step 1, it found about 15 movies only. Once those are done I will hit you up :), would you prefer this thread or PM?

Once you process these15 movies do the same thing for a message that follows dealing with 10 bit videos. It’s in a message about 10 back or so but the key for this is the following transcode.txt file:

Create a text file call transcode.txt and put the following inside the text file:
.open ‘C:\PlexData\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db’
.output Transcode.bat
select ‘C:\Convert\ffmpeg -i "’ || file || ‘" -c:v libx264 -c:v libx264 -preset slow -crf 18 -acodec copy -map 0 -profile:v high -level 4.0 “C:\convert\done' ||
replace(file, rtrim(file, replace(file, '', ‘’ ) ), ‘’) || '”’
FROM media_parts join media_items
on media_parts.media_item_id=media_items.id
where media_parts.extra_data like ‘%AVideoProfile=high%%2010%’
order by file
limit 100;

That will search your database for any videos that are encoded with 10 bit video which also causes transcodes for many clients. Adjust the contents and paths above as needed.

This one will be good to run from time to time as the conversion scripts will just remux any video already in h.264 format.

I’ll probably make some changes to the python scripts to transcode these types of files instead of doing a remux. Just need to dig in. :slight_smile:

Also need to take a look a the level that’s passed through, too. I couldn’t figure out why I had some media transcoding. Digging in a little deeper, I found each of the files were already H264, but used level 4.1 and not level 4.0. They had been remuxxed and not checked for levels.

Not sure where this check needs to be done, but I’m sure you know where it’s all buried in the scripting… :slight_smile:

Yea, not sure we should take a possible downgrade on quality by doing a transcode for just a 4.1 level. This is very common these days and very few devices have an issue with 4.1. Mike do you have any idea what the device was? Was it an old IOS device?

With that said, if we do have to transcode I do use a 4.0 level.

It’s pretty easy to modify the above SQL input int transcode.txt to check for the level. If anyone needs this let me know and I whip up the SQL for this.

Carlo

The device is the Vizio TV of mine… So I knew right away it was happening, and why…

So your Vizio will only play 4.0 and not 4.1 encoded video h.264?

I wonder if this is really a TV thing or a Plex XML thing. Can you play the same movie on the TV if you put it on a flash disk and directly attach it to the TV?

What model TV if you happen to know (can cheat and look in Plex device list).

It’s an E40-C2 (MTK) running the Opera app. There are a lot of other issues with the app, so I have sort of chalked it up to the other problems people have been having with it. At least the TV can see the server which is a lot better then some folks are experiencing with their TV and the client app.

Just put the show onto a thumb drive and it’s playing fine with the built in app on the TV. There are a lot of things the TV can play itself, that the app can’t play without transcoding. Almost everything I have in 1080p gets transcoded down to 720, yet the TV itself is 1080p capable. It’s the client app that is forcing this transcode. If I put the same movie onto a thumb drive and play it with the TV’s native player I get the movie or show perfectly.

And, of course, this is the client app 2.4.36 since the Team rolled back 2.5.1 a while back, which did fix a lot of the forced transcodes I was having for the short time that version was available.

For some reason the transcodes are slowing way down, but I seem to be converting a fair number of XVid, too, so that might be part of the reason. XVid seems to take a huge chunk of CPU as well as a lot longer to convert than a lot of other codecs. Trying to convert something at the same time I’m transcoding something means I get a lot of slow transcodes and some buffering.

Ouch, sounds like it’s mainly a Plex client problem.

I have no idea how this works as I don’t have a TV that uses Opera nor do I follow that part of the forum to keep up with it.

Have you checked to see if it’s possible to modify the client profile XML files on your server for this? I know you can do this for some client profiles.

Out of curiosity can you use the built in web browser on the TV to access your Plex server and play something back? If so does it transcode also or play in 1080p direct play? How about via DNLA?

Not that this will be of any help but I’m just curious. :slight_smile:

Carlo

Yeah, I wish this TV had a built in web browser… I get the Yahoo apps they want me to have, and a real web browser isn’t one of them… Hey, the TV was a good deal… I paid $100 for it and it was pretty new when I got it. (Someone leaving Alaska early and had no way to get the TV south.)

I’ve kind of looked the xml profiles, but they would get changed the very next time I get a server update, too… :confused:

I have a Plex Home so DLNA is out…

This TV represents almost 95% of all transcodes the system requires now, so I would love to get this resolved. but I’m not going to worry about it for right now. I just brought up the 4.1 issue as I know it’s causing problems with some other clients.

@MikeG6.5 said:

I have a Plex Home so DLNA is out…

Why?

@cayars first off, impressive setup and collection!

I had a read through your first post and have to confess I’v skipped to the end - but have you seen https://forums.plex.tv/discussion/178320/plex-remote-transcoder-a-distributed-transcoding-backend-for-plex#latest ?

It’s in development but allows you to pass off transcode to other servers on your LAN - which would help you with your transcode issue maybe?

Yep you skipped a whole lot in this thread. I’ve been working on something similar but much more powerful. I have it running for Emby but need a couple adjustments for Plex as it does some things differently.
I’ve been stuck on a work project and haven’t had time to work on it lately.

Work is clearly less important than giving us plebs your new code.

@cayars said:

@MikeG6.5 said:

I have a Plex Home so DLNA is out…

Why?

Mom…

@vanstinator said:
Work is clearly less important than giving us plebs your new code.

Clear that with my boss and we’ll be A-OK. :slight_smile:

@MikeG6.5 said:

@cayars said:

@MikeG6.5 said:

I have a Plex Home so DLNA is out…

Why?

Mom…

Enough said!

@cayars said:
Here’s another useful thing to do:

Install the Unofficial Appstore channel.  Information is located here https://forums.plex.tv/topic/25523-unsupported-as-in-totally-unofficial-appstore/

page not found

I know there was a problem for while.

Try this: http://www.thestreamingadvisor.com/2014/04/30/how-to-install-the-plex-unsupported-app-store/

Would you guys want me to setup a small blog with much of this info in it?
It could make a lot of this info easier to find and “tag”.