Page 1 of 2

MKV to Xvid doubles framerate!!!

Posted: Mon Sep 05, 2011 9:15 am
by marjamar
Here's a strange one. Attempting to re-encode my MKV library to Xvid, for some reason the framerate shown in the AVI header is 47 frames/second instead of the 23 frames/second (both rounded down by Windows Explorer of course). So, trying to change this is a real problem as the video is actually encoded at the real framerate (23.976), so it's not too simple a matter to change it without actually slowing the movie down to half speed using some various apps I have. I actually need to change the AVI header metadata to show the correct frame rate while leaving the actual framerate untouched.

Also, Mediacoder can't fix this, as the actual framerate is correct and it doesn't modify the header metadata I guess unless it actually changes the framerate.

Any ideas on this?

-Rodger

Re: MKV to Xvid doubles framerate!!!

Posted: Mon Sep 05, 2011 9:56 am
by marjamar
Looks like I've found a way around this. Using VirtualDub I can change the framerate info using the "video frame rate control > frame rate conversion > conver to fps: 23.9760". Selecting "direct stream copy" under video and audio tabs makes very quick copy without modifying any other aspects of the file. Just found this, so not 100% sure yet, but looks promising.

-Rodger

Re: MKV to Xvid doubles framerate!!!

Posted: Mon Sep 05, 2011 4:56 pm
by meRobs
Is this similar to what is reported here:
viewtopic.php?f=28&t=10983 ?

Re: MKV to Xvid doubles framerate!!!

Posted: Tue Sep 06, 2011 5:50 am
by ladycoder
There is also an app called AVIFRATE, similar to a fourcc changer that alters framerates with out having to resave.

Re: MKV to Xvid doubles framerate!!!

Posted: Tue Sep 06, 2011 9:17 am
by meRobs
As I pointed out in the above link, where I reported this as a bug, MediaCoder writes the incorrect (double) framerate to Xvid files.
But since the file plays at the correct speed, in KMplayer and VLC it was of no concern to me.

If you wish to quickly change the value in the header without affecting the video content, try the App: 'AVI FourCC Changer'.

Re: MKV to Xvid doubles framerate!!!

Posted: Tue Sep 06, 2011 12:01 pm
by ladycoder
'AVI FourCC Changer' changes the fourCC; AVIFrate changes the framerate.

I think most players read the frame rate in the header, no idea about KMPlayer or VLC... I use MPC and MPlayer 8)

Sometimes standalones go out of sync if you change the frame rate after encoding, though.

Re: MKV to Xvid doubles framerate!!!

Posted: Tue Sep 06, 2011 8:18 pm
by meRobs
Sorry, wasn't thinking!

Re: MKV to Xvid doubles framerate!!!

Posted: Sat Sep 24, 2011 11:53 am
by marjamar
Thanks for the replies, all.

Turns out that Veedub64 works best for me. Take all of about 2 minutes to run a 1-1/2 hour movie though it to change frame rate in the header to 23.976. I know this is still alot of time for changing what you'd think is a simple matter, but none of the other programs I tried did this right for me. Maybe if I took more time to study this issue, I'd find a more effective method, but the same time I do this final conversion, the finished file gets saved to the proper streaming directory/category, so it's an effective, low thought process I can use easily.

Thanks again.

-Rodger

Re: MKV to Xvid doubles framerate!!!

Posted: Sat Sep 24, 2011 12:09 pm
by meRobs
In any case, it seems to me that it is a bug when converting to Xvid and should be fixed in a future build of MediaCoder.
As I noted in viewtopic.php?f=28&t=10983 there is no famerate doubling in builds 5150 to 5180!

Hence, suggest you use an earlier build or wait !

Re: MKV to Xvid doubles framerate!!!

Posted: Tue Oct 04, 2011 2:44 am
by rekotc
im having a similar problem, im trying to convert a DX50 with AVI container to an XVID and AVI, the resulting video has a doubled framerate (from 25 to 50). I tried to change the header info using avifrate but it didnt work, if i try to play this video with the modified header on VLC the movie is laggy and the total running time is doubled too (from 1.03 hours to 2.06), it seems to me that the video is actually coded at 50fps and it's not a simple header problem.