Can't enable hardware transcoder

I've added the user to the video group. Here is my processor, it supports QuickSync.

http://ark.intel.com/products/50067/Intel-Core-i7-2720QM-Processor-6M-Cache-up-to-3_30-GHz

$ ls -alh /dev/dri

Total 0
drwxr-xr-x 2 root root 140 May 23 22:03 .
drwxr-xr-x 20 root root 4.7K May 23 22:21 ..
crw-rw----+ 1 root video 226, 0 May 23 22:03 card0
crw-rw----+ 1 root video 226, 1 May 23 22:03 card1
crw-rw---- 1 root video 226, 64 May 23 22:03 controlD64
crw-rw----+ 1 root video 226, 128 May 23 22:03 renderD128
crw-rw----+ 1 root video 226, 129 May 23 22:03 renderD129

What OS?

Can you copy/paste the OS and CPU from web ui settings?

OS
Dell Inc. Latitude E6520
linux ubuntu
16.04 (kernel: 4.8.0-36-generic)
CPU
8 cores / IntelĀ® Coreā„¢ i7-2720QM CPU @ 2.20GHz
load averages: 3.26 2.79 2.17
RAM
4.02 GB
54.3% free

SSH in and run ā€œidā€ and make sure it says you are in the video group

44(video),46(plugdev),113(lpadmin),128(sambashare)

thanks for your help btw.

Looks normalā€¦ try a reboot perhaps.

Restart didnā€™t resolve it. Something is wrongā€¦ this is better hardware than what I was running and this thing can barely stream at 240p.

2017/05/24 00:42:03 [TNR] Opened connection to 1047AEBE for ch11.1
2017/05/24 00:42:03 [HLS] Starting transcoder for channel 11.1 (encoder=libx264, resolution=360, deinterlacer=blend, bitrate=720)
2017/05/24 00:42:26 [WRN] Buffer for 1047AEBE ch11.1 is more than 50% full (clients=1, len=16779000)
2017/05/24 00:42:33 [HLS] Stopping transcoder session 1047AEBE-ch11.1 @ 18.7187s
2017/05/24 00:42:33 [TNR] Closed connection to 1047AEBE for ch11.1
av_interleaved_write_frame(): No such file or directory

log data

Yea that seems offā€¦

Maybe check the bios settings and make sure the processor isnā€™t in energy saving mode?

You are a genius and I am a complete and total idiot. Wasnā€™t a settingā€¦ it was a power supply. I got the warning as soon as I booted into the bios. I didnā€™t pay attention when I swapped out the laptops and I had left the 65w adapter in there when it needed a 90w. Bios warned that the system performance had been adjusted to accommodate. I still canā€™t enable the hardware transcoder but software seems to be performing just fine. Do you think I should try an uninstall and reinstall? Do you know if Channels makes any determinations on install?

1 Like

Reinstall wonā€™t change anythingā€¦

Can you run the command from Can't seem to enable hardware transcoding again and see what it says?

$ ./channels-dvr/latest/ffmpeg -hide_banner -vaapi_device /dev/dri/renderD128 -f lavfi -t 0.1 -i color=black:640x480 -f null -y /dev/null
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[AVHWDeviceContext @ 0x2e6e000] Failed to initialise VAAPI connection: -1 (unknown libva error).
Segmentation fault (core dumped)

When I switched to D129 (which I have no idea what Iā€™m doingā€¦) I get thisā€¦

$ ./channels-dvr/latest/ffmpeg -hide_banner -vaapi_device /dev/dri/renderD129 -f lavfi -t 0.1 -i color=black:640x480 -f null -y /dev/null
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: va_openDriver() returns 0
Input #0, lavfi, from ā€˜color=black:640x480ā€™:
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, null, to ā€˜/dev/nullā€™:
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: wrapped_avframe, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc57.89.100 wrapped_avframe
frame= 3 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.12 bitrate=N/A speed=2.98x
video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Very interestingā€¦ there are two cards somehow and only one works.

I think my install is FUBAR because of my mistake with the power supply.

Seems unlikelyā€¦ I think ubuntu discovers the devices on every reboot.

Either way Iā€™ve fixed this for the next DVR build so it will try to use renderD129 if it exists.

EPIC! Thanks man!

v2017.05.24.1509 is out with the fix. Click ā€œcheck for upgradeā€ and it should work now.

Version
2017.05.24.1509
Up to date!
Uptimea minute
Started Today at 10:46 AM

Still no hardware option. I think something is messed with my install.

Ah, my change was wrongā€¦ sorry. Will roll another build shortly.