Yep I got it. I think I know how to author this. I hope it works with DVDLab Pro.
Thanks for a great guide
+ Reply to Thread
Results 91 to 120 of 481
-
-
It seems like you have to press a Key everytime you finish encoding 1 video file. What do I have to change in the BatchConvert.bat to just make it go straight through.
-
omg! i completely forgot to remove that!
sorry, i was testing it and forgot to remove...
just remove the line
echo.pause
sorry man, i`ll remove it from the tutorial fiist thing in the morning.
thx for reminding me... -
Code:
for %%x in (*.avi) do ( echo.AVISource^("%sourcevideo%\%%x"^) echo.%resize%Resize^(%width%,%height%) echo.AddBorders^(%leftright%,%topbottom%,%leftright%,%topbottom%^) echo.ConvertToYV12^(^) ) > "%%~nx.avs"
Code:for %%x in (*.avi) do ( echo.AVISource^("%sourcevideo%\%%x"^) echo.%resize%Resize^(%width%,%height%^, 0,1,560,430^) echo.AddBorders^(%leftright%,%topbottom%,%leftright%,%topbottom%^) echo.ConvertToYV12^(^) ) > "%%~nx.avs"
-
So it should look like this right
:: Resize Value (Fullscreen is 660, 440 - Widescreen is 660, 330)
@set width=688
@set height=352
:: AddBorders Value (Fullscreen is 20, 30 - Widescreen is 75, 30)
@set topbottom=16
@set leftright=64
for %%x in (*.ogm) do (
echo.AVISource^("%sourcevideo%\%%x"^)
echo.%resize%Resize^(%width%,%height%^, 0,1,560,430^)
echo.AddBorders^(%leftright%,%topbottom%,%leftrigh t%,%topbottom%^)
echo.ConvertToYV12^(^)
) > "%%~nx.avs" -
Code:
:: AddBorders Value (Fullscreen is 20, 30 - Widescreen is 75, 30) @set topbottom=64 @set leftright=16
-
It seems like both of them dont work for some reason. Tried it both ways and got the same error message
-
did it encode properly?
did you test the generated AVS files before encoding?
because I just tested both and it's 720*480.
:: Resize type (Bicubic, Lanczos, Lanczos4).
@set resize=Lanczos
:: Resize Value (Fullscreen is 660, 440 - Widescreen is 660, 330)
@set width=688
@set height=352
:: AddBorders Value (Fullscreen is 20, 30 - Widescreen is 75, 30)
@set topbottom=64
@set leftright=16for %%x in (*.avi) do (
echo.AVISource^("%sourcevideo%\%%x"^)
echo.%resize%Resize^(%width%,%height%^,0,1,560,430 ^)
echo.AddBorders^(%leftright%,%topbottom%,%leftrigh t%,%topbottom%^)
echo.ConvertToYV12^(^)
) > "%%~nx.avs" -
i dont know if it matters but its ogm file
Yeah i tested it doesnt work for some reason. Ill try again and see what happens -
Nope tried it again it's not working. I'm trying the opening scene for gundam since its only about 1 min 30 secs long. It still got the same specs as the other one. I notice that when I use the mainencoding.bat it converts really fast. It's almost instant. What is weird also is that the output file Opening3_video.m2v was only 2.5mb
-
LOL!!! IT'S OGM?!
It's completely different!! LOL!!!
Did you used the OGM tutorial or the AVI one? Because you know that the 2 are different.
But did you try opening the video? Watching it after the encode. -
yeah i'm using the ogm tutorial. I tried opening but I only got a blank 9 sec screen
-
Okay.. hmm..
open
\encodedvideo\batch\batch_for_opening3_video.bat
with notepad.
Delete all lines starting with "DEL".
Save, and run the batch.
It should encode.. and if it still renders blank 9 sec screen,
try opening the AVS File..
And try opening the AVI file too.
and last thing, GSPOT the AVI file.. -
no no, when after deleting all lines beginning with DEL.. The temporary files should not be deleted.. That includes the AVI which is being demuxed from the OGM..
There should be an AVI file in the \encodedvideo folder, after running the batch_for... -
Ahhh Ahh!
Now that's changes everything!
I'm a bit surprised you didn't open it when you saw that something was wrong. hahaha.
Okay.. open the AVS file with Media Player. It will give you the same message (just open it anyway just to be sure).
Then open it again but with NOTEPAD. Copy and paste here.
and tell me the full name of the AVI.. -
I get this
Stream 0
Media Type 0:
--------------------------
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: MEDIASUBTYPE_MPEG1Audio {E436EB87-524F-11CE-9F53-0020AF0BA770}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0
Media Type 1:
--------------------------
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0Opening3.aviOpening3.ogm -
I thought you meant open the AVS file with Media Player. My mistake.
AVS file containsAVISource("C:\OGMSource\Opening3.ogm")
LanczosResize(688,352, 0,1,560,430)
AddBorders(16,64,16,64)
ConvertToYV12()
-
Well. This is friggin strange =).
How about I tell you my FTP and you upload it? (it's only 15mb, should take... 5 mins).
I won't sleep today as I have alot of things to do, so i'll resolve the problem right after you upload it.
After this message, check your PM! -
Bahahaha.
My bad.
I found out what's the problem..
When I posted what you should write for Lanczos... I based myself on the AVI tutorial (I completely forgot you was using OGM).
Both of them are really different.
A little sidenote as well, is that the opening is quite different.
there's only..
1 video, 1 audio, 1 sub, as opposed to the 1 video, 2 audio, 1 sub.
The screenshot you gave me above is because MediaPlayer automatically opens audio files depending on the filename.
when opening
Music.Avi
it will also open
Music_sound1.mp3
music_sound3.mp3
In our case, it failed because Opening3_audio2.mp3 was ACTUALLY a subtitle file! LOL!
That's why It was 2kb instead of the 2,3mb.
So. How to fix this?
:: Resize type (Bicubic, Lanczos, Lanczos4).
@set resize=Lanczos
:: Resize Value (Fullscreen is 660, 440 - Widescreen is 660, 330)
@set width=688
@set height=352
:: AddBorders Value (Fullscreen is 20, 30 - Widescreen is 75, 30)
@set topbottom=64
@set leftright=16for %%x in (*.ogm) do (
echo.AVISource^("%encodedvideo%\%%~nx.avi"^)
echo.%resize%Resize^(%width%,%height%^,0,1,560,430 ^)
echo.AddBorders^(%leftright%,%topbottom%,%leftrigh t%,%topbottom%^)
echo.ConvertToYUY2^(^)
) > "%%~nx.avs"
open \encodedvideo\batch\batch_for_Opening3.bat
WITH NOTEPAD
modify the first line.
"d:\program files\ogmtools\ogmdemuxer.exe" tracks "D:\NarutoDVD\fullmetalpanic\source\Opening3.ogm" 0:"D:\NarutoDVD\fullmetalpanic\source\EncodedVideo\Op ening3.avi" 1:"D:\NarutoDVD\fullmetalpanic\source\EncodedVideo\Op ening3_audio1.mp3" 2:"D:\NarutoDVD\fullmetalpanic\source\EncodedVideo\Op ening3_audio2.mp3" 3:"D:\NarutoDVD\fullmetalpanic\source\EncodedVideo\Op ening3_subs.srt"
"d:\program files\ogmtools\ogmdemuxer.exe" tracks "D:\NarutoDVD\fullmetalpanic\source\Opening3.ogm" 0:"D:\NarutoDVD\fullmetalpanic\source\EncodedVideo\Op ening3.avi" 1:"D:\NarutoDVD\fullmetalpanic\source\EncodedVideo\Op ening3_audio1.mp3" 2:"D:\NarutoDVD\fullmetalpanic\source\EncodedVideo\Op ening3_subs.srt"
Hey, I hope you are only encoding few of these. Because it will be a pain to modify each of these.. -
Well it shouldn't be a problem the episodes got 2 audio pieces. I guess the opening one only has 1 audio. So I won't need these changes for it. I just wanted to test the aspect ratio change on this small file instead of using a full epsidoe
-
hmm I'm still getting the same thing except now it just didnt create the audio2 file. video is still the same
-
I see. =D
Keep me up on the news =).
If there's any other prob, reply! hehe. -
im just going to try on the regular episode and see how it goes.
edit: tried it with a regular episode and got the same result.
This is getting frustrating.
here my batchconvert.bat see if you can find anything wrong with it
::CCE Encoding Batch Generator!
@echo off
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
:: Lines beginning with 2 colons are comment line. They are ignored,::
:: so you can safely copy this. ::
:: Change the value after the equal sign ::
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
:: Pulldown file? (yes if your videos are 23.976fps, no if your videos are 29.970fps)
@set applypulldown=yes
:: Resize type (Bicubic, Lanczos, Lanczos4).
@set resize=Lanczos
:: Resize Value (Fullscreen is 660, 440 - Widescreen is 660, 330)
@set width=688
@set height=352
:: AddBorders Value (Fullscreen is 20, 30 - Widescreen is 75, 30)
@set topbottom=64
@set leftright=16
:: Audio Bitrate (The one you chose when calculating)
@set audiobitrate=192
:: Audio type (ogg or WAV)
@set audiotype=mp3
:: Path for source videos (The video you want to encode should reside in there)
@set sourcevideo=C:\OGMSource
:: CCE Template Name (The template you made in step 3)
@set template=Gundam
:: Path to your encoder. Select CCEFRONT.exe if you have CCE SP.
@set cce=C:\Program Files\Custom Technology\CCE SP Trial Version\CCEFRONT.exe
:: Path for DVD2SVCD (The folder where DVD2SVCD is located)
@set dvd2svcd=C:\Program Files\DVD2SVCD
:: Path to OGM Demuxer
@set ogmdemuxer=C:\program files\ogm tools\ogmdemuxer.exe
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
:: DO NOT CHANGE ANYTHING BELOW UNLESS YOU KNOW WHAT YOU'RE DOING!! ::
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
:: Define variable path for programs that is included with DVD2SVCD
@set besweetdir=%dvd2svcd%\besweet
@set besweetexe=%besweetdir%\besweet.exe
@set pulldown=%dvd2svcd%\pulldown\pulldown.exe
@set mplex=%dvd2svcd%\dvdauthor\mplex.exe
@set encodedvideo=%sourcevideo%\EncodedVideo
echo Generating Batch, tutututut - please be patient.
echo ::MAIN ENCODING BATCH > mainencoding.bat
echo @echo off >> mainencoding.bat
MKDIR %encodedvideo%\Batch
for %%x in (*.ogm) do (
echo.AVISource^("%sourcevideo%\%%x"^)
echo.%resize%Resize^(%width%,%height%^, 0,1,560,430^)
echo.AddBorders^(%leftright%,%topbottom%,%leftrigh t%,%topbottom%^)
echo.ConvertToYV12^(^)
) > "%%~nx.avs"
if %applypulldown%==yes (
for %%x in (*.ogm) do (
echo."%ogmdemuxer%" tracks "%sourcevideo%\%%~nx.ogm" 0:"%encodedvideo%\%%~nx.avi" 1:"%encodedvideo%\%%~nx_audio1.%audiotype%" 2:"%encodedvideo%\%%~nx_audio2.%audiotype%" 3:"%encodedvideo%\%%~nx_subs.srt"
echo."%cce%" -t "%template%" "%encodedvideo%\%%~nx.avs" -batch
echo.MOVE "%encodedvideo%\batch\%%~nx.mpv" "%encodedvideo%"
echo.REN "%encodedvideo%\%%~nx.mpv" %%~nx.m2v
echo."%pulldown%" %encodedvideo%\%%~nx.m2v %encodedvideo%\encoded%%~nx.m2v -run -exit
echo."%besweetexe%" -core^( -input "%encodedvideo%\%%~nx_audio1.%audiotype%" -output "%encodedvideo%\%%~nx_audio1.mp2" -logfilea "%besweetdir%\BeSweet.log" ^) -ssrc^( --rate 48000 ^) -toolame^( -m s -b %audiobitrate% ^)
echo."%besweetexe%" -core^( -input "%encodedvideo%\%%~nx_audio2.%audiotype%" -output "%encodedvideo%\%%~nx_audio2.mp2" -logfilea "%besweetdir%\BeSweet.log" ^) -ssrc^( --rate 48000 ^) -toolame^( -m s -b %audiobitrate% ^)
echo.DEL "%encodedvideo%\%%~nx.m2v"
echo.DEL "%encodedvideo%\%%~nx.avi"
echo.DEL "%encodedvideo%\%%~nx_audio1.%audiotype%"
echo.DEL "%encodedvideo%\%%~nx_audio2.%audiotype%"
echo.REN "%encodedvideo%\encoded%%~nx.m2v" %%~nx_video.m2v
) > "batch_for_%%~nx.bat"
) ELSE (
for %%x in (*.ogm) do (
echo."%ogmdemuxer%" tracks "%sourcevideo%\%%~nx.ogm" 0:"%encodedvideo%\%%~nx.avi" 1:"%encodedvideo%\%%~nx_audio1.%audiotype%" 2:"%encodedvideo%\%%~nx_audio2.%audiotype%" 3:"%encodedvideo%\%%~nx_subs.srt"
echo."%cce%" -t "%template%" "%encodedvideo%\%%~nx.avs" -batch
echo.MOVE "%encodedvideo%\batch\%%~nx.mpv" "%encodedvideo%"
echo.REN "%encodedvideo%\%%~nx.mpv" %%~nx.m2v
echo."%besweetexe%" -core^( -input "%encodedvideo%\%%~nx_audio1.%audiotype%" -output "%encodedvideo%\%%~nx_audio1.mp2" -logfilea "%besweetdir%\BeSweet.log" ^) -ssrc^( --rate 48000 ^) -toolame^( -m s -b %audiobitrate% ^)
echo."%besweetexe%" -core^( -input "%encodedvideo%\%%~nx_audio2.%audiotype%" -output "%encodedvideo%\%%~nx_audio2.mp2" -logfilea "%besweetdir%\BeSweet.log" ^) -ssrc^( --rate 48000 ^) -toolame^( -m s -b %audiobitrate% ^)
echo.DEL "%encodedvideo%\%%~nx.m2v"
echo.DEL "%encodedvideo%\%%~nx.avi"
echo.DEL "%encodedvideo%\%%~nx_audio1.%audiotype%"
echo.DEL "%encodedvideo%\%%~nx_audio2.%audiotype%"
) > "batch_for_%%~nx.bat"
)
for %%x in (*.ogm) do (
echo.CALL "%encodedvideo%\batch\batch_for_%%~nx.bat"
) >> mainencoding.bat
for %%x in (*.ogm) do (
MOVE "%sourcevideo%\%%~nx.avs" "%encodedvideo%"
MOVE "batch_for_%%~nx.bat" "%encodedvideo%\batch"
)
move "mainencoding.bat" "%encodedvideo%\batch"
echo.
echo.
echo.
echo.
echo Batch Creation Finished! hehe - Now you just have to open MainEncoding.bat !!
pause
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
:: END OF BATCH ::
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
Similar Threads
-
How to convert matroska MKV to AVI or OGM to AVI
By Baldrick in forum User guidesReplies: 211Last Post: 13th Apr 2012, 00:56 -
Batch convert mkv to avi possible?
By dude112 in forum Video ConversionReplies: 5Last Post: 6th Jul 2010, 02:56 -
Need a Program to convert avi/mkv/ogm to dvd that is free for winxp
By animefanx in forum Newbie / General discussionsReplies: 1Last Post: 30th Aug 2009, 03:22 -
HOW-TO - CONVERT AVI, OGM or MKV to DVD
By Ecko_Blue in forum User guidesReplies: 44Last Post: 19th Sep 2008, 09:10 -
batch convert mkv to avi
By projecttemp in forum Video ConversionReplies: 7Last Post: 14th May 2008, 06:19