|
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 |
#161
|
|||
|
|||
Thank's for the encouragement and sorry I've been a little quiet on the updates. I look forward to having some hobby time again soon. In the words of Schwarznegger: 'I'll be back'.
__________________
http://www.hydranterouge.com |
#162
|
|||
|
|||
Quote:
Anyone have any ideas why? I'm using a PVR150 with latest drivers and SageTV6. I used to workaround the problem (see prior post), but doing it to most of the videos is too much effort. Roxy99, I don't know a lot about audio/video editing, but is there a way to simply remove the Delaycut process? I know it probably helps sync things up, but I could live with the audio being off a few milliseconds. Thanks in advance. |
#163
|
|||
|
|||
Quote:
Code:
%DG% -IA=2 -FO=0 -OM=2 -AIF=[%2] -OF=[%~dpn2] -exit FOR %%G IN (%CAPDIR%\*ms.wav) DO %DC% -auto -out %CAPDIR%\cutaudio.wav "%%G" raname %CAPDIR%\cutaudio.wav %CAPDIR%\%~n2.wav "%BS%" -core( -input "%CAPDIR%\cutaudio.mpa" -output "%CAPDIR%\%~n2.wav" -2ch -logfilea "C:\besweet\BeSweet.log" ) -profile( ~~~~~ Default Profile ~~~~~ ) del %CAPDIR%\*.mpa You need to add a dos batch line to rename this mpa file to cutaudio.mpa The line For %%G... Do %DC%... is the delay cut line. Put a rem in front of it.
__________________
http://www.hydranterouge.com |
#164
|
|||
|
|||
Quote:
I appreciate the continuing work you have done here and the tips! |
#165
|
|||
|
|||
u r welcome. Basically the adjustment removes the delaycut process from the equation. The file cutaudio.mpa is still expected by the batch and that's why we still need to rename it even though its actually not synch corrected the computer doesn't know the difference.
__________________
http://www.hydranterouge.com |
#166
|
|||
|
|||
Quote:
Thanks again!! |
#167
|
|||
|
|||
1 pass
howdy! I'm still trying to get this to work. I've been using the 1.4 version which does two passes for several months now. I thought I'd try again to get 1.6 to work. I downloaded the project.zip, extract it. download the 1.6 zip, extract it to the project folder. I run HQprocess....bat i select option "a" to run on a test .mpg I have that 60 seconds long. The script stops after doing quite a bit
What I see on the screen is the following: Writing Lame tag...done replaygain +51.0db virtualdub... copyright.... avi: openin file c:\project\misc\test1.avi beginning dub operation ending operationg could not find c:\project\Misc\*.mpa press any key to continue. Any ideas? |
#168
|
||||
|
||||
Quote:
With my old system, I could transcode a hour of MPEG2 into high quality Xvid AVI in about one hour. The new system isn't much faster. It usually takes between 40 - 50 minutes to transcode one hour of MPEG2 into Xvid AVI using the two pass process. I have comskip disabled, since I manually edit out the commercials using VideoReDo. The biggest difference with the faster computer is that I can transcode video at any time. I can use the computer to watch Xvid AVI programs on the MVP or do other things on the computer at the same time. I no longer have to do the transcoding 'off hours' or offload the video transcoding task to another computer. I still have the most of the processes used in the Roxy99 transcoding set for 'low' priority. I did experiment using older P3, 333 meg and 900 meg computers to transcode video. The slowest computer could take 8 - 12 hours to transcode a video. I don't think it would be worth the trouble to offload the transcoding, unless you have an higher-end extra computer. I haven't tried running two instances of the Roxy99 transcoding process at the same time. I don't know if two concurrent instances can be run at once on the same computer. I suspect that my older 7200 rpm IDE hard drives might be the main bottleneck now that is slowing down the Roxy99 transcoding process. Perhaps a 15K rpm drive or if I had enough memory to setup a RAM drive would speed up the process more. Dave |
#169
|
|||
|
|||
Delaycut issue
I still have this issue, but noting the suggestions here, I now cut out just one commercial manually (or cut half-time out of a football game) using a program called MPEG-VCR. It saves the updated mpeg quickly, then it converts with no problems.
One of my PC's is a 3.4 CPU with 2gb of RAM - it converts files in about 2/3 of the time my 2.4 1gb PC does. |
#170
|
||||
|
||||
Quote:
How much free space do you have on the C drive? I have about 75% free space on a 250 gig C drive now. I used to have 50% free on my old 120 gig C drive. I haven't tried using MPEG-VCR. I use VideoReDo to edit the files. VideoReDo has a quickfix feature. It would be interesting what would happen if you ran the source MPEG2 file through quickfix before running it through the Roxy99 video compression process. VideoReDo does have a demo, so you could try it. Although if you try it, you would probably be hooked and have to buy it, since it is a great program for editing the MPEG2 files. I used to use TMPGenc to edit MPEG2 files - VideoReDo is much better. I only use TMPGenc to burn DVDs. Dave |
#171
|
|||
|
|||
Delaycut issue
I was not able to isolate why some files messed up with delaycut and others did not - it was such a high proportion that it became easier to just pre-process with MPEG-VCR for all of them.
It must have something to do with the way the original MPEG is encoded - running through MPEG-VCR causes the MPEG to be re-written in a way that doesn't upset delaycut. Some form of an index perhaps? My original recordings are made with a Sapphire Theatrix 550 PCI card and SageTV 5, either off a direct coax cable tv input or S-Video in. I haven't tried skipping the delaycut step as roxy99 suggested as of yet. I don't think I would enjoy overtly out-of-sync audio. |
#172
|
|||
|
|||
any help
howdy, any help? I'm still having no luck.
|
#173
|
||||
|
||||
Quote:
what does quickfix do? Also, do you se VideoReDo to cut the commercials? If so, how did you modify roxy's bat file so that it doesn't do it also? Thanks, Mike |
#174
|
||||
|
||||
Mike,
VideoReDo has a feature called Quickfix. Once in awhile, my recordings have corruption. I don't know what causes this problem. I haven't noticed on my new system - it occurred on my Althlon XP 2800+ and XP 2100+ systems. Quickfix does work to clean up corruption in the MPEG2 files. If there is a lot of corruption, it does not work. You can setup Quickfix to do one file or many files in batch mode. I edit out commercials with VideoReDo and save each 'project'. I then run each 'project' with the batch feature of VideoReDo. I don't have to sit around waiting for the editing process to finish. I just start the batch process and walk away. I used to use TMPGEnc version 1.6 to edit MPEG2 video, but VideoReDo is much better, and worth it's price. VideoReDo does not have a easy to use DVD Authoring mechanism, so I use TMPGEnc 1.6 to burn the DVDs. If I did not already own TMPGEnc, I would use some other method. The rem %COMSKIP% %2 line stops the comskip process. Lines that look like: start "Virtualdub" /low /wait %VDUB% /c The line forces that process to run at low priority. I had to set the processes for low priority for my older system to cope with the transcoding process. Most of the processes are set for low priority. There is still one or two processes that I haven't been able to set to low priority. Here is my HQConvert2Pass.bat file: Code:
setlocal move %1 %2 REM The variables below need to be changed to match your setup REM Please don't change the presence or absence of quotation marks as it may interfere with the functionality of the batch file rem Set CUTDIR=c:\Project\Converted Set CUTDIR=d:\Converted set CAPDIR=c:\Project\misc rem set CAPDIR=d:\Xvidmisc set VDir=c:\VirtualDub SET WORKDIR=c:\PROJECT set SDIR=c:\Project\source rem set SDIR=d:\source set DG="%WORKDIR%\DGIndex.exe" set LM="%WORKDIR%\Lame.exe" Set WV="%WORKDIR%\Wavemp3.exe" set COMSKIP="%WORKDIR%\comskip.exe" set VDUB="C:\VirtualDub\vdub.exe" Set DC="%WORKDIR%\delaycut.exe" Set BS="c:\Besweet\BeSweet.exe" SET AVIWAV="%WORKDIR%\AVI2WAVCMD.exe" REM Set Program Locations set AVISYNTH1=LoadPlugin("%WORKDIR%\DGDecode.dll") set AVISYNTH2=LoadPlugin("%WORKDIR%\SimpleResize.dll") set AVISYNTH3=LoadPlugin("%WORKDIR%\Leakkerneldeint.dll") set AVISYNTH4=LoadPlugin("%WORKDIR%\MSharpen.dll") set AVISYNTH5=audio = WAVSource("%CAPDIR%\%~n2.wav") set AVISYNTH6=AudioDub(video, audio) REM Replace these example AVISynth commands here with your commands. Add more variables if required. start "Virtualdub" /low /wait %VDUB% /c rem *** %VDUB% /c rem %COMSKIP% %2 rem *** %DG% -IA=2 -FO=0 -OM=2 -AIF=[%2] -OF=[%~dpn2] -exit start "dgindex" /low /wait %DG% -IA=2 -FO=0 -OM=2 -AIF=[%2] -OF=[%~dpn2] -exit FOR %%G IN (%CAPDIR%\*ms.mpa) DO %DC% -auto -out %CAPDIR%\cutaudio.mpa "%%G" rem *** "%BS%" -core( -input "%CAPDIR%\cutaudio.mpa" -output "%CAPDIR%\%~n2.wav" -2ch -logfilea "C:\besweet\BeSweet.log" ) -profile( ~~~~~ Default Profile ~~~~~ ) start "besweet" /low /wait "%BS%" -core( -input "%CAPDIR%\cutaudio.mpa" -output "%CAPDIR%\%~n2.wav" -2ch -logfilea "C:\besweet\BeSweet.log" ) -profile( ~~~~~ Default Profile ~~~~~ ) del %CAPDIR%\*.mpa rem %CAPDIR:~0,2% REM Change working drive to CAPDIR's drive cd %CAPDIR% REM Change working directory to CAPDIR echo %AVISYNTH1% >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH2% >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH3% >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH4% >>"%CAPDIR%\%~n2.avs" rem 4:3 screen echo Video=MPEG2Source("%CAPDIR%\%~n2.d2v").Crop(6, 6, -6, -6).LeakKernelDeint(1,10,false,false,false,false,false,0).LanczosResize(624,464).MSharpen(20,130) >>"%CAPDIR%\%~n2.avs" REM Widescreen rem echo Video=MPEG2Source("%CAPDIR%\%~n2.d2v").Crop(6, 60, -6, -60).LeakKernelDeint(1,10,false,false,false,false,false,0).LanczosResize(624,352).MSharpen(20,130) >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH5% >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH6% >>"%CAPDIR%\%~n2.avs" REM Create AVS files REM Add AVISynth commands to avs file created above. Add more lines if required REM Replace these example VirtualDub script commands here with your commands. Add more variables if required. echo VirtualDub.Open (u"%CAPDIR%\%~n2.avs"); > "%CAPDIR%\initial.txt" type "%CAPDIR%\%~n2.vcf" >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetSource(1); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetMode(0); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetInterleave(1,500,1,0,0); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetClipMode(1,1); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetConversion(0,0,0,0,0); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetVolume(); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetCompression(); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.EnableFilterGraph(0);>> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetInputFormat(0); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetOutputFormat(7); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetMode(1); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetFrameRate(0,1); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetIVTC(0,0,-1,0); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetRange(0,0); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetCompression(0x64697678,0,10000,0); >> "%CAPDIR%\initial.txt" echo // > "%VDIR%\VirtualDub.jobs" echo // $numjobs 2; >> "%VDIR%\VirtualDub.jobs" echo // >> "%VDIR%\VirtualDub.jobs" echo // $job "Job 1" >> "%VDIR%\VirtualDub.jobs" echo // $input "%CAPDIR%\%~n2.avs" >> "%VDIR%\VirtualDub.jobs" echo // $output "%CAPDIR%\%~n2.avi" >> "%VDIR%\VirtualDub.jobs" echo // $state 0 >> "%VDIR%\VirtualDub.jobs" echo // $start_time 0 0 >> "%VDIR%\VirtualDub.jobs" echo // $end_time 0 0 >> "%VDIR%\VirtualDub.jobs" echo // $script >> "%VDIR%\VirtualDub.jobs" type "%CAPDIR%\initial.txt" >> "%VDIR%\VirtualDub.jobs" type "%WORKDIR%\pass1.vcf" >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.video.filters.Clear(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.audio.filters.Clear(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.project.ClearTextInfo(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.SaveAVI (u"%CAPDIR%\%~n2.avi"); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.audio.SetSource(1); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.Close(); >> "%VDIR%\VirtualDub.jobs" echo // $endjob >> "%VDIR%\VirtualDub.jobs" echo // >> "%VDIR%\VirtualDub.jobs" echo // $job "Job 2" >> "%VDIR%\VirtualDub.jobs" echo // $input "%CAPDIR%\%~n2.avs" >> "%VDIR%\VirtualDub.jobs" echo // $output "%CAPDIR%\%~n2.avi" >> "%VDIR%\VirtualDub.jobs" echo // $state 0 >> "%VDIR%\VirtualDub.jobs" echo // $start_time 0 0 >> "%VDIR%\VirtualDub.jobs" echo // $end_time 0 0 >> "%VDIR%\VirtualDub.jobs" echo // $script >> "%VDIR%\VirtualDub.jobs" type "%CAPDIR%\initial.txt" >> "%VDIR%\VirtualDub.jobs" type "%WORKDIR%\pass2.vcf" >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.video.filters.Clear(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.audio.filters.Clear(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.project.ClearTextInfo(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.SaveAVI (u"%CAPDIR%\%~n2.avi"); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.audio.SetSource(1); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.Close(); >> "%VDIR%\VirtualDub.jobs" echo // $endjob >> "%VDIR%\VirtualDub.jobs" echo // >> "%VDIR%\VirtualDub.jobs" echo //-------------------------------------------------- >> "%VDIR%\VirtualDub.jobs" echo // $done >> "%VDIR%\VirtualDub.jobs" start "Virtualdub" /low /wait %VDUB% /r rem *** %VDUB% /r rem del %CAPDIR%\*.wav rem del %CAPDIR%\*.mp3 del %CAPDIR%\*.wav del %CAPDIR%\*.mp3 @%VDUB% /i %WORKDIR%\extractwav.vcf %CAPDIR%\%~n2.avi %CAPDIR%\%~n2.wav rem *** %LM% --preset cbr 192 "%CAPDIR%\%~n2.wav" "%CAPDIR%\%~n2.mp3" start "lame" /low /wait %LM% --preset cbr 192 "%CAPDIR%\%~n2.wav" "%CAPDIR%\%~n2.mp3" rem *** %WV% -q "%CAPDIR%\%~n2.mp3" start "Wavemp3" /low /wait %WV% -q "%CAPDIR%\%~n2.mp3" echo VirtualDub.Open (u"%CAPDIR%\%~n2.avi"); > "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetSource (u"%CAPDIR%\%~n2.wav"); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetMode(0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetInterleave(1,500,1,0,0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetClipMode(1,1); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetConversion(0,0,0,0,0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetVolume(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetCompression(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.EnableFilterGraph(0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetInputFormat(0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetOutputFormat(7); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetMode(0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetFrameRate(0,1); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetIVTC(0,0,-1,0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetCompression(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.filters.Clear(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.filters.Clear(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.SaveAVI (u"%CUTDIR%\%~n2.avi"); >> "%CAPDIR%\%~n2Audio.vcf" REM Merge compressed audio with AVI start "Virtualdub" /low /wait %VDUB% /s "%CAPDIR%\%~n2Audio.vcf" rem *** %VDUB% /s "%CAPDIR%\%~n2Audio.vcf" move %2 %SDIR% echo. >> c:\project\logfile.txt echo trancoded video files >> c:\project\logfile.txt rem dir c:\project\source\*.mpg >> c:\project\logfile.txt rem echo. >> c:\project\logfile.txt dir c:\project\converted\*.avi >> c:\project\logfile.txt echo. >> c:\project\logfile.txt del %CAPDIR%\*.avi del %CAPDIR%\*.vcf del %CAPDIR%\*.wav del %CAPDIR%\*.mp3 del %CAPDIR%\*.mpg del %CAPDIR%\*.mpa del %CAPDIR%\*.d2v del %CAPDIR%\*.avs del %CAPDIR%\*.txt endlocal |
#175
|
||||
|
||||
is your HQConvert2pass.bat custom? because I don't have that file to compare against.
And I purchased VideoReDo a while ago, it really is worth it. But I didn't know about the batch processing, I'll have to try that out. |
#176
|
||||
|
||||
The HQConvert2pass.bat file is in the c:\project folder and is part of the Roxy99 files. The batch file HQProcessmpg.bat calls the HQConvert2pass.bat file.
I just modified the HQConvert2pass.bat with the comskip commented out with a rem statement and put the 'low priority' statements in there to make it easier to run other programs at the same time on my older, slower system. Not all of the processes are set to 'low'. There was one or two of them that I had trouble setting to 'low' priority. I don't remember which version of the Roxy99 files I am using. I don't think they are the latest files. The process seems to work great. Dave |
#177
|
|||
|
|||
1.6 not working
howdy!
Again, I've been using roxy's processmpg.bat to process files since june, probably 10 a day. But when I'm done, I have to recompress them because any file over 322 megabytes, the audio only gets compressed with PCM, instead of mp3. So I'm trying to switch to the HQprocessMpg.bat, but I run it, and it converts the file, and puts about an inch wide green bar down the right side of every file it creates. And the script stops after it shows the following: AVI: opening ffile c:\project\misc\change55.avi" beginning dub operation ending operationg Lame version 3.96.1 cpu features: mmx(asm used0... ........ writing lame tag...done replaygain -6.4dB Virtualdub CLI video... AVI opening file "c:\project\misc\change55.avi" beginning dub operation could not find c:\project\misc\*.mpa press any key to continue . . . I've read this entire forum, but don't comprehend a lot of it. Please help! I need a script to do ONE pass, preferably not change the resolution, and compress at regular TV quality, not HD. Please? |
#178
|
||||
|
||||
Carlson,
I also had a problem with MPA files, but I don't remember anything with a "green bar". Here is the fix I used: Quote:
Here is my HQProcessMpg.bat file: FOR %%f IN (c:\Project\Source\*.mpg) DO call HQConvert2pass.bat %%f c:\Project\misc\%%~nf.mpg rem FOR %%f IN (d:\Source\*.mpg) DO call HQConvert2pass.bat %%f c:\Project\misc\%%~nf.mpg Here are my HQconvert2pass.bat script modifications: I modified by HQconvert2pass.bat file so that the converted files would go to my D-drive with the line: Set CUTDIR=d:\Converted I also modified comskip, so it would not run, since I edit manually with VideoReDo: rem %COMSKIP% %2 I also changed many processes to run at "low" priority instead of the default "normal' priority. This allowed me to use my old computer for other things while processing files. I don't know if it necessary on my new faster computer. I haven't figured out how to get all the processes set for "low" priority yet, but most of them run at low priority. Here an example of the change in the script: start "Virtualdub" /low /wait %VDUB% /c rem *** %VDUB% /c Here is my HQconvert2pass.bat file: Code:
setlocal move %1 %2 REM The variables below need to be changed to match your setup REM Please don't change the presence or absence of quotation marks as it may interfere with the functionality of the batch file rem Set CUTDIR=c:\Project\Converted Set CUTDIR=d:\Converted set CAPDIR=c:\Project\misc rem set CAPDIR=d:\Xvidmisc set VDir=c:\VirtualDub SET WORKDIR=c:\PROJECT set SDIR=c:\Project\source rem set SDIR=d:\source set DG="%WORKDIR%\DGIndex.exe" set LM="%WORKDIR%\Lame.exe" Set WV="%WORKDIR%\Wavemp3.exe" set COMSKIP="%WORKDIR%\comskip.exe" set VDUB="C:\VirtualDub\vdub.exe" Set DC="%WORKDIR%\delaycut.exe" Set BS="c:\Besweet\BeSweet.exe" SET AVIWAV="%WORKDIR%\AVI2WAVCMD.exe" REM Set Program Locations set AVISYNTH1=LoadPlugin("%WORKDIR%\DGDecode.dll") set AVISYNTH2=LoadPlugin("%WORKDIR%\SimpleResize.dll") set AVISYNTH3=LoadPlugin("%WORKDIR%\Leakkerneldeint.dll") set AVISYNTH4=LoadPlugin("%WORKDIR%\MSharpen.dll") set AVISYNTH5=audio = WAVSource("%CAPDIR%\%~n2.wav") set AVISYNTH6=AudioDub(video, audio) REM Replace these example AVISynth commands here with your commands. Add more variables if required. start "Virtualdub" /low /wait %VDUB% /c rem *** %VDUB% /c rem %COMSKIP% %2 rem *** %DG% -IA=2 -FO=0 -OM=2 -AIF=[%2] -OF=[%~dpn2] -exit start "dgindex" /low /wait %DG% -IA=2 -FO=0 -OM=2 -AIF=[%2] -OF=[%~dpn2] -exit FOR %%G IN (%CAPDIR%\*ms.mpa) DO %DC% -auto -out %CAPDIR%\cutaudio.mpa "%%G" rem *** "%BS%" -core( -input "%CAPDIR%\cutaudio.mpa" -output "%CAPDIR%\%~n2.wav" -2ch -logfilea "C:\besweet\BeSweet.log" ) -profile( ~~~~~ Default Profile ~~~~~ ) start "besweet" /low /wait "%BS%" -core( -input "%CAPDIR%\cutaudio.mpa" -output "%CAPDIR%\%~n2.wav" -2ch -logfilea "C:\besweet\BeSweet.log" ) -profile( ~~~~~ Default Profile ~~~~~ ) del %CAPDIR%\*.mpa rem %CAPDIR:~0,2% REM Change working drive to CAPDIR's drive cd %CAPDIR% REM Change working directory to CAPDIR echo %AVISYNTH1% >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH2% >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH3% >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH4% >>"%CAPDIR%\%~n2.avs" rem 4:3 screen echo Video=MPEG2Source("%CAPDIR%\%~n2.d2v").Crop(6, 6, -6, -6).LeakKernelDeint(1,10,false,false,false,false,false,0).LanczosResize(624,464).MSharpen(20,130) >>"%CAPDIR%\%~n2.avs" REM Widescreen rem echo Video=MPEG2Source("%CAPDIR%\%~n2.d2v").Crop(6, 60, -6, -60).LeakKernelDeint(1,10,false,false,false,false,false,0).LanczosResize(624,352).MSharpen(20,130) >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH5% >>"%CAPDIR%\%~n2.avs" echo %AVISYNTH6% >>"%CAPDIR%\%~n2.avs" REM Create AVS files REM Add AVISynth commands to avs file created above. Add more lines if required REM Replace these example VirtualDub script commands here with your commands. Add more variables if required. echo VirtualDub.Open (u"%CAPDIR%\%~n2.avs"); > "%CAPDIR%\initial.txt" type "%CAPDIR%\%~n2.vcf" >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetSource(1); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetMode(0); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetInterleave(1,500,1,0,0); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetClipMode(1,1); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetConversion(0,0,0,0,0); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetVolume(); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.SetCompression(); >> "%CAPDIR%\initial.txt" echo VirtualDub.audio.EnableFilterGraph(0);>> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetInputFormat(0); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetOutputFormat(7); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetMode(1); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetFrameRate(0,1); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetIVTC(0,0,-1,0); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetRange(0,0); >> "%CAPDIR%\initial.txt" echo VirtualDub.video.SetCompression(0x64697678,0,10000,0); >> "%CAPDIR%\initial.txt" echo // > "%VDIR%\VirtualDub.jobs" echo // $numjobs 2; >> "%VDIR%\VirtualDub.jobs" echo // >> "%VDIR%\VirtualDub.jobs" echo // $job "Job 1" >> "%VDIR%\VirtualDub.jobs" echo // $input "%CAPDIR%\%~n2.avs" >> "%VDIR%\VirtualDub.jobs" echo // $output "%CAPDIR%\%~n2.avi" >> "%VDIR%\VirtualDub.jobs" echo // $state 0 >> "%VDIR%\VirtualDub.jobs" echo // $start_time 0 0 >> "%VDIR%\VirtualDub.jobs" echo // $end_time 0 0 >> "%VDIR%\VirtualDub.jobs" echo // $script >> "%VDIR%\VirtualDub.jobs" type "%CAPDIR%\initial.txt" >> "%VDIR%\VirtualDub.jobs" type "%WORKDIR%\pass1.vcf" >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.video.filters.Clear(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.audio.filters.Clear(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.project.ClearTextInfo(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.SaveAVI (u"%CAPDIR%\%~n2.avi"); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.audio.SetSource(1); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.Close(); >> "%VDIR%\VirtualDub.jobs" echo // $endjob >> "%VDIR%\VirtualDub.jobs" echo // >> "%VDIR%\VirtualDub.jobs" echo // $job "Job 2" >> "%VDIR%\VirtualDub.jobs" echo // $input "%CAPDIR%\%~n2.avs" >> "%VDIR%\VirtualDub.jobs" echo // $output "%CAPDIR%\%~n2.avi" >> "%VDIR%\VirtualDub.jobs" echo // $state 0 >> "%VDIR%\VirtualDub.jobs" echo // $start_time 0 0 >> "%VDIR%\VirtualDub.jobs" echo // $end_time 0 0 >> "%VDIR%\VirtualDub.jobs" echo // $script >> "%VDIR%\VirtualDub.jobs" type "%CAPDIR%\initial.txt" >> "%VDIR%\VirtualDub.jobs" type "%WORKDIR%\pass2.vcf" >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.video.filters.Clear(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.audio.filters.Clear(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.project.ClearTextInfo(); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.SaveAVI (u"%CAPDIR%\%~n2.avi"); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.audio.SetSource(1); >> "%VDIR%\VirtualDub.jobs" echo VirtualDub.Close(); >> "%VDIR%\VirtualDub.jobs" echo // $endjob >> "%VDIR%\VirtualDub.jobs" echo // >> "%VDIR%\VirtualDub.jobs" echo //-------------------------------------------------- >> "%VDIR%\VirtualDub.jobs" echo // $done >> "%VDIR%\VirtualDub.jobs" start "Virtualdub" /low /wait %VDUB% /r rem *** %VDUB% /r rem del %CAPDIR%\*.wav rem del %CAPDIR%\*.mp3 del %CAPDIR%\*.wav del %CAPDIR%\*.mp3 @%VDUB% /i %WORKDIR%\extractwav.vcf %CAPDIR%\%~n2.avi %CAPDIR%\%~n2.wav rem *** %LM% --preset cbr 192 "%CAPDIR%\%~n2.wav" "%CAPDIR%\%~n2.mp3" start "lame" /low /wait %LM% --preset cbr 192 "%CAPDIR%\%~n2.wav" "%CAPDIR%\%~n2.mp3" rem *** %WV% -q "%CAPDIR%\%~n2.mp3" start "Wavemp3" /low /wait %WV% -q "%CAPDIR%\%~n2.mp3" echo VirtualDub.Open (u"%CAPDIR%\%~n2.avi"); > "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetSource (u"%CAPDIR%\%~n2.wav"); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetMode(0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetInterleave(1,500,1,0,0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetClipMode(1,1); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetConversion(0,0,0,0,0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetVolume(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.SetCompression(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.EnableFilterGraph(0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetInputFormat(0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetOutputFormat(7); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetMode(0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetFrameRate(0,1); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetIVTC(0,0,-1,0); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.SetCompression(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.video.filters.Clear(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.audio.filters.Clear(); >> "%CAPDIR%\%~n2Audio.vcf" echo VirtualDub.SaveAVI (u"%CUTDIR%\%~n2.avi"); >> "%CAPDIR%\%~n2Audio.vcf" REM Merge compressed audio with AVI start "Virtualdub" /low /wait %VDUB% /s "%CAPDIR%\%~n2Audio.vcf" rem *** %VDUB% /s "%CAPDIR%\%~n2Audio.vcf" move %2 %SDIR% echo. >> c:\project\logfile.txt echo trancoded video files >> c:\project\logfile.txt rem dir c:\project\source\*.mpg >> c:\project\logfile.txt rem echo. >> c:\project\logfile.txt dir c:\project\converted\*.avi >> c:\project\logfile.txt echo. >> c:\project\logfile.txt del %CAPDIR%\*.avi del %CAPDIR%\*.vcf del %CAPDIR%\*.wav del %CAPDIR%\*.mp3 del %CAPDIR%\*.mpg del %CAPDIR%\*.mpa del %CAPDIR%\*.d2v del %CAPDIR%\*.avs del %CAPDIR%\*.txt endlocal Last edited by davephan; 10-21-2007 at 06:37 AM. |
#179
|
|||
|
|||
help!
Hello again,
I read through the suggestions. I guess this stuff is just out of my league for now. I will PAY anyone configure this script for me to do the following(that I've said in previous posts). 1. process my regular t.v. files(not HD so quality doesn't need to be HD rates) 2. preferably do it in one pass, using comskip to cut the commercials. It works perfectly except on of few of these new NBC shows they are "blending" the last commercial into the show on. I'm recording with ChrisTV at 640x480, and I'd like to leave the files that way. Please help! I'd pay 30 bucks for this easy! I'm still using Processmpg.bat which is doing 2 passes, lowering the resolution to 512x384, and taking too long. Please help! |
#180
|
|||
|
|||
same
I tried your recommendations, the script just crashed. Too many things are remmed out, I don't know what to leave, and what not to. Nobody wants to get paid to help?
|
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|