Stream Videos from Raspberry Pi to TV: Step-by-Step
In this article
This guide shows you how to turn your Raspberry Pi into a media streamer, letting you play videos stored on the Pi or from network sources directly on your TV. You'll set up a lightweight media server (Plex, Jellyfin, or Kodi) and connect it to your TV via HDMI or over your home network. By the end, you'll be able to browse and play your video library from the comfort of your couch.
What You'll Need
- A Raspberry Pi (any model from Pi 3 onwards works well; Pi 4 or 5 recommended for 1080p/4K)
- A microSD card (8GB or larger, Class 10 or A1 rated)
- A power supply for your Pi (official one recommended)
- An HDMI cable and a TV with an HDMI port
- A computer to prepare the SD card (Windows, Mac, or Linux)
- Optional: Ethernet cable for a stable network connection
- Optional: USB storage drive for extra video storage
Step-by-Step
- Install the operating system. Download Raspberry Pi Imager from the official Raspberry Pi website and install it on your computer. Insert the microSD card into your computer, open Imager, choose your Pi model, then select an OS. For a dedicated media streamer, choose “Raspberry Pi OS (other) → Raspberry Pi OS Lite” (no desktop needed) or the full desktop version if you prefer a GUI. Click “Write” and wait for it to finish.
- Enable SSH (optional but handy). After writing the OS, the SD card will appear as a boot drive. Create an empty file named
ssh(no extension) in the root of that drive to enable SSH access. If you want Wi-Fi, also create awpa_supplicant.conffile with your network credentials (see Raspberry Pi documentation for the exact format). - Boot the Pi and connect. Insert the SD card into the Pi, connect the HDMI cable from the Pi to your TV, plug in the power, and wait for it to boot. If you enabled SSH, find the Pi's IP address (check your router's admin page) and connect via SSH from your computer using
ssh pi@<IP>(default password israspberry). If you used the desktop OS, just log in on the TV screen. - Update the system. Run
sudo apt update && sudo apt upgrade -yto ensure all packages are current. - Install a media server. Choose one of these popular options:
- Plex: Follow the official Plex install script for Debian/ARM. Download the .deb file from Plex's website, then install with
sudo dpkg -i plexmediaserver_*.deb. - Jellyfin: Add the Jellyfin repository and install with
sudo apt install jellyfin. It's free and open-source. - Kodi: Install directly with
sudo apt install kodi. Kodi is a full media center that works well on the Pi.
- Plex: Follow the official Plex install script for Debian/ARM. Download the .deb file from Plex's website, then install with
- Configure the media server. For Plex or Jellyfin, open a web browser on your computer and go to
http://<Pi-IP>:32400/web(Plex) orhttp://<Pi-IP>:8096(Jellyfin). Follow the setup wizard to create an account (Plex) or set up libraries. Add your video folders (e.g.,/home/pi/Videosor an external drive mounted at/mnt/usb). - Connect to your TV. If you're using the Pi directly connected via HDMI, you can run Kodi on the Pi itself and play videos locally. For Plex/Jellyfin, you can either:
- Use the Plex/Jellyfin app on your smart TV (most modern TVs have these apps). Open the app and sign in to your server.
- Use a streaming stick (Chromecast, Fire Stick) and cast from the web interface.
- Install Kodi on the Pi and add the Plex/Jellyfin plugin to access the server.
- Test playback. Put a video file in your library folder, refresh the library in your media server, and try playing it on your TV. If it works, you're done!
Common Mistakes
- Using a low-power power supply. The Pi can shut down randomly if the power supply is insufficient. Use an official or 5V/3A adapter.
- Forgetting to enable hardware acceleration. In Kodi, go to Settings → Player → Acceleration and enable “Allow hardware acceleration (OMX)” or “V4L2” to ensure smooth playback, especially for 1080p/4K.
- Not mounting external drives properly. If you plug in a USB drive, it may not auto-mount. Add an entry to
/etc/fstabwith the correct UUID and filesystem type. - Assuming Wi-Fi is fast enough. For high-bitrate 4K videos, Wi-Fi can cause buffering. Use an Ethernet cable for the Pi and your TV if possible.
- Skipping the update step. Old packages can cause compatibility issues with media server software.
Tips
- Use a wired network connection for the Pi to avoid Wi-Fi dropouts.
- Organize your video files in a clear folder structure (e.g., /Videos/Movies, /Videos/TV Shows) so the media server can scrape metadata correctly.
- For better performance, overclock the Pi (if using a Pi 4/5) by adding
over_voltage=2andarm_freq=2000to/boot/config.txt— but monitor temperatures. - Set up a static IP for your Pi in your router's DHCP settings so you don't have to hunt for the IP address later.
- If using Plex, enable “Remote Access” only if you need it; otherwise keep it off for security.
Troubleshooting
- No video output on the TV. Make sure you've selected the correct HDMI input. If the screen is black, try a different HDMI port or cable. Also, check that the Pi is booting (the green LED should flash).
- Cannot connect via SSH. Verify the Pi is on the same network. Check the IP address using your router's admin page or a network scanner. Ensure the
sshfile is present on the boot partition (it should be removed after first boot). - Videos stutter or buffer. This is often due to network bandwidth or lack of hardware acceleration. Use Ethernet, and enable hardware acceleration in the media player settings. For 4K, consider using a Pi 5 or using a direct HDMI connection with Kodi.
- External drive not recognized. Check
dmesgfor errors. The drive may need to be formatted as ext4 or NTFS. Mount it manually first:sudo mount /dev/sda1 /mnt/usb. - Plex/Jellyfin not accessible from TV app. Ensure the Pi's firewall (if any) allows the required ports (32400 for Plex, 8096 for Jellyfin). Also, confirm both devices are on the same subnet.
- Audio not working. In Kodi, go to Settings → System → Audio and select the correct output (HDMI or analog). For Plex/Jellyfin, check the TV's audio output settings.
Frequently Asked Questions
Can I use a Raspberry Pi Zero for streaming?
The Pi Zero is underpowered for smooth 1080p streaming, especially with modern codecs. It may work for low-bitrate content, but a Pi 3 or better is recommended.
Do I need a separate media server app?
No, you can simply run Kodi on the Pi and play videos locally. Media server apps like Plex or Jellyfin are useful if you want to access your library from multiple devices.
Can I stream videos from the Pi to a non-smart TV?
Yes, if you connect the Pi directly via HDMI, you can use Kodi's interface on the TV. Alternatively, use a streaming stick like Chromecast with the Pi as a server.
How do I add videos to the Pi?
You can copy files via SSH (using scp or rsync), use a USB drive, or set up network shares (Samba). The media server will scan the folders you specify.
Is it legal to stream videos this way?
Streaming your own legally acquired video files is fine. Ensure you have the rights to any content you distribute.
Can I use the Pi as a DLNA server?
Yes, install minidlna or ready media and it will serve videos to DLNA-compatible TVs and devices.