Mp4Composer-android
Mp4Composer-android copied to clipboard
No sound in output file
After we implement the filter, provide input file path and use Mp4Composer class, the output file has no audio. Please check into this issue as soon as possible.
Environment: Android : Android 10 Device: Mi A3
Please write your sample code.
GPUMp4Composer
has nothing to do with this project.
Following is the code:
Bitmap myLogo = //some bitmap
Bitmap bitmap_resize=Bitmap.createScaledBitmap(myLogo, 100, 100, false);
GlWatermarkFilter filter=new GlWatermarkFilter(bitmap_resize, GlWatermarkFilter.Position.LEFT_TOP);
new Mp4Composer(Variables.app_folder+child.id+"default"+".mp4",
Variables.app_folder+child.id+".mp4")
.mute(false)
.filter(filter)
.listener(new Mp4Composer.Listener() {
@Override
public void onProgress(double progress) {
Log.d("progess",""+(int) (progress*100));
}
@Override
public void onCompleted() {
Log.i("LOG","Prcoessing completed");
}
@Override
public void onCanceled() {
Log.d("resp", "onCanceled");
}
@Override
public void onFailed(Exception exception) {
Log.d("resp",exception.toString());
}
})
.start();
Above code merged bitmap perfectly at left top, but video is saved without audio. Please check.
Please write your sample code.
Please check above code.
Does it work on other devices?
Does it work on other devices?
Yes it works in my old device Micromax Canvas Spark (India) (2016) , which has following specs:
- Android 5.1.1
- MT6582 Processor
- 1 GB RAM
I have tested on Redmi note 3S and it fails. (Android 6.0, 3GB RAM) Tester has also tested on a Asus device and it fails there too. (Android 7.0, 3GB RAM)
I will update Asus device model no after some time.
It is my very kind request, to find the issue. I am stuck in very crucial moment right now. Cannot deliver the software to the client as there is no audio in video.
May be can you just figure out some workaround to patch the bug and release the update later ?
UPDATE: Just to make your debugging more specific, following is the codec of the input file
- Video Codec : AVC
- Audio Codec : AAC
The input file will always have above codecs as standard implementation.
same issue here did you got any fix
@MasayukiSuda Have you found any solution ?
Same issue , Anyone found any solution
maybe you tested in release with proguard enabled. try with debug mode or disabled proguard. . I had tested another library with same issue like this looking forward to check your test again