Skip to content

Download Youtube audio video

Eliran Wong edited this page Mar 21, 2021 · 10 revisions

Download YouTube Audio / Video Files

UniqueBible.app has a built-in browser, which integrates "youtube-dl" and "ffmpeg" to allow users:

  • to download YouTube video files
  • to convert downloaded YouTube video into mp3 or mp4 formats.

This feature is created for downloading sermons, worship songs, training classes, etc.

Requirement

To use this UBA feature, you need two utilities 'youtube-dl' and 'ffmpeg'.

From version 22.94, UBA automatically set up 'youtube-dl' for users, but users still need to install 'ffmpeg' themselves.

If you do not have 'ffmpeg' installed, you can still download YouTube videos but you cannot convert them to mp3 audio files.

You may read instructions about installing 'ffmpeg' at: https://github.com/eliranwong/UniqueBible/wiki/Install-ffmpeg

Built-in YouTube Browser

UBA mini browser allows users:

  • to browser YouTube website
  • to search for a video in YouTube
  • to navigate backward or forward
  • to download audio / video directly

Where is YouTube Downloader?

You can open UBA built-in YouTube Downloader from:

  1. Toolbar > YouTube button
  2. Right-click context menu > plugins > YouTube Downloader
  3. Master Control > Miscellaneous tab > Utilities > YouTube Downloader

How to Download?

To DOWNLOAD an audio / video file for offline use:

  1. Search with built-in YouTube browser for a video you want
  2. OPEN a single item from search results (You CANNOT download an item from search result page)
  3. Use buttons "mp3 / mp4 / video / +" or right-click context menu items to perform a download
  • If you use right-click context menu for download, make sure right-click is triggered on area OUTSIDE the video
  • Select "Download Options" or "Convert to mp3" or "Convert to mp4"

Download Options

If you click the "+" button, you can see available download options from a popup window. Select one and click the "Download" button to start a download.

Command Line

Storage

All mp4 video files converted are stored in "video" folder inside "UniqueBible.app" application folder.

All mp3 audio files converted are stored in "music" folder inside "UniqueBible.app" application folder.

Manual Setup of 'youtube-dl'

  • Users need to install youtube-dl and ffmpeg before they can run this feature.

  • Below are the methods we tested to download youtube-dl and ffmpeg:

    [on Linux]

    • Run in terminal:

    sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
    sudo chmod a+rx /usr/local/bin/youtube-dl
    sudo apt install ffmpeg

    [on Windows]

    choco install youtube-dl
    choco install ffmpeg

    [on macOS]

    brew install youtube-dl
    brew install ffmpeg

Upgrade youtube-dl

You may need to update the "youtube-dl" package regularly to keep it working. There are several ways to upgrade "youtube-dl". It depends on how you first installed "youtube-dl"

If you used "curl" to install "youtube-dl", run the following line to do the update:

youtube-dl -U

If you used "pip3" to install "youtube-dl", run the following line to do the update:

pip3 install --upgrade youtube_dl

If you used "choco" to install "youtube-dl", run the following line to do the update:

choco upgrade youtube-dl

If you used "brew" to install "youtube-dl", run the following line to do the update:

brew upgrade youtube-dl

Read http://ytdl-org.github.io/youtube-dl/download.html for details on downloading and updating youtube-dl

Clone this wiki locally