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
  #21  
Old 12-12-2006, 10:11 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
AC3 audio

If anyone would like a batch file version that uses AC3 audio instead of MP3 then please post your wish here.
Reply With Quote
  #22  
Old 12-15-2006, 12:53 PM
sandor's Avatar
sandor sandor is offline
Sage Expert
 
Join Date: Dec 2006
Location: Philadelphia, PA USA
Posts: 621
Quote:
Originally Posted by roxy99
If anyone would like a batch file version that uses AC3 audio instead of MP3 then please post your wish here.
I registered for the forums (after a year of lurking) just to respond to your post

My desires would be for a batch file to convert 720p and 1080i AC3 HDTV files from my setup to something very high quality, with AC3 audio. Basically, i want to cut the files down fro 6-8 GB per hour to 1-3 GB per hour.

I have yet to try conversions in v 6 RC 1 or 2, but in the previous betas of Sage 6, the only video that converts properly for me is 1080i, stereo AC3 - any AC3 5.1 will fail, and 720p 60 FPS ends up with super fast video, but normal speed sound....


thanks!!
__________________
MacBook Core2Duo 2 ghz
nVidia 9400M GPU
46" Sammy HLP4663 720p DLP
2x HDHR, all OTA
QNAP TS-809:
12.5 TB for Recordings/Imports/TimeMachine/Music
HD200 via 802.11n in Living Room
802.11n client in bedroom

Last edited by sandor; 12-15-2006 at 01:03 PM.
Reply With Quote
  #23  
Old 12-15-2006, 01:26 PM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 499
Quote:
Originally Posted by sandor
I registered for the forums (after a year of lurking) just to respond to your post

My desires would be for a batch file to convert 720p and 1080i AC3 HDTV files from my setup to something very high quality, with AC3 audio. Basically, i want to cut the files down fro 6-8 GB per hour to 1-3 GB per hour.

I have yet to try conversions in v 6 RC 1 or 2, but in the previous betas of Sage 6, the only video that converts properly for me is 1080i, stereo AC3 - any AC3 5.1 will fail, and 720p 60 FPS ends up with super fast video, but normal speed sound....


thanks!!

I second that.. Ive been manually doing it but it would be nice to automate it..

Technazz
Reply With Quote
  #24  
Old 12-15-2006, 05:48 PM
Enormous's Avatar
Enormous Enormous is offline
Sage Aficionado
 
Join Date: Mar 2004
Location: D.C. Area
Posts: 398
I've been messing with this today, and am having some trouble. Every time that I run the script it just deletes my mpg after about 2 seconds, with no errors showing up in the output window. Any ideas?

EDIT: I found out what my problem was. I only unzipped the HQ zip file, and didn't do the regular project zip file first! Seems to be working fine now.

Thanks!
__________________
-Eric
Client: STX-HD100 Extender, Connected to 47" Visio 1080p LCD via HDMI, Running SageMC
Client: Media MVP Running SageMC
Server: Antec SLK3800B, AMD Athlon 64 X2 4200+, Biostar TForce 550, GeForce 7300LE, 1GB DDR2 800, 2 x HVR-1600, PVR-150MCE, 1.4TB HD Space, XP Pro, Java6, Latest SageTV Version

Last edited by Enormous; 12-15-2006 at 06:04 PM.
Reply With Quote
  #25  
Old 12-16-2006, 07:13 AM
jan smit jan smit is offline
Sage Advanced User
 
Join Date: Jul 2003
Location: Haarlem Netherlands
Posts: 159
change source directory

Roxy99:
I like your program, but I have one problem with it.
I want to change the source and destination directory of the mpg and avi files. When I change cutdir, the program still works correctly, but changing capdir from C:\Project to H:\Project the program finishes early and does not produce results.

Can you please let me know what I should do to use directories other than the program directory?

jan
Reply With Quote
  #26  
