Reply
Thread Tools
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#121
Will this script be available at the repos?
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 
Posts: 11 | Thanked: 8 times | Joined on Mar 2010 @ Sabah, Malaysia
#122
This script is very much a proof-of-concept and probably not going to appear in the repos or a .deb until I figure out how to create a proper gui for it.

Zimon's suggestion is a good one. At the moment, I haven't found any specific API that can add EXIF information to the raw images. Need to increase my programming kung-fu first.

Gah! After this post, I will still need to post one more time before I have access to Private Messages. I wanted to move support requests off this thread to prevent clutter

@saud khan
Before continuing, note that the raw images taken are in the PNG format, not JPEG or RAW. JPEG is smaller but has more compression artifacts, and AFAIK the gstreamer API is not sufficiently low-level to be able to get RAWs from the camera (somebody can correct me on this technical point if I'm mistaken)

Anyway, try running the following in X Terminal..
Code:
cd /home/user/bracketing/
./snap-images.sh /home/user/MyDocs/hdr/ 1000
  • What is the exact output on the console once you run this script?
  • Check the hdr folder, is there any file in there with the name raw-<some numbers>? This is actually a PNG image. When running ./bracket-auto.sh, there should be 3 such files generated in the /hdr/<date and time>/ folder.

Presently taking 3 images seem to be the "standard" of sorts and sufficient to create most HDR images, so I won't be increasing the amount of images captures. OTOH with some knowledge of ASH scripting (which is really similar to BASH scripting on desktop Linux), it is a trivial modification to take more than 3 pictures of varying EV by modifying the original scripts.
 
Posts: 100 | Thanked: 18 times | Joined on Jan 2010 @ Bristol, UK
#123
thanks for helping me eol! I tried what you asked me to but still i cant find the .png file in the hdr folder. inside the hdr folder i find another folder named after the date and time but its empty. the following is the exact output i get on the console:

/bracketing $ ./bracket-manual.sh
sleeping for 5 seconds..
presets: 2462 17897 33333
acquiring: 2462
snapping image at 2462, requested: 2462
WARNING: erroneous pipeline: no element "pngenc"
saved to /home/user/MyDocs/hdr/20100417121852/raw-02462.png
acquiring: 17897
snapping image at 17917, requested: 17897
WARNING: erroneous pipeline: no element "pngenc"
saved to /home/user/MyDocs/hdr/20100417121852/raw-17917.png
acquiring: 33333
snapping image at 33333, requested: 33333
WARNING: erroneous pipeline: no element "pngenc"
saved to /home/user/MyDocs/hdr/20100417121852/raw-33333.png
images stored in /home/user/MyDocs/hdr/20100417121852/
DONE! Yay!

I looked into 20100417121852 folder but its empty
 
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#124
Originally Posted by cjp View Post
To me some of these HDR pics in this thread don't really impress me, as it just looks like the image has been photoshopped!

Sure the lighting and everything is much more interesting than in the "plain" mode, but somehow that looks really artificial and perhaps a little "overdone". Any way to tone this effect down?

Take a look at my standard picture with my N900 without HDR app or photoshop.

This is natural lighting
Attached Images
  
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#125
the manual version of scrpts wants to use program 'playsound' when it is finished. Where to find it from?
 
Posts: 11 | Thanked: 8 times | Joined on Mar 2010 @ Sabah, Malaysia
#126
Its been a gloomly rainy day today in my place (my favourite kind of day ). Took a test shot in these conditions in the evening (sun was already setting). I've attached a comparative sample of the shot as it would look with the standard camera, and the enfuse'd version.

It's a bit dull as you can see, but the higher range of exposure values does allow the details at the bottom to balance out with the sky. A little white balance tweaking on the HDR image with GIMP would make this picture far better.

I should be able to receive and send private messages after this post (its my fifth!) so we can continue this discussion over private messages instead of cluttering up this thread needlessly

@saud khan
It appears that pngenc isn't a default library provided on the N900. I must have somehow gotten it installed through another package. I'm not quite sure which package it is, but you can try going to your app manager and install Extra Decoders Support (its in Multimedia) and try the script again.

FYI: The Extra Decoders Support package installs a whole lot of gstreamer plugins - hopefully, one of them is pngenc.

@zimon
I was under the impression that playsound was another library that came with the N900, or maybe it was play-sound Open terminal, go into the bracketing script directory, and run the following commands:
Code:
play-sound completed.wav
playsound completed.wav
If play-sound works, you can edit bracket-manual.sh and modify line 126 (the second last line) and replace "playsound --loop 2 ./completed.wav" with "play-sound ./completed.wav". Otherwise, you can simply ignore any errors as long as the pictures are captured - playsound is really there for your convenience only - its not a critical issue if the system can't find it.
Attached Images
 

Last edited by eol; 2010-04-17 at 13:46. Reason: Did not put a dash in play-sound
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#127
FYI, There is play-sound, thanks.
The sound is a good feature, because terminal window is minimized and do not want to touch and move the phone until all images are captured.
 

The Following User Says Thank You to zimon For This Useful Post:
Posts: 11 | Thanked: 8 times | Joined on Mar 2010 @ Sabah, Malaysia
#128
Originally Posted by zimon View Post
FYI, There is play-sound, thanks.
The sound is a good feature, because terminal window is minimized and do not want to touch and move the phone until all images are captured.
Thanks! I've updated my original post with the newly-modified script.
 
BluesLee's Avatar
Posts: 411 | Thanked: 1,105 times | Joined on Jan 2010 @ Europe
#129
@eol: i have installed "Extra Decoders Support" but i get also the
error message about missing pngenc. can you check which
package provides pngenc?
 
Posts: 11 | Thanked: 8 times | Joined on Mar 2010 @ Sabah, Malaysia
#130
Originally Posted by BluesLee View Post
@eol: i have installed "Extra Decoders Support" but i get also the
error message about missing pngenc. can you check which
package provides pngenc?
I can only suggest some possibilities at the moment...
  • Try apt-get install gstreamer-tools (You need to be root to do this).
  • You can try and install the Mirror application from Multimedia. I notice that the Mirror relies on a package called "gstreamer...-plugins-good-extra"
 

The Following User Says Thank You to eol For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 01:37.