<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Movienight on AlipourIm journeys</title><link>https://blog.alipour.eu/tags/movienight/</link><description>Recent content in Movienight on AlipourIm journeys</description><generator>Hugo -- 0.146.0</generator><language>en</language><lastBuildDate>Sun, 21 Dec 2025 09:30:00 +0100</lastBuildDate><atom:link href="https://blog.alipour.eu/tags/movienight/index.xml" rel="self" type="application/rss+xml"/><item><title>Movie Night Over the Internet: Jellyfin + Tailscale on a Raspberry Pi 4</title><link>https://blog.alipour.eu/posts/boredom/</link><pubDate>Sun, 21 Dec 2025 09:30:00 +0100</pubDate><guid>https://blog.alipour.eu/posts/boredom/</guid><description>A cozy, slightly chaotic, very fun setup story: turning a Raspberry Pi 4 into a private movie-night server with Jellyfin, Docker, and Tailscale—starting on microSD and graduating to SSD later.</description><content:encoded><![CDATA[<p>Ok. Let me tell you the why first. So&hellip;. I was turning from one side to the other on my bed, going through YouTube. The thing that I used to silence my pain, to let the time pass, and to forget. But it didn&rsquo;t hit the same anymore. I was bored. Eternal boredom. Then the loneliness came back. It&rsquo;s funny how you can be in the middle of dozens of people, i.e., not alone, but still feel lonely. Anyway. I though to myself &ldquo;let&rsquo;t message one of my two best friends&rdquo;, We eventually went into a google meet, talked and talked, and decided to watch a movie together at the same time. I told him I still have my Raspberry Pi lying around, let me put it to good use. Few hours passed, and I was ready. Here is what happened in those few hours.</p>
<p>I wanted the kind of movie night where everyone presses play at the same moment, laughs at the same joke, and groans at the same plot twist—even when we’re scattered across different apartments and time zones. I also wanted it to be a little nerdy, a little elegant, and the kind of project that makes you feel like you own your gadgets again. Enter: a Raspberry Pi 4 (8GB), Jellyfin, and Tailscale.</p>
<p>This post is the “how it went” and the “how to do it” version. It’s written for the future-me who will forget everything the second it works, and for anyone who wants a private streaming setup without punching holes in their router for the entire internet to poke at.</p>
<h2 id="the-idea">The idea</h2>
<p>Jellyfin is the media server that turns your own movie files into a nice Netflix-like library. Tailscale is the secret tunnel that lets your friends reach your server as if they were sitting on your Wi‑Fi—without you exposing ports to the public internet. Docker is the little shipping container that keeps everything tidy and portable, which matters because I started on a microSD card and planned to move to an SSD later.</p>
<p>The trick to making a Raspberry Pi feel “fast enough” is to avoid video transcoding whenever possible. When Jellyfin can “direct play” a file, the Pi mostly just serves bytes. When it has to transcode, it suddenly feels like you asked a hamster to tow a car. So the theme of this build is compatibility: store media in formats that phones, browsers, and TVs can play directly.</p>
<h2 id="what-you-need">What you need</h2>
<p>My setup uses Ubuntu (64-bit is the long-term-friendly choice), a Raspberry Pi 4, a microSD card to get started, and eventually a USB 3 SSD for real “server vibes.” You’ll also want a folder of movies you’re allowed to stream to your friends. Streaming DRM content from Netflix or rental platforms through Jellyfin isn’t supported, and I’m intentionally keeping this firmly in the “your own files” lane.</p>
<h2 id="step-one-choose-a-home-for-your-stuff">Step one: choose a home for your stuff</h2>
<p>Before installing anything, I picked paths that would survive my future SSD upgrade. The idea is simple: keep all persistent app data under one directory, keep all media under another directory, and let Docker mount those paths into containers.</p>
<p>On the Pi, I created a little directory neighborhood under <code>/srv</code>:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo mkdir -p /srv/jellyfin/<span style="color:#f92672">{</span>config,cache<span style="color:#f92672">}</span> /srv/media /srv/compose/jellyfin
</span></span><span style="display:flex;"><span>sudo chown -R $USER:$USER /srv
</span></span></code></pre></div><p>If you’re not ready to move movies into <code>/srv/media</code> yet, that’s okay. The important part is that you pick a place you can later mount your SSD onto without rewriting your whole setup.</p>
<h2 id="step-two-install-docker-and-start-thinking-in-containers">Step two: install Docker and start thinking in containers</h2>
<p>I installed Docker and verified that <code>docker compose</code> worked. After that, everything became a file called <code>docker-compose.yml</code> and the comforting feeling that I can rebuild my server from a single folder if life gets weird.</p>
<p>A typical install flow on Raspberry Pi OS looks like this:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo apt update
</span></span><span style="display:flex;"><span>sudo apt install -y ca-certificates curl
</span></span><span style="display:flex;"><span>curl -fsSL https://get.docker.com | sh
</span></span><span style="display:flex;"><span>sudo usermod -aG docker $USER
</span></span><span style="display:flex;"><span>newgrp docker
</span></span><span style="display:flex;"><span>docker --version
</span></span><span style="display:flex;"><span>docker compose version
</span></span></code></pre></div><p>Now for the part that feels like summoning a friendly daemon.</p>
<h2 id="step-three-jellyfin-running-happily-in-docker">Step three: Jellyfin, running happily in Docker</h2>
<p>In <code>/srv/compose/jellyfin/docker-compose.yml</code>, I defined a Jellyfin service and mounted my config, cache, and media directories into it. The key mental shift is that Jellyfin can only see what you mount into the container. If you try to browse to <code>/home/hub/Documents/movies</code> from inside the Jellyfin UI and it looks like the folder doesn’t exist, it’s not being dramatic—it genuinely can’t see it. Containers are like that.</p>
<p>Here’s a simple <code>docker-compose.yml</code> that works well on a Pi:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-yaml" data-lang="yaml"><span style="display:flex;"><span><span style="color:#f92672">services</span>:
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">jellyfin</span>:
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">image</span>: <span style="color:#ae81ff">jellyfin/jellyfin:latest</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">container_name</span>: <span style="color:#ae81ff">jellyfin</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">user</span>: <span style="color:#e6db74">&#34;1000:1000&#34;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">ports</span>:
</span></span><span style="display:flex;"><span>      - <span style="color:#e6db74">&#34;8096:8096/tcp&#34;</span>
</span></span><span style="display:flex;"><span>      - <span style="color:#e6db74">&#34;7359:7359/udp&#34;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">volumes</span>:
</span></span><span style="display:flex;"><span>      - <span style="color:#ae81ff">/srv/jellyfin/config:/config</span>
</span></span><span style="display:flex;"><span>      - <span style="color:#ae81ff">/srv/jellyfin/cache:/cache</span>
</span></span><span style="display:flex;"><span>      - <span style="color:#ae81ff">/srv/media:/media</span>
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">restart</span>: <span style="color:#ae81ff">unless-stopped</span>
</span></span></code></pre></div><p>If your user isn’t UID 1000, check it with <code>id -u</code> and <code>id -g</code>, then update the <code>user:</code> line accordingly.</p>
<p>I started Jellyfin like this:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>cd /srv/compose/jellyfin
</span></span><span style="display:flex;"><span>docker compose up -d
</span></span></code></pre></div><p>After that, Jellyfin lived at <code>http://&lt;pi-lan-ip&gt;:8096</code> on my home network, which is the most satisfying “it’s alive” moment of the whole build.</p>
<h2 id="step-four-tailscale-the-magic-door-for-friends">Step four: Tailscale, the magic door for friends</h2>
<p>Now comes the part that makes everything feel effortless. Instead of forwarding ports, configuring certificates, and hoping I didn’t accidentally publish my server to the open ocean, I installed Tailscale on the Pi host.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>curl -fsSL https://tailscale.com/install.sh | sh
</span></span><span style="display:flex;"><span>sudo tailscale up
</span></span><span style="display:flex;"><span>tailscale ip -4
</span></span></code></pre></div><p>That last command gives you a <code>100.x.y.z</code> address. It’s your Pi’s Tailscale IP, and it’s the address your friends will use to reach Jellyfin. From anywhere, the server becomes:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>http://100.x.y.z:8096
</span></span></code></pre></div><p>Or if you enabled magicDNS:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>http://rpi:8096
</span></span></code></pre></div><p>The moment you can open that URL from your phone on mobile data and see your own server is the moment you start plotting your next homelab project.</p>
<p>If you want friends to access only this server and not everything else in your tailnet, Tailscale has a device sharing flow that’s perfect for “here’s the Pi, please don’t look in the rest of my digital house.”</p>
<h2 id="step-five-create-a-jellyfin-user-for-your-friend">Step five: create a Jellyfin user for your friend</h2>
<p>Jellyfin accounts are local to your server. Your friend won’t “sign up” on some global Jellyfin site; instead, you create a user for them inside your Jellyfin admin dashboard. The nice part is that you can give them access only to the libraries you want, and you can keep admin permissions to yourself.</p>
<p>If typing passwords on a TV app makes you feel old instantly, Jellyfin’s Quick Connect feature can make logins much smoother. Your friend gets a short code on their device, you approve it from your logged-in browser, and nobody has to poke letters into a remote control one by one.</p>
<h2 id="step-six-the-secret-to-a-smooth-pi-movie-night-is-direct-play">Step six: the secret to a smooth Pi movie night is Direct Play</h2>
<p>A Raspberry Pi 4 is perfectly happy serving media files. It becomes less happy when it has to convert them on the fly. The goal is to store your library in a way that most clients can play without conversion.</p>
<p>For “plays on basically everything,” I like MP4 with H.264 video and AAC audio. When I inspected one of my files, I found H.264 video already, but the audio was AC3. AC3 is fine on some devices, but it’s not universal in browsers, and “my friend has no audio” is a movie-night mood killer.</p>
<p>The fix was to keep the video as-is and convert only the audio to AAC, which is much lighter than re-encoding the whole video. This command copies the H.264 video stream, converts audio to AAC stereo, and produces an MP4 that’s friendlier to phones and browsers:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>ffmpeg -i <span style="color:#e6db74">&#34;500.Days.of.Summer.2009.1080p.BluRay.RARBG.FilmKio.mkv&#34;</span>   -map 0:v:0 -map 0:a:0   -c:v copy   -c:a aac -b:a 384k -ac <span style="color:#ae81ff">2</span>   -movflags +faststart   <span style="color:#e6db74">&#34;500.Days.of.Summer.2009.1080p.mp4&#34;</span>
</span></span></code></pre></div><p>Subtitles deserve their own tiny cautionary tale. Some subtitle formats trigger transcoding because the client can’t render them natively and asks the server to burn them into the video. Text-based SRT subtitles are usually the easiest path. If your MKV contains an SRT track, you can extract it and keep it next to your MP4:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>ffmpeg -i <span style="color:#e6db74">&#34;500.Days.of.Summer.2009.1080p.BluRay.RARBG.FilmKio.mkv&#34;</span>   -map 0:s:0   <span style="color:#e6db74">&#34;500.Days.of.Summer.2009.1080p.srt&#34;</span>
</span></span></code></pre></div><p>Once your friend is watching, you can confirm how Jellyfin is handling playback by checking the active session in the admin dashboard. Seeing “Direct Play” feels like winning.</p>
<h2 id="step-seven-syncplay-aka-we-pressed-play-together">Step seven: SyncPlay, aka “we pressed play together”</h2>
<p>Jellyfin has SyncPlay for “group watch” nights, and it’s wonderfully simple when everyone is using compatible clients. In practice, the web client is an excellent baseline because it’s consistent and easy for friends. When we do movie night, we start a SyncPlay group, join it from each device, and keep a voice call open for commentary and laughter. It’s not complicated; it’s just… cozy.</p>
<h2 id="starting-on-microsd-graduating-to-ssd-later">Starting on microSD, graduating to SSD later</h2>
<p>Yes, you can run all of this on microSD to begin with. It works. It also feels like using a napkin as a hard drive if you add heavy-write services later. My plan is to move the system to an SSD when convenient, because SSDs are faster and they handle constant writes far better than microSD cards.</p>
<p>The reason the <code>/srv</code> layout is so helpful is that migration becomes a simple copy-and-mount story. When the SSD arrives, you can copy <code>/srv</code> to the SSD, mount the SSD at <code>/srv</code>, reboot, and your containers will come back exactly as before. Docker will happily reuse the same volume paths; Jellyfin will happily reuse the same library; and you’ll feel like a wizard who planned ahead.</p>
<h2 id="where-this-goes-next">Where this goes next</h2>
<p>Once Jellyfin and Tailscale are stable, it’s easy to imagine the Pi doing more. Pi-hole is light and useful. A smart home hub is fun. Nextcloud is possible, especially with SSD storage and some attention to databases and caching. The practical advice I’m giving future-me is to add services one at a time and keep <code>/srv</code> as the center of gravity, because nothing ruins movie night like “I tweaked DNS and now nothing works.”</p>
<p>For now, though, this little Pi does the job: it hosts a library, it welcomes friends through a private tunnel, and it turns “let’s watch something” into a real shared moment—even when we’re not in the same room.</p>
<p>Happy streaming.</p>
<p>The movie night went great, I even posted a BeReal on it. The choice of movie was not random either. I&rsquo;ll write a review for it later on. It was just amazing.</p>
<hr>
<div class="signature-block" style="margin-top:1rem">
  <p><strong>Downloads:</strong>
    <a href="/sources/posts/boredom.md">Markdown</a> ·
    <a href="/sources/posts/boredom.md.asc">Signature (.asc)</a>
  </p><details class="signature">
    <summary>View OpenPGP signature</summary>
    <pre style="font-size:0.85em; overflow-x:auto; padding:0.75rem;">-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEVaKl3oR5K6zGyu4/tYgoUOBMjSoFAmpkbugACgkQtYgoUOBM
