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 … 278 279 280 281 282 … 433 Next »
extra logging

extra logging
jimbojones
Offline

Member

Posts: 54
Threads: 11
Joined: Jul 2012
#1
2012-12-13, 09:31 AM
Would it be possible, or indeed, is it already possible to include the tuner used for each specific recording in a log file somewhere, am having trouble with a dodgy tuner and i'm not sure which one it is, and it doesn't become evident for a while after the recording starts, making it difficult to catch.

cheers james
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2012-12-13, 12:29 PM
Not quite what you want but ... the System plugin will display all in-progress recordings together with the tuner that is doing each recording.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#3
2012-12-13, 04:16 PM
The log files already do list which tuner was used for each recording, but it's in with a lot of other info so can sometimes take a bit of an expert eye to find this info.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#4
2012-12-13, 04:55 PM
sub, is the tuner id passed to parallel/postprocessing.bat? %1=filename, %2=channel, %3=recording oid; maybe %4=tuner id? if not, could it in the next release? I've occaisionally wanted to know which tuner something happened on, and I already log from my parallelprocessing.bat lines like "Thu 12/13/2012, 6:30:02.60 - ParallelProcessing.bat invoked on "E:\Kids\Pecola\Pecola_20121213_06300700.ts" recorded from channel 31"
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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#5
2012-12-13, 05:11 PM
I just checked, and it is already passed to the PostProcessing.bat/ParallelProcessing.bat as the fourth parameter.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#6
2012-12-13, 07:15 PM
cool, I'll add that to my script then. I was thinking maybe it had already been added, I probably read about it at the time and then mostly forgot about it.

@Jimbojones:

you could put the following line at the beginning of ParallelProcessing.bat to get a nice log of all recordings:
Code:
echo %date%,%time% - Recording of %1 (id %3) on channel %2 started on tuner %4>> "%~dp0\recordings.log"

That will put the log file in the scripts directory; you can get rid of the %~dp0 and replace it with an absolute path if you want the log somewhere else.
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
jimbojones
Offline

Member

Posts: 54
Threads: 11
Joined: Jul 2012
#7
2012-12-13, 10:42 PM
Cheers , thats exactly what I was wanting Smile Smile ... just tried it and it works, except was expecting tuner name but got a number instead , 21 for example ?? , I only have two,I guess as long as they retain the same numbers I should be ok.Thanks again Smile
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#8
2012-12-14, 05:35 AM (This post was last modified: 2012-12-14, 05:39 AM by johnsonx42.)
you can ferret out which tuners are which by looking in your NRecord and/or NDigitalHost logs (or look in the database with sqlitespy if you are so inclined). Once you know which numbers correspond to which tuners, you can flesh out my example thusly:
Code:
set Tuner=%4
if %4==21 set Tuner=My capture device name #1
if %4==22 set Tuner=My capture device name #2
echo %date%,%time% - Recording of %1 (id %3) on channel %2 started on tuner %Tuner%>> "%~dp0\recordings.log"
(the initial "set Tuner=%4" just sets the Tuner name equal to the tuner number in case you later add/change tuners and don't update the batch file, else Tuner would be nul in that case; then the next two lines reset the tuner name based on the tuner number passed by NRecord)
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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording extra 0-byte .ts file seeker_ktf 6 2,663 2020-01-25, 08:40 PM
Last Post: seeker_ktf
  Extra local xmltv on the bulk map screen shqiperih 5 1,858 2018-07-07, 09:16 PM
Last Post: sub
  Zero-length recordings - Logging jcole998 0 863 2017-05-22, 02:17 PM
Last Post: jcole998
  Receive Warning When Logging Out that NextPVR is currently recording. wayloncovil 3 1,698 2015-08-14, 02:46 AM
Last Post: wayloncovil
  Comskip bug is leaving an extra file behind - prevents folder deletion HarryH3 3 1,646 2015-05-18, 07:28 PM
Last Post: jd1940
  turning up logging on postprocessing SickBoy 4 1,815 2014-10-06, 08:05 PM
Last Post: SickBoy
  "Extra" Devices toricred 2 1,940 2012-11-19, 11:16 AM
Last Post: Kiwi
  Back-to-back recordings on same channel - Padding and extra tuners ignored HarryH3 1 1,193 2012-02-11, 05:48 AM
Last Post: HarryH3
  [2.3.6] Excessive logging or unexpected behaviour? gEd 1 1,207 2012-01-18, 10:22 PM
Last Post: sub
  Differences in PTS logging bgowland 1 1,219 2011-09-10, 11:55 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode