AnimeSuki Forums

Register Forum Rules FAQ Members List Social Groups Search Today's Posts Mark Forums Read

Go Back   AnimeSuki Forum > Anime Related Topics > Fansub Groups

Notices

Reply
 
Thread Tools
Old 2007-08-01, 12:03   Link #1
pitty
fansubber
 
 
Join Date: Oct 2006
Location: Bucharest, Romania
Send a message via MSN to pitty Send a message via Yahoo to pitty
Image to ASS v0.5

Name: Image to ASS Draw commands
Version: 0.1
Created by Diclonius85 from Diclonius Subs

Description: convert an image (bmp/gif/jpg/png) to pure ASS draw commands.

Download: http://diclonius.ro-anime.net/image2ass.zip

To do:
- improve the interface
- support image transparency
- improve the generated code

Check it out and let me hear your opinions about it.

The program is released AS IS without any warranty (might release the source code later)

Last edited by pitty; 2007-08-08 at 04:24.
pitty is offline   Reply With Quote
Old 2007-08-01, 12:09   Link #2
Starks
I see what you did there!
*Scanlator
 
 
Join Date: Apr 2004
Age: 26
Send a message via AIM to Starks
Very clever...
__________________
Starks is offline   Reply With Quote
Old 2007-08-01, 14:34   Link #3
日本ひきこもり協会
awarpsharp is good
 
Join Date: Feb 2006
Location: Not Japan :((
Good job. It really works well and on top of that, the generated .ass file isn't large at all.

Last edited by NoSanninWa; 2007-08-02 at 03:08. Reason: baiting comment was deleted
日本ひきこもり協会 is offline   Reply With Quote
Old 2007-08-02, 14:14   Link #4
[darkfire]
Give them the What For!
*Fansubber
 
 
Join Date: Feb 2006
Location: Cave of Evil- Invite Only
Age: 27
Send a message via AIM to [darkfire] Send a message via Yahoo to [darkfire] Send a message via Skype™ to [darkfire]
I tested it out and not bad. Even though motion will be tedious to do It is possible to do. It looks like you detect the color of every pixel and its opacity and use a square shape to duplicate it.
__________________
"Lepers, women are Lepers" - Sheriff of Nottingham
[darkfire] is offline   Reply With Quote
Old 2007-08-02, 14:57   Link #5
diclonius85
Junior Member
 
Join Date: Aug 2007
Well, finally managed to make some time to register here.

Quote:
Originally Posted by [darkfire] View Post
I tested it out and not bad. Even though motion will be tedious to do It is possible to do. It looks like you detect the color of every pixel and its opacity and use a square shape to duplicate it.
Well, just like u said it, however, there's no opacity detection in it (i hope to add it soon). The rest is just like u said, I simply read every pixel from the image and draw the pixel with the specific color at the proper position.
The motion is going to be a bit tedious, but I made the program to be able to include an image in the subtitles without much work. If you need more effects for the image, there's always other types of programs that can add images to the video stream with different effects.

I'm going to try to optimize the code a bit to decrease the ammount of code generated.

I'm open to suggestions on how to improve the convertor.

Last edited by diclonius85; 2007-08-02 at 15:00. Reason: complete the reply post
diclonius85 is offline   Reply With Quote
Old 2007-08-05, 15:34   Link #6
PlasticYakuza
Space Pirate
 
 
Join Date: Jan 2006
Location: Florida
Age: 31
Send a message via AIM to PlasticYakuza Send a message via Yahoo to PlasticYakuza
I have to say I am rather impressed. Could see this being useful for a number of people.
PlasticYakuza is offline   Reply With Quote
Old 2007-08-05, 17:03   Link #7
Starks
I see what you did there!
*Scanlator
 
 
Join Date: Apr 2004
Age: 26
Send a message via AIM to Starks
It's the ethical person's alternative to pirating Adobe After Effects.
__________________
Starks is offline   Reply With Quote
Old 2007-08-06, 09:11   Link #8
Sylf
翻訳家わなびぃ
*Fansubber
 
 
Join Date: Nov 2003
Age: 40
Send a message via MSN to Sylf Send a message via Yahoo to Sylf
I still can't see the benefit of using this over loading the source image using avs. Someone care to enlighten me?
Sylf is offline   Reply With Quote
Old 2007-08-06, 13:05   Link #9
xat
Senior Member
*Fansubber
 
Join Date: Dec 2005
For automation purposes (if you really dare to) you'd technically have more freedom to perform transforms.
xat is offline   Reply With Quote
Old 2007-08-06, 13:47   Link #10
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 27
Quote:
Originally Posted by Starks View Post
It's the ethical person's alternative to pirating Adobe After Effects.
no it isn't and you have to know it
what the christ made you think of this analogy anyway

edit: technically you can do very very interesting things with Animate() in Avisynth as well :>
__________________
| 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 2007-08-06, 14:34   Link #11
D404
Banned
 
Join Date: Aug 2006
SVG support would be lovely..
D404 is offline   Reply With Quote
Old 2007-08-06, 18:37   Link #12
Starks
I see what you did there!
*Scanlator
 
 
Join Date: Apr 2004
Age: 26
Send a message via AIM to Starks
Quote:
Originally Posted by TheFluff View Post
no it isn't and you have to know it
what the christ made you think of this analogy anyway

edit: technically you can do very very interesting things with Animate() in Avisynth as well :>
I know plenty of karaokers that can work miracles with the draw command... Ever see Xat's work on the Simoun OP? Thousands of lines of code...
__________________
Starks is offline   Reply With Quote
Old 2007-08-06, 21:50   Link #13
edogawaconan
LOL?
*Fansubber
 
 
Join Date: Aug 2006
Location: Indonesia
Send a message via MSN to edogawaconan Send a message via Yahoo to edogawaconan
I still don't understand what's the point in doing flashy karaoke though...
edogawaconan is offline   Reply With Quote
Old 2007-08-07, 02:56   Link #14
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 27
Quote:
Originally Posted by Starks View Post
I know plenty of karaokers that can work miracles with the draw command... Ever see Xat's work on the Simoun OP? Thousands of lines of code...
Yes, but this is not related much at all, other than using the same command. And I still don't see how the heck this does motion tracking, blur effects, masking or other things that AFX is good at but ASS is bad at.

edit: this program isn't really all that useful for transformation fun either, because it just directly translates pixel-for-pixel and each line in the input gets its own ASS line in the output, which gives you all kinds of funky limitations... so like Sylf said, I don't really see the advantage of using this instead of just overlaying with Avisynth.
For most karaoke purposes you want rather simplistic shapes anyway (especially since this program doesn't support transparency yet and can't tell the difference between a shape and its background), and those are easier to do with an ASS drawing program, of which there is at least one.
__________________
| 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

Last edited by TheFluff; 2007-08-07 at 03:08.
TheFluff is offline   Reply With Quote
Old 2007-08-07, 04:17   Link #15
xat
Senior Member
*Fansubber
 
Join Date: Dec 2005
Maybe this might work a bit more favourably if it converted bodies of color (maybe tweakable by threshold) instead of taking a pixel for pixel approach?
xat is offline   Reply With Quote
Old 2007-08-07, 16:38   Link #16
diclonius85
Junior Member
 
Join Date: Aug 2007
Version 0.5 is out.

Here's the list of changes:
* Improved code.
* Added binary transparency support.
* Changed code generation to one pixel per line.
* Added alpha transparency support (based on bitmap mask file).
* Added PNG alpha transparency support.
* Changed style name from "Default" to "Image".
* Interface redesigned.

Download: http://diclonius.ro-anime.net/image2ass.zip (506 KB)

The program is released AS IS without any warranty.
diclonius85 is offline   Reply With Quote
Old 2007-08-08, 09:42   Link #17
adrianmak
Member
 
Join Date: Nov 2006
I tested by creating a jpg image in white background color.

I used "Binary transparency" tab to load my jpg image, checked "use transparency" and select color to white.

However the result is bad as shown below.



adrianmak is offline   Reply With Quote
Old 2007-08-08, 09:57   Link #18
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 27
say hello to jpeg compression artefacts
use something lossless like png instead
__________________
| 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 2007-08-08, 10:01   Link #19
diclonius85
Junior Member
 
Join Date: Aug 2007
Quote:
Originally Posted by adrianmak View Post
I tested by creating a jpg image in white background color.

I used "Binary transparency" tab to load my jpg image, checked "use transparency" and select color to white.

However the result is bad as shown below.




TheFluff is right. JPEG's use a lossy compression format that introduces quite a bit of artifacts to the image.

I will see if I can include a Tolerance value to compensate for these artifacts.
diclonius85 is offline   Reply With Quote
Old 2007-08-10, 12:38   Link #20
pichu
Senior Member
*Fansubber
 
 
Join Date: Jul 2004
Now that's an idea...

When I first looked at this thread yesterday, I was wondering why would anyone do from png/bmp/jpg to .ass; most people will try to convert from svg/emf/wmf/ai to .ass draw commands since they're all in vector.

But, I noticed that from rasterized image to .ass may not be a bad idea if it works. I saw people mentioning about using it in karaoke, but I don't think it's feasible in karaoke at all. In .ass typesetting, we sometimes do need to extend horrible signs, signs with gradients and shades. It's extremely difficult to do so without a proper package. Bitmap has been very easy to do with the help of photoshop, paintshop pro, or gimp, thanks to layer duplication, clone stamp techniques, and basic paintbrush.

I conducted one test on this program with my already-made sign in photoshop with aftereffects (ae is used to precisely zoom the sign). This sign is zooming, so the program won't be feasible in this area, unless you can make .ass on a sequent of images, but then why bother when you can overlay the video instead? :P So it seems to be more applicable to static signs.

The following is an image with its png (alpha-enabled) overlay: (It's taken from an unreleased Froth-Bite's Sky Girls episode since I have that image on my screen)

(How I made that image? I duplicate the area and paint it through - a one minute job. I normally apply noise-reduction filters to the original video to enhance the overlay. And yes, tolerance-level will help reducing the size of the .ass file greatly.)
Spoiler for Some Screenshot:


Your program produces: (I'll get to the details soon)
Spoiler for Some Screenshot:


The correct overlay:
Spoiler for Some Screenshot:

---

It looks pretty good, except the .ass file is like a bit bigger than 5MB heh.

It appears that the program didn't handle the transparencies accurately (or maybe it's vsfilter's fault). Can you care to check it? Thanks. I probably have some transparencies layered there because I want the plate blended in correctly, but other than that, keep up the good work for .ass typesetters.

-pichu.

Last edited by pichu; 2007-09-04 at 13:59.
pichu is offline   Reply With Quote
Reply

Thread Tools

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:09.


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