Jump to content


jbollacke

Member Since 31 Jan 2013
Offline Last Active 03 Oct 2014 07:38
-----

Posts I've Made

In Topic: Autoresolution detects wrong frame rate

18 September 2014 - 15:03

Any idea how to patch the media file to fix it?

Are there any tools?

I did that manually. Though it is a rather complicated and error-prone task. I searched for the SPS VUI in the MKV and changed the bitstream so time_scale = 25000 and num_units_in_tick = 1000 using a hex editor.


In Topic: Autoresolution detects wrong frame rate

19 May 2014 - 12:14

FYI: I "fixed" the frame rate by directly patching the SPS-VUI information from 48000 / 1001 to 50000 / 1000. Maybe this is worth a tool for automation :-]


In Topic: Autoresolution detects wrong frame rate

16 May 2014 - 10:55

So why does OpenPLi play the file @ 25 fps without problems but reports it is 24 fps? That's inconsistent aswell.

 

And which library is used to determine the framerate reported by iServiceInformation? I am willing to further look into it but i need some guidance on where to look as I am not familiar with the OpenPLi codebase yet.


In Topic: Autoresolution detects wrong frame rate

16 May 2014 - 09:49

Erik, read the link I posted, it explains what framerate and original frame rate means for mediainfo.

Aparently what I call "fps information in the container" is called "default duration" in MKV terms. And MKV also has, like many other containers, an implicit frame rate, derived from the frames' time stamps. If the time stamps are incorrect in relation to the frame rate in the h264 stream, it's not going to work, no matter how it's called.

 

At some point this mkv has been muxed incorrectly, that's a fact. I think it's pretty hard to do so, maybe you can override the frame rate at some point (which would be a very stupid thing to do).

See this is a dubbed WEB-DL release. The video is 23.976 fps but the dubbed audio is for 25 fps video. So my explanation for this is that the group who releases these videos simply copy the video stream and override the timing information using the matroska container. It plays back fine everywhere @ 50Hz (even openpli, autoresolution disabled ) but autoresolution simply gets the wrong information to switch to. As the amount of videos like these will further increase as long as there will be some rules for this I think it is worth a fix to make it more fault-tolerance.


In Topic: Autoresolution detects wrong frame rate

16 May 2014 - 09:39

BTW: every other application (totem, vlc, ffmpeg, avprobe) report back 25 fps.

Yeah, they're probably all using libavcodec and libavformat for the probing, lol... FFmpeg report both, btw. Even more actually, it reports the frame rate in the container, of the codec and calculated from the timestamps.

Ur probably right. So what does iServiceInformation in OpenPLi use?