Skip to content

Bug with FFmpeg "Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000)"Β #308

@Lucy1342

Description

@Lucy1342

πŸ“‹ Bug Description

Since the first days of January, I have been encountering an issue where some scheduled recordings are not saved after the broadcast ends.
During the live stream, the recording file does exist and appears to be recording normally. However, once the stream ends, the file is removed and no valid recording remains.

I attempted the following without success:

  • Recreating the scheduled recording
  • Changing the output directory
  • Changing the output format

When recording with MP4/remux enabled, after the stream ends only a very small file (~261 bytes) is created instead of a valid recording.

πŸ’» Operating System

Windows 10

πŸ”„ Steps to Reproduce

No response

πŸ“Έ Screenshots/Videos

No response

πŸ“ Log Files / Error Messages

After comparing logs from correctly saved recordings with logs from failed recordings, I noticed that failed cases consistently include the following FFmpeg warning:

[mov,mp4,m4a,3gp,3g2,mj2 @ 000002c1a7b5f8c0] Could not find codec parameters for stream 1 (Video: h264 (avc1 / 0x31637661), none, 1920x1080): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

In the failed recordings:

  • FFmpeg does not detect valid video parameters
  • No video or audio frames are written
  • The resulting output file is empty or nearly empty

In contrast, recordings that are saved correctly do not show this warning and contain valid video/audio data.

Correct recording_TwitchLink_Download_2026.01.20_09-41-44#3c596c5b-afe8-42b8-ba3b-de1ed12a8b45.log

Incorrect recording_TwitchLink_Download_2026.01.21_08-30-39#9dee0c8b-e516-499c-b337-069a7c41d3f7.log

πŸ“‹ Additional Context

No response

βœ”οΈ Confirmation

  • I have checked existing issues to avoid duplicates
  • I have tested with the latest version of TwitchLink
  • I have provided clear context and sufficient information to understand the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions