maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900- Front camera activation command... (https://talk.maemo.org/showthread.php?t=42370)

cabgrab 2010-01-27 07:56

N900- Front camera activation command...
 
Hi!

I need a command that activates the front camera from command line.(without installing any apps(like mplayer)) If I not mistaken there was the "cameratest" command on N810/800. I need some similar thing... Could anybody help me? (Really sorry for my bad english)

CG

twaelti 2010-01-27 08:10

Re: N900- Front camera activation command...
 
There are "Power Search" and "Search" menu items to be found on the right side in the menu :-)

Here you go, "Front facing camera". No need to install anything, as the mentioned gst-launch is now installed by default (IIRC), just try from X-Term:
gst-launch v4l2src device=/dev/video1 ! autovideosink

cabgrab 2010-01-27 08:21

Re: N900- Front camera activation command...
 
Hi, thx for quick answer but it says: gst-launch: not found.
What can I do?
Sorry, i haven't got any experiences in linux...

cabgrab 2010-01-28 08:57

Re: N900- Front camera activation command...
 
Hi, could anybody help me in this issue?

twaelti 2010-01-28 09:13

Re: N900- Front camera activation command...
 
From the Application Manager, install the "rootsh" package.
Then open X-Term, type "sudo gainroot"
Now type "apt-get install gstreamer-tools"

CrckMc 2010-01-28 09:13

Re: N900- Front camera activation command...
 
i tried starting gst-launch and it works even as non root

hstende 2010-01-28 09:23

Re: N900- Front camera activation command...
 
I tried this and it worked, but in portraitmode the picture was upsidedown.

I have read many complaining about the quality of this camere, but the picture was clear and more than good enough for videocalls.

cabgrab 2010-01-28 09:24

Re: N900- Front camera activation command...
 
"CrckMc" Wich firmware is in use on your device? I tried with 2.2009.51.1

peterjb31 2010-01-28 10:37

Re: N900- Front camera activation command...
 
Hi, you need to install gstreamer first. There is a package called gstreamer0.10-gnomlin which you should be able to install from the app manager which will fix this.

Peter

cabgrab 2010-02-15 08:48

Re: N900- Front camera activation command...
 
THX...Is there any other way to activation? Without installing any packages or programs? :-(

shadowjk 2010-02-15 10:22

Re: N900- Front camera activation command...
 
None of the programs included by default as of PR1.1 support the front camera.

yogi900 2010-02-15 13:09

Re: N900- Front camera activation command...
 
Worked for me...Front camera quality appeared better than using "Mirror" application..

HoellP 2010-02-16 10:16

Re: N900- Front camera activation command...
 
shadowjk, you really should check for facts before posting.
Front camera works with Jabber/GTalk videochat, with the only exception that you can't initiate from the n900.

attila77 2010-02-16 11:11

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by yogi900 (Post 527304)
Worked for me...Front camera quality appeared better than using "Mirror" application..

For the record, Mirror is just a GTK front-end for gstreamer, nothing more, nothing less. The only difference is that by default it specifies a slight gamma boost and fullscreen-crops the image.

m double u 2010-03-04 10:47

Re: N900- Front camera activation command...
 
Hi, the command works, nice.
Is it possible to make a shortcut to activate the frontcamera?

noobmonkey 2010-03-04 10:54

Re: N900- Front camera activation command...
 
Added Font-Camera test picture into Healthcheck (Link in my signature) - now in extras testing...

I think in future versions i need to brighten it up - but just checks it and saves a test file :)

(Healthcheck installs g-streamer if you do not already have it)

m double u 2010-03-04 11:09

Re: N900- Front camera activation command...
 
I don't have the testing repo added to my app manager,
and that's not exactly what i'm looking for.
It was an idea to add an extra cam to my phonenext to the other shortcuts.
I'm carefull with the testing cause i'm new to linux and maemo

noobmonkey 2010-03-04 16:25

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by m double u (Post 555308)
I don't have the testing repo added to my app manager,
and that's not exactly what i'm looking for.
It was an idea to add an extra cam to my phonenext to the other shortcuts.
I'm carefull with the testing cause i'm new to linux and maemo

Sensible too :D

Maybe a request for a new app?

maymakulit 2010-04-03 21:50

Re: N900- Front camera activation command...
 
i downloaded the command but how can ill be sure its working or not,from where i can find the command.pls help me.

noobmonkey 2010-04-04 07:41

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by maymakulit (Post 594237)
i downloaded the command but how can ill be sure its working or not,from where i can find the command.pls help me.

Sorry may, trying not to be picky but your sentence soes not make any sense?


Quote:

i downloaded the command

from where i can find the command.
Well if you downloaded it, then why do you still need it?

The command is in this thread, and you run it from x-terminal.

Is there anything specific you are trying to do? - test the camera? video? quality? etc etc?

maymakulit 2010-04-05 04:41

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by noobmonkey (Post 594622)
Sorry may, trying not to be picky but your sentence soes not make any sense?



Well if you downloaded it, then why do you still need it?

The command is in this thread, and you run it from x-terminal.

Is there anything specific you are trying to do? - test the camera? video? quality? etc etc?

im sorry sir noobmonkey for not clarifying my notes,i install the application,gstreamer is updated then after that this word will come out "/home/user #" i mean what i will do next or what i will type next,theres no option for saving.tnx a lot.

noobmonkey 2010-04-05 07:56

Re: N900- Front camera activation command...
 
lol.......sir!

x-terminal is like a dos prompt in windows. you cant save things like a word editor. but you can create scripts to make repeating the task easier.

in x-terminal you litterally type the command in and hit enter. it then runs the command you type in, or throws up an error.

zaedej 2010-04-08 05:18

Re: N900- Front camera activation command...
 
I have the latest firmware and I tried couple of step all of you mentioned in this thread for activating the front camera but nothing worked. I used xtermina and also pusht but everything failed.

Please help me out to activate the cam.

Thanks

noobmonkey 2010-04-10 13:20

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by zaedej (Post 600547)
I have the latest firmware and I tried couple of step all of you mentioned in this thread for activating the front camera but nothing worked. I used xtermina and also pusht but everything failed.

Please help me out to activate the cam.

Thanks

Please can you post the outcome of what you tried in x-terminal?

When you try running a command, if it does not work it will post an error message. hard to help without any details :(

Intrygue83 2010-04-12 00:10

Re: N900- Front camera activation command...
 
well im a newbie and everything in the first page helped me. first you have to get the tools:

open xterminal

type:
apt-get install gstreamer-tools

after that type:

gst-launch v4l2src device=/dev/video1 ! autovideosink

it will pause for a min then it will come on.

hopefully soon we can get a real webcam app that can initiate the front cam instead of all these damn work arounds. lol would be nice to have one with cam settings like resolution and brightness.

hope i helped. this is what worked for me

zaedej 2010-04-12 01:59

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by noobmonkey (Post 604133)
Please can you post the outcome of what you tried in x-terminal?

When you try running a command, if it does not work it will post an error message. hard to help without any details :(

I typed

gst-launch v4l2src device=/dev/video1 ! autovideosink

then it shows gst-launch: not found

I don't have rootch installed and i have version 3.2010.02-8.002. I believe that's PR 1.2, right?

What am i doing wrong here?

noobmonkey 2010-04-12 06:39

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by zaedej (Post 606213)
I typed

gst-launch v4l2src device=/dev/video1 ! autovideosink

then it shows gst-launch: not found

I don't have rootch installed and i have version 3.2010.02-8.002. I believe that's PR 1.2, right?

What am i doing wrong here?

Lol!
Ok that is pr 1.1.1 (Healthcheck should tell you that!!)
PR1.2 is not out yet, apart from in the SDK.

if GST-launch is not found then you do not have gstreamer tools installed correctly,

I would suggest that once you are comfortable, install rootsh from extras and follow the above commands.

zaedej 2010-04-21 18:03

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by twaelti (Post 499038)
From the Application Manager, install the "rootsh" package.
Then open X-Term, type "sudo gainroot"
Now type "apt-get install gstreamer-tools"

Ok, i did this then how do i use the cam? is it an application that i downloaded.

zaedej 2010-04-21 18:07

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by noobmonkey (Post 606401)
Lol!
Ok that is pr 1.1.1 (Healthcheck should tell you that!!)
PR1.2 is not out yet, apart from in the SDK.

if GST-launch is not found then you do not have gstreamer tools installed correctly,

I would suggest that once you are comfortable, install rootsh from extras and follow the above commands.


i guess thats what happens when u be on pr1.2 thread lol all the time.my bad dude

noobmonkey 2010-04-22 11:11

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by zaedej (Post 621353)
Ok, i did this then how do i use the cam? is it an application that i downloaded.

You downloaded a command line tool - not a gui application

Now you need to retry this command in x-terminal
Code:

gst-launch v4l2src device=/dev/video1 ! autovideosink
gst-launch is part of the suite that you downloaded, before-hand you got an error saying it did not exist, so after downloading it should now exist :D

zaedej 2010-04-22 17:00

Re: N900- Front camera activation command...
 
Thanks, it worked. So everytime if I want to use the front cam, I need to put that command in X terminal?

noobmonkey 2010-04-22 17:20

Re: N900- Front camera activation command...
 
well i suppose.... healthcheck will take a test picture and mirror works.......
so either use mirror app or do it yourself for now :D

Or create a [request] thread for someone to help you in making an application, if you have a specific request?

Wikiwide 2010-10-09 01:26

Re: N900- Front camera activation command...
 
Quote:

Originally Posted by zaedej (Post 622959)
Thanks, it worked. So everytime if I want to use the front cam, I need to put that command in X terminal?

Or you can make a shortcut for it. I assume you already have rootsh installed.

1. Open X Terminal.
2. sudo gainroot
3. cd /usr/share/applications/hildon
4. cp camera-ui.desktop frontcamera.desktop
5. vi frontcamera.desktop
6. hit 'i' on the keyboard so that vi would go to editing mode
7. use arrows up-down to go between lines, left-right to go left-right on one line
8. change name from "camera_ap_camera" to something like "Front Camera"
9. change comment from "camera_ap_camera_thumb" to something like "front_camera_thumb"
10. change exec from "/usr/bin/camera-ui" to "gst-launch v4l2src device=/dev/video1 ! autovideosink"
11. erase completely line "X-Osso-Service=com.nokia.cameraui"; it is done by tapping "Esc" button of X Terminal and then double-hitting of 'd' on keyboard; then you need to hit 'i' to go to editing mode again;
12. erase completely line "X-Text-Domain=osso-camera-ui"

Now, that you have done it, tap "Esc" button of X Terminal and then hit on the keyboard consequentially 'Shift' '.' 'w'
You will see
:w
being typed

Then hit 'Enter' on the keyboard. The changes to the file are written down. Now you can go to launcher of applications: you will see at the end of the list the camera icon with words "Front Camera". Tap it, and it will launch.

To exit vi, tap 'Esc', write ":q", hit 'Enter'. You will now be able to type commands in X Terminal again. Or you can simply close the whole window of X Terminal, if you want: you have already saved all the changes to the file.

Does it help?

Miscellaneous: if you use device video0 instead of video1, you can see picture of large camera. It will be raw, without autofocus, etc, and ignore shutter state completely.


All times are GMT. The time now is 21:04.

vBulletin® Version 3.8.8