AnimeSuki Forums

Register Forum Rules FAQ Community Today's Posts Search

Go Back   AnimeSuki Forum > Anime Related Topics > General Anime > Fansub Groups

Notices

Reply
 
Thread Tools
Old 2008-12-28, 01:54   Link #281
Nicholi
King of Hosers
 
Join Date: Dec 2005
Age: 41
Either two ways you can go about this.

1. Get the karaoke timed to a CFR workraw (probably what you have already done?). Then use Aegisub's transform feature with the timecodes loaded and apply that to the VFR video.

2. Get the karaoke timed to a VFR workraw, workraw in MKV format and using Aegisub of course. Then you just apply the karaoke as usual.

I've always done the first, simply because it's the typical age old method and the timer is none the wiser :3. Two should work just fine with MKV and timecode support in Aegisub though.

Since I'm guessing you already tried the first method I described...you might want to make sure you are correctly making the VFR video with timecodes. If those are incorrect any timing made to the video will of course be off.
Nicholi is offline   Reply With Quote
Old 2008-12-28, 02:24   Link #282
schultzz
P-Bfs encoder
 
Join Date: Dec 2008
ok, ive done both ways but when i try to encode it in meGUI the karaoke will be aff even if i used the export timecodes and export VFR .ass.

any special procedure or plugin i need to encode using meGUI?
schultzz is offline   Reply With Quote
Old 2008-12-28, 07:48   Link #283
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
Quote:
Originally Posted by Nicholi View Post
2. Get the karaoke timed to a VFR workraw, workraw in MKV format and using Aegisub of course. Then you just apply the karaoke as usual.

I've always done the first, simply because it's the typical age old method and the timer is none the wiser :3. Two should work just fine with MKV and timecode support in Aegisub though.
Nich what the christ are you talking about, this is about hardsubbing and unless he's encoding with GDSMux or some other VFR-aware encoding program (not anything Avisynth-related), VFR transformation must be applied.

Method 1 is what you want. It is done as follows:
1) you must know (or arbitrarily set to some known value) the framerate of the VFRaC raw you are using as the hardsubbing source in Avisynth; what value doesn't matter as long as you know what it is
2) to get frame accuracy, you must time the subtitles to a VFR workraw (either VFRaC AVI + separate timecodes or a VFR MKV/MP4)
3) the export is done as follows:
3.1) load subtitles into aegisub
3.2) load timecodes into aegisub
3.3) optionally load video too
3.4) file -> export
3.5) tick framerate transformation, select variable output mode and input the framerate from step 1 in the framerate box (if you have video loaded it will fill in the framerate from the video here, but for MKV/MP4 it's usually some bogus value)
3.6) export

Then hardsub the exported script with avisynth as usual. Note that steps 1 and 3.5 are very important or it won't sync.

This is all documented in the Aegisub manual, by the way. See http://aegisub.cellosoft.com/docs/Vi...ramerate_video and http://aegisub.cellosoft.com/docs/Exporting
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2008-12-28, 10:18   Link #284
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
I know I promised not to hack more on VSFilter... but I couldn't keep my fingers away.

Here's a testing version with VFR support in the Avisynth filter:
www.animereactor.dk/aegisub/vsfilter-2.39e.rar
If you downloaded this file before 2008-12-30 12:30 GMT+1 please re-download, there was a grave bug making it useless.

In general, I reworked the Avisynth plugin interface a bit so it now supports named parameters:

