What are you doing with your Qnap?

Don't miss a thing. Post your questions and discussion about other uncategorized NAS features here.
Locked
jman311
Starting out
Posts: 14
Joined: Sat Nov 24, 2018 3:37 pm

Re: What are you doing with your Qnap?

Post by jman311 »

Recently got mine up and running (TVS-882) to replace my aging and near-capacity Synology, so far I've been using it for ...
- Primary storage for all my families media, photos/videos, documents, etc
- Automated backup running Crashplan Pro in Docker
- Quiet moments of admiration
- Plex Media Server, using an HDHomeRun w/PlexPass DVR (to replace my Tivo)
- Handbrake CLI in Docker for encoding Plex recordings to MKV in DVR post-processing
- IP Camera NVR storage/backup (on SSDs)
- A few Windows Containers

Future Plans:
- Run SQL 2017 in Docker
- Run OpenHAB in Docker (considering migration from Vera/PLEG)
- Run Ubiquiti Unifi in Docker
- Add a GPU, use Windows 10 Virtualization
- CPU upgrade
- Plex 4K transcoding
- Automated downloading with SFTP (?)
- World domination
Richz7
Starting out
Posts: 33
Joined: Fri Sep 07, 2018 6:59 pm
Location: UK

Re: What are you doing with your Qnap?

Post by Richz7 »

jman311 wrote:I read this ^ as sweatshop. :shock: Completely different meaning.

"- World domination"
<chuckles>

As for World Domination, That's my line - with and IBM S/370 running SAP R/2.

(For those young dino's amongst us an IBM S/370 is a mainframe from the 1960's-70's. SAP R/2 is the first version of the worlds best ERP system before it was made easy( :geek: :shock: ) to use.....)

Image
Thanks and Regards,

Rich
36Tb Raid 5 TVS-673
kluge9
First post
Posts: 1
Joined: Sat Dec 24, 2016 12:21 am

Re: What are you doing with your Qnap?

Post by kluge9 »

jman311 wrote: Thu Jan 31, 2019 7:01 am - Plex Media Server, using an HDHomeRun w/PlexPass DVR (to replace my Tivo)
- Handbrake CLI in Docker for encoding Plex recordings to MKV in DVR post-processing
Question, jman. Any advice you have on setting this up? I'm learning my way through some Linux (I'm GUI-spoiled) as these 2GB DVR files are unnecessary with PlexDVR.

Thanks.
Sa9aX
Getting the hang of things
Posts: 73
Joined: Thu Sep 27, 2018 6:56 am
Location: Australia
Contact:

Re: What are you doing with your Qnap?

Post by Sa9aX »

Hi

On my TS-251+ I use it for:

1. Watch TV and recording TV Programs (TVHeadend)
2. Storage - Music, Videos, Photos, Apps, Guides
3. Servers - OwncloudX, Wordpress, QMadsonic, Plex Media
4. System - Linux
5. Surveillance Station - Security Cams
6. DLNA Media Server
7. Multimedia Management (Video Station, Music Station, Photo Station)

Regards
Sal.
jman311
Starting out
Posts: 14
Joined: Sat Nov 24, 2018 3:37 pm

Re: What are you doing with your Qnap?

Post by jman311 »

kluge9 wrote: Thu Feb 21, 2019 7:48 am
jman311 wrote: Thu Jan 31, 2019 7:01 am - Plex Media Server, using an HDHomeRun w/PlexPass DVR (to replace my Tivo)
- Handbrake CLI in Docker for encoding Plex recordings to MKV in DVR post-processing
Question, jman. Any advice you have on setting this up? I'm learning my way through some Linux (I'm GUI-spoiled) as these 2GB DVR files are unnecessary with PlexDVR.

Thanks.
So it sounds like you already have Plex DVR set up. I realized I misspoke, am currently using the QPKG version of the HandBrake_CLI (I am using the version 1.1.2, found here: https://www.qnapclub.eu/en/qpkg/320 ). There is also a docker option for Handbrake I referred to, I originally started down that path and will probably go back to it when I have some time, but I am not using it currently.

I pieced together how to set this up mostly from posts on this and the Plex site, and combined them with my own notes during install. I originally tried to create my script file in Windows and copy it over to the NAS, that caused all sorts of formatting issues, so I found it much better to install and use the QNAP Text Editor app. I am learning Linux as well!

--
Create a script called plex_pp.sh using UTF-8 (without BOM) encoding in Text Editor on the QNAP interface directly.

Save the file here: /share/Config/Plex/Scripts/plex_pp.sh

Navigate to the location and set file permissions on the script:

Code: Select all

chmod 777 plex_pp.sh
Then right-click the file in QNAP File Manager, and enable Execute permissions. File should now appear with an asterick at the end when viewed with ls command (e.g. plex_pp.sh*).

Here is the script. Adjust for any path variations and encoder preset options, if necessary:

Code: Select all

#!/bin/bash

lockFile='/tmp/dvrProcessing.lock'
inFile="$1"
fileRoot=${inFile%.ts}
outFile="$fileRoot.mkv"
dvrPostLog='/tmp/dvrProcessing.log'
time=`date '+%Y-%m-%d %H:%M:%S'`
handbrake=/usr/bin/HandBrakeCLI

echo "'$time' Plex DVR Postprocessing script started" | tee $dvrPostLog

# Check if post processing is already running
while [ -f $lockFile ]
do
    echo "'$time' $lockFile' exists, sleeping processing of '$inFile'" | tee -a $dvrPostLog
    sleep 10
done

# Create lock file to prevent other post-processing from running simultaneously
echo "'$time' Creating lock file for processing '$inFile'" | tee -a $dvrPostLog
touch $lockFile

# Encode file to MKV with HandBrakeCLI
echo "'$time' Transcoding file '$inFile' to new file '$outFile'" | tee -a $dvrPostLog
$handbrake -i "$inFile" -o "$outFile" --preset="HQ 1080p30 Surround"

# Remove original .ts. file
echo "'$time' Removing original file '$inFile'" | tee -a $dvrPostLog
rm -f "$inFile"

#Remove lock file
echo "'$time' Complete! Removing lock for '$inFile'" | tee -a $dvrPostLog
rm $lockFile

exit 0

Finally, set the Post-Processing Script path in Plex under the DVR & List TV settings (/share/Config/Plex/Scripts/plex_pp.sh)

Once a recording is complete, the script should kickoff and create an MKV version of the file, and delete the original. Then Plex will then move the folder to the Plex DVR library. While the script is running, you'll see that the recording sits at a 100% complete status until the encoding is done.

Hope this helps!
J
pconpcs
New here
Posts: 4
Joined: Wed Mar 13, 2019 3:13 am

Re: What are you doing with your Qnap?

Post by pconpcs »

Mr_Badger_seth wrote: Sun Jan 27, 2019 7:26 pm Mainly storage and backup at the moment from the laptops and PC's
Films and TV shows on plex
Photos

AND running a small Minecraft server via kitemtic(1.12.2) and Zuzkins (1.13.2) minecraft dockers.

So good.

But I need to find out how to unlock the possibilities of this box, I have a mate who is an IT tech and was blown away by it.
Hey Badger... I'm struggling a bit setting up my minecraft server on my TS451. I think it has something to do with my virtual switch setup... can you send me a screenshot of yours? Or describe it? Thx!
User avatar
jaysona
Been there, done that
Posts: 846
Joined: Tue Dec 02, 2008 11:26 am
Location: Somewhere in the Great White North

Re: What are you doing with your Qnap?

Post by jaysona »

Network file server (of course)
Web server
email server
sql database server
OpenPHT
plex server w. tautulli
ffmpeg & mkvtools
torrent (QTransmission)
VM server for dev stuff
xmpp server
webmail server (separate from web server above)
dns
RAID is not a Back-up!

H/W: QNAP TVS-871 (i7-4790. 16GB) (Plex server) / TVS-EC1080 (32Gig ECC) - VM host & seedbox
H/W: Asustor AS6604T (8GB) / Asustor AS7010T (16GB) (media storage)
H/W: TS-219 Pro / TS-509 Pro
O/S: Slackware 14.2 / MS Windows 7-64 (x5)
Router1: Asus RT-AC86U - Asuswrt-Merlin - 386.7_2
Router2: Asus RT-AC68U - Asuswrt-Merlin - 386.7_2
Router3: Linksys WRT1900AC - DD-WRT v3.0-r46816 std
Router4: Asus RT-AC66U - FreshTomato v2021.10.15

Misc: Popcorn Hour A-110/WN-100, Pinnacle Show Center 250HD, Roku SoundBridge Radio (all retired)
Ditched QNAP units: TS-269 Pro / TS-253 Pro (8GB) / TS-509 Pro / TS-569 Pro / TS-853 Pro (8GB)
TS-670 Pro x2 (i7-3770s 16GB) / TS-870 Pro (i7-3770 16GB) / TVS-871 (i7-4790s 16GB)
UlyssesWolf
New here
Posts: 4
Joined: Tue Jul 17, 2018 3:21 am

Re: What are you doing with your Qnap?

Post by UlyssesWolf »

Storage for all my Movies, TV shows, music & Photos. (My Nvidia Shield is my Plex Server).

But since it’s on 24/7/365, I have a container running an Alpine Linux Seti@home app. Might as well use those unused cpu cycles for something!
User avatar
dolbyman
Guru
Posts: 34903
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: What are you doing with your Qnap?

Post by dolbyman »

while I also do seti crunching (making gridcoin in the process)

remember ..an idle system uses less energy than a system used for boinc (or any other cpu intensive task)

that excuse worked halfway in the late 90s ..not anymore
Locked

Return to “Miscellaneous”