Open AniruddhaChattopadhyay opened 2 years ago
Hi! Glad to hear you are enjoying LiTr! Overall code looks good. Try adding frame rate to your target format, that should help with getting things to work. Sine you are passing target file path into LiTr, you should have access to it within your app. On later Android versions you should use FilProvider to read from it.
Also, I just noticed that you are trying to use an original bitrate provided by MediaMetadataRetriever. That is not always available, unfortunately. Often times it produces -1. LiTr will not work with that value, you are expected to provide valid integer value. Can you try to use something like 5000000?
Hi, first of all thanks a lot for making LiTr and keeping it opensource. I need a help. I am a bit confused as to how to implement the listener. What I am trying to do is basically take a video, change the width and height of the video keeping the aspect ratio sama and reduce the bitrate of both the video and audio track (Basically trying to reduce the size of the video before uploading to firebase). I have used the TransformationListener but seems like the methods of the interface are not being triggered. I have used debugger to track whether the onStart or onComplete function is being triggered but apparently they are not. I am attaching the code snippet here that I have used. I would really appreciate if someone can guide me as to what mistake I am doing. Also after the video is transcoded how do I access the URI of the transcoded video??