You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
initial chunck readers/writers
This commit is contained in:
10
src/Main.cpp
10
src/Main.cpp
@@ -18,6 +18,16 @@ void FrameReady(int number)
|
||||
int main()
|
||||
{
|
||||
|
||||
// Chunk writer example
|
||||
FFmpegReader *r1 = new FFmpegReader("/home/jonathan/Videos/sintel_trailer-720p.mp4");
|
||||
r1->Open();
|
||||
ChunkWriter cw(r1, "");
|
||||
cw.WriteFrame(r1, 1, 600);
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
|
||||
TextReader r(720, 480, 10, 10, GRAVITY_TOP_RIGHT, "What's Up!", "Courier", 30, "Blue", "Black");
|
||||
r.Open();
|
||||
tr1::shared_ptr<Frame> f = r.GetFrame(1);
|
||||
|
||||
Reference in New Issue
Block a user