NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 2 3 4 5 6 … 56 Next »
NextPVREncoder

 
  • 0 Vote(s) - 0 Average
NextPVREncoder
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2012-10-18, 11:24 PM
NextPVR Encoder

Download / Source Code located at github. Click the "Downloads" button on that page to grab the latest version.

Description
Simple little tool for reencoding your recordings after they have finished recording, will update your NPVR database with the new filename and delete the original recording.
It uses Handbrakecli.exe to do the encoding (which is the bulk of the download).

Why Would You Use It?
# If you wanted to convert your ts files to a easier to use format like MKV.
# If you had a device that couldn't playback ts files
# If you wanted to store your recordings in a format that used less space

How To Use
1. Download from github
2. Extract to your "scripts" directory in NPVR (in Windows 7 location is -> C:\Users\Public\NPVR\Scripts)
extraction should put PostProcessing.bat into the directory C:\Users\Public\NPVR\Scripts and a subdirectory called "NextPVREncoder" into that directory
3. Open NextPvrEncoder.exe.config in your favourite text editor (I use notepad++), change "connstr" value if your database isnt located to "C:\Users\Public\NPVR\npvr.db3"
4. Your done.

NOTE: If you already have a PostProcessing.bat file, you will need to make a backup of that and combine the two files

Features
# Will queue recordings for reencoding, so if a encoding is already taking place when another recording finishes, the new recording will be added to the queue and processed after the other one is completed. This stops you from having too many encodings happening at once.

To Keep Original Files
Open NextPvrEncoder.exe.config and set "deleteoriginal" to "false"


This isn't a big util, I don't expect a lot of people to use it, it's just something I use and find easier to backup recordings. I convert all mine to MKV files, they playback better on my RaspberryPI and it's easier to edit a recorded movie in a MKV file than a TS. Once its in MKV I usually trim the start/stop and archive the movie.
smajor
Offline

Posting Freak

Posts: 840
Threads: 115
Joined: Feb 2006
#2
2012-10-19, 12:11 AM
I'll use it! I prefer mkv files too. I've manually converted thinks I've recorded to save as mkv with Handbrake. How are the output sizes compared to TS?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2012-10-19, 12:36 AM
SD ones are about half i think, HD about 70-80%.

you can change the handbrake command to whatever you like in the config file, its basically "Normal" preset but with 2 audio tracks, the original plus an aac one. (Normal present only has stereo aac, i wanted to keep the original which is usually ac3 5.1 where i live)
jam_zhou
Offline

Senior Member

Posts: 632
Threads: 179
Joined: Sep 2005
#4
2012-10-23, 05:51 PM
Do you guys know if Handbrake can de-interlace with decomb/de-interlace on - does it do this automatically? When I try Handbrake with the decomb it still takes about 25 min for a 60 min show on my I7 (my dual core is able to do it in 35 min). I try to keep my encodes to below 15 min/hour which I can achieve with mencoder (but no interlacing). In mencoder I can enable threads with the x264 codec and I can see the difference as I enable more cores.
E6400, 2 GB RAM ,500 GB + 250 GB HD, PVR150+ Adaptec 3610, RW 2 + HIP, Antec 2480 w/ mini ninja ...still using v 0.99
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#5
2012-10-28, 03:44 AM
I loaded this up and am going to give it a go......
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#6
2012-10-28, 03:02 PM
I am using the iPad pre-config....I discovered the line in the config that was commented out that was using a preset had an incorrect format.... you need to use --preset not -preset. When I just went with the default the conversion ran but the file size was all but the same size as the .ts file.

<add key="encoderParameters" value="-i &quot;{0}&quot; -o &quot;{1}&quot; --preset=&quot;iPad&quot;" />
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2012-10-29, 07:47 AM
yeah i had to remove the second dash from the comment as comments do not allow "--" in an xml file, since thats the begin of a close comment statement.

personally im not to worried about file size, just after a better container and playback on a pi.

but you can make it whatever you like, just a simple little tool.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#8
2012-10-29, 05:14 PM
reven Wrote:yeah i had to remove the second dash from the comment as comments do not allow "--" in an xml file, since thats the begin of a close comment statement.

personally im not to worried about file size, just after a better container and playback on a pi.

but you can make it whatever you like, just a simple little tool.

I have a bunch of stuff that will fire through tonight.....but one thing I remembered after one recording last night.....sometimes the .ts files do not have the correct header info and handbrake can't process them.....which is fine......but I think I recall that most of mine end up that way. We'll see what happens.

I updated the script to capture info in a set of logs....one for general processing info and the other for handbrake specific info. Below is my postprocessing.bat file and attached is an example of the two logs.

Code:
@echo off

rem *** This is the log directory ***
set log_dir=D:\Users\Public\NPVR\Logs\

echo ********* >>"%log_dir%%~n1_process.log"
echo    Handbrake Process Started... %date% %time% >>"%log_dir%%~n1_process.log"

cd /d "D:\Users\Public\NPVR\Scripts"
NextPvrEncoder\NextPvrEncoder %1 >>"%log_dir%%~n1_handbrake.log"

echo    Finished Handbrake processing... %date% %time% >>"%log_dir%%~n1_process.log"
echo ********* >>"%log_dir%%~n1_process.log"

One thing I noticed in this transcode was the line below....Is that coming from your app? I was watching the transcoded file and it was about 500mb.....the original was 3.3gb so I am not sure why this message came out? If this is your app....is this configurable?

Output file size is too small, assuming transcode failed
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#9
2012-10-29, 08:33 PM
UncleJohnsBand Wrote:I have a bunch of stuff that will fire through tonight.....but one thing I remembered after one recording last night.....sometimes the .ts files do not have the correct header info and handbrake can't process them.....which is fine......but I think I recall that most of mine end up that way. We'll see what happens.

I updated the script to capture info in a set of logs....one for general processing info and the other for handbrake specific info. Below is my postprocessing.bat file and attached is an example of the two logs.

Code:
@echo off

rem *** This is the log directory ***
set log_dir=D:\Users\Public\NPVR\Logs\

echo ********* >>"%log_dir%%~n1_process.log"
echo    Handbrake Process Started... %date% %time% >>"%log_dir%%~n1_process.log"

cd /d "D:\Users\Public\NPVR\Scripts"
NextPvrEncoder\NextPvrEncoder %1 >>"%log_dir%%~n1_handbrake.log"

echo    Finished Handbrake processing... %date% %time% >>"%log_dir%%~n1_process.log"
echo ********* >>"%log_dir%%~n1_process.log"

One thing I noticed in this transcode was the line below....Is that coming from your app? I was watching the transcoded file and it was about 500mb.....the original was 3.3gb so I am not sure why this message came out? If this is your app....is this configurable?

Output file size is too small, assuming transcode failed

I updated to version 9.8 of Handbrake and the output file size too small message went away.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#10
2012-10-30, 12:24 AM
reven Wrote:This isn't a big util, I don't expect a lot of people to use it, it's just something I use and find easier to backup recordings. I convert all mine to MKV files, they playback better on my RaspberryPI and it's easier to edit a recorded movie in a MKV file than a TS. Once its in MKV I usually trim the start/stop and archive the movie.

I often think about using something like this for the reasons you list above, but never dared as I was always worried comskip would no longer work.
I know it is possible to run comskip and comcut and take out the ads, then do the transcoding thing, but it seems messy.
If you convert it, can you THEN run comskip on the resultant mkv and get the same result ,and will NPVR skip as well as TS files (and FF etc?)

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode