Cleaned up the encoder code quite a bit, optimized lots of things, and fixed tons of memory leaks.

This commit is contained in:
Jonathan Thomas
2012-08-04 01:11:12 -05:00
parent 1f1540f7b6
commit 41fe027f6d
4 changed files with 115 additions and 141 deletions

View File

@@ -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);