video-recording

Android - mute microphone while recording video

一个人想着一个人 提交于 2020-08-02 06:33:29
问题 I'm recording a video with the camera, using the MediaRecorder class, after following a tutorial similiar to this http://androidcookbook.com/Recipe.seam;jsessionid=40151FCD26222877E151C3EEFB406EED?recipeId=1375&recipeFrom=ViewTOC And I want while recording, to be able to mute / unmute the microphone. How's that possible? I'm setting the audio source at start mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); But

Android - mute microphone while recording video

可紊 提交于 2020-08-02 06:33:05
问题 I'm recording a video with the camera, using the MediaRecorder class, after following a tutorial similiar to this http://androidcookbook.com/Recipe.seam;jsessionid=40151FCD26222877E151C3EEFB406EED?recipeId=1375&recipeFrom=ViewTOC And I want while recording, to be able to mute / unmute the microphone. How's that possible? I'm setting the audio source at start mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); But

Android detecting real recording, MediaRecorder has delay

耗尽温柔 提交于 2020-07-18 05:15:08
问题 I would like to synchronize data from phone with elapsed time recording video. I would like to get information (in ms) about elapsed time recording video. I tried resolve it via: 1. Run myself timing. Pseudo: mMediaRecorder.start(); //start recording startTime = System.currentTimeMillis(); //save start recording time timerHandler.postDelayed(timerRunnable, 0); //for save elapsed time and timerHandler.postDelayed(this, 20); for next 20ms but there is problem with MediaRecorder, because real

Save video in every 5 second interval while video recoding is ON (Android OS)

帅比萌擦擦* 提交于 2020-02-02 04:23:30
问题 I want to save the video every 5 seconds while the video recording is ON. I have tried many solutions but I am facing a Glitch that is, the Last Saved Frame remains in preview for around 300ms. I think the reason is in MediaRecorder class "Once a recorder has been stopped, it will need to be completely reconfigured and prepared before being restarted." Thanks 回答1: I think it's impossible to do that with MediaRecorder . The better approach could be encoding video by using MediaCodec and

Editing Frames While Recording a Video with OpenCV

假如想象 提交于 2020-01-25 07:23:25
问题 Is it possible to get frames while recording a video and writing current time on those images at the same? I've been looking for this but I couldn't find anything. I want to write time on each frame and/or save those frames with that timestamp. I couldn't get the time information from a video for each frame, so I came up with this solution. I am open for any ideas. Thanks in advance. 回答1: Yes it is possible. The cap.get(0) flag, (where cap is a cv2.VideoCapture object), gives you the

Video capture with background audio on Android

拜拜、爱过 提交于 2020-01-17 05:19:08
问题 I am trying to create an app which record videos by playing a background music. The expected output will be the captured video with the above mentioned music. I am not sure whether it is an rubbish question but, anyone please suggest an idea to capture video with a background audio on Android? 回答1: my solution is fine, try it: Service android: import java.util.Calendar; import android.app.Service; import android.content.Context; import android.content.Intent; import android.graphics

Record video with HTML input type file capture camcorder from webcam

与世无争的帅哥 提交于 2020-01-15 01:50:27
问题 In my company, i had the task to build a website, where users can record a video, that will be send to the server, some stuff will be done and the user finally gets an email with a link to a microsite with that video embedded. After some research, i came to the conclusion, that it is impossible, at least at the moment, to capture a video with getUserMedia on iPad. So the solution is quite simple, i just use a input-element with accept="video/*;capture=camcorder". <input type="file" accept=

Record video with HTML input type file capture camcorder from webcam

与世无争的帅哥 提交于 2020-01-15 01:50:11
问题 In my company, i had the task to build a website, where users can record a video, that will be send to the server, some stuff will be done and the user finally gets an email with a link to a microsite with that video embedded. After some research, i came to the conclusion, that it is impossible, at least at the moment, to capture a video with getUserMedia on iPad. So the solution is quite simple, i just use a input-element with accept="video/*;capture=camcorder". <input type="file" accept=

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

只谈情不闲聊 提交于 2020-01-13 06:12:21
问题 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

Recording Videos in Chunks Using Media Recorder Android

我的梦境 提交于 2020-01-04 04:18:20
问题 I am implementing an Application that includes the functionality of saving Recorded Video in to Different Video Files based on a certain amount of Time. For Achieving that i have implemented a Custom Camera and used the MediaRecorder.stop() and MediaRecorder.start() in a certain Loop. But this approach is creating a Lag Effect while restarting Media Recorder (Stop and Start). Is it possible to seamlessly Stop and Start Recording using Media Recorder or any Third Party Library ? Any help is