![]() |
Automating MEncoder .......
Just finished the encode.bat for semi-automation and my only opinion is
this is a very sloooooooow method. :roll: With the simulated MA parms, this process is averaging 20+ hours for a 120+ min movie. WOW :roll: Oh well, here my batch file: ::DVDDecrypter /MODE FILE /DEST "F:\Temp\" /START /CLOSE :: | DVD2AVI (Force Film) | DVD2avi -IA=1 -FO=1 -CS=2 -YR=1 -TN=1 -AIF=[F:\Temp\vts_01_1.vob] -CF=4 -DD=1 -DRC=2 -OF=[F:\Temp\movie] -exit :: | DVA2AVI (Interlaced) | ::DVD2AVI -A=1 -FO=0 -CS=2 -YR=1 -TN=1 -AIF=[F:\Temp\vts_01_1.vob] -CF=4 -DD=1 -DRC=2 -OF=[F:\Temp\movie] -exit :: | Audio BeSweet | FOR %%A IN (f:\Temp\*.ac3) DO BeSweet.exe -core( -input "%%A" -output "f:\Temp\movie.mp2" ) -ssrc( --rate 44100 ) -boost( /b3=5 /l=0.95 ) -mp2enc( -s 44.1 -b 64 ) :: | MEncoderME (Batch) | Mencoder.exe -include Kwag.conf -lavcopts vbitrate=842:vpass=1 "F:\Temp\VTS_01_1.VOB" -o /dev/null Mencoder.exe -include Kwag.conf -lavcopts vbitrate=842:vpass=2 "F:\Temp\VTS_01_1.VOB" -o "F:\Temp\part1.mpv" Mencoder.exe -include Kwag.conf -lavcopts vbitrate=842:vpass=1 "F:\Temp\VTS_01_2.VOB" -o /dev/null Mencoder.exe -include Kwag.conf -lavcopts vbitrate=842:vpass=2 "F:\Temp\VTS_01_2.VOB" -o "F:\Temp\part2.mpv" Mencoder.exe -include Kwag.conf -lavcopts vbitrate=842:vpass=1 "F:\Temp\VTS_01_3.VOB" -o /dev/null Mencoder.exe -include Kwag.conf -lavcopts vbitrate=842:vpass=2 "F:\Temp\VTS_01_3.VOB" -o "F:\Temp\part3.mpv" Mencoder.exe -include Kwag.conf -lavcopts vbitrate=842:vpass=1 "F:\Temp\VTS_01_4.VOB" -o /dev/null Mencoder.exe -include Kwag.conf -lavcopts vbitrate=842:vpass=2 "F:\Temp\VTS_01_4.VOB" -o "F:\Temp\part4.mpv" :: | Join Video parts | SET MOVIEFOLDER=f:\Temp SET /P MOVIEFOLDER= Input Movie folder path: COPY /B %MOVIEFOLDER%\*.mpv %MOVIEFOLDER%\KSVCD.mpv :: | Pulldown (2:3) | Pulldown.exe "F:\Temp\KSVCD.mpv" "F:\Temp\movie.mpv" :: | Multiplex Audio + Video | mplex.exe -f 4 -v 1 -b 230 -V -p 1 -h -S 795 -M -o "F:\Temp\movie.mpg" "f:\Temp\movie.mpv" "f:\Temp\movie.mp2" :: | Shutdown Computer | shutdown.exe ::pause :: = comment line and as you may have figured my work directory is f:\Temp. :wink: Well, it works, but I applied for social (no) security now before my next encode. :mrgreen: -BP |
Hi BP,
Is your "conf" file something like this :?: : vf=yuvcsp,pullup,softskip,crop=704:460:0:6,scale=6 72:320,hqdn3d,sab=.5:.5:1,noise=1th,expand=704:480 Of course, the resizing would be different for you, but the filter values is what counts. -kwag |
Re: Automating MEncoder .......
Quote:
1 - Why you use 64KB for audio? It is enough quality? 2 - Under this line: Code:
SET /P MOVIEFOLDER= Input Movie folder path (Enter = F:\TempCode:
IF /I '%MOVIEFOLDER%'=='' SET MOVIEFOLDER=F:\Temp3 - What do you think about these lines: Code:
For %%V IN (F:\Temp\*.vob) DO Mencoder.exe -include Kwag.conf -passlogfile %%V.log -lavcopts vbitrate=842:vpass=1 "%%V" -o /dev/null4 - What is verbose function in Mplex and why you select it in 1 (-v 1). 5 - Why you set buffer in 230. 6 - What mean system header option (-h). Is this option needed? 7 - I think that you don't need -S 795 option. Supose rare case that mencoder.exe give you a 797MB file, you will lost your work and you will need to encode vob again. 8 - Why do you use -M option? -------------------------- Visit: Intermediate guide: MencodeMe/Win32 - Avisynth - MakeAvis by Prodater64. Visit: KVCD - MencodeMe - Auxiliar Task - KVCD Docking Gate by Prodater64. Visit: Mencoder scripting with AVSEdit and Guide for Multiple Files by Prodater64. Visit: Mini-guide quick and easy - DVD to (S)KVCD with MencodeMe by Maurus. Visit: Mencode-me: a newbie oriented GUI - 0.23 is out! by VMesquita. -------------------------- http://www.digitalfaq.com/archives/error.gif |
@Kwag,
Quote:
vf=yuvcsp,pullup,softskip,scale=720:480::0:9,crop= 704:480:8:0,noise=3th,unsharp=l3x3:0.6,hqdn3d,sab= 0.5:0.5:1,unsharp=l3x3:-0.7:c3x3:-1.5,expand=704:480:0:0 I used MenCalc for scale,crop,expand parms @Prod, Quote:
Quote:
-f 4 ---> 4=SVCD format -b 230 -> buffer 230 -V ---> multiplex VBR -p 1 ---> 1=num of packets per pack -h ---> Create system Header in every pack -S 795 -> Max size of output file to split on -M ----> Split a seqence across files -BP |
Just a quick question:
You output seperate mpv files, then join them, but there's no join for the mp2. Does besweet automatically join the files in that FOR %%A IN (f:\Temp\*.ac3) DO BeSweet.exe -core( -input "%%A" -output "f:\Temp\movie.mp2" )<snipped> line? I see only the one output file, movie.mp2, so I'm guesing that it does add the "for %%A.ac3" all into one, can you confirm? (If so, it'd save me a lot of mucking around!! LOL :lol: :lol: :lol: ) Secondly, just noticed, dvd2avi's command line has "-CF=4 -DD=1" these don't appear in my version's command line reference, what do they do? (and which version has them? (I've got the 'fixed' 1.30 version, (I don't like the "new" dgmpgenc program, it outputs unplayable d2v's)). Thanks mate. |
@Fluffbutt
Quote:
dvd2avi commandline options: -iDCT-Algorithm -IA (1=32-bit SSE MMX (default) 2=64-bit Floating Point 3=IEEE-1180 Reference) -Field-Operation -FO (0=None (default) 1=Force Film 2=Swap Fields) -Color-Space -CS (1=RGB 24-bit 2=YUV 4:2:2) -YUV-RGB -YR (1=PC Scale (default) 2=TV Scale) -Luminance-Filter -LF (Not implemented yet) -Track-Number -TN (0=None (default) 1-8=Track 1 to 8 ) -Channel-Format -CF (1=Dolby Digital 2=MPEG Audio 3=Linear PCM 4=Auto Select (default)) -Dolby-Digital -DD (1=Demux (default) 2=Demux All Tracks 3=Decode) -MPEG-Audio -MA (1=Demux (default) 2=Demux All Tracks) -Dynamic-Range-Control -DRC (0=Off (default) 1=Light 2=Normal 3=Heavy) -Dolby-Surround-Downmix -DSD (0=Off 1=On (default)) -48-44.1KHz -DM -Normalization -NO (Not implemented) -Input-Files -IF ([file1,file2,file3,......]) -Auto-Input-Files -AIF ([file1]) Autoloads VOB files incrementally. -Output-File -OF ([project file name] No Extension) -Exit (Exits when Project has been saved) Example: dvd2avi -ia=2 -FO=2 -Cs=2 -YR=2 -TN=2 -IF=[D:\vobfiles\vts_02_1.vob,D:\vobfiles\vts_02_2.vob] -CF=3 -DD=2 -DRC=1 -OF= -exit The above will save a project file named d:\MyProject.d2v Kind Regards, dvd2svcd Quote:
This creates a full .ac3 file, so BeSweet can process the whole audio file .mp2 for multiplexing later. I'm having a problem with: For %%V IN (F:\Temp\*.vob) DO Mencoder.exe -include Kwag.conf -passlogfile %%V.log -lavcopts vbitrate=842:vpass=1 "%%V" -o /dev/null For %%V IN (F:\Temp\*.vob) DO Mencoder.exe -include Kwag.conf -passlogfile %%V.log -lavcopts vbitrate=842:vpass=2 "%%V" -o "%%V.mpv It's picks of each .vob, but overwrites the previous .mpv. Got to work on this some more :roll: Comments: This process with the MEncoder filters is giving 4fps and averaging 20 or more hours per encode. Yes, the quality is better, but is this worth running my PC a day or more for 1 movie backup. I also realize this is a test phase and improvements could come. I'll stop testing and wait for this encoder to mature. :roll: -BP |
Thanks BP.
I didn't use that version because someone said about the two different output settings (save as 1.74 format, and save as normal (1.76). I didn't see how to select that on the command line. :oops: :oops: :oops: Sorry, BP, I forgot about dvd2avi and it's auto-add vob files - of course it's adding them all and outputting a big final file. and your using the "for" as a hacky way of not having to name the ac3 file, neat! Sorry mate, stupid question. <edited out a possible answer to your "for" loop problem - I realized it wasn't an answer at all> :idea: Just noticed your config file line noise=3th,unsharp=l3x3:0.6,hqdn3d,sab=0.5:0.5:1,un sharp=l3x3:-0.7:c3x3:-1.5, Having noise there would have it wiped out by the hqdn3d filter. You'd need to have unsharp=l3x3:0.6,hqdn3d,sab=0.5:0.5:1,unsharp=l3x3 :-0.7:c3x3:-1.5,noise=3th Although I don't understand why you use two unsharp's like that - your original was add noise - sharpen lum tiny - denoise - blur lum tiny, blur chrom lots. That seems a strange sequence to me. (forgotten for now what sab does, lol) I'd suggest hqdn3d,sab=0.5:0.5:1,unsharp=l3x3:-0.7:c3x3:-1.5,noise=3th, without the initial unsharp. |
Hya :),
What would that be? Two commands, one after the other in the same command line? Try dir&cls. Works for me. Cheers |
Quote:
(was pretty good at it too. My dos mem free was 638, with cd dev driver, and a mouse loaded :lol: :lol: :lol: ) Thanks lots, mate! Another thing I forgot to say - I've tested the various unsharp +/- levels, and it has strong effects on perceived movie brightness. unsharp at -1.5 in lum gives a very muddy image, unsharp =1.5 lum gives a bright sparky image (too sharp tho, blocks everywhere). I think you need to keep to small amounts to just shapen/blur enough without altering the image density. Unsharp -1.5 is like gamma .6, unsharp +1.5 is like gamma 2.4 (in photoshop, I tested it out there). |
Quote:
As your vobs names are "VTS_01_1.VOB" and so on, script tell us that mpv will named "VTS_01_1.VOB.mpv" an so on. Only I see one thing in your script, you are wrote: Quote:
Quote:
-------------------------- Visit: Intermediate guide: MencodeMe/Win32 - Avisynth - MakeAvis by Prodater64. Visit: KVCD - MencodeMe - Auxiliar Task - KVCD Docking Gate by Prodater64. Visit: Mencoder scripting with AVSEdit and Guide for Multiple Files by Prodater64. Visit: Mini-guide quick and easy - DVD to (S)KVCD with MencodeMe by Maurus. Visit: Mencode-me: a newbie oriented GUI - 0.23 is out! by VMesquita. -------------------------- http://www.digitalfaq.com/archives/error.gif |
Quote:
For %%V IN (F:\Temp\*.vob) DO (Mencoder.exe -include Kwag.conf -passlogfile "%%V.log" -lavcopts vbitrate=842:vpass=1 "%%V" -o /dev/null Mencoder.exe -include Kwag.conf -passlogfile "%%V.log" -lavcopts vbitrate=842:vpass=2 "%%V" -o "%%V.mpv") This should do pass1 then pass2 of the same xx.vob file, then move onto the next, and so on. the () makes dos treat all commands inside as parsed from the one "for" loop. |
@Prod,
Quote:
The whole process is semi-automated :) I have to use CalcMatic to get bitrate and depending on the movie, change the resolution in Kwag.conf. :mrgreen: @Kwag, I tried using avisynth script with MA in place of MEncoder's internal filters and the fps were even worse. I'm ok with DVD Decrypter/ DVD2AVI/ avisynth script with MA/ Tmpgenc/ CQTester/...etc. It's encodes in reasonable time (6 to 8 hours) from beginning to burn and the quality is good. -BP |
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.