NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT v
« Previous 1 … 19 20 21 22 23 … 115 Next »
No Skip (Most Times) on TS HD Recrodings

 
  • 0 Vote(s) - 0 Average
No Skip (Most Times) on TS HD Recrodings
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#21
2008-09-25, 10:17 AM
steveum Wrote:It has support for TS files.

Just tried the demo - may support .ts but not my local HD TS of h.264
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#22
2008-09-25, 02:23 PM
mvallevand Wrote:Just this

mencoder {SOURCE_FILE} -ovc copy -oac copy -of mpeg -o {DEST_FILE}

Discontinuity errors can be shown in vlc too if you turn on messages

Martin

Yeah when I use that command I get streams of errors:
Code:
BUFFER UNDEFLOW at stream 0, raising muxrate to 1980 kb/s, delta_scr: 223418

ERROR: scr 1.011, dts 0.000, pts 0.300

BUFFER UNDEFLOW at stream 1, raising muxrate to 2178 kb/s, delta_scr: 203107

ERROR: scr 1.185, dts 0.000, pts 0.364

ERROR: scr 1.335, dts 0.000, pts 0.396

ERROR: scr 1.478, dts 0.000, pts 0.428

BUFFER UNDEFLOW at stream 1, raising muxrate to 2395 kb/s, delta_scr: 184643

ERROR: scr 1.759, dts 0.000, pts 0.492

ERROR: scr 1.889, dts 0.000, pts 0.524

ERROR: scr 2.047, dts 0.000, pts 0.556

After a minute or so mencoder starts eating up all available memory. I must have some especially problematic TS files.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#23
2008-09-28, 12:45 AM
Well...I just bit the bullet and injected a process to remux my .ts recordings using tsremux.

I had already setup the SuperSimpleArchiver to move my locally recorded huge .ts files to my NAS so I added a few lines in the batch file prior to the moving that I run tsremux and then copy the new file over the original and then let the Archiver code make the move of the file and updated the location in gbpvr.

Although this adds an extra 10 minutes or so for hour long shows being able to consistently skip makes it worth it.
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
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#24
2008-09-28, 05:01 AM
UncleJohnsBand Wrote:Well...I just bit the bullet and injected a process to remux my .ts recordings using tsremux.

I had already setup the SuperSimpleArchiver to move my locally recorded huge .ts files to my NAS so I added a few lines in the batch file prior to the moving that I run tsremux and then copy the new file over the original and then let the Archiver code make the move of the file and updated the location in gbpvr.

Although this adds an extra 10 minutes or so for hour long shows being able to consistently skip makes it worth it.

Can you set up tsremux to output directly to the NAS? It might save some time.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#25
2008-09-28, 12:39 PM
mvallevand Wrote:Can you set up tsremux to output directly to the NAS? It might save some time.

Martin

Yes....I haven't decided if the overhead with writing directly over the network vs. writing locally and then copying is any better or worse....I updated the logging info in the archive process to spit out some times so I'll be able to do some comparisons now.

I'll update this when I have the results.
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
steveum
Offline

Member

Posts: 244
Threads: 43
Joined: Feb 2007
#26
2008-09-30, 04:33 PM
UncleJohnsBand Wrote:Well...I just bit the bullet and injected a process to remux my .ts recordings using tsremux.

Would mind sharing your postprocessing script? I am interested in trying out something similar.
Windows 7 Premium 32-Bit, Intel i5 750, ASUS P7P55D, 4gb ram, ATI RADEON HD 4550, 5 sata drives, HVR2250, HDPVR, COMSKIP, PCH A100, EGreat 34a, VideoReDo, SA 4240HDC
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#27
2008-10-01, 02:53 AM
steveum Wrote:Would mind sharing your postprocessing script? I am interested in trying out something similar.

It is actually coded as a Transcode option in the config.xml file. You then select a processing option for your files (i.e. mpeg, ts, etc.). Then GBPVR runs the script at the end of the recording.....I have mine set to start ASAP but you can schedule it run during certain hours.

