Fixed a huge bug where the FFmpegWriter was not scaling colors to 8 bit, and that would crash on certain colors being used in an image. Also, added a new, experimental waveform visualization to the encoder.

This commit is contained in:
Jonathan Thomas
2012-08-22 17:31:12 -05:00
parent b4873d566f
commit 1ec7128a09
7 changed files with 143 additions and 64 deletions

View File

@@ -28,6 +28,7 @@ void FileWriterBase::InitFileInfo()
info.channels = 0;
info.audio_stream_index = -1;
info.audio_timebase = Fraction();
info.visualize = false;
}
// Display file information
@@ -65,6 +66,7 @@ void FileWriterBase::DisplayInfo() {
cout << "--> # of Channels: " << info.channels << endl;
cout << "--> Audio Stream Index: " << info.audio_stream_index << endl;
cout << "--> Audio Timebase: " << info.audio_timebase.ToDouble() << " (" << info.audio_timebase.num << "/" << info.audio_timebase.den << ")" << endl;
cout << "--> Visualize Waveform: " << info.visualize << endl;
cout << "----------------------------" << endl;
}