Skip to content
frzzyonePublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Tinyfin

Tinyfin: a tiny, native Jellyfin client for macOS, iOS and Apple TV

A tiny, native Jellyfin client for macOS, iOS and Apple TV, with an Infuse-style playback engine and seamless quality switching.

  • Plays files as they are. FFmpeg reads the container (MKV, MP4, MOV, TS, WebM); video is decoded in hardware, and audio goes to the system audio renderer. Most files play without the server converting anything.
  • Direct play or server transcoding, seamless switching. Pick "Original" or a bitrate/resolution preset at any time. The current stream keeps playing while the new one loads, then it is spliced in at a keyframe: no spinner, no restart.
  • Native output. HDR10/HLG on EDR displays, Dolby Vision Profiles 5 and 8, Dolby Atmos (E-AC-3) passed through, lossless audio decoded in the app, picture subtitles, Picture in Picture, Now Playing and media keys.
  • Tiny and quiet. No settings screen, no accounts, no tracking: it talks only to your server.
One keystroke away from where you left off Direct play or server transcoding
Your whole library, a keystroke away Space for a quick look

Tinyfin is an independent app, not an official Jellyfin product.

Download

  • Mac: the notarised Tinyfin-<version>.dmg from Releases. Open it and drag Tinyfin to Applications. There are no automatic updates; new versions appear on that page.
  • iPhone and Apple TV: Tinyfin Player on the App Store, free.

Privacy

Tinyfin collects nothing. It talks only to the Jellyfin server you sign in to: no analytics, no crash reporting, no accounts or servers of ours. Your sign-in token stays in the device's Keychain and is not synced through iCloud; preferences stay on the device. What your Jellyfin server records (what you watched, how far) is up to that server and its administrator. The full policy is in docs/privacy.md.

The behaviour is specified with OpenSpec in openspec/specs (built as the changes archived in openspec/changes/archive).

Requirements

  • macOS 14 Sonoma or later; iPhone with iOS 17 or later; Apple TV 4K with tvOS 17 or later
  • Xcode 15 or later (CI uses Xcode 16)
  • XcodeGen and, for tests, the ffmpeg command-line tool: brew install xcodegen ffmpeg
  • A Jellyfin server, version 10.9 or later

Build and run

First time only:

brew install xcodegen ffmpeg   # XcodeGen makes the project; ffmpeg generates test fixtures
scripts/build-ffmpeg.sh        # builds Vendor/FFmpeg (LGPL, ~5 min the first time, then cached)

Then, from Xcode:

xcodegen generate              # creates TinyJellyfin.xcodeproj (rerun whenever project.yml changes)
open TinyJellyfin.xcodeproj    # then press ⌘R

Or from the command line:

export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
xcodebuild -project TinyJellyfin.xcodeproj -scheme TinyJellyfin -configuration Debug build
open ~/Library/Developer/Xcode/DerivedData/TinyJellyfin-*/Build/Products/Debug/Tinyfin.app

Use -configuration Release and the Release folder for an optimised build. Release builds are signed by your team: put DEVELOPMENT_TEAM = <your team id> in App/Signing.local.xcconfig (git-ignored), or pass CODE_SIGNING_ALLOWED=NO for an unsigned build.

