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. |
6th August 2019, 01:23 | #1 | Link |
Registered User
Join Date: Sep 2018
Posts: 23
|
Show Frame type (I, P, B) in Avisynth
Show Frame type (I, P, B) in Avisynth
Hello friends I wanted to know if there is any other way to see the frame type (I, B, P) in Avisynth apart from these that I mention below. -FFinfo() -DGSource("",Show=true) -Info() ---(this does not show the frame type . but it does show other things) is there any other way to visualize in avisynth the frame type of the video ? it would be very good to implement in AVSmod this feature to show the type of frame in the video (I, P, B) Thank you |
6th August 2019, 01:57 | #2 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Pretty much all you can do.
Code:
FN="d:\GetSeq_Test\TEST\tears_of_steel_1080pwebm.webm" FFVideosource(FN) SSS=""" Subtitle(String(current_frame,"%.0f] ")+Chr(FFPICT_TYPE)) """ Scriptclip(SSS,After_Frame=True)
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 6th August 2019 at 14:11. |
14th September 2019, 16:43 | #4 | Link | |
Registered User
Join Date: Sep 2018
Posts: 23
|
Quote:
|
|
16th September 2019, 05:43 | #5 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Would not be such a bad thing if DGSource exposed frame type similar to FFVideoSource [something to consider for some future update]. Set some named Global or Local variable [your choice], maybe let user select some prefix to the variable name. A bit easier if return type Int as FFVideoSource does, string return swallows string memory [at every frame EDIT: unless you know for sure its maximum possible length] and requires messing about with env->SaveString() for the string variable value, but still need to env->SaveString() for the variable Name [if Global, can do once in constructor so that you know that the variable name already exists EDIT: or can check for already existing name before setting variable]. EDIT: ApparentFPS() sets some variables for user script use. Would not be out of order if LSmashSource() did the same too.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 16th September 2019 at 08:03. |
|
16th September 2019, 10:05 | #6 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
If you have a compatible NVidia card/chip it's really a no-brainer.
__________________
Groucho's Avisynth Stuff |
16th September 2019, 19:52 | #7 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
[I got an NV GT520 [OEM Palit] which I aint never got to do much, old crappish but small low power 2GB card (29Watts)].
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 16th September 2019 at 20:09. |
|
16th September 2019, 20:49 | #9 | Link | |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Quote:
@MeteorRain Smart move. |
|
16th September 2019, 21:42 | #10 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
So, why don't you use that one?
__________________
Groucho's Avisynth Stuff |
17th September 2019, 01:28 | #11 | Link | ||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Single letter ASCII code for frame type, value as Ord('I'), Ord('P'), ord('B'), for I, P and B frames, cant remember if upper or lowercase. See FFMPEGSource docs, may be more defined, (dont know). EDIT: Think uppercase, I seem to remember code 73 as 'I' frame. Code:
FN="d:\GetSeq_Test\TEST\tears_of_steel_1080pwebm.webm" FFVideosource(FN) SSS=""" Subtitle(String(current_frame,"%.0f] ")+Chr(FFPICT_TYPE)) """ Scriptclip(SSS,After_Frame=True) Quote:
I got a GT220 as well I think (somewhere).
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 17th September 2019 at 01:31. |
||
17th September 2019, 03:01 | #13 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Thanks, so not a complete loser then
The m/c that its in is Small Form Factor, only room for 6 inch card and very power limited (total power 300Watt), max for PCI express is I think 30W so 29 watt is about as hi power as it can take.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 17th September 2019 at 03:30. |
17th September 2019, 11:57 | #14 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
I can't encode but yes decode until HEVC 4:2:0 12 bit and use DG filters. EDIT: but the 6 inch card is a hard limit, mine is 7 Maybe this one
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 17th September 2019 at 12:47. Reason: add info |
|
17th September 2019, 12:59 | #15 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Thanks Teb,
seems that you have to be a little careful with that card (there are two versions, one fast, one not so fast):- https://www.forbes.com/sites/jasonev.../#47baa35393d9 The one you point to is of the faster variety (GDDR5) . EDIT: @videoh You might also want to check that resultant variable name (assuming user adjustable in some way), is a legal variable name, ie '_' or alpha for start character, and thereafter digits also allowed.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 17th September 2019 at 13:14. |
Thread Tools | Search this Thread |
Display Modes | |
|
|