Ich nehme Audio für Sprachnachrichten in der App mit dem folgenden Code auf. MediaRecorder audioRecorder = new MediaRecorder(); audioRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_COMMUNICATION); audioRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); audioRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.HE_AAC); audioRecorder.setOutputFile(audioRecordingFile); audioRecorder.prepare(); audioRecorder.start(); Die Verwendung von MediaRecorder.AudioSource.VOICE_COMMUNICATION anstelle von MediaRecorder.AudioSource.MIC) ist sehr hilfreich bei der Aufzeichnung vorverarbeiteter sauberer Audios. Vor kurzem habe ich jedoch festgestellt, dass einige Probleme, bei …
Ich möchte die Frames aus dem RTSP-Video mit ffmpeg abrufen. Aber für Android 10 oben bekomme ich Fehler wie unten. E/FFmpeg: Exception while trying to run: [Ljava.lang.String;@55e447f java.io.IOException: Cannot run program "/data/user/0/com.example.downloadimagefromurl/files/ffmpeg": error=13, Permission denied at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050) at java.lang.Runtime.exec(Runtime.java:698) at java.lang.Runtime.exec(Runtime.java:563) at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10) at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38) at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10) at android.os.AsyncTask$3.call(AsyncTask.java:378) at …
We use cookies and other tracking technologies to improve your browsing experience on our website,
to show you personalized content and targeted ads, to analyze our website traffic,
and to understand where our visitors are coming from.
By continuing, you consent to our use of cookies and other tracking technologies and
affirm you're at least 16 years old or have consent from a parent or guardian.