Prioritize TV traffic

I'm watching a TV site, let's call it tv.com for instance. When it's opened and at the same time some file is downloading, a video starts freezing. As far as I understand, TV traffic should be prioritized to avoid this.
I've added FWD DNS entry for TV domain, and it adds streaming IPs to address list, let's call it "TVaddresses". After that I've added 2 mangle rules. One marks connections based on "TVaddresses" list, another one marks packets of previously marked connections.
Next I've tried to change priority of marked packets to 1 in Mangle and also tried to add a queue tree that also changes priority of marked packets to 1. But none of these settings worked, TV freezes as before.

I never worked with packets priority before, so probably something is wrong in my attempts. Can someone help?

/ip dns static
add address-list=TVaddresses disabled=no name=tv.com ttl=1d type=FWD

/ip firewall mangle
add action=mark-connection chain=prerouting new-connection-mark=HighPriority \
    src-address-list=TVaddresses
add action=mark-packet chain=prerouting connection-mark=HighPriority new-packet-mark=\
    HighPriority
add action=set-priority chain=prerouting new-priority=1 packet-mark=HighPriority

/queue tree
add name=queue1 packet-mark=HighPriority parent=global priority=1 queue=ethernet-default

It's a very complex issue, but, for example, if you increase the priority, fine.

But the question is: Compared to what?

If you increase the priority, but the system doesn't know the maximum bandwidth allocated for service x, y, and z, what does it prioritize over what?

I just wanted to point this out to you, it's very complex to explain and I'm NOT an expert,
otherwise I would have answered you directly.

Hi, do not bother with scripts. Use QOS CAKE it will prioritize video automaticaly. If you need help with settings use AI - Gemini.

Use fq-codel or cake. simple queue or queue tree.

Since when does a TV site, not stream information.? Downloading is something else.

Probably it should increase priority of marked packets compared to all other packets :man_shrugging:
I'm not an expert either, so can't say for sure.

@anav all rules are for streaming domain of course, not a webpage. File downloading takes all throughput, so TV doesn't work ok.

I will take a look into fq-codel/cake.