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 … 242 243 244 245 246 … 433 Next »
temp1 was unexpected at this time.

temp1 was unexpected at this time.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#31
2013-10-02, 05:08 PM (This post was last modified: 2013-10-02, 05:24 PM by johnsonx42.)
I really wish someone would fix that SoftPVR install script and have it install to C:\SoftPVR. Installing under the NPVR directory just creates extra headaches, complicates troubleshooting, and implies SoftPVR is somehow related to NPVR which is completely false. The script itself is well written, but maybe a little too clever.

Ok, here's my cut at it... untested, but I all I did was set %npvrdir% to SystemDrive (usually c:\) and changed a few comments:
Code:
@ECHO OFF
@rem Modified by: PBS
@rem changed to install to C:\SoftPVR by johnsonx42
@echo.
@ECHO ********************************************************
@ECHO SoftPVR installer for Analog devices. (32 OR 64 bit OS)
@ECHO ********************************************************
@echo.

@rem         Check for admin rights and echo msg and exit if none.....
net session >nul 2>&1
    if %errorLevel% == 0 (
        @echo Success: Administrative permissions confirmed.
    ) else (
        @echo Failure: Current permissions inadequate. This script needs to be run with Admin priviledges..
pause
exit
    )
cd /d "%~dp0"
@echo.


@rem     This line detects 32bit or 64bit..
@IF DEFINED ProgramFiles(x86) (
set sysdir=Syswow64
set softnode=SOFTWARE\Wow6432Node
) else (
set sysdir=System32
set softnode=SOFTWARE
)
@echo This machine's system dir is "%systemroot%\%sysdir%"
@echo And it's software registry section is HKLM\%softnode%\NPVR
@echo.

@rem script used to install under NPVR program directory.  now just install to c:\softpvr (or whatever the systemdrive is)
@rem keeping "npvrdir" variable to avoid changing the rest of the script; change the next line if you want a different drive
set npvrdir=%SystemDrive%
@echo Installing to %npvrdir%\SoftPVR
@ECHO.

@ECHO Creating SoftPVR folder
@MD "%npvrdir%\SoftPVR\"

@ECHO Creating Temp folders
@MD "SoftPVR_temp1"
@MD "SoftPVR_temp2"
@ECHO.

@ECHO Extracting WinTV installer

@rem         This line lists dir for files starting with wintv7_cd_ by date and executes only newest one [regardless of filename ending] with params....
for /f %%f in ('dir /b /o:-d "wintv7_cd_*.exe"') do (
"%%~f" /x SoftPVR_temp1
goto :next
)

@rem             Missing wintv7_*.exe file error message...
@if errorlevel 1 (@echo.
@echo NO WINTV7_cd_*.exe file found!!!
@echo Download file first and place in C:\Temp
@echo [create dir if needed]
@echo.
pause
exit)
:next

@rem         Executing extracted wintv7setup.exe
"SoftPVR_temp1\WinTV7Setup.exe" /x SoftPVR_temp2

@ECHO.
@ECHO Copying required files
COPY "SoftPVR_temp2\hcw_mcl2ae.ax" "%npvrdir%\SoftPVR\"
COPY "SoftPVR_temp2\hcw_mcm2ve.ax" "%npvrdir%\SoftPVR\"
COPY "SoftPVR_temp2\hcw_mcmpeg2mux.ax" "%npvrdir%\SoftPVR\"
COPY "SoftPVR_temp2\hcw_mcmpgaout.dll" "%npvrdir%\SoftPVR\"
COPY "SoftPVR_temp2\hcw_mcmpgvout.004" "%npvrdir%\SoftPVR\"
COPY "SoftPVR_temp2\hcw_mcmpgvout.dll" "%npvrdir%\SoftPVR\"
@ECHO.

@rem These lines register filters, showing and pausing only if error occurs..
@ECHO Registering files

%SystemRoot%\%sysdir%\Regsvr32.exe /s "%npvrdir%\SoftPVR\hcw_mcl2ae.ax"
@if errorlevel 1 (@echo **** "%npvrdir%\SoftPVR\hcw_mcl2ae.ax" was NOT REGISTERED correctly!!!!! ********************&& pause)

%SystemRoot%\%sysdir%\Regsvr32.exe /s "%npvrdir%\SoftPVR\hcw_mcm2ve.ax"
@if errorlevel 1 (@echo **** "%npvrdir%\SoftPVR\hcw_mcm2ve.ax" was NOT REGISTERED correctly!!!!! ********************&& pause)

%SystemRoot%\%sysdir%\Regsvr32.exe /s "%npvrdir%\SoftPVR\hcw_mcmpeg2mux.ax"
@if errorlevel 1 (@echo **** "%npvrdir%\SoftPVR\hcw_mcmpeg2mux.ax" was NOT REGISTERED correctly!!!!! ********************&& pause)
@ECHO.

@ECHO Deleting Temp Folders
RD "SoftPVR_temp1\" /s /q
RD "SoftPVR_temp2\" /s /q
@ECHO.
@ECHO       Successful!!
@ECHO.

pause
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
kamran77
Offline

Junior Member

Posts: 17
Threads: 1
Joined: Sep 2013
#32
2013-10-04, 02:04 PM
Thanks for the updates. I registered all the .ax files in the SoftPvr directory and C:\Program Files (x86)\NPVR\ and got a message confirming successful registration. However, the problem remains and I am still getting the System.AccessViolationException error when trying to scan channels.

