mavak / linux-track

Automatically exported from code.google.com/p/linux-track
MIT License
0 stars 0 forks source link

Mac camera won't turn on #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am unable to use iSight integrated camera on my Macbook OSX Mavericks, 
because the camera never comes on. I've attached the log file to help clarify 
what is going on.

Jose Almeida

Original issue reported on code.google.com by jose...@gmail.com on 20 Jan 2014 at 2:35

Attachments:

GoogleCodeExporter commented 9 years ago
Hello Jose,
unfortunately the log doesn't reveal anything interesting...
Can you try to switch the resolution to 640x480, just in case it doesn't like 
the low one?

Also may I ask you for a confirmation that the iSight camera works in other 
applications like Photobooth or iChat?

I'll try to put together the AV framework version, that should be 10.7+ 
compatible and might work around the problem...
Kind regards,

Michal

Original comment by f.jo...@email.cz on 20 Jan 2014 at 8:30

GoogleCodeExporter commented 9 years ago
Hello Jose,
could you try running the ltr_gui in terminal?

Just open the terminal (Applications/Utilities) and run this:

/Applications/Linuxtrack/ltr_gui.app/Contents/MacOS/ltr_gui

The ltr_gui should start normally and when you try starting the tracking, it 
should print some debugging info into the terminal...
Please paste it here too.
Kind regards,

Michal

Original comment by f.jo...@email.cz on 20 Jan 2014 at 9:32

GoogleCodeExporter commented 9 years ago
Running from the terminal doesn't make any difference; this is what I got in 
the terminal:

Last login: Mon Jan 20 21:52:06 on ttys008
jose-b-almeida:~ josebalmeida$ 
/Applications/Linuxtrack/ltr_gui.app/Contents/MacOS/ltr_gui
Going to create lock '/Users/josebalmeida/.config/linuxtrack/ltr_server.lock' 
=> 17!
Lock 17 success!
Passing the lock to protect fifo (pid 3990)!
Changed index to Default
Profile Default found, setting it!!!
Object read!
Found device 0

Original comment by jose...@gmail.com on 20 Jan 2014 at 9:55

GoogleCodeExporter commented 9 years ago
I forgot to confirm that the iSight camera works correctly with every 
application that I've tried it with: iMovie, PhotoBooth, Skype...

Jose

Original comment by jose...@gmail.com on 20 Jan 2014 at 10:14

GoogleCodeExporter commented 9 years ago
Hello Jose,
thank you for the confirmation...

Can you try running these commands in terminal and paste the output here:
/Applications/Linuxtrack/ltr_gui.app/Contents/MacOS/../helper/qt_cam -e

/Applications/Linuxtrack/ltr_gui.app/Contents/MacOS/../helper/qt_cam -c 
"C×mara HD FaceTime (integrada)" -x 640 -y 480 -f /tmp/xxx -d 
/Applications/Linuxtrack/ltr_gui.app/Contents/Resources/linuxtrack/haarcascades/
haarcascade_frontalface_alt2.xml

There seems to be some funny character in the camera name - I wander if that 
might be the problem...
Kind regards,

Michal

Original comment by f.jo...@email.cz on 21 Jan 2014 at 4:03

GoogleCodeExporter commented 9 years ago
Hello Michal,

The funny character in the camera is there because this is a Portuguese OS. 
Here is the result of running those apps in the terminal.

Last login: Tue Jan 21 11:56:53 on ttys000
jose-b-almeida:~ josebalmeida$ 
/Applications/Linuxtrack/ltr_gui.app/Contents/MacOS/../helper/qt_cam -e
Enumerating qt_cam!
C?mara HD FaceTime (integrada)
jose-b-almeida:~ josebalmeida$ 
/Applications/Linuxtrack/ltr_gui.app/Contents/MacOS/../helper/qt_cam -c 
"C×mara HD FaceTime (integrada)" -x 640 -y 480 -f /tmp/xxx -d 
/Applications/Linuxtrack/ltr_gui.app/Contents/MacOS/../helper/qt_cam: option 
requires an argument -- d
Capturing from 'C×mara HD FaceTime (integrada)' @ 640x480 using '/tmp/xxx'!
Couldn't find webcam '(null)'
Can't open device for capture!
Closing semaphore 3 (pid 5107)!
jose-b-almeida:~ josebalmeida$ 
/Applications/Linuxtrack/ltr_gui.app/Contents/Resources/linuxtrack/haarcascades/
haarcascade_frontalface_alt2.xml
-bash: 
/Applications/Linuxtrack/ltr_gui.app/Contents/Resources/linuxtrack/haarcascades/
haarcascade_frontalface_alt2.xml: Permission denied
jose-b-almeida:~ josebalmeida$ 

Jose

Original comment by jose...@gmail.com on 21 Jan 2014 at 12:02

GoogleCodeExporter commented 9 years ago
Hello Jose,
I guess that funny character is the problem...

Would it be possible to create another account, select english as its language 
and try there (you can remove that account later)? In the meantime I'll try to 
come up with a way to transfer the character correctly...
Kind regards,

Michal

Original comment by f.jo...@email.cz on 21 Jan 2014 at 12:32

GoogleCodeExporter commented 9 years ago
Hello Michal,

I don't think that can be done. I could switch to English OS but then other 
programs might stop working and I can't antecipate all the consequences of 
changing OS language back and forth; for the moment I don't think there's 
anything else I can do.

Jose

Original comment by jose...@gmail.com on 21 Jan 2014 at 12:38

GoogleCodeExporter commented 9 years ago
Hello Jose,
I absolutely understand your concern; however the language can be changed per 
user (just create another user and change its language - your current account 
would still work as it was). But of course, if you don't want to do that, then 
don't and I understand that...

I'll chime in as soon as I have something ready for you...
Kind regards,

Michal

Original comment by f.jo...@email.cz on 21 Jan 2014 at 12:46

GoogleCodeExporter commented 9 years ago
Hello Jose,
here is the new qt_cam, that will hopefully work for you - it uses UTF8 for 
string encoding, so the camera name should not get mangled.

Install it the following way: find ltr_gui Ctrl+click on it in finder and 
select Show package contents; then go to Contents/helper and find the file 
qt_cam there. Rename it and copy there the qt_cam file I attached (unzipped of 
course). 
Now try to run the ltr_gui and see if the webcam works...

Please let me know if it works, as I'd incorporate the fix into the new 
release, that should come around this weekend...
Kind regards,

Michal

Original comment by f.jo...@email.cz on 22 Jan 2014 at 6:22

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Michal,

That didn't do it because the the camera name changed but it still has strange 
characters; the final result is the same as before.

Jose

Original comment by jose...@gmail.com on 22 Jan 2014 at 9:25

GoogleCodeExporter commented 9 years ago
Hi Michal,

I decided to try and change the language and that sure solved the problem of 
turning the camera on; there may be setting up issues, because it finds only 
one camera which does not work correctly with face model, but that's a 
different matter altogether. However I must return to Portuguese; I can't have 
this language change permanent.

José

Original comment by jose...@gmail.com on 22 Jan 2014 at 6:57

GoogleCodeExporter commented 9 years ago
Hello Jose,
thank you for trying that, it confirms my suspicion... I'll give it another 
shot tomorrow and lets hope it will solve your problem.
Kind regards,

Michal

Original comment by f.jo...@email.cz on 22 Jan 2014 at 7:55

GoogleCodeExporter commented 9 years ago
Hello Jose,
here is the other attampt - please install it exactly the same way as the 
previous one and let me know if it worked or not...
Thank you for your patience,

Michal

PS. I tried to create an account in portugese on my machine, but unfortunately 
none of my webcams have localized device name, so I really appreciate your help 
tackling this issue.

Original comment by f.jo...@email.cz on 23 Jan 2014 at 6:07

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry Michal, it doesn't work. Shall I try to find the ASCII code for that 
character? It should be an â (a with circumflex).

José

Original comment by jose...@gmail.com on 23 Jan 2014 at 9:22

GoogleCodeExporter commented 9 years ago
Hello Jose,
it is OK, we'll find another solution...
Tomorrow I'll provide you with another version, that will create detailed log 
of what it finds and what it looks for along with hexdumps of the strings, so 
it should provide enough info for me to be sure of what is going on in there...

Funny thing is, that the last attempt converts everything into UTF8 and checks 
that, so there should be no difference. Anyway tomorrow hopefully we'll know 
more...

Thank you for your patience,

Michal

Original comment by f.jo...@email.cz on 23 Jan 2014 at 9:52

GoogleCodeExporter commented 9 years ago
Hello Jose,
here is the new version - can you please install it and try starting the 
camera? It will generate a file called webcam_listing.txt - I'd like to ask you 
to attach it here, so I can see what exactly is going on in there...

Also, I'd like to ask you to attach the config file too - it can be copied to 
your home by the command:

cp ~/.config/linuxtrack/linuxtrack1.log ~

Thank you,

Michal

Original comment by f.jo...@email.cz on 24 Jan 2014 at 6:51

Attachments:

GoogleCodeExporter commented 9 years ago
Hello Michal

Hera are both files; you willnotice there was a mistake in the file name, which 
is "linuxtrack1.conf" and not "linuxtrack1.log"

Ragards
José

Original comment by jose...@gmail.com on 24 Jan 2014 at 11:27

Attachments:

GoogleCodeExporter commented 9 years ago
Hello Jose,
just to let you know  - I managed to find the problem...
During the weekend I worked on making sure that UTF8 is used throughout the 
ltr_gui and during the next couple of days a new version will be ready for 
download, and it should work for you... I'll keep you posted.

Kind regards,

Michal

Original comment by f.jo...@email.cz on 27 Jan 2014 at 5:52

GoogleCodeExporter commented 9 years ago
Hello Jose,
the new version is up; unforunately google code doesn't allow creation of new 
downloads, so please grab it here:

http://linuxtrack.eu/repositories/mac/linuxtrack-0.99.9.dmg

Please let me know if it works, so I can fully release it.
Kind regards,

Michal

Original comment by f.jo...@email.cz on 29 Jan 2014 at 7:01

GoogleCodeExporter commented 9 years ago
Hi Michal,

The new version works great, thank you; you can close this issue now.
I have another issue regarding the x-plane plugin but I'll open an issue for 
that.

Kind regards,
José

Original comment by jose...@gmail.com on 29 Jan 2014 at 9:25

GoogleCodeExporter commented 9 years ago
Hello Jose,
thank you for the feedback - I'll close this issue then (solved in 0.99.9).
Thank you for your help hunting down the problem!

Kind regards,

Michal

Original comment by f.jo...@email.cz on 29 Jan 2014 at 11:09