Kodi Community Forum

Full Version: Wrong Aspect Ratio anamorphic MKV. XBMC bug or not?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I tried transcoding some anamorphic pal mpg files to MKV using avidemux.

In the encoder settings i checked for PAR settings: "As Input: Keep the PAR of the source video"

When playing the file in xbmc it is played as a 4-3 image in stead of 16-9. (The original MPG files plays fine (16/9) in xbmc.

This is what i find in the logging when i play the file:
tream #0.0: Video: h264, yuv420p, 720x576 [PAR 64:45 DAR 16:9], PAR 1:1 DAR 5:4, 25 fps, 25 tbr, 1k tbn, 50 tbc

xbmc seems to read the PAR & DAR correct, but then seems to change it to 1:1 and an almost 4:3.

Also the on screen info shows that is should be 64/45 ratio.
Image

Is this an XBMC bug, or is there something wrong with the file?
Anybody know how to solve this problem?
Why does XBMC reports 2 PAR's and DAR's



More info:

---------------------------------------------------------
Version: Dharma RC2 (Did also accur in previous versions)
Windows: WinXP SP3 with all windows updates installed (Also happens on my Windows Vista)
System: Intel Q6600 @ 2.40GHz 32 bit
RAM: 4gb
Video Card: NVIDIA GeForce 8600 GT Driver 260.99
Audio Card: Realtek HD Audio on board
---------------------------------------------------------
The small test mkv can be downloaded here: http://users.telenet.be/casahermans1/xbmc/_test.mkv
The log can be downloaded here: http://users.telenet.be/casahermans1/xbmc/xbmc.zip
---------------------------------------------------------
The file plays ok (in 16/9) on
PowerDVD 10
VLC 0.9.2

The file plays nok (in 4/3) on
Zoom Player 7
Windows Media Player 11
---------------------------------------------------------

When I check the file with media info i get the following results (Media info reports the video as 16/9):

Media Info:

General
Format : Matroska
File size : 1.85 MiB
Duration : 7s 320ms
Overall bit rate : 2 118 Kbps
Movie name : Avidemux
Writing application : Lavf52.87.0
Writing library : Lavf52.87.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 7s 320ms
Bit rate : 1 820 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.176
Stream size : 1.59 MiB (86%)
Writing library : x264 core 110 r1804 e89c4cf
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : English

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 7s 320ms
Bit rate mode : Constant
Bit rate : 256 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Video delay : -40ms
Stream size : 229 KiB (12%)
Language : English
---------------------------------------------------------
I did some more testing.

It seams SMPlayer 0.6.8 (SVN r3213) also plays the file correct in 16/9 format.
Also the latest ffplay plays the file correctly. Here's the logging...

Quote:V:\__XBMC Importer\_Temp>ffplay _test.mkv
FFplay version SVN-r26015, Copyright © 2003-2010 the FFmpeg developers
built on Dec 15 2010 04:08:55 with gcc 4.4.2
configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-
libopencore_amrnb --enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-r
untime-cpudetect --enable-libxvid --enable-libx264 --extra-libs='-lx264 -lpthrea
d' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-o
s=mingw32 --enable-avisynth --cross-prefix=i686-mingw32- --cc='ccache i686-mingw
32-gcc' --enable-memalign-hack
libavutil 50.34. 0 / 50.34. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.99. 1 / 52.99. 1
libavformat 52.88. 0 / 52.88. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.69. 0 / 1.69. 0
libswscale 0.12. 0 / 0.12. 0
[matroska,webm @ 02310050] Estimating duration from bitrate, this may be inaccur
ate
Input #0, matroska,webm, from '_test.mkv':
Metadata:
title : Avidemux
Duration: 00:00:07.32, start: 0.000000, bitrate: 256 kb/s
Stream #0.0: Video: h264, yuv420p, 720x576 [PAR 64:45 DAR 16:9], PAR 1:1 DAR
5:4, 25 fps, 25 tbr, 1k tbn, 50 tbc
Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
7.26 A-V: -4.217 s:2.1 aq= 0KB vq= 0KB sq= 0B f=0/0 f=0/0

So it looks to me that it is a bug in XBMC.
Can somebody confirm this please?
I can confirm this bug using xbmc 11.0 Eden beta 1
Did you find a fix?
Did you post a bugreport?
No, I never found a solution.
The reason i wanted to recode my mpeg's to mkv was that i wanted to deinterlace them because xbmc deinterlacing was horrible at that time.
Now deinterlacing seems to work pretty well and the aspect ratio op mpeg files is ok. So for me the problem is not that urgent any more.

I did make a ticket http://trac.xbmc.org/ticket/10972 but up till now no reaction to it.
Actually I can't create a trac account, so I can't write on your bug to get attention.
I don't know what I can do
yelo3 Wrote:Actually I can't create a trac account, so I can't write on your bug to get attention.
I don't know what I can do

If you have a forum account then you have a trac account. They are linked. Same username and password.