Re: mergAV Select specific rear camera

2020-04-30 Thread Andrew at MidWest Coast Media via use-livecode
“Bug” submitted, though this is probably a Feature Enhancement in hindsight.

https://quality.livecode.com/show_bug.cgi?id=22714 


-Andrew Bell
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mergAV Select specific rear camera

2020-04-30 Thread Monte Goulding via use-livecode
Hi Andrew

It looks like both mergAVCam and the cameraControl in the Indy+ engines need to 
be updated to use APIs added in iOS 11 for `minAvailableVideoZoomFactor` and 
`maxAvailableVideoZoomFactor`. The multiple lens back camera is treated as one 
device and it switches between the lenses depending on the zoom factor. If you 
would like to open a report about this so it gets prioritised that would be 
great.

Cheers

Monte

> On 1 May 2020, at 7:51 am, Andrew at MidWest Coast Media via use-livecode 
>  wrote:
> 
> The only devices that are returned by mergAVCamGet(“video devices”) is:
> com.apple.avfondation.avcapturedvice.built-in_video:0 Back Camera
> com.apple.avfondation.avcapturedvice.built-in_video:1 Front Camera
> 
> mergAVPick(“rear camera”) brings up the native camera controls, but my goal 
> is to have a live feed from the camera but WITHOUT all the overlays the 
> native camera adds. I can do this easily with the mergAV demo stack, but 
> can’t access all the features.
> 
> I’ve been able to utilize the mergAVCamGet/Set("zoom”) to work on the normal 
> (non wide-angle) lens from 1x to 2x but it won’t go all the way to 3x or down 
> to 0.5x like the native camera will do (0.5x-1x by using the wide-angle, not 
> sure why I can’t use 2x-3x even without a telephoto lens if the native 
> control does).
> 
> -Andrew Bell
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mergAV Select specific rear camera

2020-04-30 Thread Andrew at MidWest Coast Media via use-livecode
The only devices that are returned by mergAVCamGet(“video devices”) is:
com.apple.avfondation.avcapturedvice.built-in_video:0   Back Camera
com.apple.avfondation.avcapturedvice.built-in_video:1   Front Camera

mergAVPick(“rear camera”) brings up the native camera controls, but my goal is 
to have a live feed from the camera but WITHOUT all the overlays the native 
camera adds. I can do this easily with the mergAV demo stack, but can’t access 
all the features.

I’ve been able to utilize the mergAVCamGet/Set("zoom”) to work on the normal 
(non wide-angle) lens from 1x to 2x but it won’t go all the way to 3x or down 
to 0.5x like the native camera will do (0.5x-1x by using the wide-angle, not 
sure why I can’t use 2x-3x even without a telephoto lens if the native control 
does).

-Andrew Bell
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mergAV Select specific rear camera

2020-04-30 Thread Martin Koob via use-livecode
Hi Andrew.

I haven’t used it on iOS but this is what you need to do on Mac OS X to use 
internal or external cameras.

To choose a particular camera use 

merAVCamSet “camera” , tCameraID

So or your case using iOS I think you can use just “rear camera” as the 
tCameraID

merAVCamSet“camera”, “rear camera”

See the dictionary for details.


For Mac OS X there is a bit more to do first you have to check to see what 
cameras are available and find their device IDs are: 

merAVCamGet “Video Devices” 

You also have to check the audio devices it you want to switch both your video 
and audio sources.

merAVCamGet “Audio Devices” 
If you are using  DV cams which used FireWire as the connector and include both 
Video and Audio together you need to use “Muxed devices” as the param

merAVCamGet “Muxed Devices” 

See the dictionary for details on how the camera info is returned.

Once you have retrieved the video and audio device IDs you set the camera that 
will be used and the microphone with the same merAVCamSet  command and use the 
device IDs you just retrieved.
merAVCamSet “camera”, pCameraID

merAVCamSet “microphone”, pAudioID


I agree with Devin though it is better to switch to the new cameraControl. It 
will be the video and audio capture technology supported going forward. I have 
transitioned to it so I can deploy my application on Windows. I would use the 
LC 9.6  version as there were bugs in the 9.5.1 version that are fixed in 
LC9.6.   I haven’t tried it on IOS though so you should see if that works.

Martin







> On Apr 30, 2020, at 11:11 AM, Devin Asay via use-livecode 
>  wrote:
> 
> Andrew, 
> 
> I’m not sure about mergAV, but if you gave an Indy license you might want to 
> check out cameraControl, which keeps getting better with each new release. I 
> was playing around with it in 9.6.0DP4 yesterday, and it seems pretty 
> capable. It also has the advantage of being cross-platform on Mac, Win, iOS, 
> and Android.
> 
> Devin
> 
> 
>> On Apr 30, 2020, at 9:01 AM, Andrew at MidWest Coast Media via use-livecode 
>>  wrote:
>> 
>> I’m using mergAv to access video on mobile. I can access the front camera 
>> but only one of the rear cameras on my iPhone 11, the 1x “normal” lens 
>> rather than the 0.5x “wide angle”. Is there a way to access the multiple 
>> lenses that Apple has on their newer devices?
>> 
>> —Andrew Bell 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: mergAV Select specific rear camera

2020-04-30 Thread Devin Asay via use-livecode
Andrew, 

I’m not sure about mergAV, but if you gave an Indy license you might want to 
check out cameraControl, which keeps getting better with each new release. I 
was playing around with it in 9.6.0DP4 yesterday, and it seems pretty capable. 
It also has the advantage of being cross-platform on Mac, Win, iOS, and Android.

Devin
 

> On Apr 30, 2020, at 9:01 AM, Andrew at MidWest Coast Media via use-livecode 
>  wrote:
> 
> I’m using mergAv to access video on mobile. I can access the front camera but 
> only one of the rear cameras on my iPhone 11, the 1x “normal” lens rather 
> than the 0.5x “wide angle”. Is there a way to access the multiple lenses that 
> Apple has on their newer devices?
> 
> —Andrew Bell 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


mergAV Select specific rear camera

2020-04-30 Thread Andrew at MidWest Coast Media via use-livecode
I’m using mergAv to access video on mobile. I can access the front camera but 
only one of the rear cameras on my iPhone 11, the 1x “normal” lens rather than 
the 0.5x “wide angle”. Is there a way to access the multiple lenses that Apple 
has on their newer devices?

—Andrew Bell 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode