Thanks that AvsP is pretty great if you ask me, I might make some good use of it for getting started.Originally Posted by poisondeathray
Yeah I think I prefer to load them that way, it reminds me of comments in html code to help you know where everything is. Ill decide for sure later on as I get more exp with this.
oh I see, alright Ill keep the audio thing in mind. You sure do fill in the blanks pretty good when somethings asked.
last question I can think of for now would be. where you put video=last could I put the same thing as the location for the mpeg2source? I dunno why you put last im guessing it means last source stated but I could be wrong.
+ Reply to Thread
Results 31 to 60 of 79
-
-
I used vid=last , which means all the stuff before now gets assigned the variable "vid". You could have just as easily called it "myvideo=last".
You could have done it all on 1 line as well, and used "." to separate the commands. I broke it up to make it easier to see. It helps with newbie coders like myself
e.g.
vid = mpeg2source().tfm().tdecimate.Crop(6,0,-4,0).LanczosResize(640,480).Deen().LSFMod(strength =50) -
Originally Posted by manono
Nice job on the description and examples!! -
Originally Posted by poisondeathray
the only thing Im tryin to figure out is why everytime I try to use Deen() it wants to say "Script error: there is no function named "deen" maybe Im missing a plugin for it or something. Because I have no deen.dll in plugins. That or I need to read the one of those 3 links you gave me earlier over again.
EDIT: nevermind, I got it. I just needed a plugin and it works great. -
Filtering and scripts is part of the equation , but encoders and settings are another part. Interesting comparisons by manono, were they done at xvid Q=2 ?
Not to rain on the xvid parade, but if you don't need xvid for standalone player compatibiilty , x264 will give you much cleaner results at about 1/2 the size of xvid , especially on clean anime. x264 is highly configurable, and you can optimize for anime, or other sources like heavy grain or detailed blu-ray movies, etc
This was 6.88MB, or 1.5Mb/s, less than 1/2 the size of #3. I included #3 for comparison, the zoom script png of #7 which is the x264 example, and the full frame png of x264 to show that the other details like background,etc aren't eroded that much. I used my original script. Filtering is a balancing act. If you filter too much, you will oversmooth and erode details
7.%20257%20x264%201.5mbps%20zoom%20script.zip -
Im more interested in doing all of this to my Naruto DVD's than I am my Elemental Gelade ones. The only thing is, the Naruto source seems much harder to work with than the elemental gelade one is. So far Ive been able to make a better quality test using AVISynth than I could with VirtualDubMod with the method Ive been using. So I guess thats a plus!! But their both still crap if compared to my elemental gelade sample I had posted at first I think.
After all the reading on Deinterlacing and Telecining and IVTC and and stuff it seems the most difficult thing for me is deciding wtf to use in my fixes and whats wrong with the source to begin with :/ Im starting to feel like an idiot. For example, to me its telecined or interlaced, to a pro, its "hard telecined" and "progressively interlaced" on top of it. How the hell they know for sure is beyond me sometimes. I wish some of the little details I take in as I read would stay in my head instead of leave when I move onto another subject sometimes lol.
Yeah Im well aware h.264 is much better, its just I wanted to get doing this to Xvid or Divx down before I worked with h.264. The only way I know how to use h.264 is with MKV files and Handbrake. -
I was trying to find the guide that I had seen with this information, but was unsuccessful. The closest one that I found was this.
At any rate, create an avs file like this:
Code:loadplugin("Path\To\DGDecode.dll") MPEG2Source("video.d2v") AssumeTFF().SeparateFields()
aabbccdd = progressive (all progressive frames)
abcdefgh = interlaced (all interlaced frames...I think, been a while)
aaabbcccdd = 3:2 pulldown (3 progressive, 2 interlaced, etc)
The problem is that you are starting off with some of the most difficult material to deal with (anime) from what I have read. I am not a big anime fan, so I haven't had to deal with it. I don't know the extent of what you will see with that material when using the method I listed above. -
Originally Posted by poisondeathray
No, I wasn't suggesting that XviD can encode as well as x264 for the same file sizes. That would be silly. I don't even encode all that much anime these days. But many, including me, use DVD/MPEG-4 players and we still have use for XviD AVIs. I expect that in the next couple of years that standalones supporting x/H.264 will become more common and then the great switch will begin. Those with HTPCs, and those other boxes like the Popcorn Hour, the Western Digital one, PS3s, X-Box 360s are already enjoying the benefits of the better compression ability of x264. And if not all the ones I just named support it, forgive me because I'm not up on what supports what. -
Originally Posted by txporter
The script I gave earlier treats the film parts (the soft telecined frames) as film (leaves them alone) and IVTCs the video parts (the hard telecined frames). At the very bottom of the D2V you can find out what percentage of the entire thing is film and what percentage is video. Anime gets tricky, though, because nowadays some of it is often pure 29.97fps, either interlaced or progressive or a mix of both, and it's impossible to get it down to 23.976fps without removing unique frames. Some people will do VFR encodes, keeping each part at its native framerate. Others use some of the IVTC tricks (blending frames together) to try and lessen the jerkiness when encoding for 23.976fps. The sample we were given to examine was 97% film, with a few frames of hard telecine. -
Originally Posted by manono
well this is the "source" Im attempting to work with now. http://www.mediafire.com/?lzwdqzygy44 I kinda halted on my Elemental Gelade ones. Its pretty much 100% NTSC at 29.97fps according to DGIndex. I thought the only type you wanted to drag back to 23.976fps was FILM such as my previous source shown. so if its NTSC I shouldnt bother to pulldown the constant 29.97fps and instead, just keep it the same right?
Im just asking because I see those blinds I mentioned before on it and the only thing Ive seen so far that gets rid of them is
TFM().TDecimate()
the only thing is, I believe its pulling it down to 23.976fps. Do I want to change the method? I notice some frames removed I think but its also the only thing I tried so far that gets rid of the blind like lines through it. What do you suggest?
Heres a sample of the current AVI output I get from the AVISynth script if you want it. http://www.mediafire.com/?xnz3nzwjiyd
Its pretty basic and Im just trying things out at the moment but its given me the best output so far. Its better than my previous method with my last sample using virtualdubmod without AVISynth but I still think it could be better. For some reason Im just not quite taking a liking to the current output quality.
LoadPlugin("M:\Desktop M\My Documents\My Videos\Encoding Stuff\VOB To AVI stuff\dgmpgdec157\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ac3source.dll")
MPEG2Source("C:\Documents and Settings\User\Desktop\VIDEO_TS\VTS_01_1.d2v")
TFM().TDecimate()
Deen()
LSFMod(strength=50)
Crop(8,6,-8,0)
LanczosResize(640,480)
video=last
audio=AC3Source("C:\Documents and Settings\User\Desktop\VIDEO_TS\VTS_01_1 T80 2_0ch 192Kbps DELAY 0ms.ac3")
audiodub(video,audio) -
Originally Posted by darkdream4
If DGIndex shows it as 100% Video (NTSC), it can be one of 3 things:
1. Hard Telecine - It can and should be IVTC'd back to 23.976fps.
2. Interlaced Video - Anime sometimes has interlaced 29.97fps credits, intros, and even sometimes scatters it around the episodes.
3. Progressive 29.97fps. (DGIndex may say either Interlaced or Progressive NTSC) - The intros are particularly likely to contain some of this. I've also seen it in the episodes from time to time. Just hope you don't have any like this.
4. There's a 4th instance, but it doesn't often apply to anime. That's when a PAL source is fieldblended for NTSC DVD. It can be unblended and also shows in DGIndex as NTSC Interlaced.
To find out what you have, put on the script txporter suggested and follow his guidelines to figure out what has to be done.
By the way, if making an AVI, as you seem to be doing, you don't have to mess with the audio in the script. You can just mux it in while encoding. I never do anything with audio in a script. To my way of thinking it just complicates things needlessly. Of course, not everyone agrees with me on that point. But VDub(Mod) can easily mux in audio.
Edit: I had a look at the sample and it's standard hard telecine and can easily be IVTC'd:
TFM()
TDecimate()
There's some dot crawl along the sides in some of it which should probably be cropped away. -
Originally Posted by manono
Thanks for the information. And also the fps information. It helped enough to keep me from having to beg someone what type it is.
Yeah I posted something about the audio a while back. I had an audio issue. It worked perfect when virtualdub was doing the audio part but the script was givin me the problem below. I just didnt know if I should have used AVISynth for everything or not. Apparently audio might cause less problems out of the script and muxed in with VirtualDubMod.
Originally Posted by darkdream4 -
I already addressed the audio issue. Use NicAC3Source instead. It works in sync. Check with only the IVTC filter, not all the denoiser, sharpeners etc... because they add cpu overhead, and you might not get realtime playback
Code:MPEG2Ssource("VTS_01_1.d2v") Animeivtc(mode=1, aa=0) vid=last aud=NicAC3Source("VTS_01_1 T81 2_0ch 192Kbps DELAY 0ms.ac3") AudioDub(vid,aud)
This sample is Naruto again right? I had a look at it, and some of the dot crawl filters like checkmate work ok on it, there are a few frames that still have minor dot crawl artifacts. You can try other dot crawl filters, or play with checkmate settings, but most of the artifacting is eliminated. Ask on D9 if you want something better
Code:MPEG2Source("VTS_01_1.d2v") Checkmate() Animeivtc(mode=1, aa=0) ChubbyRain2() Deen() AwarpSharp2(depth=8) Toon(strength=0.5) Tweak(sat=1.1) LSFMod(strength=50) Crop(6,2,-6,0) LanczosResize(640,480) vid=last aud=NicAC3Source("VTS_01_1 T81 2_0ch 192Kbps DELAY 0ms.ac3") Audiodub(vid,aud)
AnimeIVTC is an aggregate function, in mode=1 it is simple IVTC for hard telecine. You could have used TFM.TDecimate, but I'm learning about AnimeIVTC right now so I'm just playing with it
Chubbyrain2 is to help with the rainbowing
Awarpsharp2 is to help line thinning
Toon is a line darkener
Tweak with sat is a saturation adjuster
Read the documentation for more info. Take out each filter 1 by one and play with the settings and values to learn what each is doing as you preview it in AvsP. That's the only way to learn. Don't just copy & paste. Use this as a starting point to learn about the filters. Remember every source is different, and you might have to adjust the values , even between episodes or even sections within an episode -
Originally Posted by poisondeathray
I already had the audio problem fixed by doing what you said before. I was just telling him about the audio issue I had thats all. Nicac3source worked for me.
and yeah Ive been reading up on and learning anime IVTC 2.0 which apparently just came out and 1.6.01 from doom9 as well. It seems pretty handy to me. Got more filters and tools than I will need it feels like. I think I got this AVISynth down pretty much. Its all a matter of knowing what plugins and filters will work best for your source and understanding what all the possible settings for them do and your pretty much set it feels like.
Though I will admit, I still for the life of me cannot find a script that allows me to change just the saturation. Ive seen tweak and RGBAdjust but it confuses me just a little. All I really wanted to do was change the saturation to about 120% so it had a little more color. What I was reading kinda threw me off a little. perhaps you could explain it a little better? heres where I was reading. The one about saturation in your example looks easy. The ones I was reading about (tweak) on here were confusing me a bit on how to type it properly.
http://avisynth.org/mediawiki/Tweak
http://avisynth.org/mediawiki/RgbAdjust
Yup thats what I been doing to learn, exactly what you said. I been at this point fooling with em one at a time and checking the documentations. AVISynth isnt so bad when it starts to make sense lol. You begin to wonder how you ever got by without it.
I still thank you and manono most. You guys gave me my biggest jumpstart at learning and getting started at this. Ill check out all those filters I see in the script and read up on each of em so I can make the best of em. -
Don't use RGBAdjust if all you want to do is boost the saturation. That's something for which Tweak was designed:
Tweak(Sat=1.2,Coring=False)
Would using the selection Force Film in DGIndex be better than that piece of script? It also pulls it back to 23.976fps. -
Originally Posted by poisondeathray
I get a Script error: there is no function named "ChubbyRain2" and I dont see any .dll for download anywhere. I musta looked on google for about 15 minutes and all I find are links to scripts with it being used in it, mostly on Doom9. How did you get this working? -
Originally Posted by manono
Alrighty Ill be sure to remember that about 100% NTSC sources. Thats pretty important to remember. -
chubbyrain2 is an .avsi autoloading script
http://forum.doom9.org/showthread.php?t=143438
When you do searches in google, use "doom9 chubbyrain2"; or doom9 something something etc... google search engine is 10000x better than doom9's search engine
chubbyrain2.avsi -
Originally Posted by poisondeathray
Traceback (most recent call last):
File "AvsP.pyo", line 5804, in OnMenuVideoRefresh
File "AvsP.pyo", line 8822, in ShowVideoFrame
File "AvsP.pyo", line 9256, in UpdateScriptAVI
File "pyavs.pyo", line 186, in __init__
File "avisynth.pyo", line 117, in Invoke
WindowsError: exception: access violation reading 0x00000004 -
Originally Posted by darkdream4
-
Im using this and it wont work
LoadPlugin("M:\Desktop M\My Documents\My Videos\Encoding Stuff\VOB To AVI stuff\dgmpgdec157\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ac3source.dll")
MPEG2Source("C:\Documents and Settings\Aiden\Desktop\VIDEO_TS\VTS_01_1.d2v", cpu=4, iPP=true, moderate_v=40)
Checkmate()
Animeivtc(mode=1, aa=0)
ChubbyRain2()
Deen()
AwarpSharp2(depth=8)
Toon(strength=0.5)
Tweak(sat=1.1)
LSFMod(strength=50)
Crop(8,6,-8,0)
LanczosResize(640,480)
video=last
audio=AC3Source("C:\Documents and Settings\Aiden\Desktop\VIDEO_TS\VTS_01_1 T80 2_0ch 192Kbps DELAY 0ms.ac3")
audiodub(video,audio)
I cant get the chubbyrain2 to work at all. I took it out and tried to refresh and just not use it and then toon got highlighted and it says awarpsharp isnt loaded
it works perfectly fine for me when I take out the Toon line. -
Man that chubbyrain2 is just giving me hell. I cant even get virtualdub to open it or that AvsP.
LoadPlugin("M:\Desktop M\My Documents\My Videos\Encoding Stuff\VOB To AVI stuff\dgmpgdec157\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ac3source.dll")
MPEG2Source("C:\Documents and Settings\User\Desktop\VIDEO_TS\VTS_01_1.d2v", cpu=4, iPP=true, moderate_v=40)
Checkmate()
Animeivtc(mode=1, aa=0)
Deen()
ChubbyRain2()
AwarpSharp2(depth=8)
Toon(strength=0.5)
Tweak(sat=1.1)
LSFMod(strength=50)
Crop(8,6,-8,0)
LanczosResize(640,480)
video=last
audio=AC3Source("C:\Documents and Settings\Aiden\Desktop\VIDEO_TS\VTS_01_1 T80 2_0ch 192Kbps DELAY 0ms.ac3")
audiodub(video,audio)
If the toon line is in virtualdub crashes. -
You need awarpsharp2 and the modified toon that matches awarpsharp2 (toon v1.1)
Some filters rely on the old toon , and the old awarpsharp, so I would keep them in separate folders and load them manually. The way I have it organized is the old awarpsharp and old toon are autoloading in the default plugins folder, and the new versions I keep in separate subfolders folders to load manually (using loadplugin() )
http://forum.doom9.org/showthread.php?t=147285
You're using the wrong audio again in your script. You want nicaudio.dll , not ac3source.dll which is known to cause problems
Make sure you play with the script values, you might want it more saturated, or more sharper, or more clean etc... i.e. adjust it to your tastes
There's still a bit of dotcrawl around the 470-490 frame segment when he's jumping down. It really bugs me and I don't know how to get rid of it completely. I played with the checkmate values, and tried a few others like tcomb, but they were not much better. I suppose one bad way of doing it would be warpsharping lines thinner, then adding them back for that section -
Originally Posted by poisondeathray
also, I noticed that opening is a pain in the @$$!! the video from the actual episode looks much different and easier to do. I also noticed this. a question I posted on doom 9 a while back.
""Why is it that as the episode plays, the size of the black bars on the sides and top change? sometimes the top bar is around 2-3 px and then jumps to 6-8 for a little bit then about 4 and randomly between those values as the episode goes on? the jumps arent for a few second then change again, they actually do stay for several minutes before the next change sometimes.""
The opening and the episodes have different sized black borders thats why I cropped mine the sizes I did. the largest of each of the black bars. The video doesnt seem as complicated either but then again it could just be my untrained eye.
go ahead and have a look. Ill give a sample of a part of the episode and not the opening or closing. sadly this episode is very foggy it seems because of the mist in the episode and I cant tell if its noise or the mist. here take a look if you want. I bet you can figure this out alot easier. Id care about the episode before I would the opening or closing credits.
http://www.mediafire.com/?ygnzyoymzuz -
I'll look at it in a bit, but this is what I mentioned earlier about customizing the scripts. You might use different filters for different sections of 1 episode ; different crop & resize values in this case
That's the way animation is. It's often even more crude. You even get different fps in sections , sometimes frames are repeated, etc. etc.. This is what manono mentioned earlier about why some people do VFR encodes
The link to toon 1.1 is in that awarpsharp2 thread. You can use the old awarpsharp (instead of awarpsharp2) - it may or may not affect you , but lookout on some frames for green borders. There is a bug with certain frame sizes
EDIT: this part looks completely different, even the colors/saturation are way different. There is almost none of the dotcrawling an a lot fewer rainbows, for example. I wouldn't use those filters above for this section. This section is a lot "easier" in some respects, but to colormatch it is much more difficult in that respect. So yes, you should use different filters for different sections. -
Originally Posted by poisondeathray
yeah it does look different, I cut a part out that wasnt so foggy and all one colorish looking. its actually quite saturated and theres a descent amount of movement in the clip to show how different it is from the opening. I also only made it like 25MB this time so its a quicker download. perhaps Ill give that in a bit when I get the time to upload it. Im going to be busy tonight.
In the meantime, yeah I went ahead and got impatient and posted an, as you would say "dumb question" on doom9 and apparently someone wrote one hell of a script for it and told me some of the things we were using are crap. I dont know if its true but you might wanna take a look at it. http://forum.doom9.org/showthread.php?t=151910
I read about alot of those commands I see in the script but couldnt quite grasp how to put it in proper syntax. seems easier for me to understand seeing it like this. seeing completed scripts and playing around with already made ones piece by piece is one way I learn best. Im not the best at making my own from scratch untill Ive gotten into it long enough. Now I plan to read up on each command I see in his script and play around with the values in it to see how it works.
thats how I learned HTML. a friend made me a website when I was 12 and wouldnt teach me anything over AIM. I just started reading all that crap and playing with each part one by one learning what everything did and possible ways to change the code and stuff and eventually, by the time I was 15 I had HTML down so well, not only was I making my own websites but I had work with my uncle in his business of web design for a while helping him out. It took me some time but I got it down and without a single teacher all on my own and all I did was play with it. I used to view other websites source and if I saw a piece of code I never knew about I went ahead and played with it. I didnt have things like google to use and forums back then and if I did I didnt know about them.
I guess thats how I learn best. trial and error, along with manipulation of already done things even if it is annoying sometimes lol. -
That's the beauty of it. There are many different ways of doing this, and it comes down to personal preference, but experience definitely helps. You can use the tabs in AvsP to view different scripts and switch back + forth with the number keys.
I haven't looked at it yet, but Nightshiver is what I would consider very familar with anime and animeivtc, he helps folks a lot on those filters. I'm willing to bet it took care of those frames that I said still had issues on them. I will play around his script too to learn a few things
The second clip needs levels adjustment, saturation adjustments, and color correction, assuming you wanted to match it to something similar to what was in the intro
To apply filters to sections, you can use Trim() to divide up the video
e.g.
Vid=MPEG2Source()
Vid.Trim(0,100).FilterA()
Vid.Trim(101,200).FilterB()
or use applyrange using stickboy's functions http://avisynth.org/stickboy/
EDIT: a couple of comments I will make about nightshiver's script, and I don't want it to sound negative as I'm sure he just whipped that script up in a few seconds. These are just observations from a newbie (me):
1) He didn't bother to denoise at all, again this is personal preference - you preserve more detail, but have more noise - it's a balancing act. I prefer slightly cleaner anime and am willing to put up with slight detail loss.
2) He used much stronger sharpening. While on anime it's slightly safer to do than live action footage, the ringing from oversharpening poses a much greater risk than lanczos vs. spline algorithms for resizing. The amount to sharpen is personal preference as well, but when you leave bits of noise and then sharpen you are in danger of sharpening grain artifacts. You can adjust the strength to your tastes. I actually like it a bit sharper, and maybe should have bumped up the LSFMod strength in my original script
3) He forgot to take care of the rainbows (I think?) - have a look at the (supposed to be) white credits , unless they are supposed to oscillate in color?
4) Overwarpsharpened letters - some of the end credits are illegible/deformed
5) Neither script takes care 100% of those problem frames I mentioned earlier with regards to the dot crawl.
6) His crop values are correct, there was a bit of junk left over on my original crop values (2 more pixels to the right)
Anyways, good luck and have fun experimenting with the filters & learning avisynth. I'm learning about animeivtc myself
Cheers -
Originally Posted by poisondeathray
Id love to be able to say I could enjoy his script but, I keep getting this problem.
I keep getting the script error: there is no function named "MVAnalyseMulti" and I havent been able to find a working version of mvtools or mvtools2. I have the mvtools2.dll but I continue to get that error. -
I think you need MVTools version 1.9.X MT branch
You can have mvtools2.dll and mvtools.dll coexist in the plugins directory
I think the animeivtc thread has a big collection of filters in a zip file that you can download
Similar Threads
-
What's a good way to capture online video with good quality?
By newtie in forum Capturing and VCRReplies: 4Last Post: 19th Feb 2011, 09:41 -
Have I made the quality too Good?
By criddle in forum Video ConversionReplies: 1Last Post: 4th Apr 2009, 03:37 -
What are good specs for a high-quality MP4 file? (Will look good on my 40&q
By HarlanPepper in forum Video ConversionReplies: 6Last Post: 11th Feb 2009, 03:18 -
Has Microsoft Ever Made A Good (Windows Media)Encoder?
By hech54 in forum Video ConversionReplies: 7Last Post: 5th Jul 2007, 23:27 -
Picture Quality Question on made DVD
By Superstar24 in forum Newbie / General discussionsReplies: 24Last Post: 26th May 2007, 00:35