Any suggestions?

Btw, running these commands from the batch file work as well:

Code:
regsvr32.exe "C:\Program Files (x86)\NPVR\NPVRCCDump.ax"
regsvr32.exe "C:\Program Files (x86)\NPVR\NPVRPESCollector.ax"
regsvr32.exe "C:\Program Files (x86)\NPVR\NPVRTSMon.ax"
regsvr32.exe "C:\Program Files (x86)\NPVR\NPVRWriter.ax"
regsvr32.exe "C:\Program Files (x86)\NPVR\NPVRTSReader2.ax"
regsvr32.exe "C:\Program Files (x86)\NPVR\NPVRMP3Reader.ax"


regsvr32.exe "C:\Program Files (x86)\NPVR\SoftPVR\hcw_mcl2ae.ax"
regsvr32.exe "C:\Program Files (x86)\NPVR\SoftPVR\hcw_mcm2ve.ax"
regsvr32.exe "C:\Program Files (x86)\NPVR\SoftPVR\hcw_mcmpeg2mux.ax"
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#33
2013-10-04, 03:46 PM
File dependencies may have changed with the newer versions of the install CD.
Zeb
Offline

Senior Member

U.S.A.
Posts: 596
Threads: 2
Joined: Dec 2012
#34
2013-10-04, 06:36 PM
whurlston Wrote:File dependencies may have changed with the newer versions of the install CD.

At the 2.8a download link under Release Notes it says, "Moved application to use .NET 4.0 rather than .NET 2.0." Does that mean this won't work until the new version of NextPVR using 4.0 is released?
kamran77
Offline

Junior Member

Posts: 17
Threads: 1
Joined: Sep 2013
#35
2013-10-08, 01:48 PM
whurlston Wrote:File dependencies may have changed with the newer versions of the install CD.

Any link to the older versions? I am really in fix as wanted to gift a Media Server to a friend and her birthday has already passed Sad
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#36
2013-10-08, 02:00 PM
Zeb Wrote:At the 2.8a download link under Release Notes it says, "Moved application to use .NET 4.0 rather than .NET 2.0." Does that mean this won't work until the new version of NextPVR using 4.0 is released?

That should not matter. SoftPVR doesn't use the application (WinTV), just the software muxer filters. It doesn't matter which version of .Net the filters are using (they might not even be using any .Net version) because of the way they are being accessed. The only thing that matters are whether or not they are compiled for x86 (99.99% positive they are) or x64 (unlikely given the decoders that are used for the app are only available in x86 versions).
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#37
2013-10-08, 02:07 PM
It's possible that the name on the audio encoder (or the GUID depending on how sub loads it) in the SoftPVR package has changed which would explain why NextPVR can't find it.
Zeb
Offline

Senior Member

U.S.A.
Posts: 596
Threads: 2
Joined: Dec 2012
#38
2013-10-08, 03:19 PM
kamran77 Wrote:Any link to the older versions? I am really in fix as wanted to gift a Media Server to a friend and her birthday has already passed Sad

Version 2.2d should work, but I can't seem to find a link these days. Caution: Do not try WinTV6 because I'm almost certain it wouldn't work.

Just before the audio encoder error, your log in post #27 showed the program trying to force PAL resolution 720x576. Is it possible that you installed an NTSC driver version?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#39
2013-10-08, 05:49 PM
whurlston Wrote:It's possible that the name on the audio encoder (or the GUID depending on how sub loads it) in the SoftPVR package has changed which would explain why NextPVR can't find it.
No, it hasn't changed. The ones installed with the latest WinTV CD are still useable by NextPVR.

The components NextPVR uses from SoftPVR haven't been changed in years. They have updated WinTV to use .NET4, and updated the WinTV installer though.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,184
Threads: 958
Joined: May 2006
#40
2013-10-08, 09:38 PM
kamran77 Wrote:Any link to the older versions? I am really in fix as wanted to gift a Media Server to a friend and her birthday has already passed Sad

The fault is yours. If you would have bought a recommended Hauppauge analog card, you can legitimately install WinTV 7, and then you have had now problems in NextPVR

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  EPG Time shifi Brucek2839 14 4,363 2021-03-25, 08:45 PM
Last Post: Graham
  Recording service stopped or not running at scheduled time MattInetroit 3 1,974 2021-01-08, 12:03 AM
Last Post: mvallevand
  Possible to set the EPG source for more than one channel at a time? LeGrandZombie 15 8,440 2020-12-06, 02:15 AM
Last Post: pitbull1969
  Recording service not running at recording time Ricknextpvr 18 6,699 2020-03-26, 03:56 PM
Last Post: sub
  Time Offset for EPG? lagman 9 4,220 2019-04-24, 12:21 PM
Last Post: Rage321
  Problem with Pausing live TV for extended period of time jal# 60 15,854 2019-04-03, 12:39 PM
Last Post: mvallevand
  Recording service not running at recording time johnm 7 2,877 2018-11-26, 02:36 AM
Last Post: johnm
  NextPVR Refuses to record football games that start at the same time guyinco6nito 26 6,793 2018-11-12, 06:17 AM
Last Post: johnsonx42
  Recording and watching same time Jonsnow 2 1,555 2018-11-01, 11:32 AM
Last Post: Graham
  Audio not in time with video Brucek2839 2 1,377 2018-10-29, 01:19 AM
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