View Full Version : Plugins or function Avisynth,Mvtools for I-Frames, P-frames,B-frames
dadix
3rd February 2012, 21:48
Hello. I have a question. Is there a plugin or function for Avisynth or in Mvtools ,that you select only I-Frames, P-Frames, B-Frames? Each separately?
amtm
3rd February 2012, 21:51
How do you expect mvtools to know that info when it only gets passed uncompressed frames?
Edit: Your problem still becomes, how do you expect any plugin to be able to get that info if it's not propagated from the source plugin?
dadix
3rd February 2012, 21:57
With a flag from x264 compression which is attached to each frame after compression. No such thing?
amtm
3rd February 2012, 22:05
No. You'd have to hack up one of the source filters to pass out that info as I doubt, though I could be wrong, that any of them return that info.
amtm
3rd February 2012, 22:10
About the best thing you can do is use a program that will dump your frame type info to a file and then use something like ConditionalReader to read that in to provide what you want.
dadix
3rd February 2012, 23:11
http://www.pixentral.com/pics/1qVfH7nFCjUjqe1C2y1R1TEJix3jG60.jpg
I found xvid status has some information about frames, maybe this information is stored somehow and after compression.
amtm
3rd February 2012, 23:21
Did you even listen to what I told you? The source filters only pass out uncompressed frames. The plugins that come after it have no knowledge of the frame type because for one thing, as far as I know, no source filter passes out that info. So while, yes, the source filter may know that info it's not being passed out. So you an either do one of two things:
1) Output the frame types to a file and use ConditionalReader to do what you want.
2) Hack up your source filter to pass out that info and code a plugin to read it in.
dadix
4th February 2012, 09:44
Amtm ,thanks for answers. I'll read about these things you've told me. :)
Gavino
5th February 2012, 11:49
You'd have to hack up one of the source filters to pass out that info as I doubt, though I could be wrong, that any of them return that info.
Actually, ffms2 (http://code.google.com/p/ffmpegsource/) (FFVideoSource) does provide that information for each frame via the variable FFPICT_TYPE.
For details, see the ffms2 documentation (ffms2-avisynth.html).
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.