NAME
nrkcache - Cache NRK Video on Demand broadcasts for offline viewing
VERSION
version 3.01
SYNOPSIS
nrkcache https://tv.nrk.no/program/DVFJ64001010
nrkcache -n -q2 DVFJ64001010
nrkcache --help|--version|--man
DESCRIPTION
The Video-on-Demand programs of the Norwegian Broadcasting Corporation (NRK) can be difficult to watch over a slow or unstable network connection. This script creates a local cache of such video programs in an MPEG-4 container, enabling users to watch without interruptions.
For network transport, this script requires YT-dlp. Norwegian subtitles and metadata are retrieved from NRK as well. The data is muxed into a single MP4 file, which requires FFmpeg.
OPTIONS
- --coreaudio
-
Recode the audio track using Apple Core Audio (
aac_at
). Useful to avoid audible artifacts during playback on certain Apple devices, such as ancient iPads. Only supported on the Mac. Experimental. - --help, -?
-
Display a help message and exit.
- --man
-
Print the manual page and exit.
- --nice, -n
-
Try to reduce the bandwidth used by the program. Giving this option multiple times may reduce the bandwidth more and more.
Reducing the bandwidth may be useful when the caching is done on a good network connection for later viewing, where it prevents the overuse of network and server resources. It may also be useful on a bad network connection to keep the remaining bandwidth available for other purposes.
- --no-nice
-
Prevent bandwidth reduction.
- --quality, -q
-
The format of the AV content to store in the cache. Usually the AV quality for NRK content ranges from 0 to 5.
If this option is not given, by default quality 3 is preferred when available, otherwise the highest numerical value available is chosen. AV content at quality 3 means "540p" or "qHD" resolution, which is similar to Standard Definition TV (though typically encoded at higher quality than standard TV). It may sound old-fashioned, but it saves valuable bandwidth, and for a lot of TV programs, this quality is actually plenty fine.
- --version
-
Display version information and exit.
SEE ALSO
For known limitations and prerequisites, see Video::NRK::Cache.
AUTHOR
Arne Johannessen <ajnn@cpan.org>
If you contact me by email, please make sure you include the word "Perl" in your subject header to help beat the spam filters.
COPYRIGHT AND LICENSE
Arne Johannessen has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work, you should not imply endorsement by the author.