If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Not Answered: All files with the 'Original display aspect ratio' tag play at wrong resolution

AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass

On the Nvidia Shield TV all files direct played with the 'Original display aspect ratio' tag play at the wrong resolution; this doesn't occur on a transcode or with Plex Media Player on the Mac.

720x576 wrongly playing as 540x576 and 720x480 wrongly playing as 540x480, for example.

This file: https://www.dropbox.com/s/8xmb75nnqw8qy5e/70028.xml?dl=0 (media info export: https://www.dropbox.com/s/okjeo0a4oqlt7cp/1.txt?dl=0)
Sample: https://www.dropbox.com/s/qjr0vihapc95c1n/Victoria Wood with All the Trimmings (2000).mkv?dl=0

Doesn't display correctly. Should be 720x576 but direct plays 540x576 instead which cuts off the screen:

Wrong:

When I force transcode, displays correctly:

Is this a bug with exoplayer @drhill

Best Answers

  • MovieFan.PlexMovieFan.Plex Posts: 16,037Members, Plex Pass, Plex Ninja Plex Employee
    Accepted Answer

    No update yet, but what @Achilles filed does address the problem. It is being looked into.

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass
    Accepted Answer

    Just had this today from Troy @ Nvidia:

    Hi Andrew,

    NVIDIA QA has reproduced the problem with Plex. If more information is needed or there is an update I will contact you.

    Best Regards, Troy NVIDIA Customer Care L2 -----------------------

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass
    Accepted Answer

    Previously – https://forums.plex.tv/discussion/comment/1355491/#Comment_1355491 – I did not advocate a solution to this problem using a program (from 2003) called Restream. I have now changed that opinion.

    The video artefacts I previously attributed to being introduced by Restream, were in fact caused by MKVTOOLNIX; working with Moritz Bunkus, this has now been fixed by him: https://github.com/mbunkus/mkvtoolnix/issues/2045#issuecomment-316393191

    This problem was isolated to mpeg only; from Bunkus:

    The feature was implemented by removing all 0 bytes in before the next
    start code (and all 0 bytes at the end of the buffer). The problem is
    that a slice structure may very well end in 0 bytes. The only way to
    determine the end of the slice structure with confidence is
    implementing a parser for the whole slice structure.

    The result of removing bytes belonging to the slice structure may or
    may not end in visual artifacts upon decoding. Other results include
    error message by the decoder (e.g. ffmpeg which reports errors such as
    "slice mismatch" or "motion vectors not available").

    I lack the time and motivation to implement a proper slice parser. As
    the current behavior is dangerous and just plain wrong, I'm removing
    the feature again. It was introduced in release 5.8.0 response to
    issue #734, which will now remain not implemented.

    Fixes #2045.

    So, while waiting for Nvidia to fix the issue, you can, in the meantime fix things yourself by doing the following that amends the MPEG2 elementary stream without re-encode:

    I'm on a Mac, so I had to use old work junk that's windows to do this:

    1) You need the elementary MPEG2 so: ffmpeg -i 'Victoria Wood with All the Trimmings (2000).mkv' -c:v copy victoria.m2v
    2) YOU HAVE TO USE WINDOWS. Open ReStream, found here http://www.videohelp.com/software/Restream (ReStream can only handle elementary MPEG2, VOBs are not implemented).
    3) Reflag Sequence Display Extension -> change Horizontal Size: 720. Or you can choose to remove the flag. I REMOVED it.
    4) Now MediaInfo reads the .m2v as 16:9 here.
    5) Remux the .m2v and the audio and subtitles etc from original back into MKV with MKVToolnix

    If you need ffmpeg on the mac then I suggest home-brew: http://brew.sh
    Just put /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" into the command to install. Then 'brew install ffmpeg'

    And now it'll direct play at the correct resolution

«134

Answers

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass

    I think it might be the 'Original display aspect ratio : 2.40:1' tag causing the issue. The player on the nvidia shield TV seems to honour this tag, which causing the display problem whereas transcoding ignores it. I'm on a Mac, is there tool that I could use to remove this 'Original display aspect ratio' tag? MKVtoolnix doesn't seem to be able to.

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass

    I even tried DVDpatcher. But that didn't help. Could this be a problem with exoplayer?

  • xMikeHDxMikeHD Posts: 4Members, Plex Pass Plex Pass

    I also got this problem with a Philips 55PUS6401/12. A part of the video is just cut and its annoying, really

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass

    @xMikeHD said:
    I also got this problem with a Philips 55PUS6401/12. A part of the video is just cut and its annoying, really

    Post up a sample, pms xml of the file and some pics. These might help devs sort out this issue.

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass

    Anyone have an idea why this is happening. Tried most things my end. Could it be a bug with direct play only?

  • zpaolo11xzpaolo11x Posts: 1,229Members, Plex Pass Plex Pass
    edited July 2016

    I had an issue like this with some old rips that for some reason had a wrong aspect ratio, changed it with FFMPEG without having to re-rip anything. Your xml shows an anamorphic PAL DVD resolution (720x576 with 1.42 pixel aspect ratio so that the image is 16:9 (1.78 aspect ratio). Maybe the original show was 4:3?

  • zpaolo11xzpaolo11x Posts: 1,229Members, Plex Pass Plex Pass

    That's what fixed it for me:

    ffmpeg -i input.mp4 -vcodec copy -acodec copy -aspect x:y output.mp4

    where input.mp4 is the original file, output.mp4 the output file and x:y is 16:9 or 4:3 according to what you want to set. It worked for me, but bear in mind that this changes aspect ratio at the container level and your xml shows also a pixel aspect ratio at the part level. I don't know if ffmpeg can change that too

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass

    Can anyone from plex confirm or not whether this is a bug?

  • danjames92danjames92 Posts: 3,241Members, Plex Pass Plex Pass

    @Afullmark said:
    Can anyone from plex confirm or not whether this is a bug?

    Can you provide a sample so I can check it on the latest beta?

    Mac Mini (2.7GHz, Late 2012, Windows 10, Kodi DSPlayer) | SATV 16GB | Panasonic TX-P50GT50B | Yamaha RX-V675 | Q Acoustics 2010i (FL, FR, Left S, Right S), Q2000ci Center, Q2070si Sub

     

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass
    edited August 2016

    @danjames92 said:

    @Afullmark said:
    Can anyone from plex confirm or not whether this is a bug?

    Can you provide a sample so I can check it on the latest beta?

    I posted one already: http://forums.plex.tv/discussion/comment/1204416/#Comment_1204416

    And thanks.

  • danjames92danjames92 Posts: 3,241Members, Plex Pass Plex Pass

    @Afullmark said:

    @danjames92 said:

    @Afullmark said:
    Can anyone from plex confirm or not whether this is a bug?

    Can you provide a sample so I can check it on the latest beta?

    I posted one already: http://forums.plex.tv/discussion/comment/1204416/#Comment_1204416

    And thanks.

    Oh sorry I missed that. Will try the sample today and get back to you.

    Mac Mini (2.7GHz, Late 2012, Windows 10, Kodi DSPlayer) | SATV 16GB | Panasonic TX-P50GT50B | Yamaha RX-V675 | Q Acoustics 2010i (FL, FR, Left S, Right S), Q2000ci Center, Q2070si Sub

     

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass
    via Email
    Do not worry. Threads get busy, and it's easy to miss posts. Thanks for your help.
  • EkomaxEkomax Posts: 279Members, Plex Pass Plex Pass

    Same here. with MakeMKV ripped DVDs are only 16:9 when direct played. As soon as there is a need for transcoding they appear as 4:3. Seems to be a bug with transcoding with anamorphic material in the Shields PMS.

  • danjames92danjames92 Posts: 3,241Members, Plex Pass Plex Pass
    edited August 2016

    @Afullmark said:
    Do not worry. Threads get busy, and it's easy to miss posts. Thanks for your help.

    It plays as 520x524 in the beta app as well. It plays for a few seconds with no sound. Then freezes. This isn't served from a SHIELD server.

    Mac Mini (2.7GHz, Late 2012, Windows 10, Kodi DSPlayer) | SATV 16GB | Panasonic TX-P50GT50B | Yamaha RX-V675 | Q Acoustics 2010i (FL, FR, Left S, Right S), Q2000ci Center, Q2070si Sub

     

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass

    @danjames92 said:

    @Afullmark said:
    Do not worry. Threads get busy, and it's easy to miss posts. Thanks for your help.

    It plays as 520x524 in the beta app as well. It plays for a few seconds with no sound. Then freezes. This isn't served from a SHIELD server.

    Not on beta program; could you refer them here to this thread.

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass
    edited January 5

    On the Nvidia Shield TV there is something quite wrong. @drhill & @BigWheel you were so kind to help with https://forums.plex.tv/discussion/227296/plex-on-the-nvidia-shield-still-cannot-play-dts-4-1-or-ac3-4-1-surround-5-0#latest I wondered if you could look at this, as no other has got to the bottom of it.

    Here is another mkv: https://dl.dropboxusercontent.com/u/13997835/wrong width/Daniel Barenboim - Ruhr Piano Festival (2007) (1).mkv that is 720x480 but Plex on the Nvidia Shield will only direct play it at 540x480; as you can see here: https://dl.dropboxusercontent.com/u/13997835/wrong width/984.xml everything is as it should be on the media server end.

    Considering I have other files that do the same thing, i think its something up with exoplayer:

    This file: https://dl.dropboxusercontent.com/u/13997835/wrong width/70028.xml (media info export: https://dl.dropboxusercontent.com/u/13997835/wrong width/1.txt)
    Sample: https://dl.dropboxusercontent.com/u/13997835/wrong width/Victoria Wood with All the Trimmings (2000) (1).mkv

    Doesn't display correctly. Should be 720x576 but direct plays 540x576 instead

    Both examples provided are showing as 'Aspect Ratio 1.78' in PMS, which is correct.

    Of course, if i select to transcode within the plex app settings then the resolution is correct. So, only direct playing is the problem here. The files also play at the correct resolution when using the Plex Media Player for Mac.

    Files that have this issue also have this tag: 'Original display aspect ratio : 2.40:1' which i think exoplayer for direct play should ignore, as transcoding in plex ignores this tag.

    Looking around, it seems another player (omxplayer) had this issue and was solved here: https://github.com/raspberrypi/firmware/issues/507


    This issues can be replicated with all the following titles (and they all have the 'Original display aspect ratio' tag) and so I feel is it not isolated, but impacts lots of media:

    1. ../Plays/A Midsummer Night's Dream (1996)/A Midsummer Night's Dream (1996).mkv
    2. ../Opera/Don Giovanni (2001)/Don Giovanni (2001).mkv
    3. ../Opera/Iphigenie en Tauride (2001)/Iphigenie en Tauride (2001).mkv
    4. ../Opera/L'lncoronazione di Poppea (2000)/L'lncoronazione di Poppea (2000).mkv
    5. ../Opera/L'Orfeo (2002)/L'Orfeo (2002).mkv
    6. ../Opera/L'Upupa & Der Triumph der Sohnesliebe (2003)/L'Upupa & Der Triumph der Sohnesliebe (2003).mkv
    7. ../Opera/Le Grand Macabre (2011)/Le Grand Macabre (2011).mkv
    8. ../Opera/Les Troyens (2000)/Les Troyens (2000).mkv
    9. ../Opera/Mozart's Cosi Fan Tutte (2002)/Mozart's Cosi Fan Tutte (2002).mkv
    10. ../Opera/The Damnation of Faust (1999)/The Damnation of Faust (1999).mkv
    11. ../Opera/The Return of Ulysses to his Homeland (2002)/The Return of Ulysses to his Homeland (2002).mkv
    12. ../Concerts/Abbado - Bruckner #7 & Beethoven Piano Concerto #3 (2005)/Abbado - Bruckner #7 & Beethoven Piano Concerto #3 (2005).mkv
    13. ../Concerts/Abbado - Mahler Symphony No. 9 (2010)/Abbado - Mahler Symphony No. 9 (2010).mkv
    14. ../Concerts/Abbado conducts Mahler's #9 (2004)/Abbado conducts Mahler's #9 (2004).mkv
    15. ../Concerts/Abbado conducts Mahler's symphony #2, "Resurrection" (2003)/Abbado conducts Mahler's symphony #2, "Resurrection" (2003).mkv
    16. ../Concerts/Barenboim & Rattle - Brahms European Concert (2004)/Barenboim & Rattle - Brahms European Concert (2004).mkv
    17. ../Concerts/Barenboim - The Liszt Recital from La Scala (2007)/Barenboim - The Liszt Recital from La Scala (2007).mkv
    18. ../Concerts/Barenboim conducts Mahler Symphony No. 9 (2009)/Barenboim conducts Mahler Symphony No. 9 (2009).mkv
    19. ../Concerts/Barenboim conducts Mahler Symphony No. 9 (2009)/Behind The Scenes/The Mahler Project.mkv
    20. ../Concerts/Celibidache rehearses Bruckner's ninth (1985)/Celibidache rehearses Bruckner's ninth (1985).mkv
    21. ../Concerts/Daniel Barenboim - Ruhr Piano Festival (2007)/Daniel Barenboim - Ruhr Piano Festival (2007).mkv
    22. ../Concerts/Verdi - Messa Da Requiem (2001)/Verdi - Messa Da Requiem (2001).mkv

    I only looked at a few media folders so far. I can provide samples of the above if needed.

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass

    @zpaolo11x said:
    I had an issue like this with some old rips that for some reason had a wrong aspect ratio, changed it with FFMPEG without having to re-rip anything. Your xml shows an anamorphic PAL DVD resolution (720x576 with 1.42 pixel aspect ratio so that the image is 16:9 (1.78 aspect ratio). Maybe the original show was 4:3?

    Nope. They are all correct. They display correctly transcoded or direct played with the Plex Media Player. Exoplayer on the shield seems to be the problem; it doesn't like the 'Original display aspect ratio' tag.

  • AfullmarkAfullmark Posts: 697Members, Plex Pass Plex Pass

    Okey, I used Mediainfo to search my whole collection. 136 movies and TV shows have this problem. They all have the 'Original display aspect ratio' tag and all display at the whole resolution when direct played on the Nvidia shield tv.

    Note, these are all MPEG2 in MKVs.

    Movies such as these do not display in their intended resolution:

    Spirited Away, Savage Grace, Women on the Verge of a Nervous Breakdown, I Killed My Mother, Good Bye, Lenin!, Dogtooth, Bagdad Cafe, Another Woman, A Christmas Tale

«134
Sign In or Register to comment.