Closed GoogleCodeExporter closed 9 years ago
oh i almost forgot , my OS is win 8 and here's the code
FrameGrabber grabber1 = new FFmpegFrameGrabber("Fifteen.mp4");
grabber1.start();
FrameGrabber grabber2 = new FFmpegFrameGrabber("Six.mp4");
grabber2.start();
FrameRecorder recorder = new FFmpegFrameRecorder(
"output.mp4",grabber1.getImageWidth(),grabber1.getImageHeight());
try {
recorder.start();
Frame frame;
while ((frame = grabber1.grabFrame()) != null) {
recorder.record(frame);
}
while ((frame = grabber2.grabFrame()) != null) {
recorder.record(frame);
}
recorder.stop();
grabber2.stop();
grabber1.stop();
} catch (com.googlecode.javacv.FrameRecorder.Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Original comment by Moh.Na...@gmail.com
on 11 Apr 2014 at 3:17
Please try to include the JAR files ending with "Windows-x86.jar" as well.
Original comment by samuel.a...@gmail.com
on 11 Apr 2014 at 11:07
i'v included 3 Jars of x86 and it finally works!! , thanks bro i was really
desperate :)
Original comment by Moh.Na...@gmail.com
on 13 Apr 2014 at 4:33
sorry,one last question. can i merge more than two videos with it ?
Original comment by Moh.Na...@gmail.com
on 13 Apr 2014 at 4:53
Good to hear that!
To merge a third video, add "FrameGrabber grabber3 = new
FFmpegFrameGrabber(...)", and a fourth, etc. We can merge as many videos as one
wishes.
Please ask your questions on the mailing list next time if possible, thank you!
Original comment by samuel.a...@gmail.com
on 29 Apr 2014 at 1:47
Original issue reported on code.google.com by
Moh.Na...@gmail.com
on 11 Apr 2014 at 3:13