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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th March 2019, 12:03   #2441  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
https://forum.doom9.org/showthread.p...94#post1866894
Looks fine with libaom. But I can't be sure that rav1e produced 100% valid encodes.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is online now   Reply With Quote
Old 5th March 2019, 19:59   #2442  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
I made an encode with the linked rav1e.exe: The image just "freezes" after ~20 frames with dav1d (but no pink blocks anymore). No problems with libaom. So is it a decoder or encoder issue?
https://www.dropbox.com/s/2dznywf410...b_180.ivf?dl=1
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is online now   Reply With Quote
Old 5th March 2019, 20:09   #2443  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
The sample decodes fine through ffmpeg and ffplay with libdav1d 0.2.0.
sneaker_ger is offline   Reply With Quote
Old 5th March 2019, 23:14   #2444  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
It might be related to this PR that has to do with fixing FFMS2's handling of VP9; the most recent note is that fixing the PR is probably needed for AV1 now too.

Read: it may have nothing to do with the encoder or the decoder, but about the ability of FFMS2 to use the FFmpeg API to parse the bitstream in the correct way, and certain encoder/decoder combinations expose errant behavior in the parser. This would explain why ffplay (or mpv) works fine on the same sample and the same build of libdav1d that FFMS2 uses, but FFMS2 exhibits problems.
qyot27 is offline   Reply With Quote
Old 6th March 2019, 06:34   #2445  |  Link
masterkivat
変身!
 
masterkivat's Avatar
 
Join Date: Dec 2008
Location: Brazil
Posts: 38
Quote:
Originally Posted by Wolfberry View Post
ffms2-7c36121-win64

Libraries:
FFmpeg 4.2-dev-93293-gdb332832a1
libdav1d 0.2.1-e29cb9af
libvpx 1.8.0-198-gaba995832
libxml2 2.9.9
openssl 1.1.1b


Thanks HolyWu for the meson build system
this can be used on Vapoursynth? (like, renaming libffms2.dll to ffms2.dll and put on 'plugins64'?)
masterkivat is offline   Reply With Quote
Old 6th March 2019, 09:24   #2446  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by masterkivat View Post
this can be used on Vapoursynth? (like, renaming libffms2.dll to ffms2.dll and put on 'plugins64'?)
Yes, it even works without renaming.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is online now   Reply With Quote
Old 6th March 2019, 10:38   #2447  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
No decoding issues with this build. I get 66fps. With the previous build https://forum.doom9.org/showthread.p...11#post1866411 it's under 40fps, so a nice increase at least!
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is online now   Reply With Quote
Old 11th March 2019, 05:19   #2448  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
Quote:
Originally Posted by qyot27 View Post
It might be related to this PR that has to do with fixing FFMS2's handling of VP9; the most recent note is that fixing the PR is probably needed for AV1 now too.

Read: it may have nothing to do with the encoder or the decoder, but about the ability of FFMS2 to use the FFmpeg API to parse the bitstream in the correct way, and certain encoder/decoder combinations expose errant behavior in the parser. This would explain why ffplay (or mpv) works fine on the same sample and the same build of libdav1d that FFMS2 uses, but FFMS2 exhibits problems.
Now that I've had some time, I can confirm that yes, those patches (after being adjusted to also handle AV1 in addition to VP9) do appear to fix the problems FFMS2 has with AV1 through libdav1d. No apparent freezing, no corrupted blocks with the test sample I'd been using.

Of course, it's probably a case of the patches needing to be reworked differently from their current state, so...
qyot27 is offline   Reply With Quote
Old 11th March 2019, 12:45   #2449  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by Wolfberry View Post
ffms2-7c36121-win64

New build with libdav1d and also applied the modified patch.

Libraries:
FFmpeg 4.2-dev-93320-g5ab44ff20c
libdav1d 0.2.1-7f7b5586
No more corrupted blocks and ~280fps with 1080p, tested video was encoded with rav1e.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 11th March 2019 at 15:21.
ChaosKing is online now   Reply With Quote
Old 11th March 2019, 14:54   #2450  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
*bump*

Quote:
Originally Posted by Selur View Post
32bit version too please.
filler56789 is offline   Reply With Quote
Old 11th March 2019, 15:57   #2451  |  Link
tuanden0
Registered User
 
Join Date: Oct 2016
Posts: 111
Quote:
Originally Posted by Wolfberry View Post
ffms2-7c36121-win64

New build with libdav1d and also applied the modified patch.

Libraries:
FFmpeg 4.2-dev-93320-g5ab44ff20c
libdav1d 0.2.1-7f7b5586
I got error "There is no function named 'FFAudioSource'" when using it with AVS
tuanden0 is offline   Reply With Quote
Old 11th March 2019, 16:08   #2452  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by tuanden0 View Post
I got error "There is no function named 'FFAudioSource'" when using it with AVS
1. Post your script
2. Run Avisynth Info Tool from my signature
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 11th March 2019, 18:51   #2453  |  Link
Morku
Registered User
 
Join Date: Jul 2012
Posts: 208
Quote:
Originally Posted by tuanden0 View Post
I got error "There is no function named 'FFAudioSource'" when using it with AVS
Same here with 'ffvideosource("MVI_0001.MOV")'
Build of HolyWu is fine.

Code:
[OS/Hardware info]
Operating system:           Windows 10 (x64) (Build 17763)

CPU:                        Intel(R) Core(TM) i7-8086K CPU @ 4.00GHz / Coffee Lake (Core i7)
                            MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, FMA3, AVX, AVX2
                            6 physical cores / 12 logical cores


[Avisynth info]
VersionString:              AviSynth+ 0.1 (r2772, MT, x86_64)
VersionNumber:              2.60
File / Product version:     0.1.0.0 / 0.1.0.0
Interface Version:          5
Multi-threading support:    Yes
Avisynth.dll location:      C:\Windows\SYSTEM32\avisynth.dll
Avisynth.dll time stamp:    2018-12-20, 12:55:16 (UTC)
PluginDir2_5 (HKLM, x64):   C:\Program Files (x86)\AviSynth+\plugins64
PluginDir+   (HKLM, x64):   C:\Program Files (x86)\AviSynth+\plugins64+


[CPP 2.5 Plugins (64 Bit)]
C:\Program Files (x86)\AviSynth+\plugins64\avstp.dll  [1.0.3.0]
C:\Program Files (x86)\AviSynth+\plugins64\colormatrix.dll  [2.5.0.0]
C:\Program Files (x86)\AviSynth+\plugins64\dfttest.dll  [1.9.4.0]
C:\Program Files (x86)\AviSynth+\plugins64\dither.dll  [2015-12-30]
C:\Program Files (x86)\AviSynth+\plugins64\EEDI2.dll  [0.9.2.0]
C:\Program Files (x86)\AviSynth+\plugins64\LSMASHSource.dll  [2018-05-30]
C:\Program Files (x86)\AviSynth+\plugins64\TDeinterlace.dll  [1.1.0.0]

[CPP 2.6 Plugins (64 Bit)]
C:\Program Files (x86)\AviSynth+\plugins64+\ConvertStacked.dll  [2018-12-20]
C:\Program Files (x86)\AviSynth+\plugins64+\DirectShowSource.dll  [2018-12-20]
C:\Program Files (x86)\AviSynth+\plugins64+\ImageSeq.dll  [2018-12-20]
C:\Program Files (x86)\AviSynth+\plugins64+\Shibatch.dll  [2018-12-20]
C:\Program Files (x86)\AviSynth+\plugins64+\TimeStretch.dll  [2018-12-20]
C:\Program Files (x86)\AviSynth+\plugins64+\VDubFilter.dll  [2018-12-20]
C:\Program Files (x86)\AviSynth+\plugins64\AutoAdjust.dll  [2.6.0.0]
C:\Program Files (x86)\AviSynth+\plugins64\Average.dll  [0.94.0.0]
C:\Program Files (x86)\AviSynth+\plugins64\aWarpsharpMT.dll  [2.0.1.0]
C:\Program Files (x86)\AviSynth+\plugins64\DCTFilter_avx2.dll  [0.5.0.0]
C:\Program Files (x86)\AviSynth+\plugins64\Deblock.dll  [2013-12-03]
C:\Program Files (x86)\AviSynth+\plugins64\DePan.dll  [2.13.1.3]
C:\Program Files (x86)\AviSynth+\plugins64\DePanEstimate.dll  [2.10.0.2]
C:\Program Files (x86)\AviSynth+\plugins64\eedi3.dll  [0.9.2.3]
C:\Program Files (x86)\AviSynth+\plugins64\fft3dfilter.dll  [2.6.0.0]
C:\Program Files (x86)\AviSynth+\plugins64\FrameRateConverter-x64.dll  [2017-09-02]
C:\Program Files (x86)\AviSynth+\plugins64\grunt-x64.dll  [2016-05-17]
C:\Program Files (x86)\AviSynth+\plugins64\KNLMeansCL.dll  [2018-01-29]
C:\Program Files (x86)\AviSynth+\plugins64\masktools2.dll  [2.2.18.0]
C:\Program Files (x86)\AviSynth+\plugins64\mvtools2.dll  [2.7.40.0]
C:\Program Files (x86)\AviSynth+\plugins64\nnedi3.dll  [0.9.4.51]
C:\Program Files (x86)\AviSynth+\plugins64\RgTools.dll  [0.97.0.0]
C:\Program Files (x86)\AviSynth+\plugins64\SmoothAdjust.dll  [3.2.0.0]
C:\Program Files (x86)\AviSynth+\plugins64\svpflow1.dll  [4.2.0.133]
C:\Program Files (x86)\AviSynth+\plugins64\svpflow2.dll  [4.2.0.145]
C:\Program Files (x86)\AviSynth+\plugins64\TIVTC.dll  [1.0.11.0]
C:\Program Files (x86)\AviSynth+\plugins64\vinverse.dll  [2013-11-30]
C:\Program Files (x86)\AviSynth+\plugins64\yadifmod2.dll  [0.0.2.0]

