Using different versions of same library - More than one file was found with OS independent path 'builddef.lst'

后端 未结 2 1845
说谎
说谎 2021-01-19 22:16

The problem

i am trying to trim and compress a video using two libraries: Silicompressor and k4l-video-trimmer. the problem is both libraries use mp4parser but dif

2条回答
  •  花落未央
    2021-01-19 22:40

    With the help of @MilanPansuriya I was finally able to solve the issue. Follow below steps to resolve above issue:-

    1. Create a new library combining both libraries (kl-trimmer and Silicompressor). In my case it was (kl-trimmer and VideoCompressor (https://github.com/fishwjy/VideoCompressor/)).
    2. Use isoparser-1.0.6.jar in your library.
    3. Now after building your new library you will get an error in class TrimVideoUtils of library kl-trimmer.
    4. Error will be for FileDataSourceViaHeapImpl not found. Actually particular class is available in higher version of isoparser. Change it to FileDataSourceImpl.
    5. Now library will build just fine in your project.

    Note:- Both libraries will work fine now, but since we have changed FileDataSourceViaHeapImpl to FileDataSourceImpl sometimes I am getting Out Of Memory while trimming some large size videos (which is obviously supposed to happen & is also reported by users of older version of kl-trimmer).

    As of now this is the only solution I am able to get. If someone have a better solution please update us too. Thanks.

提交回复
热议问题