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
  #161  
Old 09-19-2007, 01:56 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
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
Reply With Quote
  #162  
Old 09-27-2007, 11:06 AM
Flip Flip is offline
Sage User
 
Join Date: Dec 2006
Posts: 6
Quote:
Originally Posted by Flip View Post
I am having the same problem. I'm capturing from a Hauppauge PVR150. About 90% of my files convert great, but every once in a while I get a problem like Swagger200 describes. My hard drive will get maxed out by cutaudio.mpa, I have to close the DOS window, and end delaycut through the task manager. Most of the time I'll retry it with no success, and I end up erasing the source video.

Is there any logfile we can post to help diagnose?
OK, now I'm getting the large cutaudio file problem most of the time?!

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.
Reply With Quote
  #163  
Old 09-28-2007, 08:28 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by Flip View Post
OK, now I'm getting the large cutaudio file problem most of the time?!

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.
These are the key lines to understand:

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
%DG%--> DGIndex- produces a video file and an audio .mpa file which has a delay factor at the end of the file name.

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
Reply With Quote
  #164  
Old 09-28-2007, 09:23 AM
Flip Flip is offline
Sage User
 
Join Date: Dec 2006
Posts: 6
Quote:
Originally Posted by roxy99 View Post
These are the key lines to understand:

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
%DG%--> DGIndex- produces a video file and an audio .mpa file which has a delay factor at the end of the file name.

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.
Thanks roxy99. I updated the DOS code as you suggested, and started a file conversion. We'll see how the quality comes out?

I appreciate the continuing work you have done here and the tips!
Reply With Quote
  #165  
Old 09-28-2007, 09:55 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
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
Reply With Quote
  #166  
Old 09-28-2007, 12:11 PM
Flip Flip is offline
Sage User
 
Join Date: Dec 2006
Posts: 6
Quote:
Originally Posted by roxy99 View Post
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.
Well, it seems to be working. One of the files has a noticeable audio sync problem, but not terrible. I mainly save old History Channel stuff to watch while I ride my exercise bike anyway, so super high quality isn't top priority.

Thanks again!!
Reply With Quote
  #167  
Old 09-28-2007, 04:37 PM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
Cool 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?
Reply With Quote
  #168  
Old 09-28-2007, 10:21 PM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
Quote:
Originally Posted by davephan View Post
Has anyone used Roxy99's 1200-bit high quality two-pass Xvid scripts/programs using a high-end CPU computer with a dual or quad core? If so, how long does it take to process an hour mpeg2 file? Can multiple files be processed at the same time, one on each core? If so, how is the performance?

I am thinking of upgrading to a dual or quad core soon. But most likely I'll upgrade to a dual-core because quad-cores are pretty expensive.

Dave
I upgraded to an Intel E6850 3.0 gig dual core. I also have more memory and a better mobo than before.

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
Reply With Quote
  #169  
Old 09-29-2007, 12:42 AM
Swagger200 Swagger200 is offline
Sage Advanced User
 
Join Date: Sep 2007
Posts: 81
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.
Reply With Quote
  #170  
Old 09-29-2007, 05:37 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
Quote:
Originally Posted by Swagger200 View Post
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.
Is the problem occurring because the source file is too large, or is there something contained in the commercial content of the MPEG2 file? Have you tried isolating the problem to a particular commercial?

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
Reply With Quote
  #171  
Old 09-29-2007, 07:17 PM
Swagger200 Swagger200 is offline
Sage Advanced User
 
Join Date: Sep 2007
Posts: 81
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.
Reply With Quote
  #172  
Old 10-01-2007, 11:37 PM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
any help

howdy, any help? I'm still having no luck.
Reply With Quote
  #173  
Old 10-05-2007, 02:08 PM
xj-boonie's Avatar
xj-boonie xj-boonie is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: Minnesota
Posts: 110
Quote:
Originally Posted by davephan View Post
-snip-
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.
-snip-
Dave
Dave,

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
Reply With Quote
  #174  
Old 10-05-2007, 06:14 PM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
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
Dave
Reply With Quote
  #175  
Old 10-06-2007, 01:55 PM
xj-boonie's Avatar
xj-boonie xj-boonie is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: Minnesota
Posts: 110
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.
Reply With Quote
  #176  
Old 10-06-2007, 02:31 PM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
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
Reply With Quote
  #177  
Old 10-21-2007, 12:30 AM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
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?
Reply With Quote
  #178  
Old 10-21-2007, 06:34 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
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:
Originally Posted by roxy99 View Post
Just as I thought- it was the audio all along. Was there anything different in the way in which you captured this mpg? DGindex produced a straight wav instead of an mpa.

So anyway here are the corrections you need to made to the batch file. Under the Set Avisynth commands near the beginning are the following 3 lines:

Code:
FOR %%G IN (%CAPDIR%\*ms.mpa) DO %DC%  -auto -out %CAPDIR%\cutaudio.mpa "%%G"
"%BS%" -core( -input "%CAPDIR%\cutaudio.mpa" -output "%CAPDIR%\%~n2.wav" -2ch -logfilea "C:\besweet\BeSweet.log"  ) -profile( ~~~~~ Default Profile ~~~~~ )
del %CAPDIR%\*.mpa
Change to:

Code:
FOR %%G IN (%CAPDIR%\*.wav) DO %DC%  -auto -out %CAPDIR%\cutaudio.wav "%%G"
"%BS%" -core( -input "%CAPDIR%\cutaudio.wav" -output "%CAPDIR%\%~n2.wav"  -2ch ) -azid( -s stereo -L -3db ) -ssrc( --rate 48000 )
Del  %CAPDIR%\cutaudio.wav
I included both scripts that I use to convert the MPEG2 into high quality two-pass Xvid files.


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
Dave

Last edited by davephan; 10-21-2007 at 06:37 AM.
Reply With Quote
  #179  
Old 11-07-2007, 01:48 PM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
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!
Reply With Quote
  #180  
Old 11-20-2007, 11:26 AM
calrisian calrisian is offline
Sage User
 
Join Date: Jun 2007
Posts: 14
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?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 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 02:42 AM.


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