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 … 236 237 238 239 240 … 433 Next »
Question: record and convert?

Question: record and convert?
haste18
Offline

Junior Member

Posts: 19
Threads: 7
Joined: Oct 2013
#1
2013-10-14, 09:51 AM
Hi guys,

I'm already recording high quality live streams (.TS / mpeg). One hour tv will be around 5 gb.
I'm trying to figure out if it's possible to automatically save the same stream as a smaller size video (MP4 / AVI) for sharing (ie. YouTube) or automatically convert the TS after the record has completed?

Anybody who can tell me if an option like this is available?

Thanks!

Ruud
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2013-10-14, 04:06 PM
There is nothing built-in that will do this for you. Some people do this though, by running a command line conversion utility in PostProcessing.bat (which runs automatically after the recording competes).
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#3
2013-10-14, 06:41 PM
I used ffmpeg to convert recordings in PostProcessing.bat for a while, got the size down to 1/3 without losing any visible quality, but the drawback is that ffmpeg tends to crash if there is a glitch in the recording, so I wouldn't recommend it.

"I'd rather have a bottle in front of me than a frontal lobotomy"
Waynesm
Offline

Member

Posts: 107
Threads: 27
Joined: Mar 2009
#4
2013-10-14, 09:16 PM
NextPvrEncoder: I use this with Handbrake. Although now no longer under development works well as is for me.
http://forums.nextpvr.com/showthread.php...PVREncoder
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#5
2013-10-14, 10:01 PM
Waynesm Wrote:NextPvrEncoder: I use this with Handbrake. Although now no longer under development works well as is for me.
http://forums.nextpvr.com/showthread.php...PVREncoder
I also tried Handbrake, but found it incredible slow compared to ffmpeg. My plan now is to have a look at Mencoder...

"I'd rather have a bottle in front of me than a frontal lobotomy"
haste18
Offline

Junior Member

Posts: 19
Threads: 7
Joined: Oct 2013
#6
2013-10-15, 01:10 PM
Thanks for your replies.. I will try ffmpeg and see how things go for a while.
haste18
Offline

Junior Member

Posts: 19
Threads: 7
Joined: Oct 2013
#7
2013-10-16, 10:00 AM
Okay.. so I've figured out the way to manually convert my TS to MP4:
Code:
ffmpeg.exe -i input.ts -codec:v libx264 -profile:v high -preset fast -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -codec:a copy output.mp4

But now I need to to start this with PostProcessing.bat. I tried the following:
Code:
C:\ffmpeg\bin\ffmpeg.exe -i "%1" -codec:v libx264 -profile:v high -preset fast -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -codec:a copy C:\test.mp4

After recording the log file NRecord.log says:
2013-10-16 10:13:25.337 [DEBUG][7] Started recording (1038:10:\\Mxfserver\vo-klt\Engels\Diversen\Opnames\Manual Recordings\testett_20131016_10131014.ts)
2013-10-16 10:13:25.386 [DEBUG][7] No C:\Users\Public\NPVR\Scripts\ParallelProcessing.bat
2013-10-16 10:14:00.283 [DEBUG][7] Stopping recording (1038 on 21). Past end time of recording. 10
2013-10-16 10:14:00.377 [DEBUG][7] StopStream
2013-10-16 10:14:01.368 [DEBUG][7] Starting: C:\Users\Public\NPVR\Scripts\PostProcessing.bat "\\Mxfserver\vo-klt\Engels\Diversen\Opnames\Manual Recordings\testett_20131016_10131014.ts" 31 1038 21
2013-10-16 10:15:53.581 [DEBUG][7] Reloading recording schedule

But nothing happends. Any ideas? What am I doing wrong?
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#8
2013-10-16, 11:49 AM
I think the input parameter should be either "%~1" or %1, if you wish an output file with the same name but extension mp4 it should be "%~dpn1.mp4" as output.

"I'd rather have a bottle in front of me than a frontal lobotomy"
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#9
2013-10-16, 12:21 PM
No, "%1" is correct. "%~1" is invalid, and %1 without the quotes would break due to the space in the path ("Manual Recordings").

There's a couple of possibilities: one, when NRecord runs a .bat file, it's running as Local System, not your normal user. It could be that Local System doesn't have the permissions it needs to write the file to C:\. Try making a directory for it, and make sure Local System has permissions. Google "command prompt as local system" and you'll find a way to manually launch a command prompt with local system permissions so that you can test your batch file.

two, when NRecord runs a script the starting directory is not what you want it to be... I've forgotten what it is, might be c:\windows\system32 or something like that. you should start with a cd command to a valid directory, like "cd /d c:\temp" if you have a temp folder there, or "cd /d "%dp0"" if you want to run in the NPVR scripts directory.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,192
Threads: 958
Joined: May 2006
#10
2013-10-16, 12:24 PM
Yes root is a poor choice for testing, but the batch file will also fail on second attempts because it doesn't have the overwrite switch -y

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't watch certain channels on live tv (but can record) tvwatcher 4 2,291 2021-05-05, 06:23 AM
Last Post: tvwatcher
  Recordings with Next PVR 4.2.5 (CL0116) have background music but no voice in record DavidF 4 2,217 2021-01-07, 08:47 AM
Last Post: sub
  Possible to record in different format than .ts files? gadgetgaz 29 13,365 2020-10-04, 03:05 PM
Last Post: Ehrlichia
  Can't record repeating programs dave22 2 1,908 2020-04-20, 04:27 PM
Last Post: sub
  Windows 10 Record Issues Captain Jack 11 5,667 2020-02-02, 09:11 PM
Last Post: Captain Jack
  changing channels in guide - stupid user question mt900spg 2 1,629 2019-12-19, 01:30 PM
Last Post: mvallevand
  Record direct from live tv? rv0987 3 2,022 2019-11-01, 12:29 PM
Last Post: rv0987
  Won't Record with Windows 10 v. 1903 GWCowling323 5 3,557 2019-10-15, 03:51 PM
Last Post: mvallevand
  NextPVR - black screen when watching and can't record XC-3730C 5 3,124 2019-10-14, 05:08 PM
Last Post: sub
  Question about Channel Changing hdpvr-doug8796 6 2,566 2019-10-09, 06:24 PM
Last Post: hdpvr-doug8796

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

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

Linear Mode
Threaded Mode