Getting TVH to prefer HD broadcasts, over SD.
Added by A L about 5 years ago
Hello.
Rather than schedule recordings on a particular channel, I have been removing this for maximum flexibility.
I then set (under the stream tab) my preference for recording HD.
I have noticed that only a handful of my upcoming recordings are going to take place on an HD channel - the vast majority are to take place on SD channels, despite their being available on HD channels.
Is this expected?
I have four tuners available, so the chance of a clash is minimal.
In particular, I note that Channel4 HD is not being used at all any recording - everything seems to be scheduled for Channel4 +1.
Replies (6)
RE: Getting TVH to prefer HD broadcasts, over SD. - Added by Em Smith about 5 years ago
If you did the upgrade you mentioned elsewhere then there is a "complex scheduling" tickbox in the dvr profile. This uses more CPU but attempts to find a "better" timeslot. It tries to avoid recording on the +1 channels and will try and record on HD channels since that is your preference in the stream tab. It would only affect new schedules, so toggle the autorec rules to force them to re-schedule.
More details here:
https://github.com/tvheadend/tvheadend/commit/027377c53a08c6e713653d66f932a1217ffabde8
If it is working then the logfile will have entries stating "Replacing existing dvr recording".
RE: Getting TVH to prefer HD broadcasts, over SD. - Added by A L about 5 years ago
Hi Em.
Thanks very much for confirming that - complex scheduling seems to be like an amazing upgrade.
I have been having a number of issues with 4.2, recently. In particular, channels on the Channel 5 network keep seem to be disappearing from my bouquet.
I am hoping that 4.3 will solve all my outstanding issues.
Just a few quick issues, if I may:
1. Is it advisable (or indeed possible) to upgrade from 4.2 to 4.3 or should I wipe everything and start from scratch?
2. I am still using your amazing SD grabber - does this work with 4.3 in exactly the same way?
RE: Getting TVH to prefer HD broadcasts, over SD. - Added by Em Smith about 5 years ago
It should upgrade in situ.
However you won't be able to downgrade since some of the data in the recording info files has changed in later versions so isn't backward compatible. It should take an automatic backup on upgrade. I'd probably shutdown tvh and take a manual backup so that if you decide to downgrade you only lose the recordings made since the upgrade.
The grabber will work with 4.3. If you also install the tv_meta_az_sd.py (from the grabber's github) then you will also get SD posters/fanart for new recordings (might need tickboxes in the recording profiles).
RE: Getting TVH to prefer HD broadcasts, over SD. - Added by A L about 5 years ago
Excellent - I shall give it a whirl tonight.
Just once quick final thing about upgrading, if that is OK:
If, when logging on via SSH, do I replace
echo "deb http://apt.tvheadend.org/stable raspbian-stretch main" | sudo tee -a /etc/apt/sources.list.d/tvheadend.list
with
echo "deb http://apt.tvheadend.org/unstable raspbian-stretch main" | sudo tee -a /etc/apt/sources.list.d/tvheadend.list
or can I keep both?
I seem to remember something about if you have both stable and unstable present, TVHeadend would upgrade to whichever version was the highest.
RE: Getting TVH to prefer HD broadcasts, over SD. - Added by Em Smith about 5 years ago
Unless you do some advanced configuration (such as pinning specific versions) then it will pick the highest number, so 4.3 will always be installed in preference to any "newer" 4.2 release. So, if 4.2.x had a patch release, you would still be on 4.3.y since the version number is higher, even though the "modify timestamp" is lower.
However, I'd remove the repository since no point refreshing a repository you never use and old repositories have a (minimal) risk of becoming an attack vector.
Based on your commands, I'd remove the "-a" (append) so that it just overwrites the file.
RE: Getting TVH to prefer HD broadcasts, over SD. - Added by A L about 5 years ago
Thanks ever so much - 4.3 is absolutely brilliant and completely stable.
What an amazing upgrade from 4.2. I have still yet to tinker with all the options but the preference of HD channels and the ability to specify seasons is something that makes all the difference.
I shall makes sure to make a donation.
One other issue that remains unsolved is my losing channels on my bouquet - I shall start a new thread for this, so as not to muddy the waters.
Thanks again.