You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed a huge regression with PTS, that caused all sorts of issues with encoded videos, especially webm.
This commit is contained in:
25
src/Main.cpp
25
src/Main.cpp
@@ -34,22 +34,27 @@ int main()
|
||||
w.DisplayInfo();
|
||||
|
||||
// Set options
|
||||
w.SetVideoOptions(true, "libvpx", Fraction(24, 1), 640, 360, Fraction(1,1), false, false, 384000);
|
||||
w.SetAudioOptions(true, "libvorbis", 44100, 2, 128000);
|
||||
w.SetVideoOptions(true, "libvpx", Fraction(25, 1), 640, 360, Fraction(1,1), false, false, 2000000);
|
||||
|
||||
// Prepare Streams
|
||||
w.PrepareStreams();
|
||||
|
||||
// Set Options
|
||||
//w.SetOption(VIDEO_STREAM, "quality", "good");
|
||||
w.SetOption(VIDEO_STREAM, "g", "120");
|
||||
w.SetOption(VIDEO_STREAM, "qmin", "10");
|
||||
w.SetOption(VIDEO_STREAM, "qmax", "42");
|
||||
w.SetOption(VIDEO_STREAM, "profile", "0");
|
||||
w.SetOption(VIDEO_STREAM, "level", "216");
|
||||
w.SetOption(VIDEO_STREAM, "rc_lookahead", "16");
|
||||
//w.SetOption(VIDEO_STREAM, "max_b_frames", "2");
|
||||
//w.SetOption(VIDEO_STREAM, "mb_decision", "2");
|
||||
w.SetOption(VIDEO_STREAM, "quality", "good");
|
||||
// w.SetOption(VIDEO_STREAM, "g", "120");
|
||||
// w.SetOption(VIDEO_STREAM, "qmin", "11");
|
||||
// w.SetOption(VIDEO_STREAM, "qmax", "51");
|
||||
// w.SetOption(VIDEO_STREAM, "profile", "0");
|
||||
// w.SetOption(VIDEO_STREAM, "speed", "0");
|
||||
// w.SetOption(VIDEO_STREAM, "level", "216");
|
||||
// w.SetOption(VIDEO_STREAM, "rc_lookahead", "16");
|
||||
// w.SetOption(VIDEO_STREAM, "rc_min_rate", "100000");
|
||||
// w.SetOption(VIDEO_STREAM, "rc_max_rate", "24000000");
|
||||
// w.SetOption(VIDEO_STREAM, "slices", "4");
|
||||
// w.SetOption(VIDEO_STREAM, "arnr_max_frames", "7");
|
||||
// w.SetOption(VIDEO_STREAM, "arnr_strength", "5");
|
||||
// w.SetOption(VIDEO_STREAM, "arnr_type", "3");
|
||||
|
||||
// Write header
|
||||
w.WriteHeader();
|
||||
|
||||
Reference in New Issue
Block a user