Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  gif framecount maximum - variable?
« previous next »
  • Print
Pages: [1] 2

Author Topic: gif framecount maximum - variable?  (Read 4531 times)

Offline blissorient

  • Member
  • *
  • Posts: 7
gif framecount maximum - variable?
« on: January 08, 2013, 11:57:10 AM »
hello, maybe this should be a reply to my earlier post, not sure - it's a different question....

i'm using a sansa e260 with rockbox 62de15f-130103. i am VERY happy with rockbox (not least for increasing the maximum micro sd from 2 to 32 GB!) - massive respect to all involved - long live open-source collaboration!

i'm trying to view animated gifs to learn some juggling tricks (one example: http://www.kingscascade.com/3BallCascade.html).

i have downloaded and resized files to 100x125 (i noticed that rockbox was doing this when i tried to play the original 200x250 files) and some play but some do not - i think it is because of maximum framecount - i saw 32 listed as a maximum somewhere...

so my question is: is a 32 frame maximum some kind of inherent brickwall or could i increase it? how? the files have small dimensions and use very few colours so filesizes are small - most under 30kb. if i could get up to 100 all of the files would run fine, and at 70 almost all would run...

if it is not possible to increase the maximum does anyone know where/how i might batch-reduce the framecount of a few dozen gifs? (for free - i don't own a computer! ;)) or to convert gif to mpg (again, for free)

thanks so much!
« Last Edit: January 08, 2013, 12:02:18 PM by blissorient »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: gif framecount maximum - variable?
« Reply #1 on: January 08, 2013, 12:14:12 PM »
You could probably try and increase GIF_MAX_FRAMES in gif_decoder.h and see if it compiles and runs.  I suspect at some point you'll start to run out of memory though. 
Logged

Offline blissorient

  • Member
  • *
  • Posts: 7
Re: gif framecount maximum - variable?
« Reply #2 on: January 08, 2013, 12:24:57 PM »
ace! thanks!

hmmm..... "compiles and runs"? i have to edit source and recompile? which will require a unix/linux sandbox? i have never compiled anything - is it involved? my guess is that installing the necessary programs to compile the code will take much longer than the edit itself? any chance i could cojole you into doing it for me? not really sure what i can do in exchange.....umm, point you at some awesome music?

ta again
« Last Edit: January 08, 2013, 12:27:51 PM by blissorient »
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: gif framecount maximum - variable?
« Reply #3 on: January 08, 2013, 01:01:40 PM »
Is animated gif really the best file format for this? I'd recommend just using mpeg video
Logged

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: gif framecount maximum - variable?
« Reply #4 on: January 08, 2013, 01:27:11 PM »
I'll do it for you!
Raised it to 64, lets see how it compiles:     
You can see the build here: https://travis-ci.org/whiskers75/rockbox/builds/4027682
Ask me to change it, and I will.
(If build status is unknown, it hasn't finished yet!)
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline blissorient

  • Member
  • *
  • Posts: 7
Re: gif framecount maximum - variable?
« Reply #5 on: January 08, 2013, 01:42:46 PM »
wow, thanks!! i'll install that build as soon as it's up :)

gif may well not be the best format, but it's what the orginals are - if you can direct me to a freeware program or online service to convert gif to mpg that'd be awesome!

thanks everyone!
Logged

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: gif framecount maximum - variable?
« Reply #6 on: January 08, 2013, 02:57:07 PM »
My build thingy only tell you if it builds, so you can now do so. Read DevelopmentGuide on the wiki to learn more. I'll try and integrate uploading of builds into it.
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: gif framecount maximum - variable?
« Reply #7 on: January 08, 2013, 03:03:54 PM »
I'll make a rockbox binary for Sansa e260 based of the latest dev builds. Should be up tommorrow-ish.
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: gif framecount maximum - variable?
« Reply #8 on: January 08, 2013, 03:04:57 PM »
So wait, your thing only tells you if it compiles?  That seems fairly useless.
« Last Edit: January 08, 2013, 06:13:44 PM by AlexP »
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline whiskers75

  • Member
  • *
  • Posts: 100
  • github.com/whiskers75
    • whiskers75
Re: gif framecount maximum - variable?
« Reply #9 on: January 09, 2013, 01:57:56 AM »
Yes. I haven't bothered to implement a way of getting the finished build yet.
Logged
whiskers75/rockbox - Custom Build  
http://forums.rockbox.org/index.php/topic,42527.0.html
Devices: Sansa Clip+

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: gif framecount maximum - variable?
« Reply #10 on: January 09, 2013, 11:48:16 AM »
Quote from: whiskers75 on January 09, 2013, 01:57:56 AM
Yes. I haven't bothered to implement a way of getting the finished build yet.

Well then your reply to this thread was kind of a waste of everyone's time ...
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: gif framecount maximum - variable?
« Reply #11 on: January 09, 2013, 12:23:33 PM »
Quote from: whiskers75 on January 09, 2013, 01:57:56 AM
Yes. I haven't bothered to implement a way of getting the finished build yet.
You may not realise this, but probably 99% of the users here on the forum have never built Rockbox and don't know how. The original poster here already said in the thread that they haven't compiled it before and doesn't want to. You've only done the *easiest* part for them (changing one number in one file), and left them to do the part they wanted help with :)
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline blissorient

  • Member
  • *
  • Posts: 7
Re: gif framecount maximum - variable?
« Reply #12 on: January 10, 2013, 05:34:29 AM »
yeah- basically.
i mean, i didn't want to be rude (mainly because rudeness isn't going to get me a build) but i'm able to search for GIF_MAX_FRAMES in gif_decoder.h (i.e. i'm not retarded) i just don't have a unix operating system or experience compiling source code. although if nobody can/will easily do it for me then i guess i'll have to make my first foray into the world of development. or convert my gifs to mpgs. although i'd rather use the gifs - they're nice and small and loop well....so if anyone fancies adjusting GIF_MAX_FRAMES in gif_decoder.h to 72 or higher and compiling the code i'd be real happy!!

thanks again all!
Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: gif framecount maximum - variable?
« Reply #13 on: January 10, 2013, 09:58:34 AM »
In theory we could allocate all memory from pool and get rid of GIF_MAX_FRAMES - the only hard limit would be available memory then. Maybe I'll look into it but no promise.
Logged

Offline blissorient

  • Member
  • *
  • Posts: 7
Re: gif framecount maximum - variable?
« Reply #14 on: January 10, 2013, 11:34:12 AM »
thanks wods :) i don't know how much memory the sansa e260 has, but the gifs i'm trying to view are all relatively small - most under 40kb and none over 80kb - so for my purposes it would be fine to simply up maxframes (pref to 100).

of course there may be other users with higher-end devices, more memory, and desire to view larger gifs so maybe in the grand scheme of things your plan may be better. is the maxframes entry there to stop imageviewer from hogging resources and locking the device up? might it be advantageous to limit imageviewer's memory usage rather than gif framecount? in my case 70 frames at 100x125 are small files but there must be other cases with low framecounts and high resolution giving large filesize and thus high memory use? furthermore might it be cool n groovy to limit to a percentage of total available memory so the same code can upscale to higher-memory devices?

this isn't my computer and i doubt the owner would appreciate me installing linux/unix in his absence and it doesn't have an optical drive so until i get my own laptop next month i am unable to get involved in coding, so in summary, thanks for all your help - all of you! may your gods (i like pan best) bless you ;)

x

Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  gif framecount maximum - variable?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.113 seconds with 15 queries.