The timeline classes are finally working correctly, and have the following features:

1) Layers (unlimited # of layers)
2) IN, OUT, and Position (time)
3) X, Y offset
4) Alpha
5) Rotation
6) Transparency + compositing + overlays
This commit is contained in:
Jonathan Thomas
2012-11-08 04:35:21 -06:00
parent 42d7565ba1
commit 5b77abdf27
8 changed files with 82 additions and 53 deletions

View File

@@ -442,23 +442,6 @@ void FFmpegWriter::WriteTrailer()
if (info.has_audio && audio_st)
write_audio_packets(true);
// Experimental: Repeat last frame many times, to pad
// the end of the video, to ensure the codec does not
// ignore the final frames.
// if (last_frame)
// {
// // Create black frame
// tr1::shared_ptr<Frame> padding_frame(new Frame(999999, last_frame->GetWidth(), last_frame->GetHeight(), "#000000", last_frame->GetAudioSamplesCount(), last_frame->GetAudioChannelsCount()));
// padding_frame->AddColor(last_frame->GetWidth(), last_frame->GetHeight(), "#000000");
//
// // Add the black frame many times
// for (int p = 0; p < 100; p++)
// WriteFrame(padding_frame);
//
// // Write these blank frames
// write_queued_frames();
// }
// Flush encoders (who sometimes hold on to frames)
flush_encoders();