npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@thedave42/f1tv-dl

v0.25.18-alpha.0

Published

Watch videos from f1tv locally

Downloads

22

Readme

f1tv-dl

Watch videos locally from f1tv website

Note: a valid username/password is required. The app will save your session so the they will only be required again when your session has expried.

f1tv-dl <url>

Positionals:
  url  The f1tv url for the video                                       [string]

Options:
      --help                 Show help                                 [boolean]
      --version              Show version number                       [boolean]
  -c, --channel              Choose an alternate channel for a content with
                             multiple video feeds. Use the channel-list option
                             to see a list of channels and specify
                             name/number/tla to select alternate channel.
                                                        [string] [default: null]
  -i, --international-audio  Select a language to include from the INTERNATIONAL
                             feed. This audio will be included in the file as a
                             secondary audio track.
              [string] [choices: "eng", "nld", "deu", "fra", "por", "spa", "fx"]
  -t, --itsoffset            Used to sync secondary audio. Specify the time
                             offset as '(-)hh:mm:ss.SSS'
                                              [string] [default: "00:00:00.000"]
  -a, --audio-stream         Specify audio stream language to download
                                                       [string] [default: "eng"]
  -s, --video-size           Specify video size to download as WxH or 'best' to
                             select the highest resolution. (e.g. 640x360,
                             1920x1080, best)         [string] [default: "best"]
  -f, --format               Specify mp4 or TS output (default mp4)
                                [string] [choices: "mp4", "ts"] [default: "mp4"]
  -o, --output-directory     Specify a directory for the downloaded file
                                                        [string] [default: null]
  -U, --username             F1TV User name             [string] [default: null]
  -P, --password             F1TV password              [string] [default: null]
      --channel-list         Provides a list of channels available from url (for
                             videos with multiple cameras)
                                                      [boolean] [default: false]
      --stream-url           Return the tokenized URL for use in another
                             application and do not download the video
                                                      [boolean] [default: false]
  -l, --log-level            Set the log level
          [choices: "trace", "debug", "info", "warn", "error"] [default: "info"]

Use

Use npm to install.

(ffmpeg and ffprobe are required and need to be present in the path)

npm i -g @thedave42/f1tv-dl

or use Docker (no need to install ffmpeg)

docker run -v <your local directory>:/download ghcr.io/thedave42/f1tv-dl-docker:latest -o /download <url> [options]

Username and password can also be read from the environment variables F1TV_USER and F1TV_PASS.

Download a video

Log in to your f1tv account, navigate to the video you want to watch, and copy the url from your browser.

f1tv-dl <url>

See a list of different video feeds from a race with multiple feeds

f1tv-dl <url> --channel-list

Download the data channel stream from a race

f1tv-dl <url> -c data

Add Dutch audio from the international broadcast feed

f1tv-dl <url> -i nld