Compare two frames » Wypoczynek a praca » Forum


  Users   Rejestracja   Wejście
Dzisiaj: 09.05.2025 - 13:14:47
Strony:  1  2  

Compare two frames

Ogłoszenie

.
AutorWiadomość

piotr396

users




Statystyka:
Wiadomości: 28
Rejestracja: 26 sie 2006, 13:17

I have installed Chr.dll and I've been able to create a text file. The script now looks like this: Code:

---------------------
http://kinga-rusin.blog.onet.pl/
Wiadomość # 11 25.01.25 - 19:57:17
RE: Compare two frames

Franewski

users




Statystyka:
Wiadomości: 38
Rejestracja: 10 sie 2013, 16:31

What would be the fastest way to use YDifferenceFromPrevious()? I mean something like this: If YDifferenceFromPrevious()<0.1 then dropped=dropped+1

---------------------
Wiadomość # 12 25.01.25 - 20:07:21
RE: Compare two frames

12345678a

users




Statystyka:
Wiadomości: 8
Rejestracja: 21 lip 2006, 1:47

This is faster. No text on screen (Subtitle) but only in the text file. I've replaced Subtitle with ConvertToYV12 for speed reasons, because I assume ConvertToYV12 doesn't really do anything in this case. If there's a more elegant way of doing nothing let me know. The first two faulty lines in the text file are no longer written now. Code:

---------------------
Wiadomość # 13 25.01.25 - 20:13:31
RE: Compare two frames

marcinrumak

users




Statystyka:
Wiadomości: 2
Rejestracja: 24 sty 2013, 12:17

Nop() effectively does nothing at all. :D

---------------------
www.impresta.pl
Wiadomość # 14 25.01.25 - 20:24:45
RE: Compare two frames

berbik

users




Statystyka:
Wiadomości: 11
Rejestracja: 05 paź 2010, 9:16

Tried Nop() but I get an error message. I need a command that accepts a clip as input. eq=Nop(org) doesn't seem to be allowed. Avisynth open failure: Script error: Invalid arguments to function "Nop"

---------------------
Students buy term papers may get an F for done essays
Wiadomość # 15 25.01.25 - 20:31:02
RE: Compare two frames

Jaccob

users




Statystyka:
Wiadomości: 619
Rejestracja: 27 cze 2016, 22:25

Hmmm, I just noticed something strange. I captured directly to MPEG-2 with ATI MMC and ran Internet Explorer. That caused 4 dropped frames according to ATI MMC. The Avisynth script only found one so I used VirtualDub to step through the MPEG-2 file frame by frame. The one dropped frame the script had found was indeed an exact copy of the previous one. I had captured a channel with a stock ticker at the bottom of the screen. Obviously scrolling text looks interlaced. However, where some dropped frames had been reported there was still some motion (so no exact copy of the previous frame) but this time the frame looked non-interlaced. It was as if only one field had been dropped and the one captured field had been resized to full screen. I don't know if that is what the MPEG-2 encoder does or if it is even possible, but obviously the Avisynth script can't detect those frames as dropped. One thing I know now: the ATI MMC MPEG-2 encoder doesn't always insert an exact copy of the previous frame when a frame is dropped. It sometimes does some other sh*t too.

---------------------
Oglądam: TVP3, TVN, Cartoon Network, Nickelodeon [br]
Wiadomość # 16 25.01.25 - 20:41:07
RE: Compare two frames



users




Statystyka:
Wiadomości:
Rejestracja:

---------------------
Wiadomość # 17 01.01.70 - 00:00:00
RE: Compare two frames

GraVeR

users




Statystyka:
Wiadomości: 3
Rejestracja: 28 wrz 2007, 13:27

Try this instead then: function NullFilter(clip c, string "args") { args = Default(args, "") return c } You can then use NullFilter() anywhere you like. That should work.

---------------------
Wiadomość # 18 25.01.25 - 20:45:20
RE: Compare two frames

Pilch

users




Statystyka:
Wiadomości: 6
Rejestracja: 14 gru 2015, 12:27

Yes, a Nullfilter function works.

---------------------
Kto jak nie ja...
Wiadomość # 19 25.01.25 - 20:56:29
RE: Compare two frames

divertin

users




Statystyka:
Wiadomości: 15
Rejestracja: 04 cze 2010, 1:43

That's a normal behavior, and indicates that the encoder is actually pretty smart about repeating dropped fields. (Also, maybe MMC reported 4 dropped fields, and no 4 dropped frames). If you're encoding interlaced, let's say you have frame 1 consisting of field A and field B, then frame 2 consisting of field C and field D. Assuming field C and D were dropped: If the encoder repeats frame 1, you'll get AB.AB, which will produce shakyness (the scrolling text will move backwards for 1 field, since field A is supposed to be displayed before field B). Instead, it looks like the encoder did the following: AB.B'B. where B' is probably B deinterlaced.

---------------------
Wiadomość # 20 25.01.25 - 21:01:41
RE: Compare two frames
7 Questions about textures & motion vectors... : Poprzedni tematNastępny temat: Session with "bad spots"?
Strony:  1  2  

Administrator zabronił gościom odpowiadać na wiadomości! Aby się zarejestrować, kliknij link: rejestr


Uczestnicy