DNxHD encoder
DNxHD (Digital Nonlinear Extensible High Definition)
: A video codec developed by Avid Technology, Inc., designed for high-quality, compressed video recording in formats suitable for editing. It's widely used in professional film and video production, as it provides a good balance of quality and file size, facilitating efficient editing workflows.
Block info
Name: DNxHDEncoderBlock.
Pin direction | Media type | Pins count |
---|---|---|
Input | Y42B, I422_10LE, Y444_10LE, GBR_10LE | 1 |
Output | video/x-dnxhd | 1 |
The sample pipeline
Sample code
var pipeline = new MediaBlocksPipeline();
var filename = "test.mp4";
var fileSource = new UniversalSourceBlock(await UniversalSourceSettings.CreateAsync(new Uri(filename)));
var videoEncoderBlock = new DNxHDEncoderBlock(new DNxHDEncoderSettings(DNxHDEncoderFormat.Frame_1920x1080p_175Mbps_yuv422p10));
pipeline.Connect(fileSource.VideoOutput, videoEncoderBlock.Input);
var sinkBlock = new MXFSinkBlock(new MXFSinkSettings(@"output.mxf", MXFVideoStreamType.DNxHD, MXFAudioStreamType.None));
pipeline.Connect(videoEncoderBlock.Output, sinkBlock.CreateNewInput(MediaBlockPadMediaType.Video));
await pipeline.StartAsync();
Platforms
Windows, macOS, Linux, iOS, Android.