You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Cleaned up the encoder code quite a bit, optimized lots of things, and fixed tons of memory leaks.
This commit is contained in:
@@ -34,16 +34,19 @@ int main()
|
||||
w.DisplayInfo();
|
||||
|
||||
// Set options
|
||||
w.SetVideoOptions(true, "libvpx", Fraction(24, 1), 300, 240, Fraction(1,1), false, false, 384000);
|
||||
w.SetVideoOptions(true, "libvpx", Fraction(24, 1), 350, 200, Fraction(1,1), false, false, 384000);
|
||||
w.SetAudioOptions(true, "libvorbis", 44100, 2, 128000);
|
||||
|
||||
// Write header
|
||||
w.WriteHeader();
|
||||
|
||||
// Output stream info
|
||||
w.OutputStreamInfo();
|
||||
|
||||
// Set Options
|
||||
//w.SetOption(VIDEO_STREAM, "quality", "good");
|
||||
|
||||
for (int frame = 300; frame <= 324; frame++)
|
||||
for (int frame = 1; frame <= 1000; frame++)
|
||||
{
|
||||
Frame f = r.GetFrame(frame);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user