Bug #2166

ST tries to restore position when opening endless HLS/RTMP/MPEGTS items manually from the item lists (All platforms)

Added by Leonid Protasov almost 7 years ago. Updated almost 7 years ago.

Status:FixedStart date:05/16/2014
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Video playback
Target version:4.8
Found in version:All Platform:Linux

Description

That is because when you exit watching by backspace/exit key - ST writes current position to metadb. To fight that you can just make ST to store 0 to metadb on exit watching...

02:39:32.735: probe [DEBUG]:http://clients.cdnet.tv/h/14/1/1/MHdHdGhQdlFWbE96Uk92cHhibzF4TlFzUDhmS0NNZ3IrQ2JENWU2c1h1blc2OE9OUi9JR0tXTDloU3EwQkNCMg: Probed as mpegts
02:39:37.593: Video [DEBUG]:Starting playback of http://clients.cdnet.tv/h/14/1/1/MHdHdGhQdlFWbE96Uk92cHhibzF4TlFzUDhmS0NNZ3IrQ2JENWU2c1h1blc2OE9OUi9JR0tXTDloU3EwQkNCMg (mpegts)
02:39:37.594: Probe [DEBUG]: Stream #0: Audio: mp3, 44100 Hz, 2 channels, s16p, 128 kb/s
02:39:37.594: Probe [DEBUG]: Stream #1: Video: h264 (High), yuv420p, 720x576 [PAR 64:45 DAR 16:9]
02:39:37.596: Subscanner [DEBUG]:Starting subtitle scan for Первый канал (imdbid:<unknown>) year:0 season:-1 episode:-1 duration:0 opensubhash:0000000000000000
02:39:37.597: Video [DEBUG]: Stream #0: Audio: mp3, 44100 Hz, 2 channels, s16p, 128 kb/s
02:39:37.598: media [DEBUG]:Selecting track libav:0, best score 306
02:39:37.600: Video [DEBUG]: Stream #0: Codec created
02:39:37.601: Video [DEBUG]: Stream #1: Video: h264 (High), yuv420p, 720x576 [PAR 64:45 DAR 16:9]
02:39:37.619: OMX [DEBUG]:Frame rate set to 25.000
02:39:37.654: Video [DEBUG]: Stream #1: Codec created
02:39:37.706: Video [DEBUG]:Selecting audio track libav:0
02:39:37.707: audio [DEBUG]:Codec changed to mp3 (0x15001)
02:39:37.721: RPI [DEBUG]:Opening audio output hdmi
02:39:37.737: VideoCore [DEBUG]:Video decoder output port settings changed to h264 720x576p (VideoCore) (SAR: 64:45)
02:39:37.752: Audio [DEBUG]:Converting from [stereo 44100Hz s16p] to [stereo 44100Hz s16]
02:39:42.586: Video [DEBUG]:Stopped playback of http://clients.cdnet.tv/h/14/1/1/MHdHdGhQdlFWbE96Uk92cHhibzF4TlFzUDhmS0NNZ3IrQ2JENWU2c1h1blc2OE9OUi9JR0tXTDloU3EwQkNCMg
02:39:42.989: HTTP [DEBUG]:Skipping by reading 16096665 bytes
02:39:43.127: Video [DEBUG]:Playing http://clients.cdnet.tv/h/17/1/1/MFFIQjkvdlFWbE5Lam9jbkJlNjAzdjEyTVhNWEZhYUdSN3REYXI3cFV0QW1CRzE0bVkwK2dPY0Q0OFg1Y25meg
02:39:43.128: media [DEBUG]:Settings initialized for URL http://clients.cdnet.tv/h/17/1/1/MFFIQjkvdlFWbE5Lam9jbkJlNjAzdjEyTVhNWEZhYUdSN3REYXI3cFV0QW1CRzE0bVkwK2dPY0Q0OFg1Y25meg in folder: Russian [tv:category:Russian]
02:39:43.167: SVSYNC [DEBUG]:Set to 0s
02:39:43.203: AVSYNC [DEBUG]:Set to 0 ms


Related issues

Related to Bug #2088: ST tries to restore position on streams (skipping by read... Fixed 04/01/2014

Associated revisions

Revision 84a06aa4
Added by Andreas Smas almost 7 years ago

rtmp/hls/fa: Log when we try to resume

refs #2166

Change included in version 4.7.27

Revision 03caba05
Added by Andreas Smas almost 7 years ago

fa/video: Avoid writing resume position if source cannot seek

Fixes #2166

Change included in version 4.7.28

History

#1 Updated by Leonid Protasov almost 7 years ago

PS: ST doesn't do restore position on skipping back/forward action. Just on opening items manually...

By other words ST should check if it's playing endless stream. If yes - store 0 position to DB. That is easy to implement and will do the trick.

#2 Updated by Leonid Protasov almost 7 years ago

To sum up:
1. ST while playing endless stream, shouldn't do writes of position to DB.
2. On exit event (pressing backspace) it should write 0 position to DB. This will eliminate old records that were made on older ST versions.

After this fixes ST will open endless streams each time from the beginning.

#3 Updated by Leonid Protasov almost 7 years ago

  • Target version set to 4.8

#4 Updated by Andreas Smas almost 7 years ago

  • Priority changed from Immediate to Normal

#5 Updated by Leonid Protasov almost 7 years ago

  • Related to Bug #2088: ST tries to restore position on streams (skipping by reading N bytes HTTP error) (Any platform) added

#6 Updated by Andreas Smas almost 7 years ago

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

Also available in: Atom PDF