Log in

View Full Version : Leak. Can you please modify this codec again?


Jeremy Duncan
29th January 2009, 09:09
link (http://forum.doom9.org/showthread.php?p=1010345#post1010345)

It's only reporting that the script requested a frame that's two frames ahead vs. the current frame - it doesn't matter if buffering is on or off, it just shows the script's behaviour.

Anyway, yeah, static menus *will not work* if you don't use ffdshow's built in MPEG2 decoder set to "libmpeg2" to decode MPEG2 video. Period.

When playback hits a static menu, decoding just stops, but of course the menu image is then only buffered ahead and never requested. I've modified the libmpeg2 codec so it'll signal the end of an MPEG2 sequence so the AviSynth filter can return those 2 frames at the end, but this plain doesn't work with external decoders - there's nothing I can do about that, I'm afraid. If you want to watch DVDs and get working static menus, use ffdshow for decoding them.

@haruhiko: I'll look into it.

np: The Black Dog - Seers & Sages (Book Of Dogma)

The person who made the libmpeg2 codec updated it and the ffdshow developers used it and got rid of the one you modified.
Now I'm getting a promlem and need you to retweak the codec again and include it in ffdshow.

That would be very nice. :thanks:

Leak
29th January 2009, 19:09
I don't really have time for this currently, but I've found one tiny difference that could well be it - single frames with both sequence start and stop set on them weren't treated specially at all, whereas earlier on I treated them as sequence ends.

I've committed an update to SVN to fix it, but it is totally untested as I've just reinstalled Windows XP on a new hard drive and haven't even installed Visual Studio yet...

np: The Orb - Alles Ist Schoen (Pomme Fritz Remastered)

Jeremy Duncan
31st January 2009, 19:58
link to ffdshow version (http://downloads.sourceforge.net/ffdshow-tryout/ffdshow_rev2647_20090130_clsid.exe?modtime=1233343254&big_mirror=0)

I got to try a new ffdshow build that included your codec modification, and it now shows root menu properly!

Thank you very much kind sir. :)

Jeremy Duncan
1st March 2009, 11:32
I am using ffdshow version 2693, clsid.

I am playing the ntsc widescreen movie ' hero' , starring Mr.Li.

I have been ghosting my pc back to previous times and have found a bug with the mpeg2 codec you modified.

When I started the movie, there was the fbi warning screen, then the movie studio screen where it says the company name.
But when it ot to the root menu the player crashed.
I found that if I disabled the ffdhow video codec, the libmpeg2 codec, and used media player classics m[eg2 codec.
The root menu showed fine and the movie did not crash.

After doing this I then tried the modified libmpeg2 codec you made and the root menu did not crash.

So it seems the using the media player classic video codec changed ffdshow somehow and this change repeated itself when the libmpeg2 codec was used again.
Like there is a memory of what worked with the mpc codec and this got transfered to the fdshow libmpeg2 codec.

When I tried mpc codec no filters were used, and when I went back to the libmpeg2 codec no filters were used.

Prior to this before using mpc video codec it did not matter if ffdshow video filters were used or not, the libmpeg2 video codec would crash on the root menu.

Edit,

The libmpeg2 codec crashed again when I reinstalled reclock.
It was not installed for the above text I wrote.
here are the settings I used:

http://thumbnails9.imagebam.com/2696/727e9126953851.gif (http://www.imagebam.com/image/727e9126953851)

Edit,

I just tried two movies that have twro root menus.
One root menu shows the play movie option, the other root menu shows two options: extended and regular.

Before I had to use leaks libmpeg2 ffdshow codec to see the second root menu.
But for some reason I can use the cyberlink powerdvd ultra video codec and the ffdhow audio codec and the ffdshow video filter codec, and the second root menu is visable.

Something is bufferng besides the libmpeg2 codec somewhere in the chain.

And I'm wondering if you know why the libmpeg2 has terrible terring?

tetsuo55
1st March 2009, 15:37
Does it make any sense to apply the working patch upstream to libmpg itself?

Leak
1st March 2009, 19:58
Does it make any sense to apply the working patch upstream to libmpg itself?
No, as it's not a patch to libmpeg2 directly but rather to the interface code used by ffdshow, i.e. it's in code that is part of ffdshow, but not libmpeg2.

Jeremy Duncan
3rd March 2009, 12:49
ffdshow 2734 seems to have fixed all my problems. :-)