Avisynth + SVPFlow + Interframe: Question.

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
squidhime
Joined: Wed Jul 24, 2013 5:53 pm
Org Profile

Avisynth + SVPFlow + Interframe: Question.

Post by squidhime » Fri Aug 16, 2013 11:33 am

Okay so I'll make it quick.

Does anybody have any idea as to why I can process a lucky star episode with this AVS script:

Code: Select all

Setmemorymax(512)
SetMTMode(3,4)
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\svpflow1.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\svpflow2.dll")
Import("C:\Program Files (x86)\AviSynth\plugins\InterFrame2.avsi")
FFmpegSource2("input.mkv").ConvertToYV12()
SetMTMode(2)
v = InterFrame(Cores=4, GPU=True, Tuning="Animation")
a = FFAudioSource("input.mkv")
AudioDub(v, a)
...and it'll come out looking almost perfect. In fact I can play it back in realtime as tuning="animation" just seems to make it that much faster.

Whereas if I put any Shingeki no Kyojin episode into the script, the sides of the frames "jiggle around" is the best way I can describe it. I'll post a screenshot if needed. During the panning scenes in particular the edges of the frame just... mess up in general.

Here is the original MKV info for each file:
Shingeki no Kyojin:
Spoiler :

Code: Select all

General
Format                         : Matroska
Format version                 : Version 2
File size                      : 553 MiB
Duration                       : 26mn 34s
Overall bit rate               : 2 908 Kbps
Encoded date                   : UTC 2013-06-05 03:42:16
Writing application            : mkvmerge v5.2.0 ('I can't explain') built on Dec 18 2011 18:12:03
Writing library                : libebml v1.2.3 + libmatroska v1.3.0
Attachment                     : Yes

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4.0
Format settings, CABAC         : Yes
Format settings, ReFrames      : 4 frames
Codec ID                       : V_MPEG4/ISO/AVC
Duration                       : 26mn 34s
Nominal bit rate               : 3 072 Kbps
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 23.810 fps
Original frame rate            : 23.976 fps
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.062
Writing library                : x264 core 120 r2120 0c7dab9
Encoding settings              : cabac=1 / ref=4 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=8 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=3072 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=6144 / vbv_bufsize=15360 / nal_hrd=none / ip_ratio=1.40 / aq=1:0.60
Default                        : Yes
Forced                         : Yes

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : A_AAC
Duration                       : 26mn 34s
Channel count                  : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 44.1 KHz
Compression mode               : Lossy
Default                        : Yes
Forced                         : Yes

Text
ID                             : 3
Format                         : ASS
Codec ID                       : S_TEXT/ASS
Codec ID/Info                  : Advanced Sub Station Alpha
Compression mode               : Lossless
Default                        : Yes
Forced                         : Yes
Lucky Star:
Spoiler :

Code: Select all

General
Format                         : Matroska
Format version                 : Version 2
File size                      : 215 MiB
Duration                       : 23mn 41s
Overall bit rate               : 1 271 Kbps
Movie name                     : Lucky Star - Episode 1
Encoded date                   : UTC 2011-12-31 09:14:04
Writing application            : mkvmerge v5.2.0 ('I can't explain') built on Dec 18 2011 18:12:03
Writing library                : libebml v1.2.3 + libmatroska v1.3.0
Attachment                     : Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes / Yes

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High 10@L3.1
Format settings, CABAC         : Yes
Format settings, ReFrames      : 5 frames
Codec ID                       : V_MPEG4/ISO/AVC
Duration                       : 23mn 41s
Width                          : 1 280 pixels
Height                         : 720 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 23.976 fps
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 10 bits
Scan type                      : Progressive
Writing library                : x264 core 119 r2106+636 fcb18f7
Encoding settings              : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=0.30:0.00 / mixed_ref=1 / me_range=28 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:0.80
Default                        : Yes
Forced                         : No
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709

Audio #1
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : A_AAC
Duration                       : 23mn 41s
Channel count                  : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 KHz
Compression mode               : Lossy
Title                          : Japanese 2.0Ch Audio
Language                       : Japanese
Default                        : Yes
Forced                         : No

Audio #2
ID                             : 3
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : A_AAC
Duration                       : 23mn 41s
Channel count                  : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 KHz
Compression mode               : Lossy
Title                          : English 2.0Ch Audio
Language                       : English
Default                        : No
Forced                         : No

Text
ID                             : 4
Format                         : ASS
Codec ID                       : S_TEXT/ASS
Codec ID/Info                  : Advanced Sub Station Alpha
Compression mode               : Lossless
Title                          : English Subtitles
Language                       : English
Default                        : Yes
Forced                         : No

Menu
00:00:00.000                   : :Opening
00:01:30.000                   : :Part A
00:08:44.000                   : :Part B
00:19:28.000                   : :Lucky Channel
00:21:52.000                   : :Ending
00:23:22.000                   : :Preview
The only thing I can think of is the bizarre framerate the SnK file has, but this shouldn't affect it. My other theory is the art style and colours used in SnK are a lot different, but I don't see why it would cause the problems it has when panning. Another thing, I managed to fix the problem by removing tuning="Animation" but while this makes the whole thing better in general, it makes the motion prediction absolutely AWFUL on individual characters. Which isn't very good with the fast moving scenes involved in SnK.

Thanks in advance if anyone can help!

Squid~
-------------------------------------------------------
Youtube: http://youtube.com/squiddilyvids
Tumblr: http://icebaka.tumblr.com

User avatar
squidhime
Joined: Wed Jul 24, 2013 5:53 pm
Org Profile

Re: Avisynth + SVPFlow + Interframe: Question.

Post by squidhime » Fri Aug 16, 2013 2:21 pm

I actually realised what the problem was, there was a couple of pixels of black on either side of the video for some reason. Cropping this in Avisynth before interframe solved the problem.

I didn't realise it would be something so trivial. Mod can close or delete this or something please!!!
-------------------------------------------------------
Youtube: http://youtube.com/squiddilyvids
Tumblr: http://icebaka.tumblr.com

Locked

Return to “AviSynth Help”