This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-03-26 08:51:14

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Lower the Scratch Project size

When importing an mp3 into scratch, it is turned into the memory-wasting .wav format.
When importing png images, the are converted to bmp (Yup, the thing they made in the 80's and only MS-Paint and Scratch are still using it)

What if lossless data compression is added to Scratch? Like the PNG format?


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#2 2009-03-26 09:31:11

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Lower the Scratch Project size

Yeah that always bugged me. I don't see the logic behind it either.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2009-03-26 09:48:14

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Lower the Scratch Project size

JSO, importing media into Scratch does not necessarily blow up the project's size, because Scratch uses several internal compression algorithms when writing project files to disk. You might be misunderstanding some conversions in the source code: While Scratch is running it is - of course - internally mapping pictures to bitmaps (Forms) and sounds to wavetables. As fas is I'm aware every media-editing software needs to do that.


Jens Mönig

Offline

 

#4 2009-03-26 16:33:14

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Lower the Scratch Project size

When I imported a 4mb mp3 song, it says:
- "reading song.mp3"
- "converting song.mp3 to mono..."
- "downsampling song.mp3..."

And then it says 11 ### kb... I dind't knew it was compressed (lossless) afterwards. Sorry.


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#5 2009-04-02 19:36:21

hamsterkirby
Scratcher
Registered: 2009-03-13
Posts: 100+

Re: Lower the Scratch Project size

JSO wrote:

When I imported a 4mb mp3 song, it says:
- "reading song.mp3"
- "converting song.mp3 to mono..."
- "downsampling song.mp3..."

And then it says 11 ### kb... I dind't knew it was compressed (lossless) afterwards. Sorry.

I think scratch censored the number you said. P.S. Please add MPEG4 support (higher compression than MP3). And there should be a windows and mac application used to convert video into sprites and sounds.

Last edited by hamsterkirby (2009-04-03 19:59:53)


Y-100 and Y-107 shall pwn.
http://tinyurl.com/yaxc82v/.gif

Offline

 

Board footer