SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #181  
Old 11-20-2007, 05:32 PM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
It took awhile for me to get the scripts working. But once they were tweaked, it works great.

I assume that you are first gong to command line, then running c:\project\hqprocessmpg.bat

How far does it go before the script crashes?

Dave
Reply With Quote
  #182  
Old 11-23-2007, 01:14 AM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
I read the entire thread (well skimmed) and I cannot find anywhere it mentioning putting these avi files back into Sage so they can be played with the GUI. Is this possible?
Reply With Quote
  #183  
Old 11-23-2007, 06:42 PM
Apap's Avatar
Apap Apap is offline
Sage Advanced User
 
Join Date: Apr 2006
Location: Florida
Posts: 216
Quote:
Originally Posted by kevine View Post
I read the entire thread (well skimmed) and I cannot find anywhere it mentioning putting these avi files back into Sage so they can be played with the GUI. Is this possible?
I just added my "Converted" directory to my imported video directory list.
Reply With Quote
  #184  
Old 11-23-2007, 06:58 PM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
But do they appear in sage recordings with all of the information before conversion?
Reply With Quote
  #185  
Old 12-01-2007, 12:58 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by kevine View Post
But do they appear in sage recordings with all of the information before conversion?
Only if you have the .my plugin and they appear in the imported videos section not in the Sage recordings section.
__________________
http://www.hydranterouge.com
Reply With Quote
  #186  
Old 12-05-2007, 06:15 PM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
help

still looking for help. it's still hanging up, not finding any .mp3 files, and then not finding any .mpa files as a result of that. I'm using HQprocessmpg.bat, and then doing the 1 pass file, which I guess is using the convert.bat file to actually do the conversions and I think that file is really old, and maybe neglected? I don't think the convert.bat file works for single pass in the Hqprocessmpg.bat . Either way, I'm showing two graphics of the errors, roxy, please help me! I'm so tired of this not working. Still same issues that I've detailed in previous posts. Thanks!

http://palliard.com/roxy/hp1.jpg
http://palliard.com/roxy/hp2.jpg

Oh, and it's also still saying "findstr" is not recognized as an internal or external command. What is findstr in the HQprocessmpg.bat file? Thanks!
Reply With Quote
  #187  
Old 12-05-2007, 11:37 PM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
Findstr.exe is part of Windows. It is located in C:\Windows\System32\ on my Windows XP Pro operating system.

Here are some details about findsrt.exe:

Findstr is capable of finding the exact text you are looking for in any ASCII file or files. However, sometimes you have only part of the information that you want to match, or you want to find a wider range of information. In such cases, findstr has the powerful capability to search for patterns of text using regular expressions.

https://www.microsoft.com.nsatc.net/....mspx?mfr=true

My c:\project\hqprocessmpg.bat file does not have "findstr" in the batch file. I did a search in all files under c:\project. None of the files contain the string "findstr".

Here is my c:\project\hqprocessmpg.bat file:

FOR %%f IN (c:\Project\Source\*.mpg) DO call HQConvert2pass.bat %%f c:\Project\misc\%%~nf.mpg

My c:\project\hqprocessmpg.bat file calls c:\project\HQConvert2Pass.bat. I attached HQConvert2Pass.bat, renamed as HQConvert2Pass.bat.txt (I could not attach the file with the BAT extension). To use the file, rename it back to HQConvert2Pass.bat, and copy it into c:\project directory.


Dave
Attached Files
File Type: txt HQConvert2Pass.bat.txt (8.3 KB, 326 views)
Reply With Quote
  #188  
Old 12-06-2007, 07:43 AM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
help

Again, I'm not using the 2 pass, I don't want to use the 2 pass, I'm using the one pass for 640x480, because I don't have HD, and I'm just trying to get good compression on my regular TV recordings. I think I know why the findstr isn't working, and I can fix it. I think the system path is by default screwed up, or blank for me. I'll add a line at the beginning establishing the "path =". Thanks, I'll try that!
Reply With Quote
  #189  
Old 02-27-2008, 10:23 AM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
Smile me!

yay! I figured it out! It's just the filename length! Or maybe having an extra "." in it, but either way it's the filename that made the final product not have compressed audio. Now I can stop having to recompress every video after the script is done! Only took 7 months to figure out! Wow, what a lot of processing time.

Now, if I could add something to the script that'd shorten all the filenames, then restore them after it's done. Any ideas?
Reply With Quote
  #190  
Old 02-29-2008, 10:12 AM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
Cool exactly!

Dots! It is the second dot that gets added that has cause my final audio to not be compressed(it ends up being the pcm wav audio)

I use webshifter and it automatically and it automatically pics up the stupid episode Number(ep00754199) for each show, and separates it with ".", then theres the "." before the file extension.

Prison_Break-EP00754199.0058-Under_and_Out.mpg
is the only way i can get filenames outputted from "webshifter". I'm surprised it took this long to figure out. Any ideas for a way to remove everything between the first "-" and the first "." (automatically I mean) which would be the "show number(EP##)? Thanks Roxy, great scripts!
Reply With Quote
  #191  
Old 03-18-2008, 12:30 AM
lj_in_tn lj_in_tn is offline
New Member
 
Join Date: Feb 2005
Posts: 1
HQConvert2Pass 1.6 - With Enhanced Logging

I loved this script, it was the answer to a very time-consuming method I was using to accomplish the same manually. But I decided it would be nice to have more advanced logging abilities in order to track down and squish any bugs due to incorrect installation or corrupted input files. So I modified it a wee little bit.

Here is the readme.txt that is included in my version to give you the rundown on the features:

****************************************
Script: HQConvert2Pass1.6-WithEnhancedLogging
Modified by: Lonnie Johnson
Date: March 18th, 2008
****************************************

Purpose:

I spent many, many moons editing out commercials and then encoding into XVID avi's so I could burn them to DVD
and watch on my standalone DVD player, since I don't have a Sage PC connected to my television. This grew very
old very quickly.

Then I found this great script, 'Comskip XviD batch using 2 pass'.
I loved the functionality of the original script, but I found the need to continually
debug miscellaneous errors (usually caused by my mistakes, or corrupted mpg's) as I was trying to get it to work.
I decided that it needed better logging capability, so that one could see just where something went wrong during
a transcode.

The standard Windows DOS Shell has only a limited buffer to hold the text stream coming from
STDOUT and doesn't show STDERR at all, so if something went wrong early on in the process and you were
not paying attention, the error would scroll right out of the buffer and you would have a bit of a problem narrowing down the
culprits. So I found a Windows version of the UNIX/LINUX tee utility (mtee), and began redirecting the logging into a text file.

Notes:

1. The HQProcessMpg.bat file is the only original file I edited, so if you use Convert2Pass.mpg or ProcessMpg.bat, this isn't for you.
2. HQProcessMpg.bat was split into 3 separate .bat files to facilitate the logging capability, as mtee.exe must have info piped into it
in order to work, at least in this case.
3. The text log created shall appear once for each .mpg that is transcoded, having the same filename as the .mpg with _RUNTIME.LOG
appended at the end. It will be found in the folder referenced by CAPDIR.
4. The text log does not append, but will overwrite itself if the same transcode is performed multiple times.
5. All log entries are Date and Time stamped for your convenience, though this has only been tested on Windows XP SP2, this helps to
give you an idea of how long your transcodes are taking to complete.
6. Variable declarations have been modified to allow VirtualDub and Besweet to be installed into any hard disk/folder combination.
7. Script moves original .mpg files to a new folder referenced as TRANSCODED instead of the original SDIR so there is no need for
the user to manually empty the SDIR folder after a successful batch encoding. One could conceivably configure a directory monitor
application to place newly recorded .mpg's into the SDIR folder, and never have to touch their transcoding PC again if so desired,
except of course for viewing the finished XVID files.

Installation/Operation:

1. Install "project.zip" and "Ver 1.6.zip" according to roxy99's instructions.
2. Unzip "HQConvert2Pass1.6-WithEnhancedLogging.zip" into the c:\project folder (or wherever you unzipped the archives in step 1),
then unzip the included "mtee.zip" into the same location.
3. Edit HQProcessMpg.bat, changing the file locations for SDIR, WORKDIR, and CAPDIR.
4. Edit convert.bat, changing the file locations for SDIR, WORKDIR, CAPDIR, CUTDIR, VDIR, TRANSCODED, VDUB, and BESWEET.
5. Copy desired .mpg's into the folder specified by SDIR.
6. Double-click HQProcessMpg.bat to run, or alternatively set up a scheduled task to do so at your leisure.

Disclaimer:

Author assumes no responsibility for any unintended consequences incurred by the end user for using this modified script. Use at your own risk.
Attached Files
File Type: zip HQConvert2Pass1.6-WithEnhancedLogging.zip (11.5 KB, 276 views)
Reply With Quote
  #192  
Old 08-22-2008, 11:09 AM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
hola!

I've been using the processmpg.bat for so long and all's been well. But somewhat recently I had a virus, and some power issues and then computer rebooted while the process was running and ever since then I haven't been able to get it to work. I click the processmpg.bat and it goes through the comskip part, and gets down to delaycut, and that's where it messes up. It's keeping going, but the delaycut makes the cutaudio.mpa file and it just hangs, and keeps getting bigger until it fills the hard drive at around 60 gig(that's how much I have free). The .mpg files I'm processing are around 2 gig apiece. I am using Vista Premium 64, and I wondered if it's some issue with the firewall blocking something with delaycut or the like. Any ideas roxy? I've been reinstalling and trying everything I can to figure this out for 4 weeks now. Thanks!

