v1.3.1 — Fix mpv fatal error (demuxer-lavf-analyzeduration out of range)
Root cause
From the user's mpv logs:
[cplayer] Setting option 'demuxer-lavf-analyzeduration' = '2000000' (flags = 8)
The demuxer-lavf-analyzeduration option is out of range: 2000000
Error parsing option demuxer-lavf-analyzeduration (parameter is outside values allowed for option)
Setting commandline option --demuxer-lavf-analyzeduration=2000000 failed.
Exiting... (Fatal error)
Playback error: mpv exited with code 1.
The v1.2.8 fix added --demuxer-lavf-analyzeduration=2000000 thinking the unit was microseconds (2 seconds). But mpv's option range for this flag caps at 100000 (100ms). A value of 2000000 is out of range and causes mpv to exit with a FATAL error before it even tries to play.
The fix
Changed --demuxer-lavf-analyzeduration=2000000 → 100000 (the max allowed value). Added a comment explaining the unit + range constraint so this doesn't break again.
Good news from the logs
The user IS now getting the Yt-mp4 stream (tools.fast4speed.rsvp) which is the highest-priority source — so the API/captcha/network side is working correctly. The stream URL resolved successfully. The only issue was this one mpv flag value being out of range.
Install
pip install --upgrade sni-cli
sni play "Tsue to Tsurugi no Wistoria"Playback should now work — mpv will no longer exit with the fatal analyzeduration error.
Full changelog: v1.3.0...v1.3.1