View Single Post
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#748
Originally Posted by nicolai View Post
Hey freemangordon,
thank you for your great contribution for camera-ui.
Nice to have a higher bitrate now, and the focus control
is much better.
Now I see, you are cheating! :-)
You disable the whole tracker-process, is it that, why we can get
that high bitrates?
It is a no-go, now it may take minutes until the video is shown
up in media player. We have to find a different way.

I played a bit with dbus-commands for tracker and the indexer.

If you like, please make some tests with this camera-ui-set-priority
file:
Code:
#!/bin/sh
if [ "$1" == "1" ]; then
    run-standalone.sh dbus-send --print-reply --type=method_call --dest=org.freedesktop.Tracker.Indexer /org/freedesktop/Tracker/Indexer org.freedesktop.Tracker.Indexer.Pause
    run-standalone.sh dbus-send --print-reply --type=method_call --dest=org.freedesktop.Tracker /org/freedesktop/Tracker org.freedesktop.Tracker.SetBoolOption string:"Pause" boolean:
    renice 20 `pidof camera-ui`
    renice 20 `pidof Xorg`
    renice 20 `pidof omap3camd`
else
    run-standalone.sh dbus-send --print-reply --type=method_call --dest=org.freedesktop.Tracker.Indexer /org/freedesktop/Tracker/Indexer org.freedesktop.Tracker.Indexer.Continue
    run-standalone.sh dbus-send --print-reply --type=method_call --dest=org.freedesktop.Tracker /org/freedesktop/Tracker org.freedesktop.Tracker.SetBoolOption string:"Pause" boolean:
   renice 0 `pidof camera-ui`
    renice -8 `pidof Xorg`
    renice 0 `pidof omap3camd`
fi
 

The Following 9 Users Say Thank You to nicolai For This Useful Post: