2009-11-01, 21:30 | Link #1 |
not fansubbing 24/7
Join Date: Nov 2009
Location: Germany
|
Encoding on Linux - a few hints
I've been doing this for quite a while now and I thought I should share my knowledge with everyone here.
When trying to encode fansubs on Linux, there are a few issues:
However, there's a tool to solve these problems: Avidemux (and avsproxy.exe, which comes with Windows builds of Avidemux). Instructions:
There are some things to consider when writing your scripts:
The good news is that everything else seems to work fine without modifications, including VSFilter. I hope that helps a few people here, feel free to start the usual Linux vs. Windows trollfest. |
2009-11-02, 20:03 | Link #3 |
makes no files now
Join Date: May 2006
|
OK, I didn't encode for nearly a year now... but I managed to avoid the whole AviDemux stage and just got around with VDub, AviSynth, avs2yuv and BePipe perfectly under wine (DGIndex and YATTA worked too for those that care), the remaining apps were all native (x264, oggenc, ffmpeg, you name it). Also DSS worked just fine, 98% of the time anyway, as did sound output. All that was needed was a native quartz.dll to be registered and for the codecs to be installed, IIRC. Mind you, it's been a long time since I did this the last time...
__________________
|
2009-11-02, 20:07 | Link #4 | |
...
Fansubber
Join Date: Oct 2007
Location: California
|
Quote:
|
|
2009-11-05, 03:17 | Link #6 | |||||||
Slower Than You
|
Quote:
There is, it's just not public, because nobody wants to share and encourage server-side encoding. Personally I agree with that outlook. Works fine for me in both linux and freebsd, and I use a distro that's known for it's wine issues. Quote:
Quote:
Quote:
Google for avs2wav. You shouldn't be using avs for much audio stuff anyway, trims should all be done with split_aud.pl, which runs natively in *nix anyway. Quote:
Quote:
Quote:
E~ |
|||||||
2009-11-05, 06:09 | Link #7 | |||||
not fansubbing 24/7
Join Date: Nov 2009
Location: Germany
|
Of course many people here have been encoding/fansubbing longer than me. That however is no reason for this arrogant attitude towards me.
AssRender didn't work for me with different recent wine releases (crashes as soon as subtitles have to be displayed, didn't have time to debug yet), maybe I've just been doing something wrong. Edit: Fixed it, somehow it only detected fonts in my wine prefix, and even Arial was missing there. Also, try loading some of the bigger scripts like karaoke effects without splitting them into pieces. Quote:
Quote:
I think I should explain what I was referring to with FFMS2 "doing a better job" at it. As an example, take a source where one part is 60 FPS, the rest is 24000/1001 FPS. Now converting FPS to 24000/1001 with DSS sometimes creates laggy movement (it just assumes 60 FPS as 24000/1001 and skips every ~25 frames), which I didn't experience with FFMS2. But probably I've just been doing it wrong, as you say. Quote:
Quote:
I didn't experience the spacing bug. No matter what script I throw at VSFilter in wine, the results are the exact same as on Windows. There's only one exception: It doesn't automatically embolden fonts that don't have a bold face available. Maybe there's an option in fonts.conf but meh, it's a bad practice anyway. AssRender should "fix" this. An alternative would be using FontForge, which should create better looking results, but takes five minutes of your precious time. Quote:
I don't really like it's licensing though, but that's just me being a GPL/LGPL nazi. Whatever. Thanks for the reply however. Last edited by lachs0r; 2009-11-05 at 06:25. |
|||||
2009-11-05, 09:02 | Link #8 | ||||
Slower Than You
|
Quote:
Quote:
Should be using avs2yuv for video and avs2wav for audio. It's the closest you'll get to native avisynth support without Knowing People. Quote:
Quote:
You're welcome. E~ |
||||
2009-11-05, 18:32 | Link #9 | |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
being someone who has encoded far longer than emess and is far better than him at being an elitist asshole, I cordially ask him to please shut up
twc is a terrible unfunny troll that should get out, but he's actually right on one point, namely that if you don't care about vfr and have a decent decoder/splitter for the format you want to open (ok well that's a lot of ifs), dss2 is actually far less buggy than ffms2, plus faster (no indexing) and easier to use chew on that one for a while my libass avs filter is really more of a proof of concept thing than a real filter. I do not recommend using it for actual releases. it's also linked against a libass that is kinda outdated now. Quote:
also: people who use the gpl for non-trolling purposes are usually worse than the riaa/mpaa when it comes to making threats about suing people
__________________
|
|
2009-11-07, 16:34 | Link #11 |
Slower Than You
|
No, it is not cross platform, it is very specifically FreeBSD and Gentoo/Arch x86_64. It might work on other things but I have no idea. The code is split from 2.5.8 rather than a complete rewrite, and only certain filters work on it iirc. AVS3 is dead and gone. I am also aware of a new project that is similar to avs3 in parts but also completely different, that may or may not replace avisynth as a whole.
E~ |
2009-11-09, 09:48 | Link #15 |
not fansubbing 24/7
Join Date: Nov 2009
Location: Germany
|
It's fairly easy to use another host as frameserver, wether you modify avsproxy/Avidemux/whatever or use avs2yuv + mkfifo + NFS.
Also, the term server-side encoding doesn't have a real meaning at all. It doesn't even make sense in this context, since AviSynth is a frameserver and not really doing any encoding. The encoding is done by a client, such as VirtualDub or Avidemux. Hence, load distribution would be a better term. |
2009-11-09, 14:17 | Link #16 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 37
|
When he says server-side he means encoding on a remote box with a fast connection and better CPU than what you have at home. It's exactly like encoding at home except you do it over RDP or VNC, and it gets downloaded, encoded and uploaded faster. Another advantage is that other people can download and mux the encode even after the encoder has gone to bed.
It pretty much has no downsides other than the fact that doing things over RDP is annoying, so yes, it's a good idea if you can afford a server.
__________________
|
2009-11-10, 04:21 | Link #17 |
Junior Member
Join Date: Apr 2009
|
I've been using avs2yuv for a while and it works pretty good =D
avs2yuv to mencoder(ffv1 lossless) or x264. About thd audio, before I made my own script to split the audio stream I was using foobar to convert the audio to wav and then I used to open virtualdub and load an avs with audiodub + audiodelay + trim and "save to wav", and the native neroAac to convert wav to aac. I couldn't make avs2wav work. But indeed split_aud.pl is the best choice if you don't have to reencode. |
2009-11-10, 05:56 | Link #18 | ||
Slower Than You
|
Quote:
Quote:
E~ |
||
Tags |
encoding, libass, linux, vsfilter, wine |
|
|