2009-08-15, 16:42 | Link #1 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
AssRender: inappropriately named libass-based subtitles renderer
I know some of you insist on encoding on lunix. This is generally a pretty bad idea but if you insist you can actually do it using avs2yuv, wine and some other funky things. There's only one catch, you can't hardsub stuff because VSFilter doesn't work under wine.
Now, not that I encourage hardsubbing, but one fine day I got bored and decided to solve that problem. This avisynth filter is exactly like textsub(), but it uses libass instead of vsfilter. This thread is a cross-post from doom9 because I think this might be relevant to your interests. Download AssRender 0.11 NOTE: the included fontconfig directory MUST be in the same folder as the .dll, or it'll crash! Note 2: when using it for the first time it'll probably take a while to open the script, especially if you have a lot of fonts installed, because fontconfig needs to cache all your system fonts. Source code (under MIT license, binaries are under GPL for obvious reasons): assrender_0.11-src.7z Syntax: Code:
assrender(clip c, string file, int "hinting"=2, float "scale"=1.0, string "charset"="UTF-8", int "loglevel"=-1, string "logfile"="")
Regarding hinting:
Advantages and disadvantages This filter should mainly have two advantages over VSFilter, namely: a) it works under wine, and b) it's probably a lot faster. On the other hand it has a few limitations, most notably it only supports RGB32 input so far. If someone is sitting on a fast (preferably assembly optimized) routine that can overlay RGBA on YV12/YUY2, feel free to speak up. Furthermore, libass isn't really bug-for-bug compatible with VSFilter, so it might render stuff a bit differently compared to what you're used to. Todo
Other stuff It's compiled against a fairly recent libass, this one unless I misremember. I know that technically I'm probably not GPL-compliant because I'm not distributing the source code of the exact versions of freetype/fontconfig/expat/zlib it's linked against (Debian Squeeze's versions including their patches as of three days ago, apt-get source if you want them), but you know, I really don't give a fuck. If you want to compile the source code you need a working mingw32 environment. If you don't want to compile libass and its deps yourself (afaik it's incredibly hard to get libass to build on msys-mingw32 because of the permanent state of autotools hell it is in; personally I didn't bother and just crosscompiled on linux), you can get my compiles. Oh, and you need stdint.h for Visual Studio too just to make it even more annoying to compile.
__________________
|
2009-08-16, 00:06 | Link #3 | |
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
|
Quote:
(Btw. that is already known and was considered in the naming of this plugin.)
__________________
|
|
2009-08-16, 06:19 | Link #4 | |
makes no files now
Join Date: May 2006
|
Quote:
But this looks like an interesting alternative nonetheless.
__________________
|
|
2009-09-23, 15:16 | Link #7 | |
Junior Member
Fansubber
Join Date: Sep 2009
|
Quote:
And why if you want to use Linux, would you want to use a tool designed for windows, when there are perfectly good native alternatives like Mencoder (and there is even a rewrite of avs that is cross-platform, though for linux it uses gstreamer, which, lets face it, sucks)? |
|
2009-09-23, 18:12 | Link #10 | |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
Quote:
avs3 is vaporware and will never do anything useful ever BONUS CHALLENGE that you can take if you want to back your troll up: find me native linux tools that can: - cut/edit isdb transport streams without reencoding - filter video with a set of filters that is comparable to avisynth's, allowing selective filtering of different part of the video in an arbitrary way - open and decode transport streams for display/reencode in a frame-accurate manner (anything that uses ffmpeg is not the answer, libavformat is guaranteed to be 1-2 frames off when seeking in mpeg ts/ps) - do semi-automated manual improvement of ivtc matches
__________________
|
|
2009-09-24, 13:28 | Link #11 | |||
Junior Member
Fansubber
Join Date: Sep 2009
|
Quote:
However, if you do need to filter different parts of the video differently for whatever reason then it can be done, but it's certainly not a nice (or even easy) way of doing it. Mencoder also doesn't have the range of filters AviSynth has, though it does have a decent range of filters. Quote:
Don't really know much about it, but it's design idea seems pretty good. Any particular reason you think it'll never do anything useful? Quote:
From what I've seen the Mencoder filters are just as good as the avs ones, though the range of filters isn't as good and you can apply them arbitrarily, though it's far from pretty or easy. "open and decode transport streams for display/reencode in a frame-accurate manner " - by this do you mean for the cuts in the file? If so them Mencoder has a high resolution mode which should be frame accurate, though it is slower since it decodes each frame rather than seeks. Other than that you could look at transcode or handbrake (never used them myself though...) "semi-automated manual improvement of ivtc matches" - no idea. Never had any need to do this at all. |
|||
2009-09-24, 14:09 | Link #12 | |||||
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
Quote:
Quote:
parts of the design (ABI compatibility with 2.5 filters for example) are also patently insane Quote:
Quote:
sure is some quality filtering there, bro I mean, hqdn3d was generally abandoned because it was only really useful for realtime denoising (there were much better alternatives if you could take a bit of slowness), nobody has actually used unsharp for anything serious in the last five years and while yadif is good at what it's designed for (realtime deinterlacing on playback) it really doesn't match up to something like nnedi, much less mcbob. I have no idea how good/bad mencoder's ivtc filters are in general, but since they cannot handle vfr/hybrid material they are all completely useless for a lot of anime. Quote:
TL;DR: the only people who would prefer encoding on lunix over encoding on windows are the "worse is better as long as it's GPL" kind of people. (note: I actually use linux on a daily basis myself, I even used it as my desktop environment at work for a while)
__________________
|
|||||
2009-09-24, 15:28 | Link #13 | ||
Junior Member
Fansubber
Join Date: Sep 2009
|
Quote:
Quote:
Well, the smartblur and uspp have worked well enough for the denoising for what I've dealt with, though I'm usually only dealing with fairly clean sources though. yadif is only one of the several deinterlacing filters in mencoder - there are several in the pp library and then there is the mcdeint one which is a motion compensating deinterlacer, which is, from what I could quickly see, what the mcbob does (though from what I saw it's incredibly slow 5-6FPS on a quad core...), though I don't know how it compares. As for the ivtc filters, the one that I typically use is the filmdint one and from it's description: "It is designed to handle any pulldown pattern, including mixed soft and hard telecine", which should handle the hybrid material at least (not sure about the vfr stuff though - from what I know mencoder isn't great for vfr, though there are some patches for it). I prefer linux for my encoding simply because that's the OS I prefer and the tools available do what I need, I understand that it can't do alot of what AVS does, but it offers enough for the simple tasks. |
||
2009-09-25, 04:39 | Link #14 | ||
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
Quote:
the only reason you think smartblur and uspp "work well enough" is because you've never actually tried a proper filter solution Quote:
__________________
|
||
2009-09-26, 14:15 | Link #15 | |
Junior Member
Fansubber
Join Date: Sep 2009
|
Even so, you have to make the trade off between the much longer encode time and the improvement that you will get - sometimes it might be worth it and others it won't.
Quote:
In that case it might not be able to, but there's no reason why you, or someone else, couldn't get your favourite ivtc algorithm and add it into mencoder =D |
|
2009-09-26, 14:48 | Link #16 | |
Banned
Join Date: Aug 2006
|
Quote:
P.S. My job is linux based, and I <3 it etc etc, but it's pretty crappy as a desktop OS still (and for encoding anything complex.. srsly). |
|
2009-09-26, 15:21 | Link #17 | |
CRF Believer
Fansubber
|
Quote:
|
|
2009-09-26, 16:09 | Link #18 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
yes, there is such a reason, namely that mencoder is not useful as a Real Encoding tool and will never be so unless someone redesigns it completely and rewrites it from scratch, and seriously fuck that
__________________
|
2009-09-26, 16:22 | Link #19 | |||
Junior Member
Fansubber
Join Date: Sep 2009
|
Quote:
Quote:
In the end though, it's what each person prefers, which is why I'm a fan of cross platform programs. Quote:
I can see why a redesign would be needed to make it good for non-linear encoding, but I don't see any reason why it couldn't be a good linear encoder. A simple plugin system for filters alone would go a long way since that would make it much easier for people to add in filters. Last edited by palmje; 2009-09-26 at 16:32. Reason: to avoid a double post |
|||
|
|