video-capture

Appcelerator Titanium: how to record video?

橙三吉。 提交于 2019-12-06 12:05:53
How to record video in Appcelerator Titanium and store in a specific location ? I am using an Android 2.3.6 device. This gist: https://gist.github.com/832488 does not seem to work as suggested / expected. It starts the video capture intent var intent = Titanium.Android.createIntent({ action: 'android.media.action.VIDEO_CAPTURE' }); as an activityForResult but the callback in Titanium.Android.currentActivity.startActivityForResult(intent, function(e) { ... }); is never called, none of notifications in code appear and the video is stored in some default location. The KitchenSink app does not

Auto-capture an image from a video in OpenCV using python

落爺英雄遲暮 提交于 2019-12-06 07:51:18
问题 I am trying developing a code which functions as the self-timer camera. The video would be seen in the window and the person's face and eyes would be continuously detected and once the user selects a specific time, the frame at that point of time is captured. I am able to capture the frame after a certain time using sleep function in time module but the video frame seems to freeze. Is there any solution such that I can continue to see the video and the video capture takes place after some

Can't change video capture resolution using c#

血红的双手。 提交于 2019-12-06 06:46:34
问题 I am trying to change the default webcam resolution using DirectShowNet in C#, from what I gather I need to change it from calling the built in VideoInfoHeader class in windows win32 api dll for avi capture. I have the following code from DirectShowNet: hr = capGraph.SetFiltergraph( graphBuilder ); if( hr < 0 ) Marshal.ThrowExceptionForHR( hr ); AMMediaType media = new AMMediaType(); media.majorType = MediaType.Video; media.subType = MediaSubType.RGB24; media.formatType = FormatType.VideoInfo

How can I ensure correct playback orientation of recorded video?

感情迁移 提交于 2019-12-06 05:37:06
问题 I'm using the MediaStore.ACTION_VIDEO_CAPTURE intent to capture video and later play it back using a VideoView . I would like to know the orientation of the video that was captured. I don't want to use the orientation at the time of the intent call because the user may rotate the device prior to hitting the shutter button. I also don't want to implement my own custom video capture. Is the orientation of the video stored in the saved file and/or returned in the intent result? 回答1: Is the

How to disable some part to be displayed as TVOut in iOS 5?

£可爱£侵袭症+ 提交于 2019-12-06 04:58:33
问题 As we all know in iOS 5 we don't require to add separate lines of code of TVOut feature. They have integrated that functionality as an in-built feature. What my question is: What if in my application there are some my custom views available, which i don't want to showcase as TVOut presentation. It should be display on device only, not on projection board. I have checked the TVOut code which we use for iOS version <5.0, but there they are capturing window image and passing it. How to prohibit

How can I correctly unpack a V210 video frame using GLSL?

拥有回忆 提交于 2019-12-05 23:50:20
问题 I have 10-bit YUV (V210) video frames coming in from a capture card, and I would like to unpack this data inside of a GLSL shader and ultimately convert to RGB for screen output. I'm using a Quadro 4000 card on Linux (OpenGL 4.3). I am uploading the texture with the following settings: video frame: 720x486 pixels physically occupies 933120 bytes in 128-byte aligned memory (stride of 1920) texture is currently uploaded as 480x486 pixels (stride/4 x height) since this matches the byte count of

Max duration for capture video on android

大憨熊 提交于 2019-12-05 23:31:21
问题 I have code for capturing a video clip on Android: Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra("android.intent.extra.durationLimit", 30000); intent.putExtra("EXTRA_VIDEO_QUALITY", 0); startActivityForResult(intent, ActivityRequests.REQUEST_TAKE_VIDEO); This code works well on API 2.2, but the duration limit does not work on API 2.1 (Galaxy S). Is there some constant or parameter for setting this time, or is there a better approach than the one I am taking? I

JavaCV video recorder orientation is not proper in portrait mode

▼魔方 西西 提交于 2019-12-05 20:51:43
问题 Hi i am using https://github.com/bytedeco/javacv/ for recording video. When using landscape mode orientation is fine but when i change the orientation to portrait mode the video is rotated -90 degree. Any body have an idea what i may be doing wrong. Here is the code. package org.bytedeco.javacv_android_example.record; import android.app.Activity; import android.content.Context; import android.content.pm.ActivityInfo; import android.hardware.Camera; import android.hardware.Camera

iOS AVFoundation Video Capture Orientation Options

半城伤御伤魂 提交于 2019-12-05 18:51:37
I have an app that I would like to have video capture for the front-facing camera only. That's no problem. But I would like the video capture to always be in landscape, even when the phone is being held in portrait. I have a working implementation based on the AVCamDemo code that Apple published. And borrowing from the information in this tech note , I am able to specify the orientation. There's just one trick: while the video frame is oriented correctly, the contents still appear as though shot in portrait: I'm wondering if I'm just getting boned by the physical constraints of the hardware:

IOS UIImagePicker with mp4 format

你。 提交于 2019-12-05 18:20:47
Is it possible to save video and add it to custom ALAsset, captured from UIImagePicker in mp4 format? Or I have to save it in .mov and make compression by AVAssetExportSession? Yes, you can compress video using AVAssetExportSession . Here you can specify video type, quality and output url for compress video. See below methods: - (void) saveVideoToLocal:(NSURL *)videoURL { @try { NSArray *documentsDirectory = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *docPath = [documentsDirectory objectAtIndex:0]; NSString *videoName = [NSString stringWithFormat: