Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Audio recording corrupts MP4 on android

Mohamed_R_
Beginner
996 Views

Hello,

I've been trying to capture ingame footage through unity and i managed to get the tutorial files working except for the audio.
I kept getting corrupted mp4 files (on LG G2), here's a sample https://mega.nz/#!2VBzDA6S!4oXcpZIvi9d3NnfnogeXNWr9N7v-xtK27nSYuo-vvVs

After commenting capturer.setTargetAudioFormat() the output video was playable but of course without audio.

capturer = new GLCapture(new AndroidMediaObjectFactory(context), progressListener);
capturer.setTargetFile(videoPath);
capturer.setTargetVideoFormat(videoFormat);

AudioFormat audioFormat=new AudioFormatAndroid("audio/mp4a-latm",44100,2);
//Commenting the following line makes the video work
capturer.setTargetAudioFormat(audioFormat);

 

I'd appreciate shedding some light on what this behavior might be from.

0 Kudos
1 Reply
Harshdeep_B_Intel
996 Views

Hi Mohamed,

Thank you for  bringing this issue to our attention. This audio issue is due to Media for Mobile library. This is library bug and one of known issue. I have sent a private message in regard to support for Media for Mobile product. 

Thanks, 

0 Kudos
Reply