Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Thread Tools Search this Thread Display Modes
Old 5th January 2004, 00:35   #1  |  Link
scharfis_brain's Avatar
Join Date: Mar 2003
Location: Germany
Posts: 3,607
how to determine, whether a frame is I P or B for Conditionalfilter?

As the Title said, we need a function that returns whether the current processed Frame of an MPEG-Video is a I, P or B-Frame.
Its result should be usable als Condition for Conditionalfilter to remove pumping-effects on over-compressed DVB-Streams.

Any thoughts about this Idea?
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 5th January 2004, 01:00   #2  |  Link
Registered User
bilu's Avatar
Join Date: Oct 2002
Location: Portugal
Posts: 1,182
Well, if this is possible for XVID:

XviD Stat file import plugin for AviSynth 0.90

It should be possible to do something like that out of MPEGDecoder/MPEG2DEC3.

bilu is offline   Reply With Quote
Old 7th January 2004, 14:56   #3  |  Link
Mug Funky
interlace this!
Mug Funky's Avatar
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,547
it could be fudged with compare().

i've noticed that the PSNR is pretty consistently I > P > B.

a few frames could be examined (or even just a 16x16 block of each frame if that'll speed it up) and some filter or other could deduce which frame type it's looking at.


oops, i just realised that this would only work for still sections without a reference clip.
sucking the life out of your videos since 2004

Last edited by Mug Funky; 7th January 2004 at 15:01.
Mug Funky is offline   Reply With Quote
Old 9th January 2004, 16:29   #4  |  Link
Registered User
Join Date: Feb 2002
Location: Borås, Sweden
Posts: 492
You can analyze the mpeg2 file with the registered version of bitrateviewer and save the GOP information to a text file. Then perhaps it is possible to read this text file with the conditional filter? I think there is an option to read data from textfiles in avisynth but I don't remember where I saw it and how to do it...

If you open the mpeg2 file in virtualdubmod you can see the frame type but I don't know how to extract it from there. Maybe you can examine source code files for virtualdubmod?
ronnylov is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 22:12.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.