Jump to content

I think I got this encoding thing down!


Odeiux

Recommended Posts

I started getting the hang of encoding videos, when I had to upload my Fraps records of BF3 to Youtube, so I decided to take a whack at some of my hard drive intensive anime and was happy with the results. I was able cut my Bakemonogatari 1080p episodes, which were all 1gb files, to less than half.

Here's a 30 second clip of Episode 1 of Bakemonogatari:

http://www.megaupload.com/?d=QNLLKBYQ

Tell me what you think! I'm happy with it, except for the subs.

Link to comment
Share on other sites

Damn like Lemming said that looks pretty sweet, now if like you said it was originally a gig before you compressed it to half the size and it looks this good. Then you are on the right path. If you can post up a few screen shots between the original one and that one you encoded.

screenshotcomparison.com

Thanks guys! Though it says ScreenshotComparison is unavailable, so I'll take this time to capture some good screenshots.

Okay well here's all this and that.

Bakemonogatari Ep 01 (My Encode)

ScreenShotComparison

Link to comment
Share on other sites

:oh: Still would be better if you would use avs to re-encode the encodes.

:amazed: I'm just using Handbrake to encode my videos... But then I looked into it, and decided that I will give it a shot. Thanks.

Edit: Errr... I have no idea on what the heck I'm doing... :confuse:

Link to comment
Share on other sites

Avisynth has a huge learning curve, but if you hang in there it will get easier. Doom9 can be a huge help if you're willing to put in the time to read the massive threads it has on some of the different filters available. A few other places I go for help are Scintilla's Guide, AvisynthWiki, and Color banding and noise removal. The last one is a Doom9 thread that covers the dither package. It not only helps with debanding but also 10bit encoding.

If you ever want, I could upload a few of my own test encodes and the scripts I used to do them. I'm always looking for input on my own encodes.

Link to comment
Share on other sites

:amazed: I'm just using Handbrake to encode my videos... But then I looked into it, and decided that I will give it a shot. Thanks.

Edit: Errr... I have no idea on what the heck I'm doing... :confuse:

It can be a huge pain in the ass to learn, but you if you use it it could benefit you tremendously. I don't mind helping you learn it, as I love to broaden everyone's knowledge of avs encoding.

Link to comment
Share on other sites

Avisynth has a huge learning curve, but if you hang in there it will get easier. Doom9 can be a huge help if you're willing to put in the time to read the massive threads it has on some of the different filters available. A few other places I go for help are Scintilla's Guide, AvisynthWiki, and Color banding and noise removal. The last one is a Doom9 thread that covers the dither package. It not only helps with debanding but also 10bit encoding.

If you ever want, I could upload a few of my own test encodes and the scripts I used to do them. I'm always looking for input on my own encodes.

I'm always open to learning new things, so I'll get to it. And if you could I would like to see some of your scripts, just to get an idea of what the norm should be, thanks.

Well, I get the part about importing filters using the .dll files. I just can't tell any difference between the original 1GB encode versus my new encodes, especially any banding fixes. This is probably because, 1 I have small monitors, and or 2 I'm not working with any raw footage. Another thing is using modded version of filters, I honestly don't know what to do with the scripts, like where do I put them? I tried saving them as .dll but that didn't do much. I'm currently uploading a test encode of my Episode 1 of Bakemonogatari, which includes the normal gradfun2dbmod.dll, to see if anyone else could tell the difference.

*Note:The file is a lot larger because when I encoded it, I used a higher bitrate, and I imported the audio and subtitles track from the original 1GB encode.

http://www.megaupload.com/?d=XKU9QA80

I figured that I can decompress an encode :oh:

That's awesome. Now I have some raw footage!

Link to comment
Share on other sites

The latest upload you did looked pretty good to me. I didn't really notice any banding except for maybe a few quick shots of faces that had shadows on them. I wouldn't deband the video unless it's necessary, because you have to up the bit rate in order to prevent the banding from coming back during encoding. This could result in a file that is even bigger than the original encode. Would you mine sharing the script you used to encode it?

And if you could I would like to see some of your scripts, just to get an idea of what the norm should be, thanks.

Mine are nowhere near normal. They're actually pretty ugly compared to some you could find on Doom9, but I just don't understand avisynth enough to utilize them yet. I've only been encoding dvd video as well, so my scripts probably won't help you with your HD sources.

Here is a link to pastebin that has the script I'm currently testing. Can't really think of any filters in it that you would need for HD sources though. I use alot of commenting too, mostly it's to help me keep track of what script I used for each test. I do it in case I ever want to come back to one that looked really good.

@BreAKDoWN, I wouldn't mind seeing some of your scripts if you wouldn't mind sharing them.

Link to comment
Share on other sites

@BreAKDoWN, I wouldn't mind seeing some of your scripts if you wouldn't mind sharing them.

We have similar scripts however if you comment something out as I delete it. Here is one that I'm working on:

##Plugins##
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DGAVCDecode.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\VSFilter.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\gradfun2db.dll")
Import("C:\Program Files (x86)\AviSynth 2.5\plugins\MCTemporalDenoise.v1.4.20.avsi")

##Loading Original Video##
AVCSource("G:\TEST\00012.dga")
MCTemporalDenoise(settings="very high")

##Some Tweaking##
crop(240, 0, -240, -0)
textsub("C:\Program Files (x86)\AviSynth 2.5\plugins\breakdown don't use.ssa")

As you can see I keep it simple, however I have modified MCTemporalDenoise alot to suit me with my own needs.

To put that script to example and how powerful avisynth can be I have encoded a 45 second clip from the DBZ level series that is currently being released. If you have watched the BD then you have noticed the heavy grain. Personally I like the grain. However I know of alot of people that do NOT like the grain. Thus I have tried to give this a DNR'd look to the DBZ level series. There were some flaws to this mainly the low bitrate, I should have kept it around 3000-3500. However I must say I have out done myself with this one though. :D

Here is the link for the original remuxed into .mp4 from .m2ts

And here is the link of what it looked like after I encoded with the avs script

And here is my script:

##Plugins##

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\DGAVCDecode.dll")

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\VSFilter.dll")

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\gradfun2db.dll")

Import("C:\Program Files (x86)\AviSynth 2.5\plugins\MCTemporalDenoise.v1.4.20.avsi")

##Loading Original Video##

AVCSource("G:\TEST\00012.dga")

MCTemporalDenoise(settings="very high")

##Some Tweaking##

crop(240, 0, -240, -0)

textsub("C:\Program Files (x86)\AviSynth 2.5\plugins\breakdown don't use.ssa")

Let me know what everyone thinks!

Link to comment
Share on other sites

Looks pretty good to me BreAKDoWN.

however I have modified MCTemporalDenoise alot to suit me with my own needs.

What changes have you made to MCTemporalDenoise, if you don't mind me asking. Are the changes within the avsi script itself or just different parameters you set for different sources?

I can't make heads or tails of pretty much everything in the avsi.

Link to comment
Share on other sites

Looks pretty good to me BreAKDoWN.

What changes have you made to MCTemporalDenoise, if you don't mind me asking. Are the changes within the avsi script itself or just different parameters you set for different sources?

I can't make heads or tails of pretty much everything in the avsi.

Changed alot of the parameters mainly in the denoise areas. I've done it so many times I can't even remember them all now lol.

Link to comment
Share on other sites

  • 3 weeks later...

Well. I figured the whole AVISynth, AvsP, and MeGUI stuff, out. Toyed around with it when Kametsu was down, and got the hang of it. It's so easy, that I feel stupid not being able to figure it out in the first place. I figured out so much about it that I'm now working on remastering some DVD rips. I haven't perfected it yet, but the outcomes get better and better.

##Plugins##

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools-26.dll")

LoadPlugin("C:\Users\Odeiux\Desktop\RemoveGrain\RemoveGrain.dll")

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\gradfun2db.dll")

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\AddGrainC.dll")

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\WarpSharp.dll")

LoadPlugin("C:\Users\Odeiux\Desktop\MaskTools-v1.5.8\MaskTools.dll")

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\SangNom.dll")

LoadPlugin("C:\Users\Odeiux\Desktop\UnFilter_Avisynth_2.5_Alpha\UnFilter.dll")

Import("C:\Users\Odeiux\Downloads\AAA.avsi")

##Source##

DirectShowSource("C:\Users\Odeiux\Downloads\[V-A]_Hellsing_01_[F3F78592].mkv")

##Values##

WarpSharp(100)

ConvertToYV12()

vmToon(strength=250, luma_cap=500, threshold=4, thinning=0, sharpen=true, mask=true, show=false, showclip="lines", ssw=2, ssh=2, xstren=255, xthresh=255)

AAA(Xres=960, Yres=720, Xshrp=75, Yshrp=75, US=1, DS=2, chroma=false)

GradFun2DBmod(thr=1.2, thrC=1.2, mode=2, str=0.8, strC=0.0, temp=50, adapt=64, custom="empty", mask=true, radius=2, range=2, show=false, screenW=1280, screenH=720)

GF_Borders(1.0,1.0)

GF_Mirrors(1.0,1.0)

GF_ModeOff(1.0,1.0)

GF_Padding(1.0,1.0)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...
Please Sign In