Will graphic card help with streaming using a weak cpu?

*nix specific usage questions
John Sam
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Feb 2022 00:19

Will graphic card help with streaming using a weak cpu?

Postby John Sam » 18 Jun 2022 17:18

Hi

I have a nas using this cpu
Intel® Atom® Processor C3758

On this board
https://www.supermicro.com/en/products/ ... i-8c-hln4f

Streaming using vlc is working for 1080p however it is slow when zapping between 5 mp4 files that I stream

The question is. Will a graphic card help to make streaming work smoother?

I want to buy this
Gigabyte GeForce GTX 1660 Ti OC 6G’?

This graphic card support encoding..

By the way. I am using debian . Vlc command line. No Ui

JuanPabloCuervo
Blank Cone
Blank Cone
Posts: 42
Joined: 25 Jun 2010 18:27

Re: Will graphic card help with streaming using a weak cpu?

Postby JuanPabloCuervo » 18 Jun 2022 23:19

Video cards have h264 HW Accelerated Encoder & Decoder...
Intel 4th gen does Not work well,
needs VDPAU drivers to convert VAAPI to OpenGL,
some apps dont work well with OpenGL like Telegram Desktop,
others work Ok, Like Firefox,

it depends on the software how well is implemented...
Nvidia has several drivers for Kubuntu, Propietary and Open source X.org
propietary work best for GT 740.

Usually HW accelerated h264 video Encoder & Decoder is similar in HighEnd and Lowend GT 1030,
you need to test.
Later gens also have h265,
h265 in older HW does Not decode accelerated, and requires high cpu.

Test the codec, different versions... some work, some dont.

Anyway... that CPU does Not have Inegrated Graphics
https://www.cpu-world.com/CPUs/Atom/Int ... C3758.html

ASPEED AST2400 BMC
is very basic, more basic than intel iHD gpu.
https://www.aspeedtech.com/support_driver/

John Sam
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Feb 2022 00:19

Re: Will graphic card help with streaming using a weak cpu?

Postby John Sam » 19 Jun 2022 20:34

Hi

I use debian server only with vlc. No other software
And i need only h264 video codec
And only 1080p max
Do you think graphical card will improve performance?

Will vlc offload encoding to graphical card and and not to cpu?

Please note that i am using vlc command line only without a gui. Will command line by default use graphical card or is there some argument i need to pass to vlc command line?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Will graphic card help with streaming using a weak cpu?

Postby Rémi Denis-Courmont » 20 Jun 2022 07:39

If the hardware encoder has OS drivers and the corresponding VLC support plugin enabled, yes, otherwise no.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

John Sam
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Feb 2022 00:19

Re: Will graphic card help with streaming using a weak cpu?

Postby John Sam » 20 Jun 2022 10:06

Hi

I guess with hardware your mean the graphic card

I want to buy this.

Gigabyte GeForce GTX 1660 Ti OC 6G’

How to find out if this has the necessary drivers?


I am new to building an own server

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Will graphic card help with streaming using a weak cpu?

Postby Rémi Denis-Courmont » 20 Jun 2022 13:56

If you install the NVENC drivers and VLC plugin, it should be possible. Don't ask me how though.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

John Sam
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Feb 2022 00:19

Re: Will graphic card help with streaming using a weak cpu?

Postby John Sam » 22 Jun 2022 01:13

Hi

do you mean with vlc plugin this package "vlc-plugin-qt" ?

root@pve:~# sudo apt install vlc-plugin-qt
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgdk-pixbuf-xlib-2.0-0 libgdk-pixbuf2.0-0 libnotify4 libvncclient1 libxcb-composite0 notification-daemon vlc-l10n vlc-plugin-access-extra vlc-plugin-notify vlc-plugin-samba
vlc-plugin-video-splitter vlc-plugin-visualization
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libvlc-bin libvlc5 libvlccore9 vlc vlc-bin vlc-data vlc-plugin-base vlc-plugin-skins2 vlc-plugin-video-output
Suggested packages:
vlc-plugin-fluidsynth vlc-plugin-jack vlc-plugin-svg libdvdcss2
Recommended packages:
vlc-l10n vlc-plugin-access-extra vlc-plugin-notify vlc-plugin-samba vlc-plugin-video-splitter vlc-plugin-visualization
The following packages will be upgraded:
libvlc-bin libvlc5 libvlccore9 vlc vlc-bin vlc-data vlc-plugin-base vlc-plugin-qt vlc-plugin-skins2 vlc-plugin-video-output
10 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
Need to get 6,614 kB of archives.
After this operation, 133 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y



I have followed this istructions.
https://www.linuxcapable.com/how-to-ins ... -bullseye/

but I don't think it is working yet.
root@pve:~# nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

this is weired because driver are installed.
root@pve:~# sudo apt install nvidia-driver linux-image-amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nvidia-driver is already the newest version (460.91.03-1).
linux-image-amd64 is already the newest version (5.10.120-1).
0 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.



I did a reboot
and secure boot is disabled in the BIOS

any idea how to make VLC command line, use by graphic card ?


root@pve:~# lspci -nn | egrep -i "3d|display|vga"
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660 Ti] [10de:2182] (rev a1)
04:00.0 VGA compatible controller [0300]: ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000] (rev 30)

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Will graphic card help with streaming using a weak cpu?

Postby Rémi Denis-Courmont » 22 Jun 2022 11:23

No, I don't mean Qt when I write NVENC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

John Sam
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Feb 2022 00:19

Re: Will graphic card help with streaming using a weak cpu?

Postby John Sam » 22 Jun 2022 20:19

hi,

thanks. as you maybe have noticed, I am new. and it is not easy

I read this : If you install the 2) NVENC drivers and 2) VLC plugin, it should be possible. Don't ask me how though.
I am talking about point 2. VLC plugin . what is this ?is this kind of another binary that you need to run next to vlc.
I have installed only VLC using this command :

root@pve:~# apt install vlc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
vlc is already the newest version (3.0.17.4-0+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded


By the way. I think drivers now installed
i downloaded from here:
https://www.nvidia.com/content/DriverDo ... type=TITAN

running this command: bash NVIDIA-Linux-x86_64-515.48.07.run --kernel-source-path /usr/src/linux-headers-5.11.22-5-pve/ --glvnd-egl-config-path /usr/include/glvnd/
(from here https://forum.proxmox.com/threads/vgpu- ... nel.63255/)

I can see now ouput.

root@pve:~# nvidia-smi
Wed Jun 22 20:11:37 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.48.07 Driver Version: 515.48.07 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:02:00.0 Off | N/A |
| 36% 39C P0 19W / 120W | 0MiB / 6144MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+


Only thing left is VLC not using this GPU. how to make VLC use GPU ?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Will graphic card help with streaming using a weak cpu?

Postby unidan » 22 Jun 2022 20:29

Hi, we don't have an nvenc encoder upstream yet unfortunately so VLC cannot use it for encoding. It can use it for decoding though.

John Sam
Blank Cone
Blank Cone
Posts: 11
Joined: 03 Feb 2022 00:19

Re: Will graphic card help with streaming using a weak cpu?

Postby John Sam » 22 Jun 2022 23:28

hi,

thanks I see

it is only GPU decoding. https://wiki.videolan.org/VLC_GPU_Decoding/
Not encodinig.
I will try to use the graphic card for gaming and stream to my living room. Hopefullly NAS can handle.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests