#
Theora encoder
The Theora encoder is used to encode video files in WebM format.
#
Block info
Name: TheoraEncoderBlock.
#
The sample pipeline
graph LR; UniversalSourceBlock-->TheoraEncoderBlock; TheoraEncoderBlock-->WebMSinkBlock;
#
Sample code
var pipeline = new MediaBlocksPipeline();
var filename = "test.mp4";
var fileSource = new UniversalSourceBlock(await UniversalSourceSettings.CreateAsync(new Uri(filename)));
var theoraEncoderBlock = new TheoraEncoderBlock(new TheoraEncoderSettings());
pipeline.Connect(fileSource.VideoOutput, theoraEncoderBlock.Input);
var webmSinkBlock = new WebMSinkBlock(new WebMSinkSettings(@"output.webm"));
pipeline.Connect(theoraEncoderBlock.Output, webmSinkBlock.CreateNewInput(MediaBlockPadMediaType.Video));
await pipeline.StartAsync();
#
Platforms
Windows, macOS, Linux, iOS, Android.