jSrqzw/8Crod3Gm5xGMMrOtsoVm9NFwTAD7xdc8H5LcFC8P5OZmyEYBxF/SEHk6m
TDhSyj6bNdShWIrzkKL0XHm6ntjhkBX4&#43;dFzPbKjpHZ84on/xfNwIOh8br&#43;WJEBF
V3zCialBjjxxE37PVLkqsNVVtMgT2Wv5GnR7SWLKkovJWpIn/FP0gSsQFUIvRvdC
Xhy3nvODqXZqfg77kKllmbkPI5ePkxl95CK9fd4yzhI13G41vveVO4dt2JhWVR6H
dfRv6XG53WGP0nVWyEdHJjJhiT1JTd7//AD3DsRCTmBNyaxweRlPsvqqICquGx1U
LGQ62y0oZL5WDqjiD7T2ZJAJ6sqr6NngFGjh7RaKOWDT1&#43;8fTdXfQg/t91lTHVfh
efVqOiH&#43;B6SlzqPM4LgzRjf&#43;36XdSu9R1w75sGykQpGRBfq2IymoM6RPQLEwgm3J
haMjYRqx5jZSLj9FpjOZFYEuqYCa0ut0lUgY9BDHf0u8kKrW6OQZFVdhN31g&#43;Lvf
5qjzC&#43;ZzR4BLMpA4E33NKmYT4Rt1i5mSPiGY85yqhJdjFJRtPfXXf05&#43;m7VGjRPp
sWQmqO1o7cChFqVnF5IalDFCNIsGavBf8F0/7tu3y4bLIqoBMBfgIgg9KMORVHIn
kqUsV4LpNgVWdTzp0QURkHUOL5uP72Jqa3ppVYEXlJQbhuLpCDY=
=/K6E
-----END PGP SIGNATURE-----
</pre>
  </details><p><em>Verify locally:</em></p>
  <pre style="font-size:0.85em; overflow-x:auto; padding:0.75rem;">curl -fSLO https://blog.alipour.eu/sources/posts/boredom.md
curl -fSLO https://blog.alipour.eu/sources/posts/boredom.md.asc
gpg --verify boredom.md.asc boredom.md
  </pre>
</div>


]]></content:encoded></item></channel></rss>