2007-06-07, 04:16 | Link #21 |
Translator, Producer
Join Date: Nov 2003
Location: Tokyo, Japan
Age: 44
|
Oh, one more thing that's possible. It might be the ANIMATORs fault.
From that screen shot, it looks like the bullet is overlayed on some background. I've seen cases in other anime broadcast in HD that you get jagged lines sometimes on very zoomed in objects. This is probably the fault of the animators not rendering their images at a fine enough resolution, and then zooming in on them too much. It wouldn't be noticeable on old SD resolutions but with HD it gets pretty obvious. Kind of a side-effect of using digital compositing designed for SD resolutions with an HD output.
__________________
|
2007-06-07, 14:16 | Link #22 |
Encoder
Fansubber
Join Date: Jun 2007
Location: Illinois
|
I think it's likely an issue with the capture itself then. Oddly, though, the same raw provider (for who knows why) seems to alternate between DivX 6.5.1 and x264 encodes (funny thing about the x264: it's VFW in MKV, which makes me cry) for the HD and the issue is more apparent in the x264 encode. That might just be because the x264 encode is higher quality in general, but it's worth noting. The issue is kind of present in the DivX 6.5.1 episodes, but it's less clear than in the x264 which leads me to believe that it's likely the capture and that the x264 encode is clear enough that the issue in the capture comes through more than in the DivX version. I might be totally wrong, though. =P
Argh. =P I'll try tisophote some, but I'm about ready to just encode the jaggies. =P |
2007-06-12, 08:26 | Link #24 |
Ana-chan~
Join Date: May 2006
Location: Netherlands
|
It seems you fixed the startframe=0 problem TheFluff.. but today I walked into the rare case of the endframe being the last frame of the clip, then it fucks up too (I think you know why). Maybe you can add another if statement in your script for that ..
And ehmm.. shouldn't endframe be surrounded by quotes in the function? So: Code:
function insertsign(clip mainclip, clip overlayclip, int startframe, int "endframe") { a null clip is an option maybe? Code:
function insertsign(clip mainclip, clip overlayclip, int startframe, int "endframe") { endframe = default(endframe,startframe+overlayclip.framecount-1) begin = (startframe == 1) ? mainclip.trim(0,-1) : mainclip.trim(0,startframe-1) middle = mainclip.trim(startframe,endframe) end = mainclip.trim(endframe+1,0) # BUG: setting endframe=0 doesn't do what you think it does. middleoverlay = Overlay(middle, overlayclip, mask=overlayclip.showalpha()) begin = (startframe == 0) ? BlankClip(mainclip, length=0) : begin end = (endframe == mainclip.framecount-1) ? BlankClip(mainclip, length=0) : end return begin ++ middleoverlay ++ end } Last edited by dj_tjerk; 2007-06-12 at 11:10. |
2007-06-12, 17:29 | Link #25 |
makes no files now
Join Date: May 2006
|
Not sure if you got my message on IRC, but the version that you posted dj_tjerk works just fine with fixing the bug when endframe is the last frame of the clip. Works fine under other circumstances too from what I've tested so far. *thumbs up*
EDIT: When endframe is not specified, and it's not the last frame of the mainclip then the last frame of the overlayclip is not overlayed. Maybe change line 2 to: Code:
endframe = default(endframe,startframe+overlayclip.framecount) EDIT2: Code:
function insertsign(clip mainclip, clip overlayclip, int startframe, int "endframe") { number = (mainclip.framecount==overlayclip.framecount) ? -1 : 0 endframe = default(endframe,startframe+overlayclip.framecount+number) begin = (startframe == 1) ? mainclip.trim(0,-1) : mainclip.trim(0,startframe-1) middle = mainclip.trim(startframe,endframe) end = mainclip.trim(endframe+1,0) # BUG: setting endframe=0 doesn't do what you think it does. middleoverlay = Overlay(middle, overlayclip, mask=overlayclip.showalpha()) begin = (startframe == 0) ? BlankClip(mainclip, length=0) : begin end = (endframe == mainclip.framecount+number) ? BlankClip(mainclip, length=0) : end return begin ++ middleoverlay ++ end } EDIT3: After some testing I got it to work fine. However dj_tjerk says that he can't reproduce the same problem as me... :/ EDIT4: Going through the logic I found out that it's a stupid fix, since it only works when the overlayclip has the same number of frames than the mainclip, which isn't always gonna happen. Which would lead me to this, but it just looks stupid to me, and hasn't been tested AT ALL; Code:
function insertsign(clip mainclip, clip overlayclip, int startframe, int "endframe") { endframe = default(endframe,startframe+overlayclip.framecount) number = (mainclip.framecount==endframe) ? -1 : 0 endframe = default(endframe,startframe+overlayclip.framecount+number) begin = (startframe == 1) ? mainclip.trim(0,-1) : mainclip.trim(0,startframe-1) middle = mainclip.trim(startframe,endframe) end = mainclip.trim(endframe+1,0) # BUG: setting endframe=0 doesn't do what you think it does. middleoverlay = Overlay(middle, overlayclip, mask=overlayclip.showalpha()) begin = (startframe == 0) ? BlankClip(mainclip, length=0) : begin end = (endframe == mainclip.framecount+number) ? BlankClip(mainclip, length=0) : end return begin ++ middleoverlay ++ end }
__________________
Last edited by martino; 2007-07-09 at 06:29. Reason: update |
2007-06-12, 19:12 | Link #26 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 38
|
Excellent, now people are fixing my bugs for me!
(Actually I've been meaning to fix that endframe=0 or endframe=last frame of the clip bug since forever, but never got around to it because I never had to use the function for that. Lazy fluff!)
__________________
|
2007-07-27, 08:24 | Link #28 |
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 40
|
Yes, it's called Trim.
I'm not sure how it works if you have a clip with audio but no video, but I believe you'll still work in video frames. Maybe AssumeFPS the audio to whatever is convenient and trim it then.
__________________
|
2007-08-14, 06:45 | Link #34 |
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 40
|
There is no such thing as animated PNG, so that obviously won't work. If you're thinking about MNG, that's not supported. Neither is SVG.
It just happens than the DevIL library has a homepage: http://openil.sourceforge.net/features.php Edit: Hmm, another part of the website says they do support MNG files...
__________________
|
2007-09-06, 08:39 | Link #36 |
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 40
|
That video sounds strange. Either way, it's the SelectEvery function you want to use. I'll rather not give an example as I can never remember how it works myself and it's always trial and error when I do use it
__________________
|
2007-09-06, 10:40 | Link #37 | |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 38
|
Quote:
Code:
SelectEvery(clip, cycle, frame1, ..., frameN) Code:
selectevery(3,0,1)
__________________
|
|
2007-09-26, 11:08 | Link #39 |
learning~
Join Date: Sep 2007
Location: Netherlands
|
Hi~
I've been translating, timing and typesetting in a few fansub groups by now, and I've decided to learn avisynth as an extra too (as a typesetter, that might come in handy). I want to overlay a picture (in this case: the logo of the fansub group I'm translating/typesetting for now) during the opening of the anime when the anime's logo is shown, and thanks to TheFluff's script I've managed to do so! Thank you very much for this easy technique! <3 But now here's the question. The PNG appears, but it's positioned in the upper left corner! Is there any way to center it, or use zoom or something? I'm still pretty new to avisynth, and I've looked in the Wiki and all, but so far no result T_T. If anyone would be able to help me with this, I'd really appreciate it! Thanks in advance. |
2007-09-26, 11:42 | Link #40 |
Aegisub dev
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 40
|
The easy way would of course be to make the PNG the same size as the video frame. I think that's the way it's supposed to be used. Otherwise you'd have to hack the function to take an upper-left X/Y coordinate pair too and use those.
It's probably easier to just make the PNG the size of the video frame
__________________
|
Thread Tools | |
|
|