Old 12-16-2006, 09:06 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by jan smit
Roxy99:
I like your program, but I have one problem with it.
I want to change the source and destination directory of the mpg and avi files. When I change cutdir, the program still works correctly, but changing capdir from C:\Project to H:\Project the program finishes early and does not produce results.

Can you please let me know what I should do to use directories other than the program directory?

jan

EDIT: Silly of me to hardcode c:\project instead of using the variable.
I revised HQConvert2Pass.bat here. Also, see ver 1.1 of Convert2Pass.bat at beginning of thread.


Firstly, examine the batch file Conver2pass.bat Or HQConvert2pass.bat for all instances of c:\project. Although there is a variable for Capdir, there are many places where c:\project is hard coded. You need to go through the batch file in Notepad using find/replace in the file menu and seek out all c:\project and replace with h:\project.

If you use the new update I just attached on the first post (Ver 1.1), then those references are fixed.

The important principal to remember is that the c:\project directory must be the place where all the work is being done. That means all the working files (exe's and dll's) must be present in whatever directory you choose.

You can easily change c:\project\source (from the prcessmpg.bat file)
and c:\project\converted (variable Cutdir in convert2pass.bat)

Next, make sure the HQProcessmpg.bat or the processmpg.bat is correct

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

Change to

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

That should take care or it.

Last edited by roxy99; 12-16-2006 at 09:55 AM.
Reply With Quote
  #27  
Old 12-16-2006, 09:16 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by sandor
I registered for the forums (after a year of lurking) just to respond to your post

My desires would be for a batch file to convert 720p and 1080i AC3 HDTV files from my setup to something very high quality, with AC3 audio. Basically, i want to cut the files down fro 6-8 GB per hour to 1-3 GB per hour.

I have yet to try conversions in v 6 RC 1 or 2, but in the previous betas of Sage 6, the only video that converts properly for me is 1080i, stereo AC3 - any AC3 5.1 will fail, and 720p 60 FPS ends up with super fast video, but normal speed sound....


thanks!!

I am going to need a small 10second HDTV clip to test on. Do you have a place you can upload to and then PM me with the link?
Reply With Quote
  #28  
Old 12-16-2006, 12:46 PM
jan smit jan smit is offline
Sage Advanced User
 
Join Date: Jul 2003
Location: Haarlem Netherlands
Posts: 159
I had already changed the directories in (HQ)processmpg.bat and of cutdir and capdir.
I have now changed all other instances of C:\project into H:\project but the result is the same.

You mention that the working directory is C:\project and that all exe's and dll's must be in the directory of my choice (=H:\).
Isn't that contradictory?

jan
Reply With Quote
  #29  
Old 12-16-2006, 02:05 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Virtualdub and besweet can be in C: but I understand if your big drive is H: for instance, that you'll naturally replace all instances of c:\ with h:\ in the batch file.

The directory of you choice in this case must be H:\Project. So you need to create a folde H:\project in H: and move all of the c:\Project contents into h:\project. Source and Converted do not necessarilly have to be subfolders in H:\Project. EG: Have h:\Source and h:\converted and h:\Project.

Your C:\Project folder and all its contents, including the BAT files, must moved to H:\project as well. The batch file moves from you Source mpg directory (for eg: h:\Project\source) to the working directory (h:\Project). The working directory needs to have all those exe and dll that would have otherwise have been in c:\project, only now are h:\project.

Last edited by roxy99; 12-16-2006 at 02:08 PM.
Reply With Quote
  #30  
Old 12-16-2006, 05:11 PM
jan smit jan smit is offline
Sage Advanced User
 
Join Date: Jul 2003
Location: Haarlem Netherlands
Posts: 159
Got it.
It works after I did what you suggested and also moved the batchfiles to H:\Project. Thanks for your help, I will now be able to test the quality and filesizes, it looks rather good sofar.

I find it a pity though that I had to move all these files and programs to my Video directory. I prefer to keep Video and programs separated in different partitions.

Isn't there a different solution where the programs are run on the Programming partition (C:\), and the source-mpg and destination-avi are on the Video-partition?

