[mythtv-users] Mythvideo and wrong aspect ratio

Thomas Boehm mythtv-users at lists.boehmi.net
Sat Sep 24 21:58:25 UTC 2011


Saul A. Peebsen wrote:
>> Where does mythvideo gets the information about the aspect ratio from?
>> It looks like it doesn't get it from the video dimensions. Is there
>> some kind of tag inside the file which is read by mythvideo? Maybe
>> mythnuv2mkv writes it wrongly into the file.

> This iformation is stored in MKV header, mkvtoolnix toolset lets you
> edit it.

I take it that you mean mkvproedit, but it seems that it isn't the right
tool for my problem. It looks like the problem doesn't lie within the
mkv header. mkvinfo doesn't report anything unusual with the file

...
|+ Segment tracks
| + A track
|  + Track number: 1
|  + Track UID: 846625882
|  + Track type: video
|  + Enabled: 1
|  + Default flag: 1
|  + Forced flag: 0
|  + Lacing flag: 0
|  + MinCache: 1
|  + Timecode scale: 1
|  + Max BlockAddition ID: 0
|  + Codec ID: V_MPEG4/ISO/AVC
|  + Codec decode all: 1
|  + CodecPrivate, length 45 (h.264 profile: High @L3.1)
|  + Default duration: 40.000ms (25.000 fps for a video track)
|  + Language: und
|  + Video track
|   + Pixel width: 624
|   + Pixel height: 352
|   + Interlaced: 0
|   + Display width: 626
|   + Display height: 352
...

but HandBrakeCLI gives me the following

...
Input #0, matroska,webm, from
'/home/mythtv/Videos/TV/Comedy/Outnumbered/Season 04/Outnumbered S04E01
Uncle Bob's Funeral.mkv':
 Metadata:
   title           : Outnumbered
 Duration: 00:28:57.66, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 624x352 [PAR 22:31 DAR 39:31],
PAR 255:254 DAR 9945:5588, 25 fps, 25 tbr, 1k tbn, 50 tbc
    Stream #0.1: Audio: aac, 48000 Hz, stereo, s16
[22:10:34] scan: decoding previews for title 1
Scanning title 1 of 1...
[22:10:34] scan: 10 previews, 624x352, 25.000 fps, autocrop = 0/0/0/0,
aspect 1.26:1, PAR 22:31
[22:10:34] scan: title (0) job->width:448, job->height:352
[22:10:34] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: /home/mythtv/Videos/TV/Comedy/Outnumbered/Season
04/Outnumbered S04E01 Uncle Bob's Funeral.mkv
  + duration: 00:28:57
  + size: 624x352, pixel aspect: 22/31, display aspect: 1.26, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:28:57
  + audio tracks:
    + 1, Unknown (AAC) (2.0 ch) (iso639-2: und)
  + subtitle tracks:
HandBrake has exited.

I don't really know what all that means, but the values for PAR and DAR
don't look right. And since mkvinfo doesn't list these values it doesn't
seem to be in the header of that file. But again, only MythTV has a
problem with it, all other players I use (vlc, xbmc,...) play it with
the right aspect ratio.

Also, it looks to me like mythnuv2mkv is dead. The author doesn't reply
to the comments I made in the last few weeks and they don't even appear
on his website. Somebody dumped an "improved" version of this script on
pastebin, but with no documentation at all. It doesn't work for me and I
don't really know where to look.

If the problem can't be solved I need to look for another script for a
user job which converts my recordings to mkv. I better open a new thread
for that.

Thomas


More information about the mythtv-users mailing list