NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 181 182 183 184 185 … 433 Next »
Using NextPVR and encode as MP4 instead of TS file?

Using NextPVR and encode as MP4 instead of TS file?
totallytech
Offline

Junior Member

Posts: 9
Threads: 1
Joined: Jun 2015
#1
2015-06-15, 02:53 PM
Hey All,

I'm using the NextPVR software - its excellent however I'm attempting to re-encode it as an MP4 file instead of the TS file.
I've found a load of postprocessing scripts which are supposed to do this however they require handbrake to be installed.

Located here (http://www.sangera2.com/main/misc/nextpvr.html)

I've downloaded handbrake but I'm not sure how its supposed to run via the .bat file.

I was looking for anyone who already does this (even if its a totally different way) who could help me out?

What way do you do it?
Is there a more up to date version as I'm on Win7 and this link is for XP Smile
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2015-06-15, 03:22 PM
totallytech Wrote:... re-encode it as an MP4 file instead of the TS file.

The .ts is just a wrapper. The video content of the file is in the same format as the broadcast (for digital broadcasts) or in MPEG2 for analog captures (from a set top box, for example). In the UK SD broadcasts are in MPEG2 format and HD broadcasts are in H.264 (a.k.a MPEG4).

It may be that your ambition is to reduce the file size of the recording. Some use FFMPEG to achieve this ... but most of us just buy bigger disks.

A quick search of the forum found an example of a post processing batch file using FFMPEG ... your own search will find many more

http://forums.nextpvr.com/showthread.php...post467210

Edit: I have read that the version of FFMPEG that ships with NextPVR is a somewhat ancient. You may want to update it.
totallytech
Offline

Junior Member

Posts: 9
Threads: 1
Joined: Jun 2015
#3
2015-06-15, 03:56 PM
Hey,

I actually found a program called MCE buddy (v2.3.13) which is doing a great job of sorting it, however I'm having trouble getting to automate.

As of https://mcebuddy2x.codeplex.com/discussions/573577 The instructions are:

Quote:It is very simple to transcode or rename NEXTPVR files and update the NEXTPVR database. NEXTPVR already supplies the tool to update the DB all you need is a Post command.

make sure in the NEXTPVR config.xml you have <StoreSeparateMetadataXml>true</StoreSeparateMetadataXml> set to true.

PostCustomCommandPath=C:\MCEBuddySage\NPVRTOOLS\nsctripthelpertest.bat
PostCustomCommandParameters=""%sourcefile%" "%convertedfile%""
PostCustomCommandHangPeriod=300
PostCustomCommandCritical=true
PostCustomCommandUISession=false
PostCustomCommandShowWindow=false


nsctripthelpertest.bat

"C:\Program Files (x86)\NPVR\NScriptHelper.exe" -Rename "%~f1" "%~f2"
del "%~f1"
exit 0

If you do not feel comfortable deleting the original you can always have MCEBUDDY move it to an archive fiolder.

NScriptHelper.exe Does NOT move/rename the actual file, only updates the database.

***** this only works when it is setup locally on NEXTPPVR server ****

but its not overly clear -

What do I do with this code? Where is it supposed to go?

Quote:PostCustomCommandPath=C:\MCEBuddySage\NPVRTOOLS\nsctripthelpertest.bat
PostCustomCommandParameters=""%sourcefile%" "%convertedfile%""
PostCustomCommandHangPeriod=300
PostCustomCommandCritical=true
PostCustomCommandUISession=false
PostCustomCommandShowWindow=false

Is it supposed to be in the config.xml file as it doesnt look correct?

I've attempted to signup on the site I found this on but it keeps saying my reCAPTCHA was wrong - but I've tried about 30 times and also listened so it has stopped me creating an account and I'm stuck Sad
mikeh49
Offline

Posting Freak

Posts: 1,129
Threads: 81
Joined: Apr 2005
#4
2015-06-15, 04:35 PM (This post was last modified: 2015-06-15, 05:50 PM by mikeh49.)
A member on this forum has, I think, MCEBuddy doing exactly what you want. Try a forum search for MCEBuddy, that may find it. Unfortunately I can't remember the username of the guy that set it up.

Here's the thread:

http://forums.nextpvr.com/showthread.php...t=mcebuddy
HTPC: Optiplex 7010, HDHR Prime/Avermedia Duet A188, NPVR 4.2.5, Win10 Pro
Test:
pcostanza
Offline

Posting Freak

Posts: 3,778
Threads: 270
Joined: Oct 2004
#5
2015-06-15, 05:50 PM
I've not used any of the newer MCEBuddy but the old version I had didn't need any post processing files. I think you just listed the directory you save your recorded files too and as long as the MCEBuddy service is running, it will routinely check that folder and if it finds a file, it will then process it.
I'm sure the newer versions offer even more settings than the old version I have.


Paul


Custom ASUS Maximus X Hero, 16 GB Memory-ASUS GeForce 1050 Ti, H115i Pro AIO, 850W PS, CM H500P case, Corsair Vengeance RGB Ram, Samsung 970 EVO, HDHomerun Prime & Extend  Tuners- running Windows 10 (and other goodies)
madas
Offline

Member

Posts: 148
Threads: 20
Joined: Dec 2007
#6
2015-06-15, 06:10 PM (This post was last modified: 2015-06-15, 06:29 PM by madas.)
Here is what my postprocessing.bat looks like. You'll need to download comskip and sqlite3 for it to work. This will actually update the NPVR database as well to change the extension from .ts to .mp4. This is more basic than the scripts you were looking at but it has worked well for many years.

--------------------------------------
echo %1%
echo %1%
set infile=%1%
set outfile=%infile:~0,-3%mp4"
set infile2=%infile:~1,-1%
set outfile2=%outfile:~1,-1%

echo %date:~-4,4%-%date:~3,3%-%date:~-7,2% %time% INFILE: %infile% >> C:\Users\Public\NPVR\Scripts\PostProc.log
echo %date:~-4,4%-%date:~3,3%-%date:~-7,2% %time% OUTFILE: %outfile% >> C:\Users\Public\NPVR\Scripts\PostProc.log


C:\Users\Public\NPVR\Scripts\comskip\comskip.exe %infile%

"C:\Program Files\Handbrake\HandBrakeCLI.exe" --preset "AppleTV" -i %infile% -o %outfile%


C:\Users\Public\NPVR\Scripts\sqlite3.exe c:\users\Public\NPVR\npvr.db3 -cmd "UPDATE SCHEDULED_RECORDING SET filename='%outfile2%' WHERE filename='%infile2%'" < C:\Users\Public\NPVR\Scripts\blank.txt

waitfor -t 1800 abc

Echo %date:~-4,4%-%date:~3,3%-%date:~-7,2% %time% Deleting %infile% >> C:\Users\Public\NPVR\Scripts\PostProc.log
del /q %infile% >> C:\Users\Public\NPVR\Scripts\PostProc.log

--------------------------------------
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#7
2015-06-15, 07:23 PM
Note if you remove the ts file NextPVR clients will fail.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR - EPG Setup - XML/XMLTV EPG - Zap2it & Zap2xml Erdrick 126 141,220 2024-01-29, 01:07 AM
Last Post: stoenjes44
  NextPVR VOD through Kodi unmich 2 1,241 2023-06-18, 03:54 AM
Last Post: sub
  incorrect frequency in adelaide .ini file spin35 5 3,017 2023-02-01, 05:40 PM
Last Post: sub
  Can NextPVR switch graphics mode to best match content ? madbrain 2 2,161 2021-09-25, 02:25 AM
Last Post: madbrain
  NextPVR and Remote viewing MaxiBelas 2 1,679 2021-09-07, 05:29 PM
Last Post: sub
  Help with NextPVR evinahmad86 1 1,427 2021-07-23, 07:01 PM
Last Post: sub
  ts file shows length too long? SuttonWillow 2 1,904 2021-03-15, 01:56 PM
Last Post: mvallevand
  Epg setting SD token NextPvr 4.2.4 casimir@zyxu.ca 1 1,567 2021-03-05, 01:38 PM
Last Post: mvallevand
  NextPVR hangs when tuning to offline channel? CormacBaptiste 2 1,935 2021-02-03, 01:29 PM
Last Post: Graham
  NextPVR V4 Web Issue meccano 3 1,889 2021-01-30, 04:20 AM
Last Post: meccano

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

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

Linear Mode
Threaded Mode