Thanks again,

jan
Reply With Quote
  #31  
Old 12-16-2006, 08:24 PM
sandor's Avatar
sandor sandor is offline
Sage Expert
 
Join Date: Dec 2006
Location: Philadelphia, PA USA
Posts: 621
Quote:
Originally Posted by roxy99
I am going to need a small 10second HDTV clip to test on. Do you have a place you can upload to and then PM me with the link?
i'll try and get you a 1080i one and a 720p one. it will probably be a day or so though
__________________
MacBook Core2Duo 2 ghz
nVidia 9400M GPU
46" Sammy HLP4663 720p DLP
2x HDHR, all OTA
QNAP TS-809:
12.5 TB for Recordings/Imports/TimeMachine/Music
HD200 via 802.11n in Living Room
802.11n client in bedroom
Reply With Quote
  #32  
Old 12-16-2006, 09:16 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by jan smit
Got it.
It works after I did what you suggested and also moved the batchfiles to H:\Project. Thanks for your help, I will now be able to test the quality and filesizes, it looks rather good sofar.

I find it a pity though that I had to move all these files and programs to my Video directory. I prefer to keep Video and programs separated in different partitions.

Isn't there a different solution where the programs are run on the Programming partition (C:\), and the source-mpg and destination-avi are on the Video-partition?

Thanks again,

jan
The exe and dll are 2MB in size only and not tied to windows system files. Its really a nonissue. If you're concerned, then leave croject in c: but keep source in h:\source and h:\converted. Or is that what you tried and it did'nt work?
Reply With Quote
  #33  
Old 12-17-2006, 03:44 AM
jan smit jan smit is offline
Sage Advanced User
 
Join Date: Jul 2003
Location: Haarlem Netherlands
Posts: 159
Yes, that's exactly what I wanted and didn't work. The Convert folder can be put anywhere, but the Source folder must stay with the programs (as far as I can see).

Another reason for not wanting the Source in my C: partition is that it means I have to move the whole batch of video's into it (sometimes > 20GB) and my C: partition is too smal for that.
I was hoping that allowing both Source and Convert outside the C: partion would be a relatively small change in the program.

jan
Reply With Quote
  #34  
Old 12-17-2006, 11:45 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by jan smit
Yes, that's exactly what I wanted and didn't work. The Convert folder can be put anywhere, but the Source folder must stay with the programs (as far as I can see).

Another reason for not wanting the Source in my C: partition is that it means I have to move the whole batch of video's into it (sometimes > 20GB) and my C: partition is too smal for that.
I was hoping that allowing both Source and Convert outside the C: partion would be a relatively small change in the program.

jan

I'm sure it's an easy fix. I'll see what I can do.

Consider this though: leaving everything in your H drive (except C:\Virtualdub and c:\Besweet) will not hurt your system. And also, if H:/project and h:source are both the same physical drive, then processing will be faster since data doesn't move between 2 hard drives. So there is no advantage to having C:/project and H:/source on seperate drives.

So bottom line is if your want Source on H: then Project must also be on H:. The dll and exe present in Project must be on the same partition as the Source partition. That's not a pity but optimal for processing.

Last edited by roxy99; 12-17-2006 at 11:49 AM.
Reply With Quote
  #35  
Old 12-17-2006, 01:51 PM
jan smit jan smit is offline
Sage Advanced User
 
Join Date: Jul 2003
Location: Haarlem Netherlands
Posts: 159
What I'm saying is that I would like both Source and Converted on H: ; and dll and exe (programs) on my "programming drive" C:.

Another bigger problem I'm having is that when I convert a mpg to avi, it takes almost all cpu-power, which means I cannot watch (or record) TV at the same time.

Is there a way to set the conversion to a low priority, so Sage takes its share of CPU-power?

Thanks, jan
Reply With Quote
  #36  
Old 12-17-2006, 02:05 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by jan smit
What I'm saying is that I would like both Source and Converted on H: ; and dll and exe (programs) on my "programming drive" C:.


C:\Project\misc is needed as a temp working drive which moves the mpg into for processing. Change to whatever you want it to be .


However, you'll need a program locatation. This should remain as c:\Project
The AVIsynth lines in the batch file (for dll locations) should refer to this c:\Project. Capdir (C:\Project\misc) can be whatever you want it to be.

Remember, the batch file does a CHdir to CapDir and the performs a Del *.mpg on the Capdir.

Keep your C:\Project as is and leave all program exe's there. Create a temp directory on H:\Temp. Update references to the following lines:

Code:
Set CUTDIR=c:\Project\Converted
set CAPDIR=c:\Project\misc
set VDir=c:\VirtualDub
SET WORKDIR=c:\PROJECT
set SDIR=c:\Project\source

Quote:
Originally Posted by jan smit
Is there a way to set the conversion to a low priority, so Sage takes its share of CPU-power?
Ctrl-Alt-Del to get task manager. Select processes, and right-click on the conversion process to set priority below normal.
WARNING: I haven't test that and results may be unpredictible.

The better solution is to copy/paste mpg to the H:Source directory but do not execute Processmpg.bat. Use windows task scheduler to run overnight (12am to 12pm).Attachment 4733

Last edited by roxy99; 12-30-2006 at 10:25 AM.
Reply With Quote
  #37  
Old 12-18-2006, 02:19 AM
jan smit jan smit is offline
Sage Advanced User
 
Join Date: Jul 2003
Location: Haarlem Netherlands
Posts: 159
Thank you, I'll try this as soon as I have time for it later in the week.

In the mean time: Is there a commandline instruction or parameter which I can add to the batchprogram to make sure that the conversion always has a low priority compared with Sage.
A batch of 5 or 6 conversions may take 24 hours and in the mean time I want to be able to watch and record TV. Since recordings happen when I am not at the system, setting priority manually is not an option.

jan
Reply With Quote
  #38  
Old 12-18-2006, 10:21 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by jan smit
Thank you, I'll try this as soon as I have time for it later in the week.

In the mean time: Is there a commandline instruction or parameter which I can add to the batchprogram to make sure that the conversion always has a low priority compared with Sage.
A batch of 5 or 6 conversions may take 24 hours and in the mean time I want to be able to watch and record TV. Since recordings happen when I am not at the system, setting priority manually is not an option.

jan
Not that I am aware of. Try setting Sage priority to above normal instead.

Do you have an old PC? attach it to your network and create a mapped drive of your H:\Source drive on the sage PC. This way the batch is processed on a seperate PC and doesn't tie up your system.
Reply With Quote
  #39  
Old 12-18-2006, 10:31 AM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 499
Quote:
Originally Posted by jan smit

In the mean time: Is there a commandline instruction or parameter which I can add to the batchprogram to make sure that the conversion always has a low priority compared with Sage.
A batch of 5 or 6 conversions may take 24 hours and in the mean time I want to be able to watch and record TV. Since recordings happen when I am not at the system, setting priority manually is not an option.

jan

Try start /low /wait appname.exe

This will start appname.exe in low priority

Technazz
Reply With Quote
  #40  
Old 12-18-2006, 10:32 AM
jan smit jan smit is offline
Sage Advanced User
 
Join Date: Jul 2003
Location: Haarlem Netherlands
Posts: 159
Thank you for the new zipfile, it was a great help (after I changed U: by H: two times in the NewProcessMpg.bat).

It works now the way you suggested and the resulting avi's look good.
Filesizes are one third of my original mpg-sizes.

Now the priority issue stays as without a solution for that I'll have to look for something else.
My system has an AMD 2600 XP, with 1GB memory; not very new but not super old either.
I have seen on the forum that other programs use a "priority idle" option, which makes Sage always take priority over the program to take its necessary share of cpu-power for recordings.

Thanks again and I'll keep koping you find a solution.

jan
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.