xbmc / xbmc/inputstream.ffmpegdirect

Kodi 20 crashes when skipping backwards when timeshifting

Open
#367 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
101
Forks
56
PR merge metrics
No merged PRs in 30d

Description

Using IPTV Simple on Kodi 20 on a RPI 4 with RPI OS 64-bit. Watching a stream , pausing, resuming, and skipping forward will work but if I go back at all Kodi will freeze and crash. Keep getting the error in the log
"error : AddOnLog: inputstream.ffmpegdirect: LoadSegment - segment load error, packet index -1725095486 does not equal expected value of 1 with a total packet count of: 1241" all the way to "error : AddOnLog: inputstream.ffmpegdirect: LoadSegment - segment load error, packet index 126 does not equal expected value of 1240 with a total packet count of: 1241"
Then it either completely freezes up or it aborts Kodi. I've tried changing the timeshift values but nothing seems to improve it.

Arch: aarch64
Kernel: Linux 6.12.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1~bookworm (2025-09-16)
Release: Debian GNU/Linux 12 (bookworm)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the inputstream.ffmpegdirect LoadSegment entry point and reproduce the failure with IPTV Simple on a Raspberry Pi 4 running Kodi 20 and Debian 12. Use the reported packet-index errors as the starting diagnostic signal. Done means rewinding a paused or timeshifted stream no longer freezes or aborts Kodi.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.