View Single Post
Posts: 3,074 | Thanked: 12,964 times | Joined on Mar 2010 @ Sofia,Bulgaria
#749
Originally Posted by nicolai View Post
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
Well, stopping tracker was a quick workaround for its stupidity (trying to index files while camera is recording) until i figure out the correct dbus commands for pause and continue... exactly what you've done. And playing with priorities and other stuff is one of the reason why I made a script instead of hard-coding it in camera-ui. next step will be to move camera-ui in another cgroup while recording,pulling it out from standby tasks cgroup where Nokians in their etheral wisdom had put.

Thanks, will test that, but my expectations are that it will work like charm.

BTW some cheating for time to time won't hurt .
 

The Following 10 Users Say Thank You to freemangordon For This Useful Post: