recording

Screen recording within android using libgdx or not

点点圈 提交于 2021-02-19 04:48:07
问题 I managed to do this by taking a series of screenshots and convert them to video using ffmpeg (ffmpeg compiled for android and include all *so to asserts, copy them all to to data/data/my.package/ and execute ffmpeg from there) But the main problem is the taking screenshots have big impact on screen rendering, it freezes a while (~0.1sec) when the app is executing this line of code: Gdx.gl.glReadPixels(x, y, w, h, GL10.GL_RGBA, GL10.GL_UNSIGNED_BYTE, pixels); I tried to take screenshots from

macOS/swift Capture Audio with AVCaptureSession

江枫思渺然 提交于 2021-02-07 07:05:22
问题 I am currently trying to implement a simple audio recording tool on my Mac. Since I need the raw audio buffers in-memory, I cannot use AVAudioRecorder, which would just write the recording to a file. My approach is to create a AVCaptureSession, Input(Microphone) and Output(AVCaptureAudioDataOutput) and start the session. Everything works fine, however the delegate callback of the output is never called . I made sure to add mic/camera permissions (just in case) in the project settings. Maybe

Swift 4 - avfoundation screen and audio recording using AVAssetWriter on mac os - video frozen

天涯浪子 提交于 2020-12-30 03:14:58
问题 I'm using Aperture to record audio and video from screen. We need to lower the bitrate of video, so i'm trying to rewrite it and record video with AVAssetWriter. My implementation is based on CustomCamera project and is almost working. The problem is in video, after few seconds it is frozen, althought audio is working. Could you help me please? I dont know where the problem is, maybe it is problem with buffers or garbage collector collect some variable. thanks. Here is the code: // //

Tkinter start/stop button for recording audio in Python

风流意气都作罢 提交于 2020-03-23 15:40:21
问题 I am writing a program to record audio with the use of a Tkinter GUI. For recording audio itself, I use this code: https://gist.github.com/sloria/5693955 in nonblocking mode. Now I want to implement something like a start/stop button, but feel like I am missing out on something. Following suppositions: I can't use a while True statement either a time.sleep() function because it's going to break the Tkinter mainloop() As a result, I will probably have to use a global bool to check whether my

Android AudioRecord Headphones with MIC

混江龙づ霸主 提交于 2020-03-03 09:09:32
问题 I am having some issues with the AudioRecord class. I have an app that records audio while someone is listening to audio through headphones. In this scenario, it works fine. Users are able to record without an issue. Any user using headphones with a built-in mic are not able to record at all. My class creates the .wav file from PCM data but no audio is being input from the mic. Its all silence. I use the following the init my AudioRecorder: extAudioRecorder = new ExtAudioRecorder(true,

Android AudioRecord Headphones with MIC

大城市里の小女人 提交于 2020-03-03 09:09:24
问题 I am having some issues with the AudioRecord class. I have an app that records audio while someone is listening to audio through headphones. In this scenario, it works fine. Users are able to record without an issue. Any user using headphones with a built-in mic are not able to record at all. My class creates the .wav file from PCM data but no audio is being input from the mic. Its all silence. I use the following the init my AudioRecorder: extAudioRecorder = new ExtAudioRecorder(true,

Android: Make a recorded pcm raw data playable

元气小坏坏 提交于 2020-02-05 06:57:41
问题 I'm developing an Android application, which supports audio recording with the following code, sample can be found here: http://developer.samsung.com/technical-doc/view.do;jsessionid=tT01JrgM5DRC15pN56v20xzJXcDYv7hZVLvPhT0zJ4kfvSc1TlTM!-846162528?v=T000000090 Variables: private static final int RECORDER_BPP = 16; private static final int RECORDER_SAMPLERATE = 22050; private static final int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_MONO; private static final int RECORDER_CHANNELS_NUMBER = 1;

Android: Make a recorded pcm raw data playable

别来无恙 提交于 2020-02-05 06:57:10
问题 I'm developing an Android application, which supports audio recording with the following code, sample can be found here: http://developer.samsung.com/technical-doc/view.do;jsessionid=tT01JrgM5DRC15pN56v20xzJXcDYv7hZVLvPhT0zJ4kfvSc1TlTM!-846162528?v=T000000090 Variables: private static final int RECORDER_BPP = 16; private static final int RECORDER_SAMPLERATE = 22050; private static final int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_MONO; private static final int RECORDER_CHANNELS_NUMBER = 1;

Is it possible to record sound played on the sound card?

我们两清 提交于 2020-01-19 04:05:29
问题 Is it even remotely possible to record sound that is being played on the sound card? Supposedly, I am playing an audio file, what I need is to redirect the output to the disk. DirectShow or might be feasible. Any help is greatly appreciated, thanks. 回答1: You need to enable audio loopback device, and you will be able to record from in a stadnard way with all the well-known APIs (including DirectShow ). Loopback Recording Enabling "Stereo Mix" in Vista Capturing Window's audio in C# Once