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
|
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
2008-09-25, 02:23 PM
mvallevand Wrote:Just this 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.556After a minute or so mencoder starts eating up all available memory. I must have some especially problematic TS files.
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
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. Can you set up tsremux to output directly to the NAS? It might save some time. Martin
2008-09-28, 12:39 PM
mvallevand Wrote:Can you set up tsremux to output directly to the NAS? It might save some time. 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
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
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} "\\lnkstn-bse65\Videos\TV\" >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 |
|
|