|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
AC3 audio
If anyone would like a batch file version that uses AC3 audio instead of MP3 then please post your wish here.
|
#22
|
||||
|
||||
Quote:
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. |
#23
|
||||
|
||||
Quote:
I second that.. Ive been manually doing it but it would be nice to automate it.. Technazz |
#24
|
||||
|
||||
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. |
#25
|
|||
|
|||
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 |
#26
|
|||
|
|||
Quote:
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. |
#27
|
|||
|
|||
Quote:
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? |
#28
|
|||
|
|||
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 |
#29
|
|||
|
|||
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. |
#30
|
|||
|
|||
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 |
#31
|
||||
|
||||
Quote:
__________________
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 |
#32
|
|||
|
|||
Quote:
|
#33
|
|||
|
|||
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 |
#34
|
|||
|
|||
Quote:
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. |
#35
|
|||
|
|||
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 |
#36
|
|||
|
|||
Quote:
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:
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. |
#37
|
|||
|
|||
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 |
#38
|
|||
|
|||
Quote:
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. |
#39
|
||||
|
||||
Quote:
Try start /low /wait appname.exe This will start appname.exe in low priority Technazz |
#40
|
|||
|
|||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|