* improve space reserving, allows write better 4K/8K video data * do not use cache dirs in the muxers, Android can force close NewPipe if the device is running out of storage. Is a aggressive cache cleaning >:/ * (for devs) webm & mkv are the same thing * calculate the final file size inside of the mission, instead getting from the UI * simplify ps algorithms constructors * [missing old commit message] simplify the loading of pending downloads
27 lines
626 B
Java
27 lines
626 B
Java
package us.shandian.giga.postprocessing;
|
|
|
|
import org.schabi.newpipe.streams.Mp4FromDashWriter;
|
|
import org.schabi.newpipe.streams.io.SharpStream;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* @author kapodamy
|
|
*/
|
|
class Mp4FromDashMuxer extends Postprocessing {
|
|
|
|
Mp4FromDashMuxer() {
|
|
super(true, true, ALGORITHM_MP4_FROM_DASH_MUXER);
|
|
}
|
|
|
|
@Override
|
|
int process(SharpStream out, SharpStream... sources) throws IOException {
|
|
Mp4FromDashWriter muxer = new Mp4FromDashWriter(sources);
|
|
muxer.parseSources();
|
|
muxer.selectTracks(0, 0);
|
|
muxer.build(out);
|
|
|
|
return OK_RESULT;
|
|
}
|
|
|
|
}
|