Adam

Oh, and it works fine for a small file, like a 30 megabyte .mpg file, goes through the whole process and creates the compressed xvid .avi file.
Reply With Quote
  #193  
Old 08-22-2008, 01:02 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Hi Calrisan,

Long time since I've been on the forum. Nice to see your posts, brings back memories its been so long.

Anyway about your problem. I suspect your codecs are screwed up now. A dll somewhere in windows is not working properly and nothing is being compressed.

Try reinstalling the Xvid codec- remove it first from add/remove programs and then re-add.


Edit:
I just read the part about the audio. Try eliminating the lines in the bat the perform delay/cut. We'll rule out that first and then worry about the audio synch issue later.

Good luck.
__________________
http://www.hydranterouge.com

Last edited by roxy99; 08-22-2008 at 01:04 PM.
Reply With Quote
  #194  
Old 08-22-2008, 02:48 PM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
ok, here

ok, i took out comskip, and delaycut. But then no wav file is made I guess. Is there any way you will use realvnc viewer(free) to take a look at my machine? I was worried you'd never see this since it said your private messages are full. Thanks for taking the time, I'd definitely compensate you for your time. Thanks!

here's the image.


Last edited by calrisian; 08-22-2008 at 02:50 PM. Reason: combining comments
Reply With Quote
  #195  
Old 08-22-2008, 08:17 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
My pm box has room now. BTW, I don't mind VNC to your pc. Shoot me a pm and then I can give you my email addy for the settings.
__________________
http://www.hydranterouge.com
Reply With Quote
  #196  
Old 02-08-2009, 11:11 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
There hasn't been much activity on this string for quite some time...

I tried using the built-in video file compression in SageTV for awhile, but the two-pass Roxy99 process does a much better job compressing the SD files.

I modified the HQConvert2Pass.bat to run most processes at "low" priority and minimize them. I haven't been able to minimize the "VirtualDub" process when it displays the "Xvid Status".

Is there a way to minimize the "VirtualDub" process when it displays the "Xvid Status"?

My goal is to run the Roxy99 process in the background without any portion of the process screens popping up on the desktop when doing other things on the computer.

Dave
Attached Images
File Type: bmp xvid status.bmp (547.7 KB, 212 views)
Attached Files
File Type: zip HQConvert2Pass.zip (1.9 KB, 209 views)
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


All times are GMT -6. The time now is 06:24 PM.


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