Transcoder
Transcoder copied to clipboard
🎞 Hardware-accelerated video transcoding using Android MediaCodec APIs. Supports cropping, concatenation, clipping, audio processing, video speed and much more.
``` String srcPath = "/storage/emulated/0/Download/sample.mp3"; String desPath = "/storage/emulated/0/Download/hmm.aac"; Log.e(TAG, "onActivityResult: "+srcPath); DefaultAudioStrategy strategy = DefaultAudioStrategy.builder() .channels(DefaultAudioStrategy.CHANNELS_AS_INPUT) .channels(1) .channels(2) .sampleRate(DefaultAudioStrategy.SAMPLE_RATE_AS_INPUT) .sampleRate(44100) .sampleRate(30000) .bitRate(DefaultAudioStrategy.BITRATE_UNKNOWN) .build(); Transcoder.into(desPath) .addDataSource(srcPath) .setAudioTrackStrategy(strategy) .setListener(new TranscoderListener() {...
I think `info.set(0, 0, 0, flags and MediaCodec.BUFFER_FLAG_END_OF_STREAM)` is fine for `EOS`. Do you think it is correct ? ref: #139
Can anyone help me check this issue E/TranscodeEngine: Unexpected error while transcoding. android.media.MediaCodec$CodecException: Error 0xffffec77 at android.media.MediaCodec.native_configure(Native Method) at android.media.MediaCodec.configure(MediaCodec.java:2023) at android.media.MediaCodec.configure(MediaCodec.java:1951) at com.otaliastudios.transcoder.internal.codec.Decoder.initialize(Decoder.kt:60) at com.otaliastudios.transcoder.internal.codec.Decoder.initialize(Decoder.kt:33) at com.otaliastudios.transcoder.internal.pipeline.Pipeline.(Pipeline.kt:16) at com.otaliastudios.transcoder.internal.pipeline.Pipeline.(Unknown...
An exception occurs when transcoding a .mov video on my Pixel 4a with Android 10. This exception occurs in version 0.10.4. However, the transcoder runs successfully using version 0.9.1. This...
This issue can be reproduced in a demo application
Dear OSS developers. Unexpected error while transcoding. Detailed information is below. I would be very happy if you could fix it. ### Android device info ・motorola moto g30 ・OS Android...
There was a case where `buffer.isremining()` was false when used with `AudioEngine`. When I debugged, the capacity of buffer was 0.  refs: #144 #153
> #138 > Library transcode video with artifacts. Link to video I have same issue. I checked the diffs for v0.9.1 and v0.10.0 and found that there was an issue...
notice: #170 should be merged before merging this PR. I added `State.wait` which doesn't call sleep. There are cases in `State.wait` where it is not necessary to call `Thread.sleep` ....
E/MediaCodec: Codec reported err 0xffffec77, actionCode 0, while in state 3 E/MediaCodec: configure failed with err 0xffffec77, resetting... E/Transcoder: Fatal error while transcoding, this might be invalid format or bug...