Re: [Freevo-users] freevo 1.8 memory usage when viewing images
On 19/02/2009 10:16, Olivier Sessink said the following: Attached is a patch that should reduce the memory and speed up the display of images, it may not be 100% correct yet (lack of rotation and using the thumbnails for the full image). The thumbnails can be generated with the helper mkimagemrss and the size of the thumbnail can be controlled with: WWW_IMAGE_THUMBNAIL_SIZE. The patch applied to 1.8.3 with some fuzzy offsets. it is a good improvement.I don't get into problem with the out-of-memory killer anymore on my 512Mb box. Memory usage is now around 80% when listing a directory with photo's. Do you want a comparison with the 1.7 series (where I never had any memory problems?) No don't need the comparison with 1.7 as kaa.imlib2, which generates the thumbnails wasn't used then. I did notice that all the images are cached for later use but didn't check when they are freed from the cache. Of course caching big images would cause a memory problem. It should be a lot faster too, it takes quite a long time for imlib2 to process a large photo (3072x2048) about 1.5 secs on my P3 box which is a performance killer. Duncan -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Handling usb foreign drives
On Thu, 2009-02-19 at 12:47 -0800, Shane W wrote: Hey all, Does anyone have a Freevo solution where I can connect an External hard drive, USB key whatever and Freevo would be able to navigate it. The automount stuff is easily enough done but the issue I run into is Freevo has the idea of audio_items and video_items where the directory would be linked in. On a foreign drive though, we don't know in advance what will be on it, music movies, pictures etc. Is there any setting whereby Freevo will just launch the appropriate playback method and not care where the directory is categorized? I have solved this the following way: 1) Install the usbmount program 2) In /etc/udev/usbmount.rules (might vary on your distro), insert: -- snip -- # Rules for USBmount KERNEL==sd*, BUS==usb, ACTION==add,RUN +=/usr/share/usbmount/usbmount add KERNEL==ub*, BUS==usb, ACTION==add,RUN +=/usr/share/usbmount/usbmount add KERNEL==sd*, ACTION==remove, RUN +=/usr/share/usbmount/usbmount remove KERNEL==ub*, ACTION==remove, RUN +=/usr/share/usbmount/usbmount remove -- snip -- 3) Restart udev 4) Make sure you have in /etc/usbmount/usbmount.conf: FILESYSTEMS=ext2 ext3 vfat to allow fat partitions to work AND: MOUNTOPTIONS=sync,noexec,nodev,noatime,ro to mount al devices read-only, or data loss could happen, since you won't be able to unmount devices cleanly with freevo 5) Then you can add in your freevo's local_conf.py on the Video/Music/Images section something like: ('External Storage','/var/run/usbmount/') Then if you plug in your usb key, a new folder should show up in /var/run/usbmount/, and if you go to Video/Music/Images on your freevo system and select External Storage on them you will see the usb key and files. Hope this helps. Cheers, Benedikt Shane -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users signature.asc Description: This is a digitally signed message part -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] freevo 1.8 memory usage when viewing images
On Fri, 2009-02-20 at 10:55 +0100, Duncan Webb wrote: I did notice that all the images are cached for later use but didn't check when they are freed from the cache. Of course caching big images would cause a memory problem. kaa.imlib2 has two layers of cache: one for uncompressed data (16MB), and the one built into imlib2 for compressed data (4MB). The uncompressed data cache can be tuned: kaa.imlib2._image_cache['max-size'] = number of bytes Now that I look at the code, max-size is a bit of a lie. It will actually cache one image, even if that image exceeds the max size. So an extremely large image (3072x2048 in your example) will actually use an extra 24MB of memory. You can, however, bypass the uncompressed image cache by using kaa.imlib2.open_without_cache() It should be a lot faster too, it takes quite a long time for imlib2 to process a large photo (3072x2048) about 1.5 secs on my P3 box which is a performance killer. beacon uses epeg (which is nowadays merged with evas, but beacon still has it split out), which is probably the fastest JPEG thumbnailer around. Jason. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Handling usb foreign drives
I have solved this the following way: 1) Install the usbmount program 2) In /etc/udev/usbmount.rules (might vary on your distro), insert: -- snip -- # Rules for USBmount KERNEL==sd*, BUS==usb, ACTION==add,RUN +=/usr/share/usbmount/usbmount add KERNEL==ub*, BUS==usb, ACTION==add,RUN +=/usr/share/usbmount/usbmount add KERNEL==sd*, ACTION==remove, RUN +=/usr/share/usbmount/usbmount remove KERNEL==ub*, ACTION==remove, RUN +=/usr/share/usbmount/usbmount remove -- snip -- 3) Restart udev 4) Make sure you have in /etc/usbmount/usbmount.conf: FILESYSTEMS=ext2 ext3 vfat to allow fat partitions to work AND: MOUNTOPTIONS=sync,noexec,nodev,noatime,ro to mount al devices read-only, or data loss could happen, since you won't be able to unmount devices cleanly with freevo 5) Then you can add in your freevo's local_conf.py on the Video/Music/Images section something like: ('External Storage','/var/run/usbmount/') Then if you plug in your usb key, a new folder should show up in /var/run/usbmount/, and if you go to Video/Music/Images on your freevo system and select External Storage on them you will see the usb key and files. Hope this helps. Not prefect, but then this is a hard job for a prefect solution. It does however make a really good answer to teh problem as you should know what is on the media :) Evan -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] freevo 1.8 memory usage when viewing images
Jason Tackaberry wrote: On Fri, 2009-02-20 at 10:55 +0100, Duncan Webb wrote: It should be a lot faster too, it takes quite a long time for imlib2 to process a large photo (3072x2048) about 1.5 secs on my P3 box which is a performance killer. beacon uses epeg (which is nowadays merged with evas, but beacon still has it split out), which is probably the fastest JPEG thumbnailer around. Beacon's epeg code is around 4 times faster than imlib2 (so my changelog says). And it looks even faster since beacon is doing all the stuff in the background and you do not have to wait. Dischi -- I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone. -- Bjarne Stroustrup -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
[Freevo-users] Blank screen after seek w/ mplayer in 1.x SVN
Recently updated my tired old debian box to lenny and in the process threw out my freevo 1.7. I'm now using freevo 1.x from SVN (perhaps foolishly, because i plan to try to use the livepause plugin, which the wiki still says is only in svn) and have rebuilt ffmpeg, mplayer, etc - also from their respective repositories. If i seek forward or back with the ir remote, the video goes blank a second or two after seeking. If i use the keyboard at the console to seek, it works fine. The secreen only goes blank if I've been using the remote. Any ideas? -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users