Bug #2262

Subtitle loading causes high cpu load when ST switches to the next video at continious play (in HLS player on RPi)

Added by Leonid Protasov over 6 years ago. Updated over 6 years ago.

Status:FixedStart date:10/04/2014
Priority:HighDue date:
Assignee:Andreas Smas% Done:

100%

Category:Subtitles
Target version:4.8
Found in version:4.7.223 Platform:RPi

Associated revisions

Revision 7ce8d62b
Added by Andreas Smas over 6 years ago

media: Avoid racing subtitle loader threads

Fixes #2262

Change included in version 4.7.353

History

#1 Updated by Leonid Protasov over 6 years ago

  • Subject changed from Subtitle loading causes (high cpu load at some conditions) rpi to Subtitle loading causes high cpu load when ST switches to the next video at continious play (in HLS player on RPi)

Looks like some race.

#2 Updated by Leonid Protasov over 6 years ago

  • Priority changed from Immediate to Urgent

#3 Updated by Leonid Protasov over 6 years ago

  • Priority changed from Urgent to High

#4 Updated by Leonid Protasov over 6 years ago

Opening the same two times?

vp [DEBUG]: Playing 'smb://192.168.0.190/c$/1/movies/3d-2d.mk3d', primary, attempt-resume
media [DEBUG]: Settings initialized for URL smb://192.168.0.190/c$/1/movies/3d-2d.mk3d in folder: movies [smb://192.168.0.190/c$/1/movies]
SVSYNC [DEBUG]: Set to 0s
AVSYNC [DEBUG]: Set to 0 ms
probe [DEBUG]: smb://192.168.0.190/c$/1/movies/3d-2d.mk3d: Probed as matroska,webm
X11 [DEBUG]: Suspending screensaver
Video [DEBUG]: Starting playback of smb://192.168.0.190/c$/1/movies/3d-2d.mk3d (matroska,webm)
Probe [DEBUG]:  Stream #0: Video: h264 (High), yuv420p, 1920x1080
Probe [DEBUG]:  Stream #1: Audio: aac, 48000 Hz, stereo, fltp
Probe [DEBUG]:  Stream #2: Video: h264 (High), yuv420p, 1280x720
media [DEBUG]: Selecting track libav:1, best score 11
Media [DEBUG]: Selecting audio track libav:1
Subscanner [DEBUG]: Starting subtitle scan for 3d-2d (imdbid:<unknown>) year:0 season:-1 episode:-1 duration:60 opensubhash:a3023a730b91a24d
Video [DEBUG]:  Stream #0: Video: h264 (High), yuv420p, 1920x1080
Video [DEBUG]:  Stream #0: Codec created
Video [DEBUG]:  Stream #1: Audio: aac, 48000 Hz, stereo, fltp
Video [DEBUG]:  Stream #1: Codec created
Video [DEBUG]:  Stream #2: Video: h264 (High), yuv420p, 1280x720
Video [DEBUG]: Scanning for subs in smb://192.168.0.190/c$/1/movies/ for 3d-2d
Video [DEBUG]: Scanning for subs in zip://smb://192.168.0.190/c$/1/movies//Arabic-3.6.0.zip for 3d-2d
audio [DEBUG]: Codec changed to aac (0x15002)
opensubtitles [DEBUG]: Attempting to login as anonymous user
PA [DEBUG]: Context ready
PA [DEBUG]: Created stream float32le 2ch 48000Hz [front-left,front-right] (tilesize=8184)
opensubtitles [DEBUG]: Login OK
Audio [DEBUG]: Converting from [stereo 48000Hz fltp] to [stereo 48000Hz flt]
media [DEBUG]: Selecting track http://dl.opensubtitles.org/en/download/filead/src-api/vrf-c3732723e3/20856.gz, best score 1200
Media [INFO]: Selecting subtitle track http://dl.opensubtitles.org/en/download/filead/src-api/vrf-c3732723e3/20856.gz
media [DEBUG]: Selecting track http://dl.opensubtitles.org/en/download/filead/src-api/vrf-8ca58b66aa/30436.gz, best score 1300
Media [INFO]: Selecting subtitle track http://dl.opensubtitles.org/en/download/filead/src-api/vrf-8ca58b66aa/30436.gz
Subtitles [DEBUG]: Trying to load http://dl.opensubtitles.org/en/download/filead/src-api/vrf-8ca58b66aa/30436.gz
Subtitles [DEBUG]: Trying to load http://dl.opensubtitles.org/en/download/filead/src-api/vrf-8ca58b66aa/30436.gz
opensubtitles [DEBUG]: Added 500 subtitles
Subtitles [INFO]: http://dl.opensubtitles.org/en/download/filead/src-api/vrf-8ca58b66aa/30436.gz is not valid UTF-8. Decoded as windows-1251 (detected language: ru)
Subtitles [INFO]: http://dl.opensubtitles.org/en/download/filead/src-api/vrf-8ca58b66aa/30436.gz is not valid UTF-8. Decoded as windows-1251 (detected language: ru)
Subtitles [DEBUG]: Loaded http://dl.opensubtitles.org/en/download/filead/src-api/vrf-8ca58b66aa/30436.gz OK
Subtitles [DEBUG]: Loaded http://dl.opensubtitles.org/en/download/filead/src-api/vrf-8ca58b66aa/30436.gz OK
Video [DEBUG]: Playback reached EOF: End of file (-1606004923)

#5 Updated by Andreas Smas over 6 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF