Transcoding failing on Windows (device failed -17)

Interesting. Chrome Desktop is fine if you want to send me the details, I can try to see if your computer acts the same way as the other one.

Did you learn anything from mine?

My windows computer has an older J1800 CPU, and the driver version is only v10.18.10.4425. I couldn’t find any updates to it. My computer doesn’t have this problem.

Both @Foz86 and @JMcGuire are using driver v22.20.16.4771, and both of them are seeing the same problem.

@uspino and @Ryboflavins Can you check and post the version of the Intel Graphics driver installed on your system?

Oh no! I switched box to Ubuntu (I use the transcoder a fair bit). I’ve got some other intel based hardware I can throw Windows on though, I’ll get back to ya ASAP!

I’ve got a Nuc i3 4010u with a 2016 driver I can test if needed

is there an easy way to go back to an older driver?

Here you go (i7-5557U NUC):

Driver Date: 9/29/2016
Version: 20.19.15.4531

Updated to 3/8/2017, latest 20.19.15.4624 drivers, same behavior.

Also, I used to get almost instant streaming when accessing remotely, selecting “Original” on Internet Streaming Quality. Now it fails pretty much all the time, I think it’s actually trying to encode instead of remux (ffmpeg process goes up to 50% CPU on an i7). This is what I get (again, trying to stream on full, original MPEG2 quality on iOS):

017/10/04 02:24:45 [TNR] Opened connection to 132286F4 for ch665
2017/10/04 02:24:45 [HLS] Starting transcoder for channel 665 (encoder=h264_qsv, resolution=0, deinterlacer=blend, bitrate=10000)
[ac3 @ 0000000000622240] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 000000000068ec00] Queue input is backward in time
[hls @ 0000000002d2e620] Non-monotonous DTS in output stream 0:1; previous: 4800, current: 3840; changing to 4801. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0000000002db8a60] Error during encoding: device failed (-17)
Video encoding failed
[aac @ 000000000068ec00] 2 frames left in the queue on closing
2017/10/04 02:24:55 [HLS] Stopping transcoder session ANY-ch665 @ 0s
2017/10/04 02:24:55 [TNR] Closed connection to 132286F4 for ch665

Hi there - I have a similar device failed -17 issue when trying to watch a recording through the web UI (I have an HDHR Prime). Note that some recordings it works fine, others I get the error. For the ones I get an error, I can view them just fine in VLC, etc, so something seems to be an issue with the transcoding. I can consistently replicate the failure on several recordings.

I have an Intel i3-4130 with driver version 20.19.15.4531 (dated 9/29/2016).

Please post your windows version too.

Exact same behavior as mine

Windows 10 Pro 64-bit

Also, I just updated the intel drivers to the latest using the intel driver update utility, and still the same issue (the latest drivers I have are 20.19.15.4703 dated 6/9/2017)

Good news everyone! This issue is finally fixed.

Run this command in powershell to upgrade, and let me know how the new version works for you.

Invoke-WebRequest -UseBasicParsing -Method PUT http://127.0.0.1:8089/updater/check/2017.10.11.2148

2 Likes

The fixed updated version works great for me… my transcoding issues are fixed! Curious… what was the issue? Great work!

1 Like

Turns out the Intel API for QSV is pretty buggy. There are lots of reports online of random failures and hangs.

I switched us to a different API offered by Windows. It uses the same QuickSync CPU features under the hood, but is better maintained by Microsoft and more stable.

Works really well now, 50% CPU stress reduction when hardware is selected. I’m assuming using the new API does not allow to stream Closed Captions? (CC logo lights up but no text is shown)

Yea same story as the rest of the hardware encoders.

Wow!!! Really happy about this! I knew you would find a fix! Now I can say that my 150$ mini PC from Amazon does make a great DVR server! Works well at home and away!

It even works great at 1080p.

I did a quick test this morning, I will be testing more extensively tonight.

Amazing work Aman. Thanks a lot.

1 Like

See: