astarte: (Vidding - I vid)
Add MemoryShare This Entry
posted by [personal profile] astarte at 11:54am on 03/10/2011 under ,
There are still people out there, who are very intimidated by avisynth and how to use it to prepare their sources. So I compiled example scripts and tried to break the necessary steps down into easy to follow instructions. Everything is better and more detailed explained in this part of the A&E's guide - The 'A&E's technical guide to All Things Audio and Video' contains a lot of information and is maybe overwhelming, if you just start out with Avisynth and don't feel so confident. But you should follow it step for step while installing the software you need, which is compiled here in AMVapp.

If you followed these instructions you have among other things Avisynth installed and DGIndex. I assume I won't need to explain ripping, once that is done open DGIndex and then make sure you have Audio -> Output Method -> Disable and Video -> Field Operation -> Honor Pulldown Flags selected.

Press F2, select the ripped vobs. I always select the whole DVD, click open then press OK. Now you see a timeline on the button of your screen, go into the middle of a ep and press F6. A windows pops up with all kinds of information, press ESC and take a closer look at the window. Aspect ratio, frame rate, frame type and field order are listed there and are the important ones. I make a index subfolder in the shows folder and save all .d2v files there, because otherwise it might get confusing, if you have several DVDs and seasons. Now press F4 - rename the file to your liking forexampleS1D1 and press okay.

It is possible that when DGIndex is finished indexing that a error message pops up telling you that a field order transition was detected. Say yes to the correction. Now it tells you that the original was saved with the extension .bad, press okay and close the editor file. You should have two files, one d2v and one avs. (If for some reason there wasn't an avs-file autocreated, just drag your d2v into AvsPmod and viola, that file would be automatically an avs-file when saved.) Okay, next DVD same game, F2 - delete the old files and add the new ones. then press okay. F4 and rename it to your liking and I think you get the idea. If you move your vob-files later onto another hard drive or folder, you must reindex. (There is a trick to avoid this reindexing, if you open the d2v-file with notepad and the use ctl-h and replace the hard drive-letter.)

Now you should have installed another program AvsPmod - it is a tool that helps you edit Avisynth files and has an awesome preview function. If you open the avs-file that DGIndex created with this program and press F5 you have a preview. You will get something like this and I added the second line to get rid of deinterlacing.

mpeg2source("X:\AtS\Index\AtS1x01-1x04.d2v", cpu=6)
LeakKernelDeint(order=1) # Fast Deinterlacer


So this is good enough to import into Premiere, but it might not be the way you prefer your footage. For example I like to have a whole season in one file and that is the beauty of Avisynth, it lets you do all kinds of stuff to your footage with just one line of code. Isn't that impressive and neat? All you need is the ++ between the files and they become one file you can use to edit in Premiere.

mpeg2source("X:\AtS\Index\AtS5x01-5x04.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS5x05-5x08.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS5x09-5x11.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS5x12-5x15.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS5x16-5x19.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS5x20-5x22.d2v", cpu=6) # Full season


Now I have footage that has a few problems, I like to fix. First it is interlaced in PAL, then it is 4:3 and I don't want that, so I'll crop the frame to 16:9 with the focus slightly up in the frame, because it looks better that way for me and then resize it to PAL.

mpeg2source("X:\AtS\Index\AtS1x01-1x04.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS1x05-1x08.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS1x09-1x11.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS1x12-1x15.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS1x16-1x19.d2v", cpu=6) ++ mpeg2source("X:\AtS\Index\AtS1x20-1x22.d2v", cpu=6) # Full season
Telecide(order=1,guide=2) # PAL-Deinterlacing
Crop(8,40,-8,-104) # Cropping the footage to 16:9
LanczosResize(720,576) # Resize it to PAL-resolution


Not bad, huh? Okay, but what about downloaded eps? There are several clip attributes that play pretty much every format available. Ususally if you drag a video file into AvsPmod it gives it the clip attribute that is predefined. I prefer FFmpegSource2 for my footage, because it doesn't mesh up my mkvs and again it indexes the video files when they are first loaded for example for the preview and this index gives you frame accuracy. Just dump the contents of the downloaded file into your Avisynth plugin folder and it should work. To load this script for the first time you should be ready to wait a few minutes, while the vidfiles get indexed.

FFmpegSource2("X:\...\exampleshow1x01.mpg") ++ FFmpegSource2("X:\...\exampleshow1x02.mpg") ++ FFmpegSource2("X:\...\exampleshow1x03.mpg") ++ FFmpegSource2("X:\...\exampleshow1x04.mpg") # Full season
LanczosResize(720,576) # Resize it to PAL-resolution
AssumeFPS(25) # PAL framerate
ConvertToRGB32 # Colorspace for Premiere


Again the cool thing about avisynth is the ability to combine files, if they have the same resolution and framerate. If not you'll get an error message.

FFmpegSource2("X:\...\exampleshow1x01.mkv") ++ FFmpegSource2("X:\...\exampleshow1x02.mkv") ++ FFmpegSource2("X:\...\exampleshow1x03.mkv") ++ FFmpegSource2("X:\...\exampleshow1x04.mkv") # Full season
LanczosResize(720,576) # Resize it to PAL-resolution
AssumeFPS(25) # PAL framerate
ConvertToRGB32 # Colorspace for Premiere



Again I'm not an expert and these are basically the way I set my footage up. But I might be able to answer some question.
There are 10 comments on this entry. (Reply.)
 
posted by [identity profile] xandra-ptv.livejournal.com at 04:03pm on 03/10/2011
oh dear.
 
posted by [identity profile] astartexx.livejournal.com at 05:02pm on 03/10/2011
*pets* It came up in another comment, babe, I had to do it.
 
posted by [identity profile] anoel.livejournal.com at 05:44am on 20/10/2011
Thanks for this, it's great. So you do add the RGB32 for downloaded eps? Do you know why? Also if you're just using avi's, there a reason FFmpegSource is it better with the indexing than AVISource?
 
posted by [identity profile] astartexx.livejournal.com at 06:50pm on 20/10/2011
I started to add the RGB32 to everything, downloaded eps included, after some problems with footage in premiere showed up. It didn't fix my problem back then, but I kept it. The explanation I read in a tutorial was somewhere along the lines that RGB is the colorspace that Premiere can handle best and it can help avoid problems, if your footage is YUV (YV12). So it's not necessary, some even said that you should only add it, if you need it. So you could lose it on DVDs and dled eps.

It's interesting that you picked up on the one thing, I wasn't sure. I didn't had problems with AVISource in the past, in fact, I do all my after-filtering with that clip attribute and I used it in the past without troubles for my source. AVISource is frame accurate, so there shouldn't be a problem on that front.
heresluck: (vidding: vid all the things?)
posted by [personal profile] heresluck at 11:55pm on 05/01/2012
I'm about to start vidding with .mkvs for the first time, and you have just saved me a ton of trial-and-error time. THANK YOU.
 
posted by [identity profile] astartexx.livejournal.com at 01:54am on 06/01/2012
Yay. So happy it works, I had some trouble installing it the first time two or three years ago. But then I had so many trial and error experiences when I first looked into mkv-scripting, it took me ages to work it out. I'm really glad I could help.
heresluck: (vidding)
posted by [personal profile] heresluck at 02:51am on 06/01/2012
AND I just figured out how to disable the audio track. \o/
 
posted by [identity profile] astartexx.livejournal.com at 06:59pm on 06/01/2012
There are several ways, KillAudio() is one or , false and some clip attributes don't even load the audio without further prompting like FFmpegSource2. That's the reason why I love working avisynth. It's so flexible and neat.

The drawback is that looking back at this three months later and after some comparing on Vid Pub (http://vidpub.proboards.com/index.cgi?), I already changed parts of my code for the source like skipping the predefined cropping and working with the correct aspect ratio in the project files.
heresluck: (vidding)
posted by [personal profile] heresluck at 08:59pm on 06/01/2012
Yeah, I have plenty of scripts for different ways of dealing with aspect ratio -- I've changed how I handle that several times in the last few years, especially once I figured out how to use Premiere's Interpret Footage settings -- and for color tweaking and post-processing and so on (and thank goodness I put #comments in to remind me what the different lines do or in some cases I would have NO IDEA). But the .mkvs themselves would have baffled me if I hadn't dimly remembered that you'd posted about it. I even had the FFmpeg codecs all installed -- I just wouldn't have known that that was what I should use.

Now I'm mostly bitter that I have this lovely shiny HD source... with logos on it. So I can either cope with the logos or use lower-quality source once the DVDs come out. *facepalm*
 
posted by [identity profile] astartexx.livejournal.com at 12:58am on 08/01/2012
Oh I feel your pain - first world problems, we got them. I mean even with all my external hard drives, ripping Blu Rays would eat through my remaining space like a hungry monster on the prowl. I'm so not ready for that. But there is something wrong, when dled footage looks better than the DVD one. I have heard, that vidding demands some sacrifices... either in quality, hard drive space or sanity. *face palm*

Links

December

SunMonTueWedThuFriSat
        1 2
 
3
 
4
 
5 6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18 19
 
20 21
 
22
 
23
 
24
 
25 26
 
27
 
28
 
29
 
30
 
31