I am using DirectShow to capture photos within my application. I currently only have a HTC Universal to test with and when I either do a preview or take a photo using DirectShow the image is rotated 90 degrees. I can rotate the image later manually but this causes the image to be 480x640 instead of 640x480.
I have seen that other people have had similar problems and I was wondering if anybody has solved this? Also if this is not possible, is there a way to trigger than camera to take a photo immediately. That way I can use DirectShow to get a preview in my app and when the actual photo is taken I could potentially use a different method (eg call some exe with parameters to take the photo).
This app needs to work across multiple devices which is why I am using the DirectShow approach. If there is another method I would be interested in that also.
I've also found that the image quality of the photo using DirectShow is much lower. Not sure if this is controllable... Otherwise does anybody have any suggestions for an alternative method?
Related
Hi,
I have two questions which I couldnt seem to find an answer for:
1. Does anyone know the focal length of the camera on the Trinity?
2. Is there a way to save the camera image to TIFF rather than compressed JPG?
Thanks,
James.
you can always convert it yourself?
Hi,
Coverting the image back to TIFF is counterproductive since the damage has already been done by then. JPEG's specifies a lossy compression algorithm, and I have found in some cases annoying artifacts appear in my photos.
I was hoping to get ahold of the photo data before this stage, hence the request for the TIFF output directly from the CCD (or even the raw camera data). I'm not even sure what JPEG quality setting has been hard-coded into the camera's jpg encoder.
I anticipate the "its a phone, not a professional camera" reply by someone out there, but if there is a simple(ish) solution out there somewhere, then why not give it a go.
Thanks,
James.
Going to try to explain this... When I'm using the stock Camera app, the picture is normal. But when I switch to Camcorder, it seems to be automatically zoomed in quite a bit. And when I try to zoom out, it says that since I'm recording in HD, zoom functions are not available.
This is kind of annoying because now I have to step back probably 5 feet to fill the same frame of when I was taking photos.
Is this normal for everyone else too? Or do I have some weird glitch on my unrooted and pure stock ROM?
Yep, mine does it too (stock rom). It only does that in FullHD resolution. I guess the only use middle part of the sensor to read the data to achieve greater speeds, and thus it's gonna be a hardware limitation.
Who need HD anyway ? The lens hardly catch with it. I record 720x480 and I'm very pleased with teh quality.
Change the video recording resolution in the settings pane to 1280x720 and that should fix your problem.
hank00k said:
Change the video recording resolution in the settings pane to 1280x720 and that should fix your problem.
Click to expand...
Click to collapse
Yeah I noticed that.
But that doesn't make sense. In photo mode, same resolution as video mode but in video mode it's zoomed in. Like Dr. Sid said, it seems that it uses a smaller section of the image sensor to capture video. Which again doesn't make sense. Weird.
This is definetly a speed optimization - scaling down the whole resolution of camera sensor from 3264*2448 -> 1080p is much more expensive operation than just cropping the central pixels, i assume someone at samsung was VERY lazy to have done the camcorder mode in such a lame way, it's still ok for recording outside scenes but useless for in-room recording.
I find this quite annoying also. At first I was wondering if it is a ROM glitch or something, since some of the people here stated that even in stock ROM it is present also.
I hope there is some kind of patch to this, full HD recording is really awesome and I hate to see the 'zoomed' effect.
Yeah noticed the same thing just last night.. Seems to also affect the camera's ability to focus properly in video capture mode as well... Shame on them, I wish I had noticed this sooner.
Hi all,
Wondering if I'm alone in having an issue where every video I record seems to be recording in the "wrong" orientation when played on PC. For example, I'll record a video with the phone held upright in portrait mode. When I copy the same video to a PC and play it it is recognized as being basically sideways (i.e the video is rotated 90 degrees counterclockwise, to play correctly it needs to be rotated 90 degree back to the right).
I've yet to find a setting to fix this and while I know it can be corrected with a video editor I'd much rather they be oriented correctly right off the bat when copied over to PC. Has anyone else experienced this or knows why/how to fix?
Thanks for your time!
Video should be done in landscape. Have you tried that?
Thanks Devs. From my VZW G2.
mac35 said:
Hi all,
Wondering if I'm alone in having an issue where every video I record seems to be recording in the "wrong" orientation when played on PC. For example, I'll record a video with the phone held upright in portrait mode. When I copy the same video to a PC and play it it is recognized as being basically sideways (i.e the video is rotated 90 degrees counterclockwise, to play correctly it needs to be rotated 90 degree back to the right).
I've yet to find a setting to fix this and while I know it can be corrected with a video editor I'd much rather they be oriented correctly right off the bat when copied over to PC. Has anyone else experienced this or knows why/how to fix?
Thanks for your time!
Click to expand...
Click to collapse
Same here. When I take pictures or record videos--depending on how I hold my phone--it would either be sideways or upside down. I tested this with multiple camera apps--even stock. For example, if I take pictures in landscape mode--LG logo to the left and Verizon logo to the right in front of phone--the pictures would be upside-down if I view it on Windows. It looks fine if I view it on my LG G2 (VS980).
Any idea on how to fix this? Anyone else having this issue?
Hello,
I'm either missing something glaringly obvious or there is no solution to this, but every time I record a video on my phone in landscape mode, when watching this later on a PC the video is 90 degrees rotated.
Where would I find the setting to avoid this, or auto-rotate on my phone please? As far as I know, only the header tag would need changing which has nothing to do with how the video has been recorded.
The only solution I found thus far was to use the Photos built-in app and rotate the video, however it takes a good while to create the new file this way and I'm not even sure how this affects the quality of the video.
Thank you.
Using the stock camera app I found what appears to be a problem when recording video and using the 3x zoom. The phone is on 10.5.10 the latest software as of this date. I'm curious as to whether anyone else is having this same issue. I've attached a screenshot of the same frame from the video file from the camera and from my viewpoint. As you can see the dog toy is centered on the grid but in the recording it's not centered.