Installing The Jellyfin
- Download Jellyfin at https://jellyfin.org/downloads/windows/
- Install as usual
- Setup your media server, descriptions, library, and other details
- Go to Dashboard→Playback→Transcoding→choose your hardware acceleration and save.
Setting Up Cloudflared
1. Auth your Cloudflare
cloudflared tunnel login
2. Create the Tunnel
This will output a tunnel ID
cloudflared tunnel create jellyfin-tunnel
3. Create a File Config
Create this file C:\Users\<Username>\.cloudflared\config.yml and paste this
tunnel: <YOUR_TUNNEL_ID>
credentials-file: C:\Users\Rohim\.cloudflared\<YOUR_TUNNEL_ID>.json
ingress:
- hostname: tv.yourdomain.com
service: http://127.0.0.1:8096
- service: http_status:404
4. Create the DNS Record
cloudflared tunnel route dns jellyfin-tunnel tv.yourdomain.com
5. Run the Tunnel
cloudflared tunnel run jellyfin-tunnel
Known Issues
#1 Long Buffer When Accessing Through Domain
- Using cloudflare to route your local jellyfin would cause the cloudflare to cache the whole file before streaming it to client
- The solution was to disable by using Cloudflare cache rules. Set “match against” to “Hostname equals yourdomain.com”
#2 Incorrect Anime Metadata
- Sometimes anime metadata doesn’t match and quiet incorrect
- The solution was to use AniList instead. Enable it in the plugin section in Jellyfin server settings.
- Set the folder & file naming convention as follows:
—Anime
——Shingeki no Kyojin
———Season 01
————Shingeki no Kyojin S01E01.mp4
#3 Subtitle Missing
It was bad if your subtitle were in AAS format and MKV video. Extract the AAS subtitle into SRT instead.
winget install ffmpeg
And run this in the folder containing the mkv
for %i in (*.mkv) do ffmpeg -i "%i" -map 0:s:0 "%~ni.srt"