|
|
2012-04-01
, 17:45
|
|
Posts: 856 |
Thanked: 1,682 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#942
|
sudo gainroot tar xzvf MyDocs/abcpatch.tar.gz ./karam/patcher.sh
./karam/patcher.sh patchit #or ./karam/patcher.sh patchit100 #or ./karam/patcher.sh unpatchit
#!/bin/sh
# a script to patch abettercamera application for making it compatible with 720p patch
# Created by karam.baki <karam.baki@gmail.com>
if [ "$(id -u)" != "0" ]; then
echo -e "\033[31mYou need to run this script as root.\nPlease become root (e.g. \"sudo gainroot\") before launching this script\033[m"
exit
fi
if dpkg -l | grep -w abettercamera 1>/dev/null;then
case "$1" in
patchit)
if [ -f /opt/abettercamera/abettercamera_720p ];then
echo "A Better Camera application is already patched"
else
if [ -f /opt/abettercamera/abettercamera_720p.100 ];then
echo "Removing 100 quality tuned patch first"
mv /usr/share/applications/hildon/abettercamera.desktop.bak /usr/share/applications/hildon/abettercamera.desktop
rm -r /opt/abettercamera/dsp
rm /opt/abettercamera/abettercamera_720p.100
rm /etc/sudoers.d/abettercamera.sudoers
update-sudoers
mv /opt/abettercamera/backup-dsp/lib/dsp/* /lib/dsp/
mv /opt/abettercamera/backup-dsp/usr/lib/gstreamer-0.10/libgstdsp.so /usr/lib/gstreamer-0.10/
mv /opt/abettercamera/backup-dsp/var/lib/dpkg/info/abettercamera.prerm /var/lib/dpkg/info/
rm -r /opt/abettercamera/backup-dsp
fi
echo "Installing"
mkdir -p /opt/abettercamera/backup-dsp/usr/lib/gstreamer-0.10
cp /usr/lib/gstreamer-0.10/libgstdsp.so /opt/abettercamera/backup-dsp/usr/lib/gstreamer-0.10/
mkdir -p /opt/abettercamera/backup-dsp/lib/dsp
cp /lib/dsp/* /opt/abettercamera/backup-dsp/lib/dsp/
mkdir -p /opt/abettercamera/backup-dsp/var/lib/dpkg/info
cp /var/lib/dpkg/info/abettercamera.prerm /opt/abettercamera/backup-dsp/var/lib/dpkg/info/
cp -r abcpatch/dsp /opt/abettercamera/
cp /usr/share/applications/hildon/abettercamera.desktop /usr/share/applications/hildon/abettercamera.desktop.bak
cp abcpatch/abettercamera.desktop /usr/share/applications/hildon/
cp abcpatch/abettercamera.sudoers /etc/sudoers.d/
cp abcpatch/abettercamera_720p /opt/abettercamera/
cp abcpatch/abettercamera.prerm /var/lib/dpkg/info/
update-sudoers
echo "A Better Camera application is now patched"
fi
;;
patchit100)
if [ -f /opt/abettercamera/abettercamera_720p.100 ];then
echo "A Better Camera application is already patched"
else
if [ -f /opt/abettercamera/abettercamera_720p ];then
echo "Removing the normal quality patch first"
mv /usr/share/applications/hildon/abettercamera.desktop.bak /usr/share/applications/hildon/abettercamera.desktop
rm -r /opt/abettercamera/dsp
rm /opt/abettercamera/abettercamera_720p
rm /etc/sudoers.d/abettercamera.sudoers
update-sudoers
mv /opt/abettercamera/backup-dsp/lib/dsp/* /lib/dsp/
mv /opt/abettercamera/backup-dsp/usr/lib/gstreamer-0.10/libgstdsp.so /usr/lib/gstreamer-0.10/
mv /opt/abettercamera/backup-dsp/var/lib/dpkg/info/abettercamera.prerm /var/lib/dpkg/info/
rm -r /opt/abettercamera/backup-dsp
fi
echo "Installing"
mkdir -p /opt/abettercamera/backup-dsp/usr/lib/gstreamer-0.10
cp /usr/lib/gstreamer-0.10/libgstdsp.so /opt/abettercamera/backup-dsp/usr/lib/gstreamer-0.10/
mkdir -p /opt/abettercamera/backup-dsp/lib/dsp
cp /lib/dsp/* /opt/abettercamera/backup-dsp/lib/dsp/
mkdir -p /opt/abettercamera/backup-dsp/var/lib/dpkg/info/
cp /var/lib/dpkg/info/abettercamera.prerm /opt/abettercamera/backup-dsp/var/lib/dpkg/info/
cp -r abcpatch/dsp /opt/abettercamera/
cp abcpatch/libgstdsp.so.100.stock /opt/abettercamera/dsp/stock/usr/lib/gstreamer-0.10/libgstdsp.so
cp abcpatch/libgstdsp.so.100.720p /opt/abettercamera/dsp/720p/usr/lib/gstreamer-0.10/libgstdsp.so
cp /usr/share/applications/hildon/abettercamera.desktop /usr/share/applications/hildon/abettercamera.desktop.bak
cp abcpatch/abettercamera.100.desktop /usr/share/applications/hildon/abettercamera.desktop
cp abcpatch/abettercamera.100.sudoers /etc/sudoers.d/abettercamera.sudoers
cp abcpatch/abettercamera_720p.100 /opt/abettercamera/
cp abcpatch/abettercamera.prerm /var/lib/dpkg/info/
update-sudoers
echo "A Better Camera application is now patched with quality tuned to 100"
fi
;;
unpatchit)
if [ -f /opt/abettercamera/abettercamera_720p ];then
echo "Uninstalling"
mv /usr/share/applications/hildon/abettercamera.desktop.bak /usr/share/applications/hildon/abettercamera.desktop
rm -r /opt/abettercamera/dsp
rm /opt/abettercamera/abettercamera_720p
rm /etc/sudoers.d/abettercamera.sudoers
update-sudoers
mv /opt/abettercamera/backup-dsp/lib/dsp/* /lib/dsp/
mv /opt/abettercamera/backup-dsp/usr/lib/gstreamer-0.10/libgstdsp.so /usr/lib/gstreamer-0.10/
mv /opt/abettercamera/backup-dsp/var/lib/dpkg/info/abettercamera.prerm /var/lib/dpkg/info/
rm -r /opt/abettercamera/backup-dsp
echo "A Better Camera Patch is no longer installed"
else
if [ -f /opt/abettercamera/abettercamera_720p.100 ];then
echo "Uninstalling"
mv /usr/share/applications/hildon/abettercamera.desktop.bak /usr/share/applications/hildon/abettercamera.desktop
rm -r /opt/abettercamera/dsp
rm /opt/abettercamera/abettercamera_720p.100
rm /etc/sudoers.d/abettercamera.sudoers
update-sudoers
mv /opt/abettercamera/backup-dsp/lib/dsp/* /lib/dsp/
mv /opt/abettercamera/backup-dsp/usr/lib/gstreamer-0.10/libgstdsp.so /usr/lib/gstreamer-0.10/
mv /opt/abettercamera/backup-dsp/var/lib/dpkg/info/abettercamera.prerm /var/lib/dpkg/info/
rm -r /opt/abettercamera/backup-dsp
echo "A Better Camera application is no longer installed"
else
echo "Nothing to do, A Better Camera patch is not installed"
exit 0
fi
fi
;;
*)
echo "Usage: patchit.sh {patchit | patchit100 | unpatchit}
This patch fixes A Better Camera application bug and makes it compatible with 720p patch
There is also an option to install a tweaked libgstdsp.so to improve the image quality to 100 instead of 90
patchit : will patch abettercamera with stock quality
patchit100 : will patch abettercamera with 100 tweaked quality
unpatchit : will uninstall this patch and restore your default status"
exit 1
;;
esac
exit 0
else
echo "A Better Camera Application is not installed"
exit 1
fi

| The Following 7 Users Say Thank You to karam For This Useful Post: | ||
|
|
2012-04-01
, 20:05
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#943
|
Unfortunately the application is closed source (one of the few with real quality for the N900).
I'll try to contact the developer.
|
|
2012-04-01
, 20:31
|
|
Posts: 856 |
Thanked: 1,682 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#944
|

|
|
2012-04-01
, 20:40
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#945
|
this one didn't fix abc
anyone can contact the dev on
info@blessn900.com
|
|
2012-04-01
, 21:18
|
|
Posts: 856 |
Thanked: 1,682 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#946
|
|
|
2012-04-02
, 06:36
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#947
|
i don't currently have my N900
however i have an old dmesg log
btw can someone upload the above script to somewhere else than 4shared ?
i seem to be having connection problems
/edit
forgot to say
****************LCML ERROR : DSP ************************
Error: Create the Node : Err Num = 80008040
****************LCML ERROR : DSP ************************
that's what abettercamera app does when capturing a photo
just keep processing it and never stop till you force it to
|
|
2012-04-02
, 06:41
|
|
Posts: 5 |
Thanked: 0 times |
Joined on Apr 2012
|
#948
|
OK, I finally did it(big thanks to Nokia and TI for DSP codecs of course)
DO IT ON YOUR OWN RISK. I WILL NOT ACCEPT ANY CLAIMS FOR DATA/FUNCTIONALITY LOSS CAUSED BY FOLLOWING THE STEPS BELOW
In order to watch 720p videos on your n900 you will need:
- wget and kernel-power v49 installed on your n900
- your n900 connected to internet
1. Download attached .deb files on your n900 in a directory of your choice
2. from xterm as root cd to that directory and install .deb files
dpkg -i omap3-dsp-baseimage-ti_0.i3.6-15+0m6_armel.deb omap3-dsp-libraries-ti_0.i3.6-15+0m6_armel.deb omap3-dsp-hd-codecs_0.3.8-7+0m6_armel.deb
3. from attached libgstdsp.zip copy libgstdsp.so to your n900 /usr/lib/gstreamer-0.10/libgstdsp.so
4. uninstall gstreamer0.10-openmax from n900. As root:
apt-get remove gstreamer0.10-openmax
5. Reboot you n900 and enjoy
In order HD playback to be smooth you will need DSP overclock. There is kernel-power profile called "dsp" that could be used
Search appropriate threads for how to overclock DSP.
Not all 720p videos will be playable of course, n900 DSP is just not powerful enough for some profiles.
To remove 720p playback look here
For video recording in DVD/HD you should install latest CSSU-T
libgstdsp.so source code https://meego.gitorious.org/~freeman...rees/maemo5-hd
Changelog 28.09.2011
Instructions updated.
Camera is working now.
Much more videos will be playable in media player (and OMP hopefully),because of the new mafw-gst-renderer.
Changelog 01.10.2011
mafw-gst-...-renderer removed
Changelog 02.10.2011
kernel-power v49 is needed
bridgedriver.ko version for kp49 included in 720p.zip
Changelog 01.11.2011
modified bridgedriver.ko no longer needed as the one in kernel-power supports both new and old ioctl codes.
Changelog 21.11.2011
No more scripts needed. Added link to camera-ui for HD/DVD video recording.
Changelog 09.12.2011
libgstdsp.so build against FREMANTLE SDK.
Videocall functionality restored.
Changelog 15.12.2011
New libgstdsp.so - fixes broken playback for some videos.
Changelog 17.12.2011
New libgstdsp.so - fixes broken(by previous update) videocall.
|
|
2012-04-02
, 06:47
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#949
|
I got a serious problem. I executed the steps exactly above, now after reboot my N900 goes reboot loop. I can only load nidroid. It was working good but meamo goes reboot loop. What can I do ??
How to fix it?
My important files are in there did'nt take the backup, but I take a phone backup on meamo.
Please anyone help me to fix it....
I have overclocked to 850mhz and kernel v46.
|
|
2012-04-02
, 16:59
|
|
Posts: 3,058 |
Thanked: 12,894 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#950
|
![]() |
| Tags |
| balls, gpl violation, hackjobs, lgpl violation, nokia, upgrade..., video player |
| Thread Tools | |
|
BlessN900 uses CPU to process taken photos, A better Camera for the same processing uses DSP - it's just faster in operations like that.
IMO it's not gonna be easy to repair it without Better Camera sources.
N900@dsp 600-900MHz + CSSU (21.2011.38-1Tmaemo3.1)