Quote:
Originally Posted by incredible
Well as I know besweet does also handle direct AVI inputs and therfore a detection/conversion of the muxed audiostream of the avi.
So I have to do add to the source file parser an option to affect the besweet line.
BUT for the Interface architecture that means a lot of work as its totally IFO/VOB parsing based. So in case of AVI one AudioChannel Settings should be present/selectable which would affect Besweets AVI handling. ... hmmmmm.
I always thought of applying direct AVI audio as Im a capture Addict which would very useful (If just seen egoistic :P  )
If I do understand you right related to ypur point 3 you want packshot to be able to build a multiple VOB streams pipe.
I testet some DOS commands etc. lice cat etc. but it didnt worked, so as since some time some updates of the CVS releases have been rleased that could now be possible via a mencoder command? Or is it possible to do that via DOS?
Packshot JUST writes a commandline so IF its possible, that could be done.
As told in another Thread im poco a poco in packshot upgrading progress, but now I got a lot to do, the new Mencalc is 99% ready (including Movie Pixel area determination and first crop and then resize/add borders).
So its all about time 
|
Some hints that maybe wasn't see yet:
1 - You can put a DVD in DVD drive and obtain m2v and ac3 or mp2 files for KDVD target, or an mpg KVCD mpeg2,
direct from DVD drive to KDVD or KVCD mpeg2. You can set this as an option in your GUI.
A - Audio First Pass
Code:
mencoder.exe -alang es,en -af volume=30 -noskip ovc frameno -oac lavc -lavcopts acodec=ac3:abitrate=384 -ofps 25 dvd:// -o "samples\Temp.avi"
After it:
Code:
AVI2WAVCMD samples\Temp samples\Temp1.ac3
ac3fix samples\Temp1.ac3 samples\Temp.ac3
Maybe in place of avi2wav line (it extract ac3 from temp.avi that is an special frameno.avi with fourcc FRMN) we can use BeSweet, I don't check it yet.
ac3fix line is only for security.
You can play here with:
-alang: setting it as an option in interface, you can select what language track demux.
- af:
-volume
-channels (2,4,6) Not in code over this but you can select it 2 for stereo, 4 for surround and 6 for 5.1. I don't know if it really give us a 5.1 ac3 (how must I check it?). When i did use -channels 6, actors voices was in left channel of my headset, but if channel wasn't be used, audio was ok. Maybe you can use -pan option also. If you don't use channels option, you will obtain 2 channels ac3 file.
lavc -lavcopts:
acodec=ac3 We know that mp2 is not good, but ac3 I think is good enough.
abitrate=384 as you can see, this setting can be parsed.
and other options in:
http://www.mplayerhq.hu/DOCS/man/en/...DEMUXER/STREAM OPTIONS
http://www.mplayerhq.hu/DOCS/man/en/...DING/FILTERING OPTIONS
B - After audio lines, mencoder 2 pass lines an so.
2 - You can take an avi file with mencoder and, even has 2 tracks (or more), to extract what you want (not with avi video+ogg audio files):
A - Audio First Pass
Code:
mencoder.exe -aid 1 -af volume=30 -noskip ovc frameno -oac lavc -lavcopts acodec=ac3:abitrate=128 -ofps 25 "samples\Movie.avi" -o "samples\Temp.avi"
After it:
Code:
AVI2WAVCMD samples\Temp samples\Temp1.ac3
ac3fix samples\Temp1.ac3 samples\Temp.ac3
-aid says to mencoder what track it must to extract.
Select audio channel [MPEG: 0-31 AVI/OGM: 1-99 ASF/ RM: 0-127 VOB(AC3): 128-159 VOB(LPCM): 160-191 MPEG-TS 17-8190]
B - After audio lines, mencoder 2 pass lines an so.
In this case (or better in all cases) you can add a preview of video and audio, mainly to check that audio is in correct language:
Code:
mencoder.exe -ss 10:00 -endpos 03:00 -aid 1 -af volume=30 -noskip ovc frameno -oac lavc -lavcopts acodec=ac3:abitrate=128 -ofps 25 "samples\Movie.avi" -o "samples\Temp.avi"
or
Code:
mencoder.exe -ss 10:00 -endpos 03:00 -alang es,en -af volume=30 -noskip ovc frameno -oac lavc -lavcopts acodec=ac3:abitrate=384 -ofps 25 dvd:// -o "samples\Temp.avi"
-ss 10:00 -endpos 03:00 means from ss min:sec to ss min:sec+endpos min:sec.
Both cases followed with video passes, mp2 encode, multiplex and preview with MPlayer.
3 - For multiple vobs it is so easy as:
Put in you GUI a check box for select a flag of a last vob from several.
Name vobs with a final order number:
Matrix01.vob
Matrix02.vob
Matrix03.vob
Matrix04.vob
Assigning Matrix to a variable.
Code:
Set Moviename=Movie name # (here Movie name is loaded movie name)
Set checkvob=%Moviename:~0,-6% # (this take your movie name without 0#.vob extension)
Add a flag to last vob that means it is last vob from several.
Encode it, all vobs, as usual with a batch encode.
At end of each encode put in your code a check line that check multiple vobs flag, and if this flag is on:
cmd code
Code:
For %%G in (%checkvob%*.m2v) Do copy /b %%G %checkvob%.m2v
For %%G in (%checkvob%*.mp2) Do copy /b %%G %checkvob%.mp2 # or ac3
If target is KVCD mpeg2, multiplex it as usual.
If you were interested, I can say you a way to obtain a bin-cue file with chapters, ready to be burned.
I really think if you do all this functions, you will have the better KDVD/KVCD encoding tool until now, in spite of the mencoder lacks.
I think mencoder is, with all its functions, the better encoder at the moment.