In the gbpvr folder in the config.xml file I have this line in the <CustomFFmpegConversions> area...(I use this for my HD TS recordings):
Code:
<Conversion name="Archive to LinkStation" exe="Archiver\reloc.bat" cmd=" {SOURCE_FILE} &quot;\\lnkstn-bse65\Videos\TV\&quot;  &gt;archiver.log" targetExtension=".ts" />

In the gbpvr\third party\archiver folder (icreated the archiver folder) I have the reloc.bat file. It contains the following. This is a modified version of the SuperSImpleArchiver:

You will need to have the sqlite client in your gbpvr directory for the move of the recording to work.

I also commented out the line where I was calling tsremux....it was not doing as good as a job as I would like so I am experimenting with running videredo from a command line and just running the QuickStreamFix which seems to be working well.

My version writes individual archiver logs for each recording processed. The logs go to the gbpvr\third party\archiver\logs directory.

Code:
echo off
cls
if "%~1"=="" goto :help
echo ********* >>"third party\Archiver\Logs\%~n1_archiver.log"
echo Archive Process Started... %date% %time% >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo original - %~1 >>"third party\Archiver\Logs\%~n1_archiver.log"
set db=GBPVR.DB3
for /f "tokens=1,2,3,4,5,6,7,8,9,10 delims=\" %%d in ("%~1") do (
if not "%%d"=="" set filedir=
if not "%%e"=="" set filedir=%%d
if not "%%f"=="" set filedir=%%e
if not "%%g"=="" set filedir=%%f
if not "%%h"=="" set filedir=%%g
if not "%%i"=="" set filedir=%%h
if not "%%j"=="" set filedir=%%i
if not "%%k"=="" set filedir=%%j
if not "%%l"=="" set filedir=%%k
if not "%%m"=="" set filedir=%%l
)
echo Subdir is %filedir%\ >>"third party\Archiver\Logs\%~n1_archiver.log"
echo filename is %~nx1 >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo Remuxing... >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo    Starting...          %date% %time% >>"third party\Archiver\Logs\%~n1_archiver.log"
rem tsremux.exe %1 "%~nx1.remux.ts" >>"third party\Archiver\Logs\%~n1_archiver.log"
cscript //nologo "c:\program files\videoredoPlus\vp.vbs" %1 "e:\remux\%~n1.remux.ts" /t4 /d /q
echo    Finished remuxing... %date% %time% >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo    Copying remuxed file over original file... >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo    Starting...                      %date% %time% >>"third party\Archiver\Logs\%~n1_archiver.log"
copy /y "e:\remux\%~nx1.remux.ts" %1
echo    Finished copying remuxed file... %date% %time% >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo    Deleting temp remux file... >>"third party\Archiver\Logs\%~n1_archiver.log"
del "e:\remux\%~nx1.remux.ts"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo Remuxing completed... >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo Finding recording in GBPVR DB... >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
set oid=
for /f "usebackq tokens=1,2 delims=," %%v in (`sqlite3 "%db%" "SELECT oid FROM recording_schedule where filename like '%%%~nx1'; " `) do set oid=%%v
if "%oid%" EQU "" (
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo ******** That file is not in GBPVR database! >>"third party\Archiver\Logs\%~n1_archiver.log"
goto :eof
) else (echo sqlite Found oid - %oid% >>"third party\Archiver\Logs\%~n1_archiver.log")
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo File copy started... "%~nx1"  to  %~2%filedir%\%~nx1 ... >>"third party\Archiver\Logs\%~n1_archiver.log"
echo %date% %time% >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
rem  ********Actual copy operation..**********
if not exist "%~2%filedir%\" md "%~2%filedir%\"
echo on
for %%f in ("%~f1" "%~dpn1.edl" "%~dpn1.txt" "%~dpn1.srt") do (if exist %%f copy /Y %%f "%~2%filedir%\")
echo off
if not errorlevel 1 (
echo copy errors = %errorlevel% >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo %date% %time% >>"third party\Archiver\Logs\%~n1_archiver.log"
echo File copy Complete... >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
rem UPDATE DB with new path
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo Updating GBPVR DB with new file location... >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
@echo on
if exist "%~2%filedir%\%~nx1" sqlite3.exe -separator "," "%db%" "UPDATE RECORDING_SCHEDULE SET filename = '%~2%filedir%\%~nx1' where oid = '%oid%';"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo Removing old files from original directory... >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
if exist "%~2%filedir%\%~nx1" del  "%~f1" "%~dpn1.edl" "%~dpn1.txt" "%~dpn1.srt" >>"third party\Archiver\Logs\%~n1_archiver.log"
@echo off
) else (echo Copy problem! >>"third party\Archiver\Logs\%~n1_archiver.log")

rem ********** deletes old dir if no movies found...add .ext's you want to keep!!
rem  UNREM NEXT LINE TO SKIP ALL DELETION of source dirs
rem goto :eof
rem *********************SET THIS TO YES TO DELETE SOURCE DIR IF NO MOVIES LEFT
set deldir=no
if exist "%~dp1*.mpg" set deldir=no
if exist "%~dp1*.ts" set deldir=no
if exist "%~dp1*.avi" set deldir=no
if exist "%~dp1*.dvr-ms" set deldir=no
if exist "%~dp1*.wmv" set deldir=no
if exist "%~dp1folder.*" set deldir=no
if not "%deldir%"=="no" (rd /q /s "%~dp1"
echo Deleted empty source dir.. >>"third party\Archiver\Logs\%~n1_archiver.log")
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo Archive Process Completed... %date% %time%  >>"third party\Archiver\Logs\%~n1_archiver.log"
echo ********* >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
echo. >>"third party\Archiver\Logs\%~n1_archiver.log"
goto :eof

:help
echo.
echo.
echo.
echo.
echo Usage: Must be run in same dir as gbpvr.db3 and sqlite3.exe
echo.
echo    reloc.bat "completesourcefilepath" "destinationrecordingsdir\"
echo    reloc.bat "e:\recordings\show\show.mpg" "[url=file://\\pvr2\recordings\]\\pvr2\recordings\[/url]"
echo.
echo Remember,the destination is the root-recordings\ it will add the series subdir,
echo so example would end up with a path of "[url=file://\\pvr2\recordings\show\show.mpg"]\\pvr2\recordings\show\show.mpg"[/url]
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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  PCH Skip/Rewind Buttons Not Working Durring Playback Tony 4 4,136 2013-03-31, 12:24 AM
Last Post: Tony
  PCH questions no skip no reverse + what in gbpvr html to use? jasjol 1 1,972 2009-09-20, 01:31 PM
Last Post: mvallevand
  Skip problem WKleeven 8 3,414 2009-05-11, 08:10 AM
Last Post: WKleeven
  MVP skip/jump FWD/REW does opposite or nothing (quite often) pvruser 8 3,269 2009-02-28, 12:02 AM
Last Post: pvruser
  MVP skip and sound issues (1.3.11) terencedactyl 18 5,994 2009-02-26, 10:26 PM
Last Post: terencedactyl
  Audio sync lost on skip Jeff_CO 2 1,813 2008-11-20, 08:33 PM
Last Post: Jeff_CO
  Transcoding files times out before they begin Zato 3 2,172 2008-10-13, 04:01 AM
Last Post: Zato
  Hauppauge remote - FF/RW instead of skip merker19 2 1,703 2008-06-23, 08:21 PM
Last Post: merker19
  Problems with ff/rw skip fwd/bck Jeckler 1 1,451 2008-02-20, 05:10 AM
Last Post: Jeckler
  MVP Remote Skip Button is Unreliable 9442723 2 2,129 2007-05-30, 03:22 AM
Last Post: fe2o3

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

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

Linear Mode
Threaded Mode