#18234·jellyfin

TV recordings do not work with complex streams

Author: mkowalskiCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbug

Description of the bug

I have a TV channel with master playlist containing a subtitle track, three separate audio tracks and a stream with video plus audio. When trying to record it, Jellyfin's recording command passed to ffmpeg never figures out the video format and records only the audio track.

This reproduces by taking the raw ffmpeg command Jellyfin produces against the channel master playlist.

On the other hand when trying to record a channel with only single video+audio stream, the recording is perfectly fine.

Specifically, non-recordable stream is https://lon1-y7p7cyzc7vdh.lolokoko.tv/f_TVPKultura.stream/playlist.m3u8 and recordable simplified one is https://lon1-y7p7cyzc7vdh.lolokoko.tv/f_TVPKultura.stream/tracks-v1a1/mono.m3u8 (ignore the "mono", in reality it has stereo AAC variant).

Quick analysis of how Jellyfin builds the recording command show that src/Jellyfin.LiveTv/IO/EncodedRecorder.cs, in GetCommandLineArgs(), we have fixed -codec:v:0 copy, -codec:a:0 copy, -sn and -analyzeduration 5000000. Adding -map 0:v:0? -map 0:a:0? to those parameters makes recording of a complex stream working fine.

Reproduction steps

  1. M3U tuner with https://lon1-y7p7cyzc7vdh.lolokoko.tv/f_TVPKultura.stream/playlist.m3u8 (master playlist in master-playlists.txt: one v1a1 variant, audio renditions pol a1 (default), qaa a2 (5.1), aux a3, subtitles pol t1)
  2. Schedule a recording on that channel
  3. ffprobe the resulting .ts

What is the current bug behavior?

Output has one stream: Audio: aac (LC), 32000 Hz, 5.1. 40 min recording = 48 MB. Stream mapping: Stream #0:2 -> #0:0 (copy), video:0KiB.

What is the expected correct behavior?

First video stream + first audio stream recorded.

Jellyfin Server version

12.1

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

12.1.0

Environment

markdown
- Jellyfin 12.1.0, `jellyfin/jellyfin:latest` docker image
- ffmpeg 8.1.2-Jellyfin
- Fedora 44 host
- M3U tuner, IgnoreDts=true, ReadAtNativeFramerate=true, XMLTV guide

Jellyfin logs

Multiple logs below as comment

FFmpeg logs

bash
Input #0, mpegts, from 'Rawhide 3/Rawhide 3 2026_09_28_16_55_00.ts':
  Duration: 00:39:53.18, start: 1.400000, bitrate: 160 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
  Stream #0:0[0x100]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, 5.1, fltp, 130 kb/s, start 1.400000

Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

# https://lon1-y7p7cyzc7vdh.lolokoko.tv/f_TVPKultura.stream/playlist.m3u8
#EXTM3U
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="pol t1",AUTOSELECT=YES,LANGUAGE="pol",URI="tracks-t1/mono.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="pol a1",DEFAULT=YES,AUTOSELECT=YES,LANGUAGE="pol",URI="tracks-a1/mono.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="qaa a2",DEFAULT=NO,AUTOSELECT=YES,LANGUAGE="qaa",URI="tracks-a2/mono.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="aux a3",DEFAULT=NO,AUTOSELECT=YES,LANGUAGE="aux",URI="tracks-a3/mono.m3u8"
#EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=3620000,BANDWIDTH=4530000,AUDIO="aac",SUBTITLES="subs",RESOLUTION=1280x720,FRAME-RATE=25.000,CODECS="avc1.4d001f,mp4a.40.2"
tracks-v1a1/mono.m3u8