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 12th July 2019, 05:18   #801  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 617
The same patch set HolyWu used, which was copied from enccc, and one more patch to use swresample instead of avresample, which was copied from l33tmeatwad.
MeteorRain is offline   Reply With Quote
Old 12th July 2019, 06:51   #802  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Chamber 36
Posts: 5,855
stax76 is offline   Reply With Quote
Old 25th July 2019, 18:04   #803  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,168
Feature request:
Add option cachefile to LWLibavVideoSource so user can specify where index file will be created.
Example
Code:
LWLibavVideoSource("..\video.mkv",cachefile="C:\temp\MyIndex.lwi")
Currently LWLibavVideoSource is creating index file in the same folder as source video and thus creating an annoying mess.

BTW. Standalone indexer similar to ffmsindex.exe would be also useful.

Last edited by Atak_Snajpera; 25th July 2019 at 18:09.
Atak_Snajpera is offline   Reply With Quote
Old 26th July 2019, 00:30   #804  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 617
I recalled I found one on GitHub before, but it was not maintained for a few years.
MeteorRain is offline   Reply With Quote
Old 26th July 2019, 01:02   #805  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,200
To maybe avoid possible misunderstanding and unnecessary work,

Code:
        ffms2_ORDERED_Function_List 


There follows a list of all function names together with CPP style argument specifiers that inform
Avisynth the argument types and optional names. Optional arguments have square brackets surrounding
their name as in [name] and are followed by a type specifier character that gives the type.
Unnamed arguments are not optional. eg "cc[arg1]b[arg2]i" would be two compulsory unnamed clip args,
followed by optional 'arg1' of type bool and optional 'arg2' of type int.

# Argument type specifier strings.
 c - Video Clip
 i - Integer number
 f - Float number
 s - String
 b - boolean
 . - Any type (dot)
# Array Specifiers
 i* - Integer Array, zero or more
 i+ - Integer Array, one or more
 .* - Any type Array, zero or more
 .+ - Any type Array, one or more
#    Etc
###################################


FFAudioSource "[source]s[track]i[cache]b[cachefile]s[adjustdelay]i[utf8]b[varprefix]s"
FFGetLogLevel ""
FFGetVersion  ""
FFIndex       "[source]s[cachefile]s[indexmask]i[dumpmask]i[audiofile]s[errorhandling]i[overwrite]b[utf8]b"
FFSetLogLevel "i"
FFVideoSource "[source]s[track]i[cache]b[cachefile]s[fpsnum]i[fpsden]i[threads]i[timecodes]s[seekmode]i[rffmode]i[width]i[height]i[resizer]s[colorspace]s[utf8]b[varprefix]s"
Perhaps it is not the standalone, but plugin function that is required. [Ffindex.Exe is not required to call ffindex() in script].

and just for good luck.
Code:
        LSMASHSource_ORDERED_Function_List 

LSMASHAudioSource  "[source]s[track]i[skip_priming]b[layout]s[rate]i[decoder]s"
LSMASHVideoSource  "[source]s[track]i[threads]i[seek_mode]i[seek_threshold]i[dr]b[fpsnum]i[fpsden]i[stacked]b[format]s[decoder]s"
LWLibavAudioSource "[source]s[stream_index]i[cache]b[av_sync]b[layout]s[rate]i[decoder]s"
LWLibavVideoSource "[source]s[stream_index]i[threads]i[cache]b[seek_mode]i[seek_threshold]i[dr]b[fpsnum]i[fpsden]i[repeat]b[dominance]i[stacked]b[format]s[decoder]s"
__________________
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; 26th July 2019 at 01:54.
StainlessS is online now   Reply With Quote
Old 26th July 2019, 17:32   #806  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 617
I meant I found a standalone version of lsmash indexing tool on GitHub -- if that was causing misunderstanding.

Although I'm just using symbolic links to link the source into encoding directory, so no pollution to the sources.
MeteorRain is offline   Reply With Quote
Old 26th July 2019, 17:59   #807  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,200
Was intended just incase Atak_Snajpera thought ffmsindex.exe was required for indexing in script via ffmsindex(clip).
[I at one time thought that the executable was necessary for indexing].
__________________
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 online now   Reply With Quote
Old 26th July 2019, 19:29   #808  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Chamber 36
Posts: 5,855
cachefile feature would be very helpful and it would be awesome if the filter would write progress like 'Progress: 1%' to stdout.

Please note that any code can write to stdout, console tools can but GUIs and libraries like LSMASHSource.dll can do that as well.

An indexing app would be nice but using ffmpeg or vspipe will work as well:

Code:
                Using proc As New Proc
                    proc.Header = "Index LWLibav"
                    proc.Encoding = Encoding.UTF8

                    If p.Script.Engine = ScriptEngine.AviSynth Then
                        proc.File = Package.ffmpeg.Path
                        proc.Arguments = "-i " + p.Script.Path.Escape + " -hide_banner"
                    Else
                        proc.File = Package.vspipe.Path
                        proc.Arguments = p.Script.Path.Escape + " NUL -i"
                    End If

                    proc.AllowedExitCodes = {0, 1}
                    proc.Start()
                End Using

Last edited by stax76; 26th July 2019 at 19:32.
stax76 is offline   Reply With Quote
Old 27th July 2019, 01:20   #809  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 2,633
Another question about the different LSMASH versions...

A while ago Ligh recommended to use the LSMASH versions which come with the current MeGUI distribution. Maybe not the latest and greatest, but proven and well tested. I did that (pleasantly surprised about the included latest XP-compatible version), and the non-XP version from the MeGui download is r929.

I used this version without any problems, but now I see that there are some newer builds which also incorporate a couple of patches, and I am curious again...

There is r941 by hydra3333, and also interesting is r935 by MeteorRain. I only need the 32-bit versions, and they should work under classic AVS 2.60 as well as under the latest AVS+ version. And stability is my major concern.

I did some test conversions with r935 by MeteorRain under classic AVS 2.61 Alpha without any problems. What confused me is that the readme says that this is a plugin for AVS+ and VapourSynth, no mention of classic AVS. Can I safely ignore this for the 32-bit version, or am I playing with fire?

Cheers
manolito
manolito is offline   Reply With Quote
Old 27th July 2019, 13:23   #810  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Germany
Posts: 670
Quote:
Originally Posted by manolito View Post
Can I safely ignore this for the 32-bit version, or am I playing with fire?
I remember the version you are talking about, as it was the one I was using. One of the things I'm thinking about is that with the old version, whenever a bit-depth higher than 8bit was detected, it used to output 16bit stacked or interleaved by default, while FFMpegSource2 had an option to allow the "10bit hack", otherwise everything was going to be outputted in 8bit by default. Later on, when Avisynth+ came out, ffms2 was updated to support higher regular planar bit depth available on Avisynth+ and the 10bit hack was removed, therefore the poor Avisynth users were left with 8bit only capabilities.
Now, I have no idea whether LWLibavVideoSource has been updated the same way ffms2 has been updated back in the days, but if it was, I'm afraid Avisynth 2.6.1 won't have high bit depth available (I haven't tested the new version, though).

Anyway, I know that you don't really encode high bit depth stuff and you don't make use of particular color curves and so on, so, if this is the only difference between the old and the new version, it might work for what you have to do as well.
__________________
Broadcast Encoder
Avisynth memes: 1 - 2 - 3
Videotek - Audacity XP
FranceBB is offline   Reply With Quote
Old 27th July 2019, 13:49   #811  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,081
Quote:
Originally Posted by FranceBB View Post
while FFMpegSource2 had an option to allow the "10bit hack", otherwise everything was going to be outputted in 8bit by default. Later on, when Avisynth+ came out, ffms2 was updated to support higher regular planar bit depth available on Avisynth+ and the 10bit hack was removed
The 10bit hack was a patch that was only ever present in SAPikachu's builds. It was never present in upstream FFMS2's codebase, and was therefore not 'removed' when support for all* of AviSynth+'s pix_fmts was added.

*for a given value of 'all'. Not even FFmpeg supports all the pix_fmts AviSynth+ does, and FFMS2 is obviously limited to just what FFmpeg supports.

Last edited by qyot27; 27th July 2019 at 13:52.
qyot27 is offline   Reply With Quote
Old 27th July 2019, 14:03   #812  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,200
Quote:
Originally Posted by manolito View Post
What confused me is that the readme says that this is a plugin for AVS+ and VapourSynth, no mention of classic AVS. Can I safely ignore this for the 32-bit version, or am I playing with fire?
Unless it says something like "Specifically AVS+ only", then is OK on AVS Standard.
Avs+ (and usually AVS+ plugins) are backward compatible to avs 2.60/61. [there is little reason not to be compatible]

EDIT: I just happened to stumble across this, not long after posting above.

Quote:
RawSourcePlus
Loading raw video data from files

for Avisynth+ r2150 or greater
This filter is only for Avisynth+MT. Avisynth2.6 is not supported.
requirements

Windows Vista sp2 or later
Avisynth+ r2150 or greater
Visual C++ Redistributable Packages for Visual Studio 2015
Dont think I've ever seen any AVS+ specific filters before.
__________________
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; 27th July 2019 at 14:43.
StainlessS is online now   Reply With Quote
Old 27th July 2019, 16:29   #813  |  Link
Groucho2004
►◄
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,459
This post says otherwise:
https://forum.doom9.org/showthread.p...43#post1768843
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 27th July 2019, 16:50   #814  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,200
Sorry, that was from Version 2016-08-14,
Chikuzen post from 28th May 2016, so is earlier than my quote.

From rawsourceplus-20160814.zip RawSourcePlus.html
Quote:
This filter is automatically registerd as MT_SERIALIZED.
You don't have to set it yourself.
original author:Ernst Peché, 2005-10-13
modified by Oka Motofumi, 2011-06-14

Version 2016-07-07 - Modified RawSource26 to Avisynth+ plugin. Version 2016-08-14 - Update for Avisynth+ r2150 or later.
EDIT:Here:- https://github.com/chikuzen/RawSource_2.6x/releases
Chikuzen link to Binary has it on GitHub.
__________________
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; 27th July 2019 at 16:53.
StainlessS is online now   Reply With Quote
Old 27th July 2019, 16:53   #815  |  Link
Groucho2004
►◄
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,459
Quote:
Originally Posted by StainlessS View Post
Sorry, that was from Version 2016-08-14,
Chikuzen post from 28th May 2016, so is earlier than my quote.

From rawsourceplus-20160814.zip RawSourcePlus.html
I don't see anything in the code (on github) that would suddenly stop it from working with AVS2.6. That could be tested easily, I guess.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 27th July 2019, 16:57   #816  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,200
Yup, I aint tested it, aint even tried it.
Me gots several hundreds of dlls to be tried, one day.
[probably got a dozen or so of yours, which actually just need dumping as using later ones]
__________________
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 online now   Reply With Quote
Old 27th July 2019, 17:21   #817  |  Link
Groucho2004
►◄
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,459
Quote:
Originally Posted by StainlessS View Post
Me gots several hundreds of dlls to be tried, one day.
Bloody hell
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 27th July 2019, 18:08   #818  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,200
Quote:
Originally Posted by Groucho2004 View Post
Bloody hell
A slight underestimation actually (some of below are probably non avs dll's, maybe avs tools or zips which I'm not sure of the contents, but most are avs dll zips[some may be extracted]).



EDIT: Some of the folders are collections, eg mg262 colection, or D.Horman [alas, no longer with us] etc.
EDIT: More than once, someone has made a request for source or dll, and nobody else seemed to have it.
(actually got about 3 or four more Firefox download folders which contain loads of stuff, and as yet uncatagorised, will be loads more dll's/zips in those 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; 27th July 2019 at 18:18.
StainlessS is online now   Reply With Quote
Old 27th July 2019, 20:02   #819  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,168
Quote:
Originally Posted by StainlessS View Post
A slight underestimation actually (some of below are probably non avs dll's, maybe avs tools or zips which I'm not sure of the contents, but most are avs dll zips[some may be extracted]).



EDIT: Some of the folders are collections, eg mg262 colection, or D.Horman [alas, no longer with us] etc.
EDIT: More than once, someone has made a request for source or dll, and nobody else seemed to have it.
(actually got about 3 or four more Firefox download folders which contain loads of stuff, and as yet uncatagorised, will be loads more dll's/zips in those too).
That wallpaper screams A e s t h e t i c s
Atak_Snajpera is offline   Reply With Quote
Old 27th July 2019, 20:34   #820  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,200
Arh, a fellow sybarite, then here just for you, my beloved W95 Red Tile[Admin] + about 4/5 more colors (~=2KB)

http://www.mediafire.com/file/sx5rgz.../TILES.7z/file
__________________
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 online now   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 16:24.


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