aspect ratio tags possible?

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
scph9002
Posts: 8
Joined: Thu Jan 10, 2013 7:41 pm

aspect ratio tags possible?

Post by scph9002 » Sun Jan 13, 2013 3:58 am

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?

leenuss
Posts: 7
Joined: Sat Jan 29, 2011 7:12 pm

Re: aspect ratio tags possible?

Post by leenuss » Sun Jan 13, 2013 9:51 pm

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.

scph9002
Posts: 8
Joined: Thu Jan 10, 2013 7:41 pm

Re: aspect ratio tags possible?

Post by scph9002 » Sun Jan 13, 2013 10:51 pm

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

scph9002
Posts: 8
Joined: Thu Jan 10, 2013 7:41 pm

Re: aspect ratio tags possible?

Post by scph9002 » Sun Jan 13, 2013 10:58 pm

edit: duplicate post
Last edited by scph9002 on Tue Jan 15, 2013 10:57 am, edited 1 time in total.

Romansh
Posts: 873
Joined: Sat Jan 22, 2011 7:09 pm

Re: aspect ratio tags possible?

Post by Romansh » Tue Jan 15, 2013 12:44 am

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.

Q-the-STORM
Posts: 15
Joined: Sat Jul 07, 2012 2:00 am

Re: aspect ratio tags possible?

Post by Q-the-STORM » Thu Jan 17, 2013 5:32 pm

I don't think there is such a tag in mkv... only way would be checking if you can edit XBMC manually...

PatHawks
Posts: 11
Joined: Thu Oct 04, 2012 5:56 pm

Re: aspect ratio tags possible?

Post by PatHawks » Fri Jan 18, 2013 3:01 pm

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:

fryk.
Posts: 35
Joined: Tue Oct 09, 2012 7:57 am

Re: aspect ratio tags possible?

Post by fryk. » Wed Jan 23, 2013 8:17 pm

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.

bw001
Posts: 76
Joined: Fri Aug 12, 2011 6:33 pm

Re: aspect ratio tags possible?

Post by bw001 » Wed Feb 27, 2013 11:57 pm

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>

Romansh
Posts: 873
Joined: Sat Jan 22, 2011 7:09 pm

Re: aspect ratio tags possible?

Post by Romansh » Thu Feb 28, 2013 6:55 am

Is there a format reference for this?

bw001
Posts: 76
Joined: Fri Aug 12, 2011 6:33 pm

Re: aspect ratio tags possible?

Post by bw001 » Thu Feb 28, 2013 8:57 pm

Romansh wrote:Is there a format reference for this?
Try here: http://wiki.xbmc.org/index.php?title=NFO_files/movies

Romansh
Posts: 873
Joined: Sat Jan 22, 2011 7:09 pm

Re: aspect ratio tags possible?

Post by Romansh » Fri Mar 01, 2013 10:05 pm

That would come in handy. Thanks!

necrosis
Posts: 30
Joined: Sun Jul 21, 2013 4:11 am

Re: aspect ratio tags possible?

Post by necrosis » Sun Aug 04, 2013 6:41 pm

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

Post Reply