ffmpeg-cli-wrapper
ffmpeg-cli-wrapper copied to clipboard
how to impliment ffmpeg -i input.m4a -c:a copy -movflags +faststart output.m4a using wrapper
how to place moov atom to play mp4 video progressively.. how to apply qt-faststart into wrapper code?
my code:
[FFmpegBuilder builder = new FFmpegBuilder()
.setInput(input) // Filename, or a FFmpegProbeResult
.overrideOutputFiles(true) // Override the output if it exists
.addOutput(output) // Filename for the destination
.setFormat("mp4") // Format is inferred from filename, or can be set
// .setTargetSize(250_000) // Aim for a 250KB file
.disableSubtitle() // No subtiles
.setAudioChannels(1) // Mono audio
// .setAudioChannels(2)
.setAudioCodec("aac") // using the aac codec
.setAudioSampleRate(48_000) // at 48KHz
.setAudioBitRate(32768) // at 32 kbit/s
// .setAudioBitRate(126000)
.setVideoCodec("libx264") // Video using x264
.setVideoFrameRate(24, 1) // at 24 frames per second
.setVideoResolution(1280, 720) // at 640x480 resolution
.setVideoBitRate(762800)
.setStrict(FFmpegBuilder.Strict.EXPERIMENTAL) // Allow FFmpeg to use experimental specs
.done();
FFmpegExecutor executor = new FFmpegExecutor(ffmpeg, ffprobe);
executor.createJob(builder).run();
Did you find a solution?