I need to cut a few segments from a video file and save each one an individual file.
The code below glues all the segments and stores them in a single file.
mediaComposer.addSourceFile(...); mediaComposer.setTargetFile(...); //... final MediaFile mediaFile = mediaComposer.getSourceFiles().get(0); mediaFile.addSegment(segment()); mediaComposer.start();
Reusing MediaComposer causes an error.
Link Copied
Hi Dmitrii,
It seems like you're using Media pack for mobile, but this forum is dedicated to Media SDK and Media Server Studio.
Media for mobile became open source, so you can ask your questions here: https://github.com/INDExOS/media-for-mobile ;
Best wishes,
Anna
Em... Media pack is actually much difficult for me to operate independently. Need a guide to follow. Now I have prepared some alternatives on my computer, which are Joyoshare Media Cutter and Bandicut to cut videos to small segments losslessly.
For more complete information about compiler optimizations, see our Optimization Notice.