americosfacebook / googletv-issues

Automatically exported from code.google.com/p/googletv-issues
0 stars 0 forks source link

Enable more aspect ratio options #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have the new LG G2 series and the media player only has two options for AR: 
full screen and original size. This means that videos with 2.35:1 or 4:3 AR 
play in either a small box or stretched/squished to fit the screen.

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by jarrettv on 19 Jun 2012 at 1:12

GoogleCodeExporter commented 8 years ago
Which media player? App? Widget?

Original comment by mjo...@google.com on 10 Jul 2012 at 7:31

GoogleCodeExporter commented 8 years ago
All media players exhibit the same problem. It must be the MediaPlayer API is 
ignoring the the aspect ratio signal in the video stream.

Built-in Media Player - BROKEN
Plex - BROKEN
GTVBox - BROKEN but developer has supplied work-around
Avia - BROKEN

Affected video files: AVI, MKV, MP4, M2TS

Original comment by jarrettv on 18 Oct 2012 at 1:54

GoogleCodeExporter commented 8 years ago
You can acknowledge the problem by playing an anamorphic video source (2.35AR 
DVD).

Original comment by jarrettv on 31 Oct 2012 at 6:17

GoogleCodeExporter commented 8 years ago
Here are some links to people reporting the problem:

http://forums.plexapp.com/index.php/topic/33039-movie-size-incorrectly-displayed
/
http://forums.plexapp.com/index.php/topic/46899-169-movies-scrunched-into-43/
http://forums.plexapp.com/index.php/topic/45687-direct-play-vs-transcoding/
http://forums.plexapp.com/index.php/topic/55752-please-add-animorphic-fix-for-br
oken-aspect-ratio-darpar-in-googletv/
http://forums.plexapp.com/index.php/topic/45619-zoom-aspect-ratio-issues/
http://forums.plexapp.com/index.php/topic/52795-picture-squish/
http://forums.plexapp.com/index.php/topic/40889-aspect-ratio/
https://plus.google.com/100427843958963974912/posts/TL1rPfTPmQs

Also, you can confirm the issue with the ViMu author.

Original comment by jarrettv on 13 Feb 2013 at 3:53

GoogleCodeExporter commented 8 years ago
I'm seeing this as well with the development of Serenity for Google TV.  All 
source for that app is available on github, but the relevant code starts here:

https://github.com/kingargyle/plexapp-client/blob/master/PlexAppClient/src/main/
java/com/github/kingargyle/plexappclient/ui/video/player/SerenitySurfaceViewVide
oActivity.java#L116

Basically only the physically stored dimensions of the video are being 
returned, not the Display Dimensions (they are different for Anamorphic 
content).  One of the better explanations is from the Anamorphic FAQ from 
Handbrake.

https://trac.handbrake.fr/wiki/AnamorphicGuide

"Anamorphic in HandBrake means encoding that distorted image stored on the DVD, 
but telling the video player how to stretch it out when you watch it."

So the physicall aspect ratio can and will be different from the Display Aspect 
Ratio and the width and size will be different as well.   The codec being used 
should be able to return this information back to the player with the 
getVideoWidth and getVideoHeight methods.  Currently they are only return the 
PAR not the DAR.

Original comment by kingarg...@gmail.com on 13 Feb 2013 at 3:50

GoogleCodeExporter commented 8 years ago
For app developers experiencing a problem with the Aspect Ratio, this might be 
of some use:

http://clseto.mysinablog.com/index.php?op=ViewArticle&articleId=2992625

I'm not sure if this solves the problem described here, but I have played 
around with something similar as the link above to overcome some aspect ratio 
problems.

Original comment by mattga...@google.com on 13 Feb 2013 at 4:25

GoogleCodeExporter commented 8 years ago
Here is a sample file:

https://docs.google.com/file/d/0B97a2IRj7gFpWGhuVFN6Rm9ZdjA/edit?usp=sharing

Original comment by jarrettv on 13 Feb 2013 at 8:23

GoogleCodeExporter commented 8 years ago
 guys please bear with me i had a stroke 9 months ago and cant quite think straight or type what I'm thinking etc!   

Ok i am using Plex Server on a dual Xeon dell 690 with A Sony Google TV Box 
with plex App and i am and have Ripped my DVD and BR collection using an i7 
iMac Make MKV and Handbrake using the ATV3 Preset, Now most the things iv done 
work 100% 
now iv done a film Bloody Sunday it plays in iTunes, VLC Player fine top to 
bottom and left too right it fits fine it also plays full screen in the web 
page or via HDMI from the Server fits fine doesn't look stretched it looks 
exactly as the dvd! but when i play it threw Sonys Google TV Box with Plex App 
it puts it into what looks like 4:3 "big letterbox left and right hand side" 
Also i put the film off the server onto a USB and into the Sony usb and again 
it plays 100% fine asif it were the dvd! now its doing this with alot of my 
stuff Benidorm on the dvd cases it says 16:9, After Life again 16:9 again both 
play ok off usb and in itunes Vlc etc play in Plex App on sony Google tv and 
back too 4:3 but other stuff plays in full 1080P or DVDs 16:9 its just certain 
ones.
i have just under 2TB of media and about 1200 DVDs left too Rip so just after a 
Solution Or Explanation as to why some of my stuff is 4:3 when it plays 16:9 in 
other stuff, Is it Plex? The App? or Google TV?

does all this sound like what this is about?

Thanks In Advance and Please do ignore my ignorance i do try keep up and follow 
but i tend too forget easy nows days 

Lee 

Original comment by leeknigh...@gmail.com on 4 Mar 2013 at 1:54

GoogleCodeExporter commented 8 years ago
Please we need a fix for this ASAP! 

Original comment by leeknigh...@gmail.com on 12 Mar 2013 at 1:21

GoogleCodeExporter commented 8 years ago

Original comment by stephani...@gmail.com on 12 Mar 2013 at 1:40

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
#10 stephaniebergmann29@gmail.com
(No comment was entered for this change.)
    SerenitySurfaceViewVideoActivity.java#L116
0 bytes   Download

Any idea what this is?

Original comment by leeknigh...@gmail.com on 12 Mar 2013 at 2:15

GoogleCodeExporter commented 8 years ago
Are you refering to this code:

https://github.com/NineWorlds/serenity-android/blob/master/serenity-app/src/main
/java/us/nineworlds/serenity/ui/video/player/SerenitySurfaceViewVideoActivity.ja
va#L138

Line 116 is a comment.

The code above is where Serenity sets up the aspect ratio based on information 
returned from the Media Player api, which itself is getting it from the 
underlying codecs being used.   We also have some additional code where if the 
user prefers the aspect ratio calculated by plex, it will use that aspect ratio 
instead of the one it calculated from the media player api.  This works around 
most cases of the incorrect aspect ratio being returned but not all.

Original comment by kingarg...@gmail.com on 12 Mar 2013 at 10:00