nova-video-player / aos-AVP

NOVA opeN sOurce Video plAyer: main repository to build them all
Apache License 2.0
3.54k stars 202 forks source link

Video lag when downloading stuff on torrent. #746

Open okan35 opened 2 years ago

okan35 commented 2 years ago

Title it is basically. Nova lags when I have downloads or seeds on while vlc doesn't get affected from this. No idea how it does not lag on vlc though.

Pentaphon commented 2 years ago

@okan35 I do notice the same thing. Whenever I stream over SMB from my PC to my TV and I download a torrent on my PC and I'm not even close to saturating my connection, Nova stutters on the TV as if my PC is lagging but I'm running a fairly recent CPU with an SSD on a strong Wifi connection so my PC isn't being overwhelmed at all.

I think it might have to do with courville's comment here about how Nova is using a version of AgNO3/jcifs-ng that is currently limited to a transfer speed of 30MB/s which puts Nova's SMB speeds at a massive disadvantage.

https://github.com/nova-video-player/aos-AVP/issues/420#issuecomment-1315713440

He suggests trying SFTP instead of SMB to avoid the slowdowns until he finds a solution. I might have to test this myself.

okan35 commented 2 years ago

Hello, thank your for sharing the information. I might try this once. I found a simple looking tutorial. If you try before me please also share the result here.

https://www.youtube.com/watch?v=4swyomSB6wI&t=1

Pentaphon commented 2 years ago

Hello, thank your for sharing the information. I might try this once. I found a simple looking tutorial. If you try before me please also share the result here.

https://www.youtube.com/watch?v=4swyomSB6wI&t=1

I think this might be an issue for Windows and not Nova because I've seen this issue today as well when using SFTP for streaming. I'm using Windows 11 and torrenting slows down Nova playback on the Fire Stick 4K when I torrent to the Windows 11 PC I have my shares on so that might be a performance issue related to the OS I am using.

What OS are you running your shares on?

okan35 commented 2 years ago

I use windows 10 as my server on an not very amazing old laptop but it has been sufficient mostly except for 4k streams which I think it is actually stemming from my xiaomi mi box not handling it.

Pentaphon commented 2 years ago

I use windows 10 as my server on an not very amazing old laptop but it has been sufficient mostly except for 4k streams which I think it is actually stemming from my xiaomi mi box not handling it.

Well that could be due to any number of issues. The speed and type of storage of the laptop, the way you're streaming over WiFi or Ethernet, the speed of your router, the quality of your WiFi signal, etc.

I tried using VLC with torrents as you described and got the same slowdown with torrents on VLC so I personally don't think Nova is the issue here. You may have to do more testing on your side to see what the root cause is and so do I.

okan35 commented 2 years ago

For it is always the same case. When a lag happens on nova I go check VLC and I don't see the same lagging issue on VLC which is strange.

Pentaphon commented 1 year ago

@okan35 switching to SMBJ on the new pre-release totally fixed this issue. The old SMB library was too slow but this new library is amazingly fast.

@courville you can definitely close this issue which wasn't really that much of a Nova issue anyway.

okan35 commented 1 year ago

How did you add the shortcut ? I got to network shortcuts and choose smbj and then add them same address for one of the folders which is like smb//xxx.xxx.xx.xx/Shared/FILMS

Actually now I did and it works but it didn't help my 4k issue which I just hoped it would fix but that might bcoz of my old laptop which has usb2.0

Pentaphon commented 1 year ago

It depends on how fast your PC and network is but it totally worked for me. I will never go back to the old smb library. This new one is what Nova should have had all along.