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 Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th April 2014, 20:44   #21  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
It has already been suggested that you avoid Directshowsource, it perhaps would have been better to
upload the source as is, without any modification so that others have what you have.
__________________
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 ???
StainlessS is offline   Reply With Quote
Old 14th April 2014, 20:59   #22  |  Link
Kim Brandstetter
NSA Agent
 
Kim Brandstetter's Avatar
 
Join Date: Dec 2011
Location: Classified data
Posts: 20
It does not look different with DSS. But here you go, a fresh recording(the other one is 600MB):
Quote:
http://www.mediafire.com/watch/durwstuwhk0b0dz/14._April_2014,_095208.AVI
Kim Brandstetter is offline   Reply With Quote
Old 14th April 2014, 21:16   #23  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Thanks, downloading sample (28MB), much nicer than 600MB

Incidentally, some time ago I had a user wanting to remove blending from a clip using Exblend(),
as it turned out, the blending originated in DirectShow and was absent when
Mpeg2Source() was used instead (mpeg 2).
__________________
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 ???
StainlessS is offline   Reply With Quote
Old 14th April 2014, 22:15   #24  |  Link
Kim Brandstetter
NSA Agent
 
Kim Brandstetter's Avatar
 
Join Date: Dec 2011
Location: Classified data
Posts: 20
So, what's your optimization idea?
Kim Brandstetter is offline   Reply With Quote
Old 14th April 2014, 23:47   #25  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Non I'm afraid.
I think I would just leave it at decimated rate of 12FPS (if all like provided sample).
Convert to 24fps is better than 30fps, but not good.
The MBlockFPS is both faster and better than MFlowFPS, but not good (faster probably due to
the bigger inital block size, and then MRecalculate at better precision).
Leaving at 12FPS retains the impression that is was taken from the back of a rodeo bull
and as they say, "a man on a galloping horse would not notice" (same goes for bull probably).

I just used Colours
Code:
SelectEven().TDecimate(cycleR=1,cycle=5)
for decimation, note you have 7 identical frames @ frame 46 of source.

I dont expect any miracles from Avisynth for the provided sample. (But perhaps others may prove me wrong)

EDIT: For other downloaders, the sample requires MJPG Motion Jpeg decoder.
EDIT: I used AviSource().
__________________
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; 15th April 2014 at 19:36.
StainlessS is offline   Reply With Quote
Old 15th April 2014, 12:58   #26  |  Link
colours
Registered User
 
colours's Avatar
 
Join Date: Mar 2014
Posts: 308
Guess what, the source is VFR!

The average frame rate in the video is 11.8 fps, and DSS decides to convert it to 30 fps by adding in dupes (which are not in the file at all) because that was the frame rate it detected from the first frame. Looking at the timecodes reveals that the "true" frame rate is 12 fps with some frame drops (which explains why the average frame rate is slightly lower, and also the seven identical frames StainlessS pointed out).

Code:
FFVideoSource("file.avi",fpsnum=12,fpsden=1)
This works on the one sample you provided, but just in case the stars align in a specific manner and the "wrong" frames are selected, the following script works too.

Code:
FFVideoSource("file.avi",fpsnum=24,fpsden=1)
TDecimate(cycleR=2,cycle=4)
As TDecimate scans the whole video for metrics which is a bit overkill (since the duplicates in this case are exact duplicates), the video can be cropped first to speed things up a bit.

Code:
FFVideoSource("file.avi",fpsnum=24,fpsden=1)
Crop(0,0,64,64).TDecimate(cycleR=2,cycle=4,clip2=last)
Motion interpolation seems to be a lost cause here. Regardless of how bad you think 12 fps is, it's not feasible to upconvert your footage with minimal artifacts; the only real solution is to crank up the frame rate of your recording device (in which case the above snippets won't be relevant). You can try using SVP instead of MVTools, but I don't think the results would be much better.

One last option is to use blending instead of motion interpolation.

Code:
FFVideoSource("file.avi",fpsnum=24,fpsden=1)
Crop(0,0,64,64).TDecimate(cycleR=2,cycle=4,clip2=last)
ConvertFPS(60) # put desired frame rate here
colours is offline   Reply With Quote
Old 15th April 2014, 19:17   #27  |  Link
creaothceann
Registered User
 
Join Date: Jul 2010
Location: Germany
Posts: 357
Just a note, I've had far better results with DSS2 instead of DirectShowSource (when the source isn't VFR).
creaothceann is offline   Reply With Quote
Old 16th April 2014, 02:42   #28  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Yeah, fcp's DSS2 mod is almost always better than DirectShowSource; thanks to the frame accuracy it has less timestamp weirdness for better VFR handling too.
foxyshadis is offline   Reply With Quote
Old 18th April 2014, 00:16   #29  |  Link
Kim Brandstetter
NSA Agent
 
Kim Brandstetter's Avatar
 
Join Date: Dec 2011
Location: Classified data
Posts: 20
Quote:
Originally Posted by colours View Post
Code:
FFVideoSource("file.avi",fpsnum=24,fpsden=1)
Crop(0,0,64,64).TDecimate(cycleR=2,cycle=4,clip2=last)
ConvertFPS(60) # put desired frame rate here
Thanks. I used it and the color scheme of windows changes in kmplayer. Why is that? Also, there is no audio and there seems to be no vsync. Apart from that, I like this solution the most.
Kim Brandstetter is offline   Reply With Quote
Old 18th April 2014, 10:51   #30  |  Link
colours
Registered User
 
colours's Avatar
 
Join Date: Mar 2014
Posts: 308
Replace

Code:
FFVideoSource("file.avi",fpsnum=24,fpsden=1)
with

Code:
FFVideoSource("file.avi",fpsnum=24,fpsden=1)
AudioDub(FFAudioSource("file.avi"))
to get audio. The colour scheme and lack of vsync aren't things I can help you with, sorry.
colours is offline   Reply With Quote
Old 14th July 2014, 19:28   #31  |  Link
Kim Brandstetter
NSA Agent
 
Kim Brandstetter's Avatar
 
Join Date: Dec 2011
Location: Classified data
Posts: 20
Quote:
Originally Posted by colours View Post
Replace

Code:
FFVideoSource("file.avi",fpsnum=24,fpsden=1)
with

Code:
FFVideoSource("file.avi",fpsnum=24,fpsden=1)
AudioDub(FFAudioSource("file.avi"))
Thanks.
Kim Brandstetter is offline   Reply With Quote
Old 15th July 2014, 07:09   #32  |  Link
colours
Registered User
 
colours's Avatar
 
Join Date: Mar 2014
Posts: 308
Quote:
Originally Posted by Kim Brandstetter View Post
Thanks.

Actually, I noticed one of my earlier posts in this thread was kinda dumb and also bad advice, so let me retract that. (Specifically, the bit about using 24 fps instead of 12 fps; using 15 fps is better than either.) I just didn't bother editing the posts since I thought you had it settled already. Use this instead.

Code:
FFVideoSource("file.avi",fpsnum=15,fpsden=1)
AudioDub(FFAudioSource("file.avi"))
Crop(0,0,64,64).TDecimate(cycleR=1,cycle=5,clip2=last)
ConvertFPS(60) # put desired frame rate here

Last edited by colours; 15th July 2014 at 07:28.
colours is offline   Reply With Quote
Old 4th August 2018, 23:15   #33  |  Link
Lirk
Registered User
 
Join Date: Jan 2018
Posts: 33
Quote:
Originally Posted by Emulgator View Post
You may try filldrops123.avsi
Emulgator, can you add option for blending mode as in ConvertFPS instead frame interpolation?
Lirk is offline   Reply With Quote
Old 5th August 2018, 09:28   #34  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Further to Emulgator,

Note for your mugfunky/JohnMeyer mods, Time arg to MFlowInter is actually Float so might want to amend eg 33 and 67 to 1/3.0 and 2/3.0.

EDIT: Oops, I mean 100/3.0 and 200/3.0
__________________
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; 5th August 2018 at 11:24.
StainlessS is offline   Reply With Quote
Reply

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 17:27.


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