Notices


Reply
Thread Tools
MSameer's Avatar
Posts: 605 | Thanked: 1,778 times | Joined on Feb 2008 @ Helsinki
#141
Originally Posted by wolke View Post
/home/user/.config/tracker/tracker-miner-fs.cfg
IndexRecursiveDirectories, IndexSingleDirectories, CrawlingInterval


eh, my reasons for disliking it are complicated. ill try and list some, but it comes down to unpredictability and lack of user control.

1) i move my files around a lot, and the tracker slows my phone to a crawl when i do large updates.

for instance, every night i run a machine that backs up all the photos in MyDocs to my laptop, indexes them into my storage system, runs a conversion to shrink them to the n9's resolution, and syncs my entire low-res library back to the n9 {currently about 2GiB}.
i manually reorganize my high-res images routinely, and the nightly script deals with re-converting to low-res.
i do the same exact thing with my FLAC music library, maintaining an ogg "mirror" of my music library with a quality=6 conversion on my laptop, which then gets synced to my phone nightly. i manually update my FLACs, adding music, changing tags, then rerun my conversion.

2) i absolutely despise the harmattan gallery, music-suite, and video-suite apps. i use meeseepics, my own oddball music app called klomp, and mplayer. {meeseepics is flawed, but sufficient}

3) tracker is wasteful if you dont use it, and its not optimized to handle what i do. i dont use it for music at all, and it spends an inordinate amount of time indexing my large library.
i would be happier if it only [re]indexed things as they were ACCESSED, and not as they are modified. when nothing has been modified, this check is extremely cheap.

4) i dislike complex, non-human-readable state. i would prefer favorites to be stored in a way that is transparent to the user and easy to preserve across machines.

5) i like predictability in behaviours. i would like tracker to act merely as a cache of the filesystem; asking it for a list of files would then ensure that the index of each of those files is up-to-date before returning it.
the key is that the behaviour is the same before and after a tracker crawl. then, one could update parts of the cache at as desired and not change the behaviours, but only improve performance.

6) the tracker stores the call log and sms message log. it also stores huge blocks of text for localization and stuff. its over-used, and many features depend on it. the interfaces that access it are often buggy. {note how many sms bugs stem from it, and are fixable only by removing the tracker db}
i dislike relying on the tracker to keep track of my media when all those other things break it and otherwise complicate things.



not to say that you shouldnt use tracker, but there are many tools for reading exif metadata. as for deletion detection, you can just check that the file exists when initiating swipe to it.
I guess you have strong reasons and tracker is simply a nightmare for you

I also have a tendency to dislike tracker. The more I think about it the more I believe post capture for camera+ should not rely on tracker. However tracker is deeply integrated in the whole platform. I guess not having meta data about images in tracker might break sharing functionality. Not really sure.

I guess what could be done is to use a normal filesystem model for post capture yet keep favorites and so in tracker.

It's not that simple to detect non-existent files. The image you immediately captured might not have been saved yet it shows up in post capture just because camera+ inserts needed metadata into tracker manually. Tracker will eventually catch up and index the image. The file itself however should in theory exist already although it could be empty or incomplete.

I will try to see how not relying on tracker could be done. I might end up disabling tracker too myself

EDIT: Maybe I can remove the favorites functionality. Does anyone use it?

Speaking of klomp. It looks interesting but not using the DSP for mp3 decoding is a wasteful of battery.

Originally Posted by wolke View Post
how does it persist the index? does it store a list of used indices for each date that a picture was taken? can this method break if one changes the date to a previously used date, e.g.: by changing timezones?
It just saves the last used date stamp (obtained from UTC time) and the last used index. It's not entirely perfect but that's the best thing I can come up with.

Originally Posted by wolke View Post
probably the solution i would like best would be to have camera+ attempt to ensure what it needs from the tracker is an accurate reflection of the filesystem.

as a workaround, i could probably figure out how to index precisely what i want indexed when i want it indexed so that camera+ works as if it was actually looking at my pictures, instead of what the tracker thinks my pictures are.
i tried indexing DCIM manually and no changes were reflected in camera+. not sure why; i should probably look into it
Don't go that route yet. I still need to try the filesystem path first. If it's not feasible then we can go back to the drawing board

Last edited by MSameer; 2013-08-24 at 10:23.
 

The Following 2 Users Say Thank You to MSameer For This Useful Post:
MSameer's Avatar
Posts: 605 | Thanked: 1,778 times | Joined on Feb 2008 @ Helsinki
#142
Originally Posted by minimos View Post
I was installing cameraplus via dpkg, and I got a couple of permission errors:
Code:
Selecting previously deselected package cameraplus.
(Reading database ... 61180 files and directories currently installed.)
Unpacking cameraplus (from cameraplus_0.0.5-1_armel.deb) ...
aegis-installing cameraplus (from '')
Package cameraplus: denied 'GID::metadata-users' -- origin '' does not allow it
Package cameraplus: denied 'GID::metadata-users' for '/usr/bin/cameraplus' -- origin '' does not allow it
Setting up cameraplus (0.0.5-1) ...
Did I miss something about the requirements?
I also get those so just ignore them

Originally Posted by Lucazz990 View Post
Hi, really nice work here!
Is there a chance to get HDR mode with cameraplus?
It's planned but most likely after fast capture, self timer and panorama. I hope I will get to it soon
 

The Following 7 Users Say Thank You to MSameer For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#143
Originally Posted by MSameer View Post
I will try to see how not relying on tracker could be done. I might end up disabling tracker too myself
cool!

Originally Posted by MSameer View Post
Speaking of klomp. It looks interesting but not using the DSP for mp3 decoding is a wasteful of battery.
CRAP that never occurred to me. i need to investigate getting mplayer to use the dsp, or finding a command line decoder that will use the dsp and making a WAV for mplayer, or finding a cli music player as feature-rich as mplayer with dsp and just using that. i wonder if the DSP can handle ogg.

