Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sound in output file #80

Open
VKdeveloper opened this issue Jul 4, 2020 · 10 comments
Open

No sound in output file #80

VKdeveloper opened this issue Jul 4, 2020 · 10 comments

Comments

@VKdeveloper
Copy link

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

@MasayukiSuda
Copy link
Owner

Please write your sample code.

@MasayukiSuda
Copy link
Owner

GPUMp4Composer has nothing to do with this project.

@VKdeveloper
Copy link
Author

VKdeveloper commented Jul 8, 2020

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
Copy link
Author

Please write your sample code.

Please check above code.

@MasayukiSuda
Copy link
Owner

Does it work on other devices?

@VKdeveloper
Copy link
Author

VKdeveloper commented Jul 9, 2020

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.

@ark-brighthustle
Copy link

same issue here did you got any fix

@VKdeveloper
Copy link
Author

@MasayukiSuda Have you found any solution ?

@krishanunandan
Copy link

Same issue , Anyone found any solution

@persadaditya
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants