The Following 4 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2011-12-17
, 19:08
|
Posts: 1,101 |
Thanked: 1,185 times |
Joined on Aug 2008
@ Spain
|
#752
|
The main problem is that I don't have any clue why LOWERING the priority leads to higher framerates and reduced stuttering.
@nikolai - seems your dbus commands are missing true/false parameters. And something like killall gst-video-thumbnailerd will be needed too.
The Following 4 Users Say Thank You to maacruz For This Useful Post: | ||
![]() |
2011-12-17
, 20:01
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#753
|
May be because showing the image in the screen is cpu intensive, or the background and UI processes keep interrupting the encoding process. Lowering the ui priority means that the ui will get less cpu time and can be interrupted by a higher priority task (like encoding). Timer granularity also matters.
I use my desktop for analog video recording with an old bt848 pci card. At first I couldn't get the recordings right, because background and UI tasks kept causing stuttering. To get them right I had to 1: increase timer frequency from 100 to 1000Hz, 2: setup cgroups , 3: increase priority to -5 for the encoding process.
#!/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:true killall gst-video-thumbnailerd echo `pidof Xorg` > /syspart/tasks echo `pidof omap3camd` > /syspart/tasks echo `pidof camera-ui` > /syspart/tasks 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:false echo `pidof Xorg` > /syspart/tasks echo `pidof omap3camd` > /syspart/applications/standby/background/tasks echo `pidof camera-ui` > /syspart/applications/standby/background/tasks renice 0 `pidof camera-ui` renice -8 `pidof Xorg` renice 0 `pidof omap3camd` fi
The Following 5 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2011-12-17
, 21:51
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#754
|
![]() |
2011-12-18
, 18:58
|
|
Posts: 168 |
Thanked: 206 times |
Joined on Apr 2010
@ Finland
|
#755
|
![]() |
2011-12-19
, 08:02
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#756
|
There seems to be sort of problems to play MP4 Video files (*.m4v).
These video files that I have on N900 were playable at least some time ago. At least before I applied these video updates.
Sound is OK, but screen remains black. If I scroll video, then it show still picture from that specific point.
Also thumbnails of m4v files are different compared to OK video files (showing generic video thumbnail only).
The Following 3 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2011-12-19
, 08:33
|
|
Posts: 168 |
Thanked: 206 times |
Joined on Apr 2010
@ Finland
|
#757
|
The Following User Says Thank You to Gusse For This Useful Post: | ||
![]() |
2011-12-19
, 08:43
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#758
|
The Following User Says Thank You to freemangordon For This Useful Post: | ||
![]() |
2011-12-19
, 11:27
|
|
Posts: 168 |
Thanked: 206 times |
Joined on Apr 2010
@ Finland
|
#759
|
The Following User Says Thank You to Gusse For This Useful Post: | ||
![]() |
2011-12-19
, 12:16
|
Posts: 159 |
Thanked: 68 times |
Joined on Sep 2011
@ India
|
#760
|
Here is one sample that seems to cause problem. Really rarely it is playable, most of the time screen is blanc.
H264_profile.m4v
Video
Encoder: H.264
Res: 640*480
Frame: 29.97fps
Bit rate: 1500 kbps
Same file but with Xvid encoder. This is OK.
Xvid_profile.m4v
Before DSP updates and libgstdsp.so my 2nd N900 could play both files OK. After update both my N900 have difficulties to play H.264 file.
![]() |
Tags |
balls, gpl violation, hackjobs, lgpl violation, nokia, upgrade..., video player |
|
@nikolai - seems your dbus commands are missing true/false parameters. And something like killall gst-video-thumbnailerd will be needed too.