-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change of aspect ratio during playback is not detected #117
Comments
I'd hazard a guess ExoPlayer is telling us about this, and we're just not acting on it. The problem is, I have no clue where it might be doing that! Does this happen often on any of your channels? I don't think I've ever seen it on FreeSat or Saorview channels in Ireland. Any chance you would be able to grab some logs as it happens? |
Might take a bit because 4:3 broadcasts are not very common these days, but I'll try to catch one. I just set up adb for my Shield TV. Will I get the relevant information by running "adb logcat" while using Live Channels? |
Yea, If you running it from a Mac or Linux machine, use |
^ change might just log this info clearly, but I suspect it's not applicable for this particular case. |
If anyone can capture this as it happens, that would be much appreciated! https://github.com/kiall/android-tvheadend/wiki/Muxdump |
Got one. |
@lsiudut excellent! I don't even want to know how many attempts it took to get that :) |
@kiall none, I just left stream dump and cut relevant part later :) . Happy to help. |
@lsiudut Thanks a lot for providing the sample - I meant to follow-up on this but hadn't gotten around to it yet. |
@lsiudut how big is the original file before curring? and if it's too big to send, could you cut a larger sample? Say 30 seconds before and 30 seconds after the switch? |
@kiall sure, here it is https://www.dropbox.com/s/i5ikhgasf3s0s25/aspect-change.ts.gz?dl=0 . Original file is huge, obviously. Btw you could forge file like this by yourself. It's enough to concatenate two files with same resolution and different aspect ratio. Information about it is help in context metadata, in ffmpeg world it is:
|
Thanks! Past experience tells me forging files tends to mean I'm not actually testing the thing I wanted to ;) So - Interesting, what's chaning here is the display aspect ratio, rather than the resolution (which you hinted at earlier but it didn't click with me until I saw it).. First video frame info:
Last video frame info:
|
Yep. Resolution of stream can not change. Afaik most common approach is to send stream in 4:3 format and change aspect to reflect 16:9. It scales well and drop in quality is almost not noticable. |
So - This looks like something that needs to be implemented or fixed within ExoPlayer. It's not currently detecting the change in aspect ratio, in contract to how it detects changes to audio channel layout changes (e.g. from 5.1 -> 2.0 and back again during ad breaks). For my own reference later, I pushed a change to ExoPlayer to display the PAR I'll gather what info I can and file an issue with ExoPlayer to see if they have any suggestions etcs. |
I'm not entirely sure, but I think I saw the same thing using VLC to play a tvh stream the other day. |
(minor issue for the sake of completeness - might also be a limitation of ExoPlayer)
Change of aspect ration during playback is not detected, i.e. when watching a 16:9 programme and a subsequent broadcast is in 4:3, the picture will get stretched and the AR indicator on the info bar still says "16:9". I guess it's the same the other way around (4:3 -> 16:9). Switching channels or stopping and restarting playback will fix this, so in general, aspect ratio detection is working fine.
The text was updated successfully, but these errors were encountered: