video-recording

FFmpeg 3.3.4 avfoundation to record only a specific section of the screen on macOS Sierra using the command line

試著忘記壹切 提交于 2019-12-01 01:26:56
I'm using FFmpeg version 3.3.4 (installed via brew) through the command line to record my desktop during some automated tests on my macOS Sierra (10.12.6). I would like to record only a specific section of the screen but, unfortunately, I'm not able to find the proper options in the documentation to reach my goal. According to the FFmpeg documentation for avfoundation , this is the command I use: ffmpeg -f avfoundation // avfoundation -pix_fmt uyvy422 // pixel format -i 1 // input: desktop -r 30 // framerate for output [PATH]/test.mp4 // filename When I run this command I have the following

Try to Video Record using adb shell screenrecord Android 4.4

不想你离开。 提交于 2019-11-30 23:01:32
问题 I am try to create a video from terminal but I can't succeed. It gives error on terminal like this. adb shell screenrecord /sdcard/screenshotyyyy.mp4 ERROR: unable to create encoder input surface (err=-38) WARNING: failed at 320x480, retrying at 720x1280 ERROR: unable to create encoder input surface (err=-38) 回答1: The screenrecord feature doesn't work in the AOSP emulator, because the software AVC encoder doesn't support the necessary features. As noted in this bug, the screenrecord binary

Video Recording using AVFoundation

≯℡__Kan透↙ 提交于 2019-11-30 07:13:48
I am trying to record video using AVFoundation. When I add video input only to the session, everything works fine but when I add an audio input to it, it stops recording the video.(Delegate method is called immediately after recording starts). Here is my code: -(void) recordVideo { self.session = [[AVCaptureSession alloc] init]; if([session canSetSessionPreset:AVCaptureSessionPresetMedium]) session.sessionPreset = AVCaptureSessionPresetMedium; CALayer *viewLayer = [self.cameraView layer]; AVCaptureVideoPreviewLayer *captureVideoPreviewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession

Video Recording using AVFoundation

强颜欢笑 提交于 2019-11-29 09:23:18
问题 I am trying to record video using AVFoundation. When I add video input only to the session, everything works fine but when I add an audio input to it, it stops recording the video.(Delegate method is called immediately after recording starts). Here is my code: -(void) recordVideo { self.session = [[AVCaptureSession alloc] init]; if([session canSetSessionPreset:AVCaptureSessionPresetMedium]) session.sessionPreset = AVCaptureSessionPresetMedium; CALayer *viewLayer = [self.cameraView layer];

How to show real time filtered camera preview while recording videos?

ぃ、小莉子 提交于 2019-11-29 04:34:12
I want to show filtered camera preview while recording a video using media recorder. To filter the preview i need frames normally which i can get that from onPreviewFrame() function but while recording video with media recorder, onPreviewFrame() function does not get called. So what i want to know , is there any other ways to get these frames for filtering and then show them after modification ? I checked some apps from Google Play for example, Videocam Illusion. Its showing preview with effects during recording videos. I want to do something like that but have no hint how to do so. So i will

Capture video with flutter

时光怂恿深爱的人放手 提交于 2019-11-28 21:20:23
Hi I am in the process of developing an app with flutter with video recording functionality. I have come across 2 plugins with ability to capture/save an image as a file with flutter: Camera v0.0.2 and Image_picker v0.2.1 , they work well and are official flutter plugins. In essence I would like to build a mini camera plugin with video recording capabilities with flutter, which would work with iOS and Android seamlessly. Any suggestions, direction, methods to upgrade these plugins are welcome. Video recording is now enabled by our team on the official camera plugin v0.2.0 by submitting a pull

how to change video orientation in MediaRecorder to portrait

╄→尐↘猪︶ㄣ 提交于 2019-11-28 18:40:55
When I record video by MediaRecorder, it always records in landscape mode, regardless of real device orientation. How to force MediaRecorder/Camera use real orientation ? refer to Camera.Parameters.setRotation() for more information. There is an example there and instead of calling setRotation(rotation) try to call mediaRecorder.setOrientationHint(rotation) when recording video. Sagar Aghara Add the following two lines of code: Camera.setDisplayOrientation(90); // use for set the orientation of the preview mRecorder.setOrientationHint(90); // use for set the orientation of output video before:

What is the best way to record a video with augmented reality

情到浓时终转凉″ 提交于 2019-11-28 11:42:23
What is the best way to record a video with augmented reality? (adding text, images logo to frames from iPhone/iPad camera) Previously I was trying to figure out how to draw into CIImage ( How to draw text into CIImage? ) and convert CIImage back to CMSampleBuffer ( CIImage back to CMSampleBuffer ) I almost did everything, only have problem with recording video using new CMSampleBuffer in AVAssetWriterInput But this solution anyway isn't good at all, it eats a lot of CPU while converting CIImage to CVPixelBuffer ( ciContext.render(ciImage!, to: aBuffer) ) So I want to stop here and find some

How to show real time filtered camera preview while recording videos?

ぐ巨炮叔叔 提交于 2019-11-27 22:28:12
问题 I want to show filtered camera preview while recording a video using media recorder. To filter the preview i need frames normally which i can get that from onPreviewFrame() function but while recording video with media recorder, onPreviewFrame() function does not get called. So what i want to know , is there any other ways to get these frames for filtering and then show them after modification ? I checked some apps from Google Play for example, Videocam Illusion. Its showing preview with

VLC record webcam and stream to chrome linux

随声附和 提交于 2019-11-27 13:50:17
I am currently looking for how to accomplish what I have been told is possible. I was told that we would be able use vlc to stream a webcam in linux which would allow for the following: Recording the stream to the local machine for a later upload. Play the stream as it's recording using Chrome's HTML5 video capabilities. Send a start and stop command from the web for the vlc recording. I have been researching this for quite some time and haven't been able to find a viable solution. I am able to record video using VLC already with the following vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640