Mp4Composer-android icon indicating copy to clipboard operation
Mp4Composer-android copied to clipboard

No sound in output file

Open VKdeveloper opened this issue 4 years ago • 10 comments

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

VKdeveloper avatar Jul 04 '20 21:07 VKdeveloper

Please write your sample code.

MasayukiSuda avatar Jul 04 '20 22:07 MasayukiSuda

GPUMp4Composer has nothing to do with this project.

MasayukiSuda avatar Jul 07 '20 02:07 MasayukiSuda

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.

VKdeveloper avatar Jul 08 '20 21:07 VKdeveloper

Please write your sample code.

Please check above code.

VKdeveloper avatar Jul 08 '20 21:07 VKdeveloper

Does it work on other devices?

MasayukiSuda avatar Jul 09 '20 01:07 MasayukiSuda

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.

VKdeveloper avatar Jul 09 '20 01:07 VKdeveloper

same issue here did you got any fix

ark-brighthustle avatar Jul 10 '20 14:07 ark-brighthustle

@MasayukiSuda Have you found any solution ?

VKdeveloper avatar Jul 28 '20 21:07 VKdeveloper

Same issue , Anyone found any solution

krishanunandan avatar Jul 31 '20 19:07 krishanunandan

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

persadaditya avatar Mar 06 '21 14:03 persadaditya