SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations > SageMC Custom Interface
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-16-2007, 02:36 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
VideoReDo QuickStream Fix from within SageMC

I’m not sure if this problem affects others as it does me. Every once in a while I get a corrupt recording from Sage. I’m not exactly sure why. I have found that running the show through VideoReDo’s quickstream fix corrects the out of sync issue with dropped frames. I am wondering if there would be an easy way of sending the show to ReDo from a menu within Sage. For example, having an option on the program info screen for the corrupt file something like “Video Stream Fix”. Once clicked it would pass that show off to VideoReDo’s quick stream fix and output a fixed copy of the show. Kind of like sending files to compress via the transcoder. Any ideas on how this could be achieved?
Reply With Quote
  #2  
Old 05-16-2007, 02:58 PM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Which SageTV version are you using?
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #3  
Old 05-16-2007, 03:01 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
V6

6.0.19 with SageMC
Reply With Quote
  #4  
Old 05-16-2007, 03:13 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
All VideoRedo functions are available through its COM interface. So if you're familiar with Windows scripting using VBScript or JScript, you should be able to launch a script file from Sage to do whatever you want in VRD.
__________________
-- Greg
Reply With Quote
  #5  
Old 05-16-2007, 03:21 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
That’s the catch, I’m not a programmer. So I’m not sure how to do that. I’m willing to learn, do you have any suggestions to get me started or pointed in the right direction?
Reply With Quote
  #6  
Old 05-16-2007, 03:31 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Here's a general how-to guide from Microsoft on Windows scripting:

http://www.microsoft.com/technet/scr..._overview.mspx

Or just Google for "Windows script tutorial" and see what comes up.
__________________
-- Greg
Reply With Quote
  #7  
Old 05-16-2007, 03:42 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Here is a batch file that I use. To run quickfix you can drag and drop or setup in Dirmon.

QuickfixVRD.bat

set priority=low

set delOriginal=yes

rem "set delOriginal above to yes or no.... yes will delete original mpg and replace with fixed file."
rem "if set to no will Quickfix file to tmpEncode directory but will not delete original...."
rem "also if set to no will create a file with .QFixed so that dirmon will not re-encode it"

set extension=mpg
rem ........Do Not Touch Below................................................
md %~d1%~p1tmpEncode
del "%~d1%~p1tmpEncode\%~n1.%extension%"
START /B /W /MIN /%priority% cscript.exe //nologo "c:\program files\videoredoPlus\vp.vbs" "%~f1" "%~d1%~p1tmpEncode\%~n1.%extension%" /t1 /q
if /I "%delOriginal%" EQU "yes" if exist "%~d1%~p1tmpEncode\%~n1.%extension%" del "%~d1%~p1%~n1%.%extension%"
if /I "%delOriginal%" NEQ "yes" dir %~f1>>"%~d1%~p1%~n1%.QFixed"
if /I "%delOriginal%" EQU "yes" move "%~d1%~p1tmpEncode\%~n1.%extension%" "%~d1%~p1"
dir %~f1>>"%~d1%~p1%~n1%.QFixed"
exit




Ps another way to fix a file is to Create a Transcoding profile in sage properties to copy both audio and video.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 05-16-2007 at 03:45 PM.
Reply With Quote
  #8  
Old 05-16-2007, 07:18 PM
grooves12 grooves12 is offline
Sage Aficionado
 
Join Date: Feb 2006
Posts: 303
It might be able to be done with the Video Tools plugin... with Video redo being a "compression profile" ... but it may not work in its current version. It may have to wait until Evilpenguin releases his next version which he says will be more customizable. Ask him about it.
Reply With Quote
  #9  
Old 05-16-2007, 08:10 PM
deria deria is offline
Sage Aficionado
 
Join Date: Nov 2005
Posts: 408
Off topic, but I'm curious.

How fast is this fixer on a 1 hour mpeg?

Also, does it fix transport streams? I somtimes get weak transport streams from my firewire recordings (depending on my cable signal strength).
Reply With Quote
  #10  
Old 05-17-2007, 02:03 AM
rickgillyon's Avatar
rickgillyon rickgillyon is offline
Sage Icon
 
Join Date: Sep 2005
Location: Whitley Bay, England
Posts: 1,950
Quote:
Originally Posted by deria View Post
How fast is this fixer on a 1 hour mpeg?
Also, does it fix transport streams?
About one minute for me (generally 75mins recordings with padding), and yes to TS. Free trial period to check it out anyway, www.videoredo.com.
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby
Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients
Reply With Quote
  #11  
Old 05-17-2007, 09:01 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
You can also use my VideoEdit plugin to do a Quick Stream Fix on a video without leaving the SageMC interface. The plugin will import into either the Default STV or SageMC.
Reply With Quote
  #12  
Old 05-17-2007, 10:10 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
I appreciate everyone's help with my request! When I get a minute I will get something worked out.
Reply With Quote
  #13  
Old 06-06-2007, 02:25 PM
Humanzee's Avatar
Humanzee Humanzee is offline
Sage Fanatic
 
Join Date: Sep 2004
Location: North Idaho
Posts: 752
Quote:
Originally Posted by nyplayer View Post
QuickfixVRD.bat

set priority=low

set delOriginal=yes

rem "set delOriginal above to yes or no.... yes will delete original mpg and replace with fixed file."
rem "if set to no will Quickfix file to tmpEncode directory but will not delete original...."
rem "also if set to no will create a file with .QFixed so that dirmon will not re-encode it"

set extension=mpg
rem ........Do Not Touch Below................................................
md %~d1%~p1tmpEncode
del "%~d1%~p1tmpEncode\%~n1.%extension%"
START /B /W /MIN /%priority% cscript.exe //nologo "c:\program files\videoredoPlus\vp.vbs" "%~f1" "%~d1%~p1tmpEncode\%~n1.%extension%" /t1 /q
if /I "%delOriginal%" EQU "yes" if exist "%~d1%~p1tmpEncode\%~n1.%extension%" del "%~d1%~p1%~n1%.%extension%"
if /I "%delOriginal%" NEQ "yes" dir %~f1>>"%~d1%~p1%~n1%.QFixed"
if /I "%delOriginal%" EQU "yes" move "%~d1%~p1tmpEncode\%~n1.%extension%" "%~d1%~p1"
dir %~f1>>"%~d1%~p1%~n1%.QFixed"
exit
Sweet, this is working well for me, I just scan all my new files now before running SA on them.

Can quickstream be run against a file that is still growing in size? I.e. a live recording? Right now I have Dirmon2 set to wait till the file is done.

Also, Is there a way to edit this to prevent the VideoReDo splash screen from coming up? It takes focus from sage and is kind of annoying. & No I can't run FSE.
Reply With Quote
  #14  
Old 06-06-2007, 03:34 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
I recently installed the trial version of VideoReDo to use the QuickStream fix. When I click QuickStream fix under the menu, what do I do next? I opened an MPG and output to an MPG but the resulting file only came out as a 4 byte file. Any idea on how to do this through the UI?
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)
Reply With Quote
  #15  
Old 06-07-2007, 07:54 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Humanzee View Post
Sweet, this is working well for me, I just scan all my new files now before running SA on them.

Can quickstream be run against a file that is still growing in size? I.e. a live recording? Right now I have Dirmon2 set to wait till the file is done.

Also, Is there a way to edit this to prevent the VideoReDo splash screen from coming up? It takes focus from sage and is kind of annoying. & No I can't run FSE.

Check your VideoRedo general parameters make sure "Play Video When Opened" is Unchecked also make sure tooltip delay is set to FAST.

Also in advanced features you might want to check "Reduce CPU priority while Saving"

1 more thing change the switches.

START /B /W /MIN /%priority% cscript.exe //nologo "c:\program files\videoredoPlus\vp.vbs" "%~f1" "%~d1%~p1tmpEncode\%~n1.%extension%" /t1 /d /q
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 06-07-2007 at 08:02 AM.
Reply With Quote
  #16  
Old 06-07-2007, 10:59 PM
Humanzee's Avatar
Humanzee Humanzee is offline
Sage Fanatic
 
Join Date: Sep 2004
Location: North Idaho
Posts: 752
Quote:
Originally Posted by nyplayer View Post
Check your VideoRedo general parameters make sure "Play Video When Opened" is Unchecked also make sure tooltip delay is set to FAST.

Also in advanced features you might want to check "Reduce CPU priority while Saving"

1 more thing change the switches.

START /B /W /MIN /%priority% cscript.exe //nologo "c:\program files\videoredoPlus\vp.vbs" "%~f1" "%~d1%~p1tmpEncode\%~n1.%extension%" /t1 /d /q
It still pops up, but it minimizes more quickly now. /d says that it is for deleting batch project files. "bprj" I've never seen one of these before anyway, was that the only change in the above switch changes?
Reply With Quote
  #17  
Old 06-25-2007, 09:20 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Quote:
Originally Posted by nyplayer View Post
Here is a batch file that I use. To run quickfix you can drag and drop or setup in Dirmon.

QuickfixVRD.bat

set priority=low

set delOriginal=yes

rem "set delOriginal above to yes or no.... yes will delete original mpg and replace with fixed file."
rem "if set to no will Quickfix file to tmpEncode directory but will not delete original...."
rem "also if set to no will create a file with .QFixed so that dirmon will not re-encode it"

set extension=mpg
rem ........Do Not Touch Below................................................
md %~d1%~p1tmpEncode
del "%~d1%~p1tmpEncode\%~n1.%extension%"
START /B /W /MIN /%priority% cscript.exe //nologo "c:\program files\videoredoPlus\vp.vbs" "%~f1" "%~d1%~p1tmpEncode\%~n1.%extension%" /t1 /q
if /I "%delOriginal%" EQU "yes" if exist "%~d1%~p1tmpEncode\%~n1.%extension%" del "%~d1%~p1%~n1%.%extension%"
if /I "%delOriginal%" NEQ "yes" dir %~f1>>"%~d1%~p1%~n1%.QFixed"
if /I "%delOriginal%" EQU "yes" move "%~d1%~p1tmpEncode\%~n1.%extension%" "%~d1%~p1"
dir %~f1>>"%~d1%~p1%~n1%.QFixed"
exit




Ps another way to fix a file is to Create a Transcoding profile in sage properties to copy both audio and video.

Can this script be ran on multiple mpegs? I ran it on 3 different ones (my CPU's can handle it) and they all finished at the same time even though the movies were all of different sizes.

Some of the videos were cut short. Any way to fix this so VideoRedo batch can be ran more than 1 at a time?
Reply With Quote
  #18  
Old 06-25-2007, 10:30 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
If you are using the trial Version of Videoredo it will only do I believe 15 minutes. You need to request a full version trial key from the Videoredo programmers then you will be able to trial the full version.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #19  
Old 06-26-2007, 09:36 AM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Quote:
Originally Posted by nyplayer View Post
If you are using the trial Version of Videoredo it will only do I believe 15 minutes. You need to request a full version trial key from the Videoredo programmers then you will be able to trial the full version.
I have the regular paid version. If I do one movie at a time, all is well. Some of my movies are 2-3 hours long and they complete ok (one at a time).
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
STV Import: Video Editing for Sage BobPhoenix SageTV Customizations 279 03-07-2013 01:35 PM
STV: SageMC 16x9 Version 6.x (latest dev build) dflachbart SageMC Custom Interface 6112 04-04-2008 11:16 PM
I took the SageMC plunge...mmmmm! jbarr SageMC Custom Interface 8 05-10-2007 11:48 AM
SageMC vs Sagemc 16x9 amongst other ?'s traker1001 SageMC Custom Interface 4 03-18-2007 07:59 AM
INSTALLER: SageMC Jason SageMC Custom Interface 30 12-21-2006 08:23 PM


All times are GMT -6. The time now is 01:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.