MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
658 stars 179 forks source link

I expect the output video to be with filter and sound but i am getting the filtered video without sound. #54

Open navneetboghani opened 4 years ago

navneetboghani commented 4 years ago

I am creating a video player where after recording a video user should be able to apply gpu filter to the video then upload and then be able to play it.

I applied the GPUMp4Composer library but after applying the filter the video is coming as expected but the audio is getting muted.

**new GPUMp4Composer(srcMp4Path, destMp4Path) .filter(new GlFilterGroup(FilterType.createGlFilter(filterTypes.get(select_postion), getApplicationContext()))) .listener(new GPUMp4Composer.Listener() { @Override public void onProgress(double progress) {

            }

            @Override
            public void onCompleted() {

                runOnUiThread(new Runnable() {
                    @Override
                    public void run() {

                        progressDialog.dismiss();
                        GotopostScreen();
                    }
                });
            }

            @Override
            public void onCanceled() {
                Log.d("resp", "onCanceled");
            }

            @Override
            public void onFailed(Exception exception) {

                progressDialog.dismiss();
                Toast.makeText(Preview_Video_A.this, "Try Again", Toast.LENGTH_SHORT).show();

            }
        })
        .start();**
CrazyCoderAndroid commented 4 years ago

getting same issue. Any solution found ?

adapana commented 4 years ago

same issue but only in one device. Other devices produce a video with sound. is there any solution?

paragwadhwani commented 4 years ago

also getting same issue ? Please provide any solution ...

Princezennaxxdev commented 3 years ago

I also getting same issue i tested in 4 devices. successfully work in redmi , oppo and realme devices but getting issue in OnePlus7t Please provide solution or way to fix this bug