Page 1 of 1

aspect ratio tags possible?

Posted: Sun Jan 13, 2013 3:58 am
by scph9002
Thing is I mux bluray discs and no matter the actual movie aspect ratio the file itself will obviously always be 16:9 IE: black bars are part of the video stream.
So when i add these movies in xbmc the program says that these movies have the aspect ratio of 16:9 which is technically correct but I want xbmc to report the visible aspect ratio that the movie was shot in.

Is that possible to add some kind of aspect ratio tag in mkv's with makemkv?

Re: aspect ratio tags possible?

Posted: Sun Jan 13, 2013 9:51 pm
by leenuss
DAR is in the MKV header and is easily edited using mkvtoolnix. However, changing the aspect ratio will result in XBMC rendering the 16:9 video stream in this custom non-square pixel ratio too. Black bars will become even larger if rendered on 16:9 display.

Re: aspect ratio tags possible?

Posted: Sun Jan 13, 2013 10:51 pm
by scph9002
I just want to add some type of meta tag that media libraries like xbmc might read and report from in its info label, I dont wanna change the actual AR which is already perfect. In xbmc when browsing through movies it reports different info like which audio it has (truehd or dts 5.1 or 7.1) genre, studio etc etc and also aspect ratio which it reports incorrectly because the black bars is always part of the actual video stream.

Not even sure if xbmc read tags like that even if tags like that where possible though :/

Edit: http://i.imgur.com/iQfAQ.jpg

As you can see it that picture xbmc reports wrong aspect ratio. Captain America has 1.35:1 aspect ratio

Re: aspect ratio tags possible?

Posted: Sun Jan 13, 2013 10:58 pm
by scph9002
edit: duplicate post

Re: aspect ratio tags possible?

Posted: Tue Jan 15, 2013 12:44 am
by Romansh
leenuss wrote:DAR is in the MKV header and is easily edited using mkvtoolnix. However, changing the aspect ratio will result in XBMC rendering the 16:9 video stream in this custom non-square pixel ratio too. Black bars will become even larger if rendered on 16:9 display.
Right. Which is why the OP is asking for a "tag" (metadata such as "Artist", "Genre", etc.). Of course XBMC would have to be able to interpret this in order to display the information.

And I doubt MakeMKV is the app which should write that tag. It would involve letterboxing/pillarboxing detection and therefore require video decoders. Probably the best way to do this would be manually via a dedicated metadata editor.

Re: aspect ratio tags possible?

Posted: Thu Jan 17, 2013 5:32 pm
by Q-the-STORM
I don't think there is such a tag in mkv... only way would be checking if you can edit XBMC manually...

Re: aspect ratio tags possible?

Posted: Fri Jan 18, 2013 3:01 pm
by PatHawks
You're looking for the crop tag; not aspect ratio.
This can be set using

Code: Select all

mkvmerge --cropping
And I doubt MakeMKV is the app which should write that tag. It would involve letterboxing/pillarboxing detection and therefore require video decoders.
Like ffmpeg, which comes bundled with MakeMKV? :wink:

Re: aspect ratio tags possible?

Posted: Wed Jan 23, 2013 8:17 pm
by fryk.
Display aspect ratio is always 4:3 or 16:9.
But you can change the pixel aspect ratio ("PAR", aspect ratio signal) with mkvmerge-gui's header editor ("Video pixel width" & "Video pixel height") or on the command line with mkvpropedit:

Code: Select all

mkvpropedit myvideo.mkv --edit track:v1 --set pixel-width=nnn --set pixel-height=nnn
Calculate par = dar / sar.

Re: aspect ratio tags possible?

Posted: Wed Feb 27, 2013 11:57 pm
by bw001
You can have XBMC display the correct aspect ratio by adding the info to a local .nfo file for the movie with stream details.

e.g.:

Code: Select all

  <fileinfo>
    <streamdetails>
      <audio>
        <channels>6</channels>
        <codec>dtshd_ma</codec>
        <language>eng</language>
        <longlanguage>English</longlanguage>
      </audio>
      <subtitle>
        <language>eng</language>
        <longlanguage>English</longlanguage>
      </subtitle>
      <video>
        <aspect>2.35</aspect>
        <codec>h264</codec>
        <durationinseconds>5704</durationinseconds>
        <height>1080</height>
        <language>eng</language>
        <longlanguage>English</longlanguage>
        <scantype>Progressive</scantype>
        <width>1920</width>
      </video>
    </streamdetails>
  </fileinfo>

Re: aspect ratio tags possible?

Posted: Thu Feb 28, 2013 6:55 am
by Romansh
Is there a format reference for this?

Re: aspect ratio tags possible?

Posted: Thu Feb 28, 2013 8:57 pm
by bw001
Romansh wrote:Is there a format reference for this?
Try here: http://wiki.xbmc.org/index.php?title=NFO_files/movies

Re: aspect ratio tags possible?

Posted: Fri Mar 01, 2013 10:05 pm
by Romansh
That would come in handy. Thanks!

Re: aspect ratio tags possible?

Posted: Sun Aug 04, 2013 6:41 pm
by necrosis
bw001 wrote:You can have XBMC display the correct aspect ratio by adding the info to a local .nfo file for the movie with stream details.

e.g.:

Code: Select all

  <fileinfo>
    <streamdetails>
      <audio>
        <channels>6</channels>
        <codec>dtshd_ma</codec>
        <language>eng</language>
        <longlanguage>English</longlanguage>
      </audio>
      <subtitle>
        <language>eng</language>
        <longlanguage>English</longlanguage>
      </subtitle>
      <video>
        <aspect>2.35</aspect>
        <codec>h264</codec>
        <durationinseconds>5704</durationinseconds>
        <height>1080</height>
        <language>eng</language>
        <longlanguage>English</longlanguage>
        <scantype>Progressive</scantype>
        <width>1920</width>
      </video>
    </streamdetails>
  </fileinfo>
This does not work.

http://forum.xbmc.org/showthread.php?ti ... pid1477144