Hardware encoding still seems to be broken

30 views
Skip to first unread message

Nick Teeter

unread,
Apr 22, 2016, 12:06:46 PM4/22/16
to AVBlocks
I did not experience this error with 1.22, but I do experience it with 1.25, 1.26, and now 2.0.

See attached screenshot.  Simply trying to convert Wildlife.wmv to Wildlife.mp4:

 MediaInfo mediaInfo = new MediaInfo { InputFile = file };

                if (mediaInfo.Open())
                {
                    // Open a new transcoder
                    using (Transcoder transcoder = new Transcoder())
                    {
                        // Set the input file
                        MediaSocket input = MediaSocket.FromMediaInfo(mediaInfo);
                        transcoder.Inputs.Add(input);

                        // Set the output file
                        MediaSocket output = MediaSocket.FromPreset(Preset.Video.Generic.MP4.Base_H264_AAC);
                        output.File = outputFile;

                            // Force re-encoding
                            output.Pins[0].Params.Add(Param.ReEncode, Use.On);

                            // Enable hardware acceleration
                            output.Pins[0].Params.Add(Param.HardwareEncoder, HardwareEncoder.Auto);

                            (output.Pins[0].StreamInfo as VideoStreamInfo).FrameRate = 30.0;

                        transcoder.Outputs.Add(output);

                        if (transcoder.Open())
                        {
                            transcoder.Run();
                            transcoder.Close();
                        }
                    }
                }
HardwareEncodeError.png

VK

unread,
Apr 22, 2016, 1:14:54 PM4/22/16
to AVBlocks
Can you post hardware details? Also OS version and driver version.

You can use:
Intel Processor Identification Utility (https://downloadcenter.intel.com/download/7838)

Nick Teeter

unread,
Apr 22, 2016, 1:38:14 PM4/22/16
to avbl...@googlegroups.com
Windows 7 Enterprise SP1
HP EliteBook 2570p
Intel Core i5-3360M 2.8 GHz
Intel HD Graphics 4000, 10.18.10.4226

VK

unread,
Apr 25, 2016, 3:50:29 PM4/25/16
to AVBlocks
We are fixing this in 2.1.

AVBlocks

unread,
May 2, 2016, 10:45:06 AM5/2/16
to AVBlocks
The issue turned out to be not so much with the i5-3360M, but with Windows 7. AVBlocks currently requires Direct X 11.1 in order to use Intel's hardware acceleration. This is being fixed now to work with older DirectX API.

VK

unread,
May 23, 2016, 3:47:32 PM5/23/16
to AVBlocks
Fixed in AVBlocks 2.1.
Reply all
Reply to author
Forward
0 new messages