ytgram 2.0
ytgram is a desktop downloader for YouTube and the other sites
yt-dlp supports. It queues URLs, saves audio or a single video file, and can write a DaVinci Resolve mezzanine (DNxHR LB picture and PCM audio).
The window uses an OS/2-style layout and scales itself to the screen. Settings are remembered in
~/.ytgram.properties.
Requirements
- Java 21 or newer
- Debian trixie, or another system that can run the launcher and the
.jar
yt-dlp, installed from inside ytgram with pipx
ffmpeg, for any download that merges picture and sound, and for Resolve conversion
python3 and pkexec, used by the Debian package when it installs a missing tool
A normal apt install of the .deb also installs the recommended ffmpeg and pipx packages.
Install the Debian package
From this directory:
bash
./build-deb.sh
sudo apt-get install ./dist/ytgram*all.deb
./build-deb.sh reads the package version from
debian/changelog and writes
dist/ytgram<version>all.deb. The application described here is ytgram 2.0.
The package installs:
| Path | What it is |
|---|
/usr/bin/ytgram | Launcher |
/usr/share/ytgram/ytgram.jar | Program |
/usr/share/applications/ytgram.desktop | Menu entry |
/usr/share/man/man1/ytgram.1.gz | Manual page |
If
javac is missing, the build script downloads a temporary OpenJDK 21 or 25 compiler. If that copy cannot compile, or if
dpkg-dev or
debhelper is missing, a password dialog asks to install the system package.
Install for the current user
bash
./build.sh
This compiles
build/ytgram.jar with
javac --release 21 and installs:
~/.local/share/ytgram/ytgram.jar
~/.local/bin/ytgram
~/.local/share/applications/ytgram.desktop
javac for Java 21 has to be on
PATH for this script. Use
./build-deb.sh when it is not.
Start ytgram
bash
ytgram
The launcher looks for Java 21 or newer in
JAVA_HOME, then on
PATH, then under
/usr/lib/jvm. If none is found and
pkexec is available, it asks to install
default-jre.
It runs, in order, a
ytgram.jar beside the launcher,
~/.local/share/ytgram/ytgram.jar, or
/usr/share/ytgram/ytgram.jar.
~/.local/bin is placed on
PATH so a desktop session can see the pipx copy of yt-dlp.
On first launch, click
Install/Update yt-dlp. That runs
pipx install "yt-dlp[default]" for a new install, or
pipx runpip yt-dlp install -U "yt-dlp[default]" for an upgrade. The
default extra includes the libraries yt-dlp expects, including
yt-dlp-ejs. The pipx spec is rewritten so a later
pipx upgrade yt-dlp keeps that extra. pipx itself is installed with a password dialog when it is missing. The yt-dlp install stays in the user account (
~/.local/bin/yt-dlp).
The window title shows the yt-dlp version once it answers
--version.
Download
Paste a URL and click Add to Queue, or turn on Auto-grab from clipboard.
Choose a format.
Set Download to. Browse remembers the folder.
Set FFmpeg cores if the machine should not use every core. The choice is saved.
Click Start Downloads.
One download or conversion runs at a time. The status log shows yt-dlp's own lines, and the progress bar follows
[download] NN%. The queue is cleared when the run finishes.
Auto-grab from clipboard watches the clipboard and fills the URL field. It does not add the URL to the queue. It recognizes links from YouTube (including Shorts and
youtu.be), Vimeo, Dailymotion, Twitter, X, Twitch, TikTok, Instagram, Reddit, Streamable, and SoundCloud. Any other address yt-dlp accepts can still be pasted by hand.
Files are saved as
<title>.<extension> in the download folder.
Formats
| Choice | Result |
|---|
| MP3, AAC, or OGG | Audio only, with thumbnail and metadata. OGG is Vorbis. |
| 360p Video | Best picture up to 360p, plus the best audio, in one file. |
| HD Video (1080p) | Best picture up to 1080p, plus the best audio, in one file. |
| 4K Video (2160p) | Best picture up to 2160p, plus the best audio, in one file. |
| Resolve up to 1080p | Download up to 1080p, then convert it for DaVinci Resolve. |
Video downloads ask yt-dlp for separate picture and sound streams and merge them. The container is MP4 when the codecs fit, otherwise MKV. ffmpeg does that merge. If ffmpeg is missing, ytgram tries to place a working
ffmpeg and
ffprobe in
~/.local/bin. When that copy will not start, a password dialog installs the
ffmpeg package.
The same core count is passed to yt-dlp's ffmpeg post-processing.
DaVinci Resolve
The free Resolve build on Linux does not decode H.264 or H.265, and neither the free nor the Studio build decodes AAC. ytgram writes a MOV that both can import:
video: DNxHR LB, yuv422p
audio: 16-bit PCM, 48 kHz, stereo
a silent stereo track when the source has no audio
Resolve up to 1080p downloads at most 1080p, converts that file, and deletes the intermediate download after the MOV is written. The finished file is named
<title>.resolve.mov.
Convert a File for Resolve converts a video that is already on disk. The original stays where it is. The MOV is written beside it as
<name>.resolve.mov, at the source height. Frames taller than the cap used by a download are scaled down only for that download path. DNxHR needs even dimensions and at least 256×120, so smaller frames are padded up. Frame rates outside 1–120 fps are written as 30 fps.
The picture encoder uses at most 64 of the cores selected in
FFmpeg cores. Decoding and filters use the full selected count. A Resolve file is large; 4K DNxHR is several times the size of the download, which is why the download path stops at 1080p.
Settings
~/.ytgram.properties stores:
| Key | Meaning |
|---|
download.directory | Folder chosen with Browse. The first-run default is ~/Downloads. |
clipboard.enabled | Whether clipboard watching is on. |
ffmpeg.threads | Core count. Blank means every logical CPU. |
default.format | Format restored at startup: mp3, aac, ogg, 360p, hd, 4k, or resolve. The first-run default is mp3. |
Build only the jar
bash
./build.sh --compile-only
The result is
build/ytgram.jar. Nothing is installed.
License
Copyright 2026 pagetelegram. No license has been stated for this program. The Debian package is built for local installation. The packager is pagetelegram \<jsp@pagetelegram.com\>.