View Full Version : How to make a basic script, and how to join VOBs?
claudiobar
15th May 2006, 19:16
Hello! I'm new to avisynth; my english is not that good and I'm having some trouble...
so I'm looking for a charitative soul that would help me generating my first script.
I'm planning to use megui, and I would like to make a script with NO resizing, cropping black bars and nothing else and leave aspect ratio.. "normal" (whatever it is; in xmpeg I use VGA 1.0).
I mean, I want to take all the video info and output it straight'n clean to the codec.
I would also add a line to deinterlace (if it's necessary)
and I've got a question: I have several vobs from the same video in the hdd; how should I make avisynth (or megui) join them?
Thanks in advance!!
Claudio
neuron2
15th May 2006, 19:21
Please read and follow forum rules, specifically, rule 9: use a proper thread title. Thank you. I have edited your title this time.
http://forum.doom9.org/forum-rules.htm
You haven't told us what your source format is. Assuming it is AVI, your basic script is:
AVISource("video.avi")
Please read the available documentation at avisynth.org.
You can concatenate multiple VOBs using the DOS COPY command. Or you can load them all with DGMPGDec and serve the result via Avisynth. Read the Quick Start guide included in the package.
Revgen
15th May 2006, 19:26
@Neuron2
He's trying to encode a VOB. He's trying MeGUI after using Xmpeg for a long time.
@claudiobar
I posted a link to MeGUI Guide in the other thread. Here it is again: http://forum.doom9.org/showthread.php?t=106189
claudiobar
15th May 2006, 20:17
Ok, thanks (and sorry for the mistake neuron).
So... I guess something like this would be ok?:
DirectShowSource("C:\Uruguay\VTS_01_0.VOB")
Crop(0, 0, -90, -86)
assuming I joined all my vobs into one, of course.
is this ok?
I took the crop parameters from the "video tools" window from xmpeg; telling it that I want to "resize" to 720 x 576 and having a 1.0 VGA resolution. That's what I always used to keep the image "non-stretched" and to crop black bars from the source.
neuron2
15th May 2006, 21:46
DirectShowSource() can cause problems, especially when randomly navigating on the timeline. Most people prefer DGMPGDec for VOBs.
You have to tell us the source format (frame size and size of the black bars), as well as the desired final format, before I can tell you what script is correct. Anyway, that's something you should work out for yourself. It's really pretty simple if you read the documentation and do a few experiments.
claudiobar
15th May 2006, 22:43
I hope I'm not bothering you too much... but I think I'm finally understanding how this works!
Actually, now I'm meaning AR stuff. As I said, usually I set output aspect ratio to 1.0 in xmpeg... but my goal has always been to keep faithfull to the original.
Then: XMPEG reports this video's input AR is 16:9.
It's a PAL 25 fps.
Doing as usual (setting to resize, AR output 1.0), the black bars are 0 / 0 / 90 / 86. The picture seems to be OK, and if I screenshot, the image obtained is 720*400 aprox.
If I don't resize the black bars are 0 / 0 / 8 / 8; the image is stretched (the actors seem to be thiny) and it's almost occupying all the screen. If I screenshot, the image obtained is 720*555 aprox.
Then my question regarding this is: which way is the image stored in the DVD? It's 720*555 and then stretched when being displayed? Or it's stored in 720*400 resolution?
THNX!!!!!!!!!!!!!!!!
claudiobar
15th May 2006, 22:45
I mean, if the images are stored in the DVD in the "thiny" way, I'd prefer to compress the video that way and later tell the player (via player options or via x264 flag) to "unstretch" it.
:)
(I'm happier now)
claudiobar
15th May 2006, 22:47
BTW, I've made this script for start testing
DGMPGDec("C:\Uruguay\VTS_01_0.VOB")
Crop(0, 0, -90, -86)
Opened it w / virtualdub mod; it says that "there is no function named "DGMPGDec"
foxyshadis
15th May 2006, 22:57
Anamorphic is easy to set when muxing to mp4 or mkv, with yamb and mkvmerge, so that's not a problem. Then you just have to make sure the player and splitter's up to date to support it.
Oh, and you probably didn't add dgdecode.dll to the avisynth plugins folder. The link in neuron2's sig goes to the install, he's the author. (And you can't call a vob directly, you load it into dgindex, which gives you a d2v that you can load. Some guis will do all this for you.)
stax76
15th May 2006, 22:57
@claudiobar
If you got a problem with a application it's always a good idea to read the help of the application, DGMPGDec is like almost anything by neuron2 very well documented. Another thing is searching the internet if the help don't solve your problem.
neuron2
15th May 2006, 23:13
BTW, I've made this script for start testing
DGMPGDec("C:\Uruguay\VTS_01_0.VOB")
Crop(0, 0, -90, -86)
Opened it w / virtualdub mod; it says that "there is no function named "DGMPGDec" Did you read the Quick Start guide that I pointed you to?
http://forum.doom9.org/showthread.php?p=828132#post828132
claudiobar
15th May 2006, 23:38
I did it now!!!
Life's getting sweeter!!
I've opened the avs file in vdubmod now!! :)
So now, the last question (I hope!!)
What about the aspect radio thing?
For putting it in short terms: the video data stored in the dvd is stored in the "thiny" way and then flagged to "normal" AR when playing?
Or is it stored in "normal" way and it gets distorted when I load it in the pc?
(I asked this before in this thread, but in a different fashion)
You all are great!
neuron2
16th May 2006, 00:25
It's probably "anamorphic". Do your homework, please (search the forum and guides). This has been covered many times.
You either resize it to make it non-anamorphic ("normal"), or you keep it as is and store it in a container that supports an aspect ratio flag that can be honored at playback time.
claudiobar
16th May 2006, 12:11
Ok, thank you all, really.
I always thought I was'nt really resizing, with xmpeg.
I'm trying my first encode now... I hope things go ok.
Altough I set encoding parameters quite high (pointing at a higher quality than in xmpeg), it seems to go a little faster than my old prog.
Once again, thanks to all
Clau
(I hope not to post in this thread anymore; but if I have problems, expect me to do ;) )
claudiobar
20th May 2006, 13:15
Hello!
A little question here ;)
When I use Megui and it loads the script, it shows me a windows with the video preview, allowing me to determine the end of intro and the start of the credits.
But this does'nt affect the x264 configuration window; I mean, there I have another window when I can set zones.
Where should I set the zones? I guess it's the codec window, but I'm not sure, and I don't want to overlay them.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.