yea, klomp has some nice features, but its really weird. ive been thinking about replacing the mplayer core with MPD, which would make it substantially less weird, but i dont think anyone has MPD running on the n9.
__________________
~ teleshoes ~
 

The Following User Says Thank You to wolke For This Useful Post:
MSameer's Avatar
Posts: 605 | Thanked: 1,778 times | Joined on Feb 2008 @ Helsinki
#144
Originally Posted by wolke View Post
cool!



CRAP that never occurred to me. i need to investigate getting mplayer to use the dsp, or finding a command line decoder that will use the dsp and making a WAV for mplayer, or finding a cli music player as feature-rich as mplayer with dsp and just using that. i wonder if the DSP can handle ogg.

yea, klomp has some nice features, but its really weird. ive been thinking about replacing the mplayer core with MPD, which would make it substantially less weird, but i dont think anyone has MPD running on the n9.
I more or less managed to get tracker-less post capture to work. It's still rough around though.

I had to remove favorites functionality since we no longer use tracker.

The main issue now is loading the contents of MyDocs/DCIM breaks smoothness of the flick. Loading the list of images and videos via tracker was introducing a delay which caused thumbnail loading to begin after the flick gets completed. Using the filesystem directly causes thumbnail loading to begin faster thus the ui lost its smoothness

DSP cannot handle ogg unfortunately. Maybe gst123 could replace mplayer?
 

The Following 2 Users Say Thank You to MSameer For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#145
yaaay, awesome!

gst123 looks good, thanks. it doesnt have the ability to control it from a FIFO like mplayer, but i can just kill it and restart it with the new options. a small delay when seeking will be worth the battery gains.
__________________
~ teleshoes ~
 

The Following User Says Thank You to wolke For This Useful Post:
Posts: 63 | Thanked: 46 times | Joined on Feb 2012
#146
Are you planning to translate to different languages?
 

The Following User Says Thank You to nicodonte For This Useful Post:
Mikkosssss's Avatar
Posts: 645 | Thanked: 519 times | Joined on Apr 2012 @ Finland
#147
So if you make Camera+ image viewer not to rely on tracker are you planning to do seperated galley application?
Camera+ starts slowly so I dont want to use it as gallery application so I cant disable tracker yet.
And for some reason Camera+ gallery shows only one picture so its nice that you update it.
__________________
────────────────────
Try:My N9 bootvideo
 

The Following User Says Thank You to Mikkosssss For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#148
Originally Posted by Mikkosssss View Post
So if you make Camera+ image viewer not to rely on tracker are you planning to do seperated galley application?
Camera+ starts slowly so I dont want to use it as gallery application so I cant disable tracker yet.
And for some reason Camera+ gallery shows only one picture so its nice that you update it.
-camera+ post-capture review is not a gallery app replacement. it has different functional goals; its primarily for post-capture review while using the camera.

-if camera+ stops using tracker, that doesnt mean you have to stop using tracker. gallery will still work exactly the same way, as its a separate app.

-if you DO want to disable tracker, you can use meeseepics, which IS a replacement for gallery. its actually quite nice, but it has some huge pitfalls that make it hard to use for certain cases.
__________________
~ teleshoes ~
 

The Following 2 Users Say Thank You to wolke For This Useful Post:
MSameer's Avatar
Posts: 605 | Thanked: 1,778 times | Joined on Feb 2008 @ Helsinki
#149
Originally Posted by nicodonte View Post
Are you planning to translate to different languages?
I cannot translate it to different languages. I only speak English and Arabic

If you want to translate it then please feel free to contribute

Originally Posted by Mikkosssss View Post
So if you make Camera+ image viewer not to rely on tracker are you planning to do seperated galley application?
Camera+ starts slowly so I dont want to use it as gallery application so I cant disable tracker yet.
And for some reason Camera+ gallery shows only one picture so its nice that you update it.
There is no need to disable tracker. Camera+ will still function as it used to. All images and videos under MyDocs/DCIM will be shown.
The only issue is if you place captured images or recorded videos outside MyDocs/DCIM (you can receive them via bluetooth, email or any other method) then they will not show up.

N9 gallery will also continue to function properly.

EDIT: I know start up time is bad. I tried optimizing a few things here and there but no luck yet.

stock harmatan camera is running all the time in the background thus the fast start up. I don't want to do the same for camera+ yet. I unfortunately don't have much experience with QML so I might be doing a lot of stupid stuff thus slowing down start up :| Any help would be greatly appreciated!

I have been seriously thinking about writing a gallery replacement as I tried meeseepics from ovi store and it was really horrible
I however don't have much time to maintain all this code.

Last edited by MSameer; 2013-08-25 at 19:56.
 

The Following 3 Users Say Thank You to MSameer For This Useful Post:
MSameer's Avatar
Posts: 605 | Thanked: 1,778 times | Joined on Feb 2008 @ Helsinki
#150
0.0.6 is dedicated to wolke
* Make sure we don't play camera sounds in silent profile
* Don't reuse a file name if a file gets deleted
* Make capture buttons always visible
* Added an option to use proximity sensor as a shutter button
* Reworked toolbar animation to use opacity
* Don't try to capture if zoom gets pressed and we are in settings or post capture
* Reworked post capture to get rid of tracker dependency
* Dropped add to/remove from favorites

Attached to the first post and uploaded to openrepos.

@wolke I guess those are all the features you asked for ?
 

The Following 13 Users Say Thank You to MSameer For This Useful Post:
Reply

Tags
?where is nemo?, thank you!

Thread Tools

 
Forum Jump


All times are GMT. The time now is 19:49.