-
Notifications
You must be signed in to change notification settings - Fork 49
I have been unable to get mfxh264enc to work on Windows #169
Comments
I think there's a bug in the code for these plugins. If you comment/remove the following from gstmfxencoder.c:
Then the encoder works just fine for me. However, leaving it in, I get the errors above. Has this feature been deprecated in later versions of the SDK and perhaps this code isn't taking that into account? My SDK version is 1.27. It looks like this code is checking for 1.25 and greater. |
@kwende good catch, this code I believe works only for Linux and not Windows, this is the multi-frame encode option for Skylake platforms. |
@ishmael1985 , I can do a fix and make a pull request if you'd like. Also: I've got another problem I'm going to open an issue about today, perhaps momentarily. I'm heavily using this on Windows and so possibly encountering things others are not. |
I just ran into this as well, removing the code you mentioned did indeed fix it. Thanks! @kwende, what else are you running into? |
Guess I will clean this up. |
Update: I'm on Windows 10, 64-bit. The processor is an Intel Core i7-6700K @ 4Ghz.
I successfully built and installed the gstreamer plugins following the instructions laid out here. When I try any of the examples from https://github.com/intel/gstreamer-media-SDK/blob/topic_linux_and_window/README.USAGE that involve mfxh264enc, however, they fail. I'm able to get the following to play just fine:
.\gst-launch-1.0.exe videotestsrc ! mfxsink
And I'm able to get the following (and many other non-Media-SDK-based things) to work (notice how I'm not using media sdk):
.\gst-launch-1.0.exe videotestsrc is-live=true ! openh264enc ! rtph264pay ! rtph264depay ! decodebin ! autovideosink
Replacing the encoder in the above command like this:
.\gst-launch-1.0.exe videotestsrc is-live=true ! mfxh264enc ! rtph264pay ! rtph264depay ! decodebin ! autovideosink
Fails. I notice the following when I set the GST_DEBUG level to 4 or higher:
This error presents itself time and time again (the same output). For example, if I try a sample from the Wiki (adapted to work for videotestsrc):
.\gst-launch-1.0.exe videotestsrc ! mfxh264enc ! 'video/x-h264, stream-format=byte-stream, profile=baseline' ! rtph264pay pt=96 ! udpsink port=3001
Same or similar output is noticed, and it fails:
Any thoughts? We would really like to use this framework to optimize gstreamer, but we are using Windows and thus far have been unable to get the encoder we need to work.
The text was updated successfully, but these errors were encountered: