Bug #2247

UI elements affect aspect ratio when HLS player switches between variants (RPi)

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

Status:RejectedStart date:08/29/2014
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

0%

Category:Video playback
Target version:-
Found in version:4.7.177 Platform:RPi

Description

Only when "the strange thing is that on 800000 bitrate variant there goes 1024x576 stream on 2500000 stream - 720x576 stream" happens in hls player (live streams).


Related issues

Related to Bug #2291: Regression in HLS player on some links (All platforms) Fixed 10/24/2014
Related to Feature #1718: Override HLS adaptive streaming (track selection) New 07/15/2013
Related to Feature #2199: Reenable seeking on HLS live streams New 07/02/2014
Related to Bug #2160: Some live HLS streams are blackscreen on PS3 Invalid 05/16/2014

History

#1 Updated by Leonid Protasov over 6 years ago

Even if "strange thing" message is not shown - it still sets SAR wrong. Let's take a look at stream that has two variants:

01:14:16.061: Video [DEBUG]:Playing hls:http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv-site.m3u8
01:14:16.062: media [DEBUG]:Settings initialized for URL hls:http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv-site.m3u8 in folder: History [divan_tv:index:403:History]
01:14:16.099: SVSYNC [DEBUG]:Set to 0s
01:14:16.133: AVSYNC [DEBUG]:Set to 0 ms
01:14:16.215: OMX [DEBUG]:Frame rate set to 25.000
01:14:16.241: HLS [DEBUG]:Base URL: http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv-site.m3u8
01:14:16.242: HLS [DEBUG]:Variants
01:14:16.242: HLS [DEBUG]:  http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv.m3u8
01:14:16.242: HLS [DEBUG]:    bitrate:    2500000
01:14:16.242: HLS [DEBUG]:    Video resolution: 1024 x 576  Profile: <unknown>  Level: 0.0
01:14:16.242: HLS [DEBUG]:  http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv-800.m3u8
01:14:16.243: HLS [DEBUG]:    bitrate:    800000
01:14:16.243: HLS [DEBUG]:    Video resolution: 512 x 288  Profile: <unknown>  Level: 0.0
01:14:16.247: HLS [DEBUG]:Variant 800000 selected for seeking

ST selects 1024x576 800Kbps variant and sets SAR ok:

01:14:16.265: HLS [DEBUG]:Open segment 2040 in 800000 bps @ http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv-800-2040.ts
01:14:16.329: audio [DEBUG]:Codec changed to aac (0x15002)
01:14:16.347: RPI [DEBUG]:Opening audio output hdmi
01:14:16.395: VideoCore [DEBUG]:Video decoder output port settings changed to h264 1024x576p (VideoCore) (SAR: 1:1)
01:14:16.396: Audio [DEBUG]:Converting from [mono 22050Hz fltp] to [stereo 22050Hz fltp]

But then it switches to 720x576 higher bitrate variant and sets wrong SAR:

01:14:24.119: HLS [DEBUG]:Open segment 2452 in 2500000 bps @ http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv-2452.ts
01:14:25.510: HLS [DEBUG]:Estimated bandwidth: 19507454 bps (filtered: 18825106 bps)
01:14:25.511: HLS [DEBUG]:Updating variant 2500000
01:14:28.666: Audio [DEBUG]:Converting from [stereo 44100Hz fltp] to [stereo 22050Hz fltp]
01:14:29.004: VideoCore [DEBUG]:Video decoder output port settings changed to h264 720x576p (VideoCore) (SAR: 1:1)

If I open that 720x576 varian directly it is OK:

01:17:23.986: navigator [INFO]:Opening hls:http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv.m3u8
01:17:24.010: vp [DEBUG]:Waiting for event
01:17:24.011: vp [DEBUG]:Playing 'hls:http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv.m3u8', primary, attempt-resume
01:17:24.012: media [DEBUG]:Settings initialized for URL hls:http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv.m3u8 in folder: <unset> [<unset>]
01:17:24.019: SVSYNC [DEBUG]:Set to 0s
01:17:24.050: AVSYNC [DEBUG]:Set to 0 ms
01:17:24.061: OMX [DEBUG]:Frame rate set to 25.000
01:17:24.084: HLS [DEBUG]:Base URL: http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv.m3u8
01:17:24.085: HLS [DEBUG]:Variants
01:17:24.089: HLS [DEBUG]:  http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv.m3u8
01:17:24.090: HLS [DEBUG]:    bitrate:    0
01:17:24.090: HLS [DEBUG]:    Video resolution: 0 x 0  Profile: <unknown>  Level: 0.0
01:17:24.094: HLS [DEBUG]:Variant 0 selected for seeking
01:17:24.097: HLS [DEBUG]:Updating variant 0
01:17:24.098: HLS [DEBUG]:Added new seq 2467
01:17:24.098: HLS [DEBUG]:Added new seq 2468
01:17:24.098: HLS [DEBUG]:Added new seq 2469
01:17:24.098: HLS [DEBUG]:Added new seq 2470
01:17:24.099: HLS [DEBUG]:Open segment 2468 in 0 bps @ http://cosmo.divan.tv:8001/tv222/5c1e1fc66c29d1cab86d54ac55495d7b/tv-2468.ts
01:17:24.178: audio [DEBUG]:Codec changed to aac (0x15002)
01:17:24.197: RPI [DEBUG]:Opening audio output hdmi
01:17:24.426: VideoCore [DEBUG]:Video decoder output port settings changed to h264 720x576p (VideoCore) (SAR: 64:45)
01:17:24.428: TV [DEBUG]:State change 0x00000002 0x00000001 0x00000010
01:17:24.435: Audio [DEBUG]:Converting from [stereo 44100Hz fltp] to [stereo 44100Hz fltp]
01:17:25.636: HLS [DEBUG]:HLS player done

#2 Updated by Leonid Protasov over 6 years ago

In fact aspect ratio is broken after you call playback status info. If you don't call playback status window - it's ok...

#3 Updated by Leonid Protasov over 6 years ago

I was able to reproduce this bug using link from issue #2250 (yesterday)

#4 Updated by Leonid Protasov over 6 years ago

  • Subject changed from Aspect ratio is not set properly after switching to lower res variant in hls (RPi) to UI elements affect aspect ratio when HLS player switches between variants (RPi)

If you bring up any menu or playbackstatus - aspect ratio broke.

#5 Updated by Leonid Protasov over 6 years ago

  • Related to Bug #2291: Regression in HLS player on some links (All platforms) added

#6 Updated by Leonid Protasov over 6 years ago

  • Related to Feature #1718: Override HLS adaptive streaming (track selection) added

#7 Updated by Leonid Protasov over 6 years ago

  • Related to Feature #2199: Reenable seeking on HLS live streams added

#8 Updated by Leonid Protasov over 6 years ago

  • Related to Bug #2160: Some live HLS streams are blackscreen on PS3 added

#9 Updated by Leonid Protasov over 6 years ago

  • Related to Bug #2385: Showtime never gives up on a HLS segment it is unable to open added

#10 Updated by Andreas Smas over 6 years ago

  • Related to deleted (Bug #2385: Showtime never gives up on a HLS segment it is unable to open)

#11 Updated by Andreas Smas over 6 years ago

  • Status changed from New to Rejected
  • Target version deleted (4.8)

This is just one single stream and I don't want to put time on that

Also available in: Atom PDF