Hi,
After some hard work, I can access front camera by a DirectShow app.
But seems the camera driver of DirectShow do not support front camera.
So I can only get some broken image from front camera.
Have some idea to fix it, but I have not any TyTN II in my hand currently,
does any guy like help to try it?
Allow me to tell it from the beginning.
======Background=============
There are two compoments to make camera able to use in DirectShow.
One is the capture filter, other one is the camera driver.
Camera driver of DirectShow will export two stream devices, one is CAM,
other one is PIN. CAM is used for control the camera hardware, PIN is used for
receive image data stream. The capture filter will use the camera driver to
control camera and receive image data.
But in HTC devices, the camera driver of DirectShow does not access
hardware directly. There are other camera driver, the HTC camera driver.
This driver access the camera hardware directly, and export a set of
private API. The CameraApp (like HTC CamApp and the CoolCamera) use
the private HTC camera API to control camera hardware. The DirectShow
camera driver of HTC device also invokes the private HTC camera API to
access camera.
=======Problems in TyTN II=======
In DirectShow, we can use the MSFT API FindNextDevice to access the
second camera device. But in TyTN II, HTC does not provide
a DirectShow driver for front camera. You can only find one camera device
in DirectShow.
After some hack, like capture the log output of camera driver, de-asm the
camera driver, I got a way to access the front camera by changing registry
item. But because the DirectShow camera driver only support the back camera, the
driver process the image data from front camera by using the image format
of back camera, after all, the image from front camera was broken.
=======How===================
If you want to access the front camera in DirectShow, before you create
capture filter, change the registry item below, it will change to 1 automaticly
by HTC camera driver after the capture filter closed.
Key: HKEY_LOCAL_MACHINE \Software\HTC\Camera\ActiveCameraID
Value: 2
=======More Info===============
The DirectShow camera driver of TyTN II is NULLCAM.dll.
The HTC camera driver of TyTN II is HTCCamera1.dll.
=======ToDo==================
From the log output of HTC camera driver. I find that the front camera senser
is OV7670. It is a 30M pixel camera senser.
Some old HTC device have 30M pixel camera, like Hurricane. Seems it use a
OV7xxx device too. Could I copy it into TyTN II, and install it as the front
camera driver of DirectShow, then I can access it in DirectShow?
Mine has no: HKEY_LOCAL_MACHINE \Software\HTC\Camera\ActiveCameraID
It should be: HKEY_LOCAL_MACHINE \Software\HTC\Camera\Common\ActiveCameraID
Cheers
I believe HTC use a proprietary DLL for accessing the front camera, as the Windows ones can't access it properly
You may create the item:
HKEY_LOCAL_MACHINE \Software\HTC\Camera\ActiveCameraID
The HKEY_LOCAL_MACHINE \Software\HTC\Camera\Common\ActiveCameraID has not effect for switching camera.
FloatingFatMan said:
I believe HTC use a proprietary DLL for accessing the front camera, as the Windows ones can't access it properly
Click to expand...
Click to collapse
Does the Windows ones means the DirectShow camera driver?
DirectShow camera driver is developed by HTC too, but HTC does not provide a front camera driver for DirectShow.
Anyone?
DirectShow use of the camera for me results in extremelly poor quality pictures and video. The images are sized 160x120, terrible quality and the frame rate for video capture and preview seems to be about 1 frame every 10 seconds. Is there anything I can do to improve the quality or do I have to go the route of reverse-engineering HTCCamera1.dll?
Jim
Anyone had any luck
Just wondering if anyone has had any luck here.
Changing the reg setting given in the thread I get access to the camera but the picture is all scrambled.
I would be happy with even a (super) low resolution poor quality image myself.
Maybe someone has a combination of reg settings meant for the front camera that at least give something recognizable from the back one when using DirectShow?
tell me please how i can lunch front camera directly from .lnk?
Secundary camera problem
Hey guys! I have a HTC touch dual and when I make a video call I can only see the other person, mine screen is black. Is there some sort of applicaton that can test components? I could use someting like testing program so a link would be nice
Thanks!
problem with camera
hello guys..i got a prolbem with my camera and i think after i flash with shifu roms..my phone is [email protected] [email protected] icant access my front camera anymore..before i can open and changing the front camera by click at the icon on the screen between storage card icon and the self timer icon..but now the icon seem disappear and leave a blank spot at the changing mode camera..can someone help me?
Related
I have the Kaiser on its way. This is my first device with a front-facing camera. previously had the ATT 8525. Is there any other use for the front-facing camera other than with 3G video calling? Can it be used with messenger or skype or for anything else?
GermanGuy said:
I have the Kaiser on its way. This is my first device with a front-facing camera. previously had the ATT 8525. Is there any other use for the front-facing camera other than with 3G video calling? Can it be used with messenger or skype or for anything else?
Click to expand...
Click to collapse
Well with the TyTn it was possible to use the front camera with the Coolcamera application - for such things as a webcam etc, But, I think I read somwhere here that there is a problem with coolcamera and the Kaiser.
Perhaps someone can confirm (or not) that this is the case.
Mike
I read about that same problem in Pauls review thread on MoDaCo. I was wondering the same thing, what can the front cam do for us in the USA?
For starters, the built-in camera app does let you select the front cam "Camera 2" for stills and it lets you flip the image as well , so no need for a mirror on the back like my 8525 had.
Hopefully there will be a way to use it for video conferencing at some point.
RemE said:
I read about that same problem in Pauls review thread on MoDaCo. I was wondering the same thing, what can the front cam do for us in the USA?
For starters, the built-in camera app does let you select the front cam "Camera 2" for stills and it lets you flip the image as well , so no need for a mirror on the back like my 8525 had.
Hopefully there will be a way to use it for video conferencing at some point.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=329502
this report I found to be a step backward (??) in term of video conferencing ??
I don't know, a face is a face. I just checked this bug out using the camera app, Very Interesting!;
I set it to Camera2, my face was a mirror image, I held a text card and yes the text was reversed.
I set it to Camera2 Flipped, my face was "normal", text was readable.
Here's what's ODD, in the Camera2 setting, if I "barrel rolled" rotated the camera 360 degrees while watching the monitor, My face was always upright!
If I set it to "Camera2 Flip" and rotated the camera, my image rotates upside down as the camera rotates.
That's different!
Hello,
I tried to use the MS portrait but by default it selects the first camera not the secondary front facing. In options there is only one camera listed, whats the solution to this?
Thank you.
What are you tring to do? There is camera software for winmo phones that is great for using different cams and stuff here it is http://www.ateksoft.com/
If you haven't tried ComVu PocketCaster, I highly recommend it.
www.comvu.com or www.pocketcaster.com
I'm trying to use MSN messanger/portrait with the front facing camera?
You got portrait to work on the Kaiser? With me it always throws an error.
What version did you install?
beta, 3.1 but its using the main camera, not the front camera.
HI,
I recently bought HTC tytn II. My main purpose to buy this powerfull device is Voice chat and Video chat...
Please let me know the performance of MS portrait on tytn II... can we do voice chat smoothly?????
My experience of MS Portrait on my Kaiser is not very good.
It only seems to work with other versions of Portrait for voice or video and not with Live Messenger.
IM text chat to PC Live Messenger works just as well as "Mobile" Live Messenger to PC Live Messenger, and I stil get incoming Hotmail notifications.
Video, even over wifi LAN, was poor to non existent in my experience.
The only Camera it will work with is the rear facing camera, I tried setting up the forward facing camera in the camera app and then going into the settings for Portrait but still only the rear facing camera works.
I havent tried a 3g Video Phone call so I have no idea how well the Kaiser copes with the demands of 2 way video and audio processing and data transfer, but as far as portrait goes technically it works as a proof of concept but is far from being usable. Portrait is only beta software so there is hope for future improvements. Cool Camera and Webcam Plus, both from Ateksoft, were mentioned earlier but are not currently compatible with the Kaiser.
I have read somewhere that HTC have not released the full APIs for the cameras. I guess this will hinder 3rd party development.
Does anyone know if it's possible to access the forward-facing video camera via software oneself, even if the Video Call feature is not available on your network ? I work for at a hospital and as a "pet project" ( telemedicine ) one of the doctors who has a Kaiser would like to be able to video conference in with the forward facing camera. I would like to pursue this ( and I just might get a Kaiser for myself in the process..hint..hint ), and am curious if anyone has attempted to access the QCIF camera directly.
Any suggestions will be welcomed. Thank you.
Yes
open the camera application, the open the camera menu. (little bar below in the screen) lower line in the middle shows camera, press this button and the camera switch to the forward camera...
And if you want the front camera to start up by default, I scanned the registry and you should change the following:
HKEY_LOCAL_MACHINE --> software --> HTC --> Camera --> common
change the value of activecameraID from 1 to 2, voila front camera will start first.
offtopic: did anyone tried this already with an voip program and videovoiping? going to check it right away... Because it always starts the rear camera...
cheers
It doesn't work with MS Portrait
I have emailed MS regarding updates to Portrait and compatibility with front facing cameras. They replied saying they are aware of the Camera issue and that they would notify me of any updates.
I am not holding my breath... MS updates are few and far between compared to the rate of development achieved by some of the geniuses on here.
Thanks but....
Thanks for the replies, but I meant programmatically. I'm not trying to take pictures. I want to know where I can find information about how to programmatically access the camera, for a custom application that would run over 3G which would both stream video to the display, and capture and stream video out of the QCIF ....just as if the video call feature were available, but for networks where this is not possible.
As I said, this is for supporting a telemedicine application, that would allow the doctor to interact with a patient at bedside, when they are not physcially present.
For an application that would allow the video conferencing, you might want to consider MeBeam (www.mebeam.com). It's a flash based site that allows you to video conference with up to eight other people. I'm not sure if their flash application will be able to detect your hardware, but it's worth a shot.
Trying OctroComunicator Beta to stream video to their website or other buddies, streams, but the front camera option does not work.
OctroCommunicator, still not able to access the front camera on HTC devices. There is no public API for the front camera, can we get it???? so that it can then be added to their software.
Hi,
Does the Note 8 have the dual shot camera mode found in other Samsung phones, where you can take pictures and video with both the front and back facing cameras at the same time?
I found myself using that mode the most on my Note 3, because I was always the one taking pictures and not appearing in any of them.
Thanks,
Daniel
Hello Daniel,
I just checked over all of my settings in the default camera app, and I did not find that feature.
Hi, It's not usually in the default modes, can you swipe from the left and try to add a new one, check if it's in the options from the market?
Thanks
It should do something like this: https://www.youtube.com/watch?v=pZJnBhcU3Eo
I'm familiar with the mode, but unfortunately, it is not a native option from Samsung. There are only 3 additional modes in the market: Fast Action, Animated GIF, and Rear Selfie, none of which will achieve the dual camera mode we are looking for. Sorry
i found a separate APK for this, if you are interested: https://forum.xda-developers.com/galaxy-note-8/help/dual-camera-mode-app-t3674266
I don't have the phone yet to test it out, but thank god for these people who mod out apps!
I downloaded the Dual Camera APK from APKMirror (the one that works as a plugin for Samsung Camera) and it works well. I've been using it for at least a month without trouble.
Cand it do Video and Pictures, or is it limited to just pictures?
Hello everybody, there is a new app called DuoVision Camera that records and takes picture from both front and back cameras simultaneously, and even has the retro frame with todays date. Check it out on playstore https://play.google.com/store/apps/details?id=com.sec.android.app.camera.duovisioncamera&hl=en. Enjoy !