[Scripts (AVSI)]
C:\Program Files (x86)\AviSynth+\plugins64+\colors_rgb.avsi  [2016-07-05]
C:\Program Files (x86)\AviSynth+\plugins64\AnimeIVTC.avsi  [2018-04-17]
C:\Program Files (x86)\AviSynth+\plugins64\Deblock_QED.avsi  [2017-05-05]
C:\Program Files (x86)\AviSynth+\plugins64\dither.avsi  [2015-12-30]
C:\Program Files (x86)\AviSynth+\plugins64\FFMS2.avsi  [2019-02-22]
C:\Program Files (x86)\AviSynth+\plugins64\FrameRateConverter.avsi  [2017-09-03]
C:\Program Files (x86)\AviSynth+\plugins64\LSFmod.avsi  [2018-07-13]
C:\Program Files (x86)\AviSynth+\plugins64\QTGMC.avsi  [2019-02-21]
C:\Program Files (x86)\AviSynth+\plugins64\SMDegrain.avsi  [2019-02-18]
C:\Program Files (x86)\AviSynth+\plugins64\Srestore.avsi  [2019-02-21]

[Uncategorized DLLs (64 Bit)]
C:\Program Files (x86)\AviSynth+\plugins64\ffms2.dll  [2019-03-11]

[Uncategorized files]
C:\Program Files (x86)\AviSynth+\plugins64+\colors_rgb.txt  [2016-07-05]
C:\Program Files (x86)\AviSynth+\plugins64\ffmsindex.exe  [2019-03-11]
Morku is offline   Reply With Quote
Old 11th March 2019, 19:16   #2454  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by Morku View Post
Same here with 'ffvideosource("MVI_0001.MOV")'
I have no idea what to make of this ffms2.dll. PE Explorer seems to think it's corrupt. There are no exports whatsoever.

@Wolfberry
I presume you tested this build so it worked in your environment. Any idea why it does not work for others?
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 11th March 2019 at 19:18.
Groucho2004 is offline   Reply With Quote
Old 11th March 2019, 21:00   #2455  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Maybe it was compiled only with vapoursynth support? It only works in VS on my machine.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is online now   Reply With Quote
Old 12th March 2019, 10:02   #2456  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
I can't get it to work in avs or via avs.Loadplugin. How did you test it in VS?

I get some "FunctionExists not implemented" messages in VS with core.avs.LoadPlugin(r"D:\ffms2.dll"),
but clip = core.avs.FFVideoSource(r"D:\amy.mkv") or clip = core.avs.ffms2(r"D:\amy.mkv") doesn't work.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is online now   Reply With Quote
Old 12th March 2019, 12:20   #2457  |  Link
tuanden0
Registered User
 
Join Date: Oct 2016
Posts: 111
Quote:
Originally Posted by Wolfberry View Post
I am using the meson build system by HolyWu: https://github.com/FFMS/ffms2/pull/338

The src/avisynth source files are indeed missing.

I compiled a new build with AVS+ headers

Tested by using core.avs.LoadPlugin and it loads.
Libraries are the same as the previous build.
I tried your new build but still missing FFAudio Source

Here's my script:
Quote:
a=FFAudioSource("E:\Download\Source\Discovery\[JAV-11] Sora Aoi Collection.mkv")
a=AssumeFPS(a, 24000, 1001)
c=FFVideoSource("E:\Download\Source\Discovery\[JAV-11] Sora Aoi Collection.mkv",colorspace="YV12")
c=AssumeFPS(c, 24000, 1001)
AudioDub(c,a)
tuanden0 is offline   Reply With Quote
Old 14th March 2019, 01:29   #2458  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Quote:
Originally Posted by Wolfberry View Post
I understand why there are no avisynth support in the autotools / meson build system.

Because gcc compiled plugins will not work in (msvc compiled) avisynth, so no avisynth support unless I can build it with msvc (so far it fails miserably)
Are you really sure of that?

When you say gcc, ¿don't you mean «a NON-MinGW-w64 toolchain»?
filler56789 is offline   Reply With Quote
Old 14th March 2019, 03:23   #2459  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by filler56789 View Post
Are you really sure of that?

When you say gcc, ¿don't you mean «a NON-MinGW-w64 toolchain»?
Avisynth C++ plugins must be built with MSVC or Intel C/C++ compiler (which uses MSVC libraries and linker).
Avisynth C-plugins however can be also be built with GCC.
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 14th March 2019 at 03:26.
Groucho2004 is offline   Reply With Quote
Old 14th March 2019, 03:31   #2460  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Quote:
Originally Posted by Groucho2004 View Post
Avisynth C++ plugins must be built with MSVC or Intel C/C++ compiler (which uses MSVC libraries and linker).
Avisynth C-plugins however can be also be built with GCC.
Thanks for the clarification *THUMBS UP*
filler56789 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 09:59.


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