I am using these two libraries in my project:
https://github.com/HemendraGangwar/VideoTrimmingLikeWhatsapp https://github.com/fishwjy/VideoCompressor
Both libraries are imported locally to my project (i.e. copied them and added them to the project)
Both libraries work fine when used separately, but when I use them together I get some errors of type Program type already present
which I solved by deleting the file isoparser-1.0.6.jar
from the second library, because I noticed that the two libraries use the same library 'com.googlecode.mp4parser:isoparser'
but with different versions: 1.1.21
for the first one and 1.0.6
for the second one.
When using only the old library, I get this code:
error: cannot find symbol class FileDataSourceViaHeapImpl
It is working now, but the problem the output video (after compression) does not have sound on it. How can I solve this?
Here is the code I am using for compressing the video (after trimming):
VideoController.getInstance().convertVideo(tmpFile.toString(), dstFile.toString(),
VideoController.COMPRESS_QUALITY_MEDIUM, null);
from mp4parser version conflict (compressed video has no sound)
No comments:
Post a Comment