biometrics Active Member Licensed User Longtime User Sep 10, 2018 #1 I want to record video without audio using the Camera2 library (and CamEx2 class) to save on the file size. How can I do this? Reading some threads on Stackoverflow indicates that simply by not calling setAudioSource, audio won't be recorded. This must be in the library so I can't remove it. I was thinking I might be able to call setAudioSource using MediaRecorder.RunMethod but I don't see an option to set the source to none. References: https://developer.android.com/reference/android/media/MediaRecorder.html#setAudioSource(int) https://developer.android.com/reference/android/media/MediaRecorder.AudioSource
I want to record video without audio using the Camera2 library (and CamEx2 class) to save on the file size. How can I do this? Reading some threads on Stackoverflow indicates that simply by not calling setAudioSource, audio won't be recorded. This must be in the library so I can't remove it. I was thinking I might be able to call setAudioSource using MediaRecorder.RunMethod but I don't see an option to set the source to none. References: https://developer.android.com/reference/android/media/MediaRecorder.html#setAudioSource(int) https://developer.android.com/reference/android/media/MediaRecorder.AudioSource
MarkusR Well-Known Member Licensed User Longtime User Sep 10, 2018 #2 its possible to turn the input volume via app to zero? (its still with audio but maybe silence is ok for you) Upvote 0
its possible to turn the input volume via app to zero? (its still with audio but maybe silence is ok for you)
biometrics Active Member Licensed User Longtime User Sep 10, 2018 #3 MarkusR said: its possible to turn the input volume via app to zero? Click to expand... It will still record an audio track though. Upvote 0
MarkusR said: its possible to turn the input volume via app to zero? Click to expand... It will still record an audio track though.
Erel B4X founder Staff member Licensed User Longtime User Sep 11, 2018 #4 Have you made some tests to see whether the audio size actually matters? Upvote 0
biometrics Active Member Licensed User Longtime User Sep 13, 2018 #5 Erel said: Have you made some tests to see whether the audio size actually matters? Click to expand... Kind of hard to test as the recording takes place in moving vehicle. Anyway I've found out the cameras don't have microphones so there won't be audio. I just wanted to create the smallest files possible but I guess the audio data would be negligible vs the video data. Upvote 0
Erel said: Have you made some tests to see whether the audio size actually matters? Click to expand... Kind of hard to test as the recording takes place in moving vehicle. Anyway I've found out the cameras don't have microphones so there won't be audio. I just wanted to create the smallest files possible but I guess the audio data would be negligible vs the video data.
moster67 Expert Licensed User Longtime User Sep 13, 2018 #6 You could use my ffmpegencoder to remove the audio.by post-processing the video .. Upvote 0