TextSub(clip, "file", "charset" = 1, "fps" = -1, "vfr" = "")
file is the subtitle file to render. Required.
charset is the encoding to assume the file is in, if it's not Unicode UTF-8 or UTF-16. Optional. I won't cover the possible values here. (If you need to use this you're doing something wrong.)
fps is the FPS to assume the video is at. Optional. You could just as well just AssumeFPS the video in Avisynth instead of using this. VFR overrides this.
vfr is the name of a VFR timecodes file (format 1 or 2) to use for frame times. Optional. If set, overrides all other FPS specifications.

MaskSub("file", "width", "height", "fps", "length", "charset" = 1, "vfr" = "")
file is the subtitle file to render. Required.
width and height specify the size of the produced video frame. Required.
fps specifies the FPS of the generated video. Required unless vfr is specified.
length is the number of frames to generate. Required.
charset is the encoding to assume the file is in, if it's not Unicode UTF-8 or UTF-16. Optional.
vfr is the name of a VFR timecodes file (format 1 or 2) to use for frame times. Required unless fps is specified.

TextSubSwapUV(swap)
swap is a boolean, toggles (globally) whether to swap assume the U and V planes are swapped in YV12 video when rendering subtitles.

VobSub(clip, file)
file is the name of a VobSub format subpicture file (I don't know whether it wants the .SUB or .IDX file name) to render.


Remember: This version is EXPERIMENTAL, I haven't tested it myself at all! I haven't committed the code to SVN yet, I'll commit it to guliverkli2 when I've received enough success stories and no failure stories. (If this version fails for you PLEASE PLEASE PLEASE send me a PM here or on IRC so I can look at the problem! Especially if it fails at something that worked before.)


Edit: Before any questions, if you use the VFR functionality I added to VSFilter TextSub here you must not do any pre-processing of the subtitle file. The times used in the subtitle file must be the actual times, not ones adjusted for a VFRaC video.
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's

Last edited by jfs; 2008-12-30 at 06:28. Reason: Uploaded fixed version
jfs is offline   Reply With Quote
Old 2008-12-29, 01:00   Link #285
schultzz
P-Bfs encoder
 
Join Date: Dec 2008
ok ive done the method fluff explained but i got some weird results, the op karaoke came fine but towards the end of the episode (like 5 minutes before the end) the audio stops syncronizing and the ending karaoke didnt come up.

im going to try now your method Jsf, i will report how it goes after some test.
schultzz is offline   Reply With Quote
Old 2008-12-29, 21:31   Link #286
Nicholi
King of Hosers
 
Join Date: Dec 2005
Age: 41
Quote:
Originally Posted by TheFluff View Post
Nich what the christ are you talking about, this is about hardsubbing and unless he's encoding with GDSMux or some other VFR-aware encoding program (not anything Avisynth-related), VFR transformation must be applied.
Err yeah went a little crazy there with the sense-making juice. What I meant to say was you essentially have two ways to time the karaoke, since some people still have a paranoia of non-AVI workraws. Either a CFR AVI workraw as typical, or a VFR workraw (which could be either mkv or mp4, though prolly wiser to use mkv). Transform feature applied to whatever comes out.

And hurrah for more jfs vsfilter h4xing, I actually have something I could test it on to see what happens and compare to the transform feature. I'd also like to know has anyone put to use more than once the MaskSub feature (already in current builds) ? I'd like to start using it but I am far too lazy to test and constantly make sure the RGBA output is a-ok .
Nicholi is offline   Reply With Quote
Old 2008-12-29, 23:34   Link #287
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
Now this is going off-topic for this thread...
But I've used MaskSub for one project, the Menclave Gundam 00 S2 ED1 effect. It's rendered as two separate overlays (main effect and glow effect) with MaskSub and then combined with some Avisynth magic.
It seems to work flawlessly.

Edit: Moving VSFilter discussion over to a relevant thread.
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's

Last edited by jfs; 2008-12-30 at 06:37.
jfs is offline   Reply With Quote
Old 2008-12-30, 07:31   Link #288
3uronymous
\m/
*Fansubber
 
Join Date: Jul 2008
Quote:
Originally Posted by Nicholi View Post
I'd also like to know has anyone put to use more than once the MaskSub feature (already in current builds) ? I'd like to start using it but I am far too lazy to test and constantly make sure the RGBA output is a-ok .
I've used it a huge number of times by now, from such as simply using it to save time for encodes by not having to re-render large karaokes each episode to using it over to generate individual layers and import them into AFX in order to combine .ass effects with AFX effects, or at one point because an encoder was having trouble with a karaoke's fonts or found it easier shifting an overlay each episode compared to retiming scripts. But yes, the RGBA output in every time I've used it has been perfectly a-ok.
3uronymous is offline   Reply With Quote
Old 2009-01-03, 16:03   Link #289
Emess
Slower Than You
 
 
Join Date: Oct 2006
Location: Western Australia
Send a message via AIM to Emess Send a message via MSN to Emess Send a message via Yahoo to Emess
Quote:
I'd also like to know has anyone put to use more than once the MaskSub feature (already in current builds) ? I'd like to start using it but I am far too lazy to test and constantly make sure the RGBA output is a-ok .
I've used it at least 50 times by now. I once had trouble with transparency but that was a one off and fixed with an update on VSFilter. It works great aside from being upside down and that is easily fixed. Really nice for kara that takes forever to encode, and it's usually easier to shift the overlay a few frames than mes with .ass timings in large scripts.

E~
Emess is offline   Reply With Quote
Old 2009-01-07, 03:23   Link #290
vDrag0n
Member
 
Join Date: Dec 2005
question about something. I've gotten my hands on a vfr RAW (mp4 format) and i don't want to decimate it, i want to keep the 119,88XXX FPS. What would i do? I've tried with
Quote:
FFVideoSource("D:\Share\Downloads\Anime.mp4",timec odes="test.timecodes.txt)
VirtualDub does change it just fine into an Lossless encode but when i try to do a final encode (Megui, mp4, x.264) it's totally unwatchable and re-encodes to 5 minutes Video (its 23 minutes the 120 FPS are bogus). The Video in total has 38.XXX frames, when i use DirectShowSource it only has 34k frames (4k frames lost). After that i went to try out a mkv encode using MKVToolNix without timecode it keeps the 38k frames but puts itself back to 29,XXX fps. If i use the timecode i created from the original mp4; Video changes itself to 30,XXX fps and is totally unwatchable again. I'm out of thoughts on what i am doing wrong here.

I don't want to decimate it as i don't know the nullframe pattern (since my timecode file is messed). All im trying is to hardsub the MP4 into another MP4 keeping the FPS, framecount.

Any help greatly appreciated.

edit: forgot to mention ffmpegSource and FFVideoSource have the same outcome. I also tried avisource after converting it to AVI which works fine and i tried to decimate it using FDecimate based on a Treshold (doesn't work either).
vDrag0n is offline   Reply With Quote
Old 2009-01-07, 03:28   Link #291
checkers
Part 8
*IT Support
 
 
Join Date: Jul 2006
Location: Western Australia
Age: 35
Send a message via MSN to checkers
Quote:
Originally Posted by vDrag0n View Post
question about something. I've gotten my hands on a vfr RAW (mp4 format) and i don't want to decimate it, i want to keep the 119,88XXX FPS.
First, why?
checkers is offline   Reply With Quote
Old 2009-01-07, 05:59   Link #292
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
Your MP4 file is not "120 fps", it's true VFR. FFVideoSource writes the timecode file you name, which you can then use when re-muxing the encoded video to MKV or MP4. (I don't know how to do VFR in MP4 though.) The video output from Avisynth is VFRaC.
There are no null-frames in your MP4 file.
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's
jfs is offline   Reply With Quote
Old 2009-01-07, 07:15   Link #293
vDrag0n
Member
 
Join Date: Dec 2005
Quote:
Originally Posted by checkers View Post
First, why?
because i don't know the correct pattern of the frames i have to remove and the output timecode is no help as it's totally messed and has no pattern at all.
Quote:
Originally Posted by jfs View Post
Your MP4 file is not "120 fps", it's true VFR. FFVideoSource writes the timecode file you name, which you can then use when re-muxing the encoded video to MKV or MP4. (I don't know how to do VFR in MP4 though.) The video output from Avisynth is VFRaC.
There are no null-frames in your MP4 file.
There are nullframes they just aren't labeled as such i know that because of 2 reason's (the raw is from TV-Japan, they get their RAW from utatane the source is avi and has 0 frames). I decimated the Original source without a problem because they shown as nullframes, problem is i can't get the Source each week and have to deal with the TV-J mp4. About the output, i don't know. The Avisynth script works fine in Vdub, it takes over all frames and fps as 119,88xxx and plays wonderful. But trying to go any other format just won't work + the timecode file is a total mess given by FFVideo. And like i said above i know the 120 FPS is bogus, but i'd still want to just take it over which proves to be very hard.

Thanks for the replies guys.
vDrag0n is offline   Reply With Quote
Old 2009-01-07, 07:34   Link #294
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
What do you mean by the timecodes file being a "total mess"? Sure it's not just because the VFR was auto-generated?
Most likely when that "120 fps" source was made into proper VFR when the MP4 file was produced, even if it also happened by an automatic tool. Possibly the header of the MP4 file claims it's 119.88 fps and that carries over to Avisynth, but the actual frames have timestamps that make it VFR and overrides the framerate in the header.
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's
jfs is offline   Reply With Quote
Old 2009-01-07, 07:46   Link #295
vDrag0n
Member
 
Join Date: Dec 2005
Quote:
Originally Posted by jfs View Post
What do you mean by the timecodes file being a "total mess"? Sure it's not just because the VFR was auto-generated?
Most likely when that "120 fps" source was made into proper VFR when the MP4 file was produced, even if it also happened by an automatic tool. Possibly the header of the MP4 file claims it's 119.88 fps and that carries over to Avisynth, but the actual frames have timestamps that make it VFR and overrides the framerate in the header.
It produces errors when i try to mux it into mkv. The Timecode file given is v2 when i convert it to v1 it looks like this:
0,0,125.000000
1,1,40.000000
2,2,30.303030
3,3,29.411765
4,5,30.303030
6,6,29.411765
7,8,30.303030
9,9,29.411765
10,10,30.303030
11,11,29.411765
12,13,30.303030
14,14,40.000000
15,16,23.809524

I fail to see a 100% working pattern there. I can see the timestamps but no pattern and when i try to mux it into an mkv the video is a mess.
vDrag0n is offline   Reply With Quote
Old 2009-01-07, 09:08   Link #296
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
so don't convert it to v1
or use a higher threshold when converting
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2009-01-07, 09:29   Link #297
vDrag0n
Member
 
Join Date: Dec 2005
Quote:
Originally Posted by TheFluff View Post
so don't convert it to v1
or use a higher threshold when converting
i only converted it to v1 to post it here the v2 messes too and Decimate by Threshold is impossible on this source using a higher Threshold messes the Video even more and it will play 1 frame 3 minutes long. Then again i don't even want to decimate it.
vDrag0n is offline   Reply With Quote
Old 2009-01-07, 09:50   Link #298
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
this seems like one seriously messed up file, cut out a small (~1 minute) part of it and upload somewhere for poking
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2009-01-07, 12:03   Link #299
vDrag0n
Member
 
Join Date: Dec 2005
Quote:
Originally Posted by TheFluff View Post
this seems like one seriously messed up file, cut out a small (~1 minute) part of it and upload somewhere for poking
here you go. Good luck with it and thanks for looking into it.
vDrag0n is offline   Reply With Quote
Old 2009-01-07, 14:27   Link #300
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
nothing really odd with this file except that the fact that libavformat (and hence ffmpegsource) reports the track time base as ~120fps for some reason (it isn't 120fps, there are no null frames to be seen anywhere)

reencoding and remuxing the result with timecodes extracted with ffvideosource works fine, I don't see what you mean by "messed up"
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
We use Silk.