Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Dmitrii_B_
Beginner
140 Views

Cut few segments

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.

0 Kudos
2 Replies
Anna_B_Intel
Employee
140 Views

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

BessieYi
Beginner
112 Views

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.

Reply