kiall / android-tvheadend

Android + TV Headend + TV Input Framework
Apache License 2.0
192 stars 61 forks source link

Missing Aspect Ratio #205

Open breezytm opened 7 years ago

breezytm commented 7 years ago

In the app, the aspect ration is missing. If the same channel is being tuned directly from Android Live Channels app using HDHomerun Tuner (Beta) it is able to display it as 16:9 etc...The understanding is

From memory, the aspect ratio is determined based on the video resolution, and it video's pixel aspect ratio.

The log below clearly displays that the app can read the video resolution.

07-14 18:34:51.871 3323 27981 D ie.macinnes.tvheadend.player.TvheadendTrackSelector: TrackSelector selectTextTrack 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.ExoPlayerUtils: Processing track: 1920x1080, id:1 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.ExoPlayerUtils: Processing track: eng, 6ch, 48000Hz, id:2 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.ExoPlayerUtils: Processing track: spa, 1ch, 48000Hz, id:3 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.tvinput.LiveSession: Session : 3 (9) 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: Tracks [ 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: Renderer:0 [ 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: Group:0, adaptive_supported=N/A [ 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: [X] Track:0, id=1, mimeType=video/mpeg2, containerMimeType=null, res=1920x1080, fps=29.970629, supported=YES 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: ] 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: ] 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: Renderer:1 [ 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: Group:0, adaptive_supported=N/A [ 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: [X] Track:0, id=2, mimeType=audio/ac3, containerMimeType=null, channels=6, sample_rate=48000, language=eng, supported=YES 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: ] 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: Group:1, adaptive_supported=N/A [ 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: [ ] Track:0, id=3, mimeType=audio/ac3, containerMimeType=null, channels=1, sample_rate=48000, language=spa, supported=YES 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: ] 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: ] 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: ] 07-14 18:34:51.872 3323 3323 D ie.macinnes.tvheadend.player.EventLogger: videoEnabled[1.87]``

Please see log sample and video sample https://ufile.io/23b50 logcat.txt

xeroiv commented 6 years ago

170 and 117 seem to be related to this as well. All reports state that the 4:3 content is stretched on a 16:9 display.