To hand the Mac app to someone else, use Product › Archive in Xcode, then Distribute App › Direct Distribution: Xcode re-signs it with your Developer ID and has Apple notarise it, so it opens without a Gatekeeper warning. That needs a paid Apple Developer Program membership. scripts/release-mac.sh does the same from the command line and ends with a notarised build/release/Tinyfin-<version>.dmg (one-time setup in the script's header).

A few things worth knowing:

  • Quit with ⌘Q rather than force-quitting. On the way out the app tells your server to stop transcoding; a killed process leaves the server encoding for nobody.
  • Logs appear in Xcode's console, or from Terminal: log stream --predicate 'subsystem == "app.tinyjellyfin"' --style compact. They show every request with the server's response time, how each file was opened, and each player state change. If the spinner stays up for more than 5 s, the player shows its internal state underneath it.
  • If swift or xcodebuild complain about a missing XCTest or SDK, xcode-select -p is pointing at the Command Line Tools: either export DEVELOPER_DIR as above or run sudo xcode-select -s /Applications/Xcode.app.

iPhone

The iPhone app is the TinyJellyfinPhone scheme in the same project. It shares the engine, the browser models and the sign-in with the Mac app; the screens and the player are its own: tabs for Home, each library and Search, a detail sheet, and a landscape player (tap for controls, double-tap the sides to skip, swipe sideways to scrub, swipe up and down for brightness on the left and volume on the right, pinch or the button to fill or fit, hold for 2×, and a lock against stray touches).

Downloads, for watching with no connection: tap Download on a film or an episode. Your server makes a phone-sized copy (1080p, about 2.5–3.5 GB an hour, your audio track); a file that is already that small is downloaded as it is. Downloads run in the background on Wi-Fi only and play in the same player, and where you stop is sent to the server once it can be reached. Finishing a downloaded episode swaps it for the next one, and Tinyfin keeps the next three episodes of three shows you are watching and three Continue watching films ready by itself, up to 30 GB. When your server can't be reached (no connection, or a server only reachable at home), the iPhone browses what it last loaded: Home leads with the downloads you're in the middle of and the next downloaded episodes, other titles are dimmed as Not downloaded, and Search finds titles by name; it goes back to normal by itself once the server answers. Signing out deletes the downloads and the saved pages. On the Mac, Download to iPhone in a title's quick look queues it on your server; the phone downloads it the next time it syncs (when you open it, or in the background when iOS allows). Titles already on the phone show On iPhone instead.

To run it on your phone, put your team in App/Signing.local.xcconfig (git-ignored):

DEVELOPMENT_TEAM = ABCDE12345

then xcodegen generate, pick the TinyJellyfinPhone scheme and your iPhone in Xcode, and run. FFmpeg is LGPL-only and dynamically linked, with this repository as the source for rebuilding the app against another FFmpeg build (see THIRD_PARTY_NOTICES.md). iOS has no audio passthrough, so Dolby Atmos is played as 5.1/7.1 rather than passed to the receiver; DTS and TrueHD are decoded in the app.

Apple TV

The Apple TV app is the TinyJellyfinTV scheme. Like the iPhone app it shares the engine and the models; its screens are built for the remote: tabs along the top, Home with the hero and shelves, title pages with season pills and a row of episodes, library grids, the system search screen, and a full-screen player.

  • Signing in: type the server address once (the iPhone offers its keyboard), then approve the code the TV shows in Jellyfin on your phone or the web (profile › Quick Connect). "Use a password instead" is there when Quick Connect is off on the server.
  • The remote: click or Play/Pause to pause, click left or right for −10 s / +30 s, swipe on the touch surface to scrub (click to jump there, Back to cancel), swipe or click down for Subtitles, Quality, Audio and Info, Back to leave.
  • Matching the TV: with Match Content (Dynamic Range and Frame Rate) on in the Apple TV's Video and Audio settings, the TV switches to the film's frame rate and HDR or Dolby Vision mode before playback starts.
  • Top Shelf: Continue watching and Next up above the app's icon; Play starts the item.
  • Sound: Dolby Digital Plus (and Atmos in it) goes to the system as on the iPhone; TrueHD and DTS are decoded in the app and sent as multichannel PCM, as many channels as the receiver takes.

To run it on your Apple TV, the team in App/Signing.local.xcconfig is enough: Xcode registers the App Group and Keychain group the Top Shelf extension shares with the app. Pair the Apple TV in Xcode (Window › Devices and Simulators) and pick it as the run destination.

Tests

scripts/make-fixtures.sh                          # small test videos, generated with the ffmpeg CLI
swift test --package-path Packages/JellyfinKit    # API client, session, profile and quality logic
swift test --package-path Packages/PlayerCore     # demuxing, HTTP/HLS, decoders; engine tests on macOS
xcodebuild test -project TinyJellyfin.xcodeproj -scheme TinyJellyfin -destination 'platform=macOS'

JellyfinKit and the portable part of PlayerCore also build and test on Linux against the system FFmpeg (see .github/workflows/ci.yml).

On the Mac

No sidebar: Home and one tab per video library in the top bar. Home leads with where you left off (Enter resumes it), then Continue watching, Next up, Recently added, and rows that need no typing: Surprise me (a random unwatched film), Short tonight, Because you watched, Almost done, a genre of the day, the oldest unplayed titles, a decade of the day. Library tabs open with two of the day's rows for that library (the ones Home isn't showing first), then one-click filters, a genre strip and the grid; typing anywhere searches. Space opens a quick look with Play, Start over and Mark watched; arrows move between rows and titles.

A series opens to one page on every device (on the Mac a click on its poster goes straight there): Resume S2 E4 (or Play S1 E1), Mark watched and the overview, then a pill for each season (Specials last, a check on the ones you've finished) and that season's episodes with their stills, progress, time left and a couple of lines of overview. It opens on the season you're up to, scrolled to the next episode. Choosing an episode opens its details (the quick look on the Mac, inside the same sheet on the iPhone, its page on Apple TV); clicking a still plays it straight away, and on Apple TV so does Play/Pause on the remote.

In the Mac player: click to pause, double-click for full screen, swipe sideways with two fingers on a trackpad to scrub. Keys: Space play/pause, ← → −10 s / +30 s, ↑ ↓ volume, F full screen, M mute, S next subtitle (then off), 0–9 jump to that tenth of the film, Page Up/Down previous/next chapter, Tab a menu of the control bar's options. The control bar also has Audio (when there are several tracks), Chapters (when the server lists them) and the speed (0.75×–2×). In the browser, Page Up/Down switch tabs.

A game controller works too, as those keys: the d-pad and left stick are the arrows, A (✕) is Return (open, play/pause), X (□) is Space in the browser (quick look) and F in the player (full screen), Y (△) is Tab (the player's options), L1/R1 are Page Up/Down (tabs, chapters) and B (○) is Esc, back: out of a quick look, out of full screen, then out of the player.

Quality presets

Option Max video bitrate Max height
Original uncapped source
4K 40 Mbps 40 Mbps 2160
1080p 20 Mbps 20 Mbps 1080
1080p 10 Mbps 10 Mbps 1080
720p 4 Mbps 4 Mbps 720
480p 1.5 Mbps 1.5 Mbps 480
360p 720 kbps 720 kbps 360

Presets taller than the video are hidden. The last choice is remembered per server and used for the next video; before any choice, playback starts at Original.

The player shows how the stream is delivered:

  • Direct Play — the file as-is.
  • Direct Stream — video unchanged; the server converts the container or audio.
  • Transcode — the server re-encodes the video (a lower preset, an unsupported codec, or image subtitles the server hasn't extracted, which it burns in).

Supported formats

Played locally, without server conversion:

  • Containers: MKV, WebM, MP4, M4V, MOV, MPEG-TS
  • Video: H.264, HEVC (8- and 10-bit), AV1 on Macs with an AV1 hardware decoder
  • Audio: AAC, MP3, AC-3, E-AC-3 (incl. Atmos), FLAC, ALAC, Opus, Vorbis, DTS, DTS-HD, TrueHD, PCM
  • Subtitles: SRT, WebVTT, MP4 timed text, SSA/ASS (shown as plain text); embedded or external. Drawn inside the picture (black bars encoded into the frames are detected and skipped), in Helvetica Neue sized for the picture. Blu-ray (PGS), DVD and DVB picture subtitles are drawn by the app, where the disc places them, so remuxes play as they are. During a transcode the app draws the copy the server extracted, so turn on subtitle extraction in Jellyfin; a track without one is burnt in.

Anything else (for example VC-1, MPEG-2 or VP9 video) is converted by the server, because the app only advertises what it can play.

How it fits together

App/Shared               All apps: sign-in, browser, Home and series models, PlaybackController, Now Playing, PiP
App/macOS, App/iOS,      Each app's screens and player
  App/tvOS
App/TopShelf             The Apple TV's Top Shelf extension
Packages/JellyfinKit     Jellyfin API client, session state, DeviceProfile, quality logic (Foundation only)
Packages/PlayerCore      Playback engine
  Core/                  FFmpeg demuxing through URLSession byte sources, audio/subtitle decoding (portable)
  Apple/                 AVSampleBufferDisplayLayer / AudioRenderer / RenderSynchronizer engine (macOS, iOS, tvOS)
scripts/                 FFmpeg build, test fixtures, test HTTP server, icons, the Mac release

Licences

Tinyfin dynamically links an LGPL-only build of FFmpeg. See THIRD_PARTY_NOTICES.md and scripts/build-ffmpeg.sh for the exact version and configuration.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages