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 > Hardware & Software > Software players

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th February 2020, 18:41   #1  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 309
VLC - AviSynth plugin

(Project is mirrored on site videofan3d)

AviSynth demultiplexer plugin for popular VLC Media Player for Windows.

Allows to play AviSynth scripts using VLC.

Executables and documentation can be downloaded from:

2020-02-26: vlc-avisynth version 1.0.1 - minor fixes
2020-02-08: vlc-avisynth version 1.0.0

Last edited by videofan3d; 29th February 2020 at 00:10.
videofan3d is offline   Reply With Quote
Old 9th February 2020, 17:42   #2  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,386
Sweet. Thank you very much!
videoh is offline   Reply With Quote
Old 9th February 2020, 19:28   #3  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 8,220
Thanx videofan3d.
I installed as per PDF, and played simple script OK [Win7 and Vlc x64]
Code:
Colorbars
But on VLC closure, got this


Avs version [EDIT: Oops, I posted x86 version image, I was testing some stuff under avs v2.58 x86, fixed with Avs x64 version image]


Vlc Version [x64]


settings 1 [EDIT: I ticked ignore Alpha Channel]


settings 2 [EDIT: I initally had Timestretch ticked]


I switched off the settings 2 Timestretch, option, and retried. Worked OK, no shutdown error.
I switched ON the settings 2 Timestretch, option, and retried. still worked OK, no shutdown error.
No idea why, but is working OK now with/without timestretch ticked.

Thanks again, me is happy.

EDIT:
Quote:
Limitations and Known Issues
1. VLC playback parameters are identified upon start of playback.
Therefore AviSynth script should provide video with constant resolution and fps, as well as audio with constant sample rate,
number of channels and bit-depth. Otherwise VLC will probably crash.
Need to remark that scripts with varying resolution and audio parameters are very rare.
Dont think is possible for Avisynth to change any of above during playback. [EDIT: Perhaps someone else can confirm this]

EDIT:
Quote:
2. VLC and AviSynth Windows device conflict
When VLC audio output module is set to “Automatic”, it used usually DirectX audio output.
In this situation VLC has conflict with AviSynth itself: both probably lock the same Windows devices.
Consequently, when playback is stopped by <Stop> button, VLC crashes. Unfortunately this conflicted
cannot be avoided/managed by AviSynth plugin itself (at the moment).
Resolution: set VLC audio playback to other specific output module, e.g. to WaveOut audio output. Then there is no conflict and no crash occurs.
As I have it set up [EDIT: With WaveOut audio output], No problems if I press STOP button for the ColorBars script.
__________________
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; 9th February 2020 at 19:57.
StainlessS is offline   Reply With Quote
Old 9th February 2020, 23:21   #4  |  Link
Taurus
Registered User
 
Taurus's Avatar
 
Join Date: Mar 2002
Location: Krautland
Posts: 903
@videofan3d
64bit version opens almost instantly per drag and drop.
32bit version hangs with a little delay....
All latest VLC player and setup as per pdf.
Taurus is offline   Reply With Quote
Old 10th February 2020, 21:05   #5  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 309
Quote:
Originally Posted by StainlessS View Post
Code:
Colorbars
For explanation:

Colorbars() is exactly the example of wrong alpha-channel.
Just because of this I implemented the setting "ignore-alpha"

Another option is to modify the script like

Colorbars(320,240)
ConvertToRGB24() # this will remove alpha and produce pure RGB
ConvertToRGB32() # optionally, this will add alpha=255
videofan3d is offline   Reply With Quote
Old 19th February 2020, 18:43   #6  |  Link
Milardo
Registered User
 
Join Date: Nov 2008
Posts: 108
Hi, is there a way to get this to work in linux?

Last edited by Milardo; 19th February 2020 at 18:46.
Milardo is offline   Reply With Quote
Old 19th February 2020, 18:58   #7  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 309
Quote:
Originally Posted by Milardo View Post
Hi, is there a way to get this to work in linux?
AviSynth is Windows frame-server which uses Windows filters...
videofan3d is offline   Reply With Quote
Old 26th February 2020, 22:34   #8  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 309
Release 1.0.1

- bugfix: added flagging for interlaced input (BFF, TFF, progressive)
- improved Avisynth DLL non-existence detection
videofan3d is offline   Reply With Quote
Old 10th March 2020, 03:27   #9  |  Link
Milardo
Registered User
 
Join Date: Nov 2008
Posts: 108
Hi using the latest version with portable vlc in win 10 x64. I notice that lav filters and ffdshow get used. The problem i noticed is that the video i played is skipping(video not audio). Not sure what the problem is.

A question about avisynth usage, anyway to put in a script so any video or source will play so I don't have to keep modifying the script? I know if ffdshow works that way with ffdshow_source()

Last edited by Milardo; 10th March 2020 at 03:33.
Milardo is offline   Reply With Quote
Old 10th March 2020, 22:43   #10  |  Link
videofan3d
Registered User
 
Join Date: Sep 2013
Location: Czech Republic
Posts: 309
Quote:
Originally Posted by Milardo View Post
I notice that lav filters and ffdshow get used. The problem i noticed is that the video i played is skipping(video not audio).
If you open the same script using MPC-HC x64, I'd guess it will "skip" as well. Right?
libavisynthw_plugin just opens stream and obtain video+audio frames using AvisSynth.dll


Quote:
Originally Posted by Milardo View Post
A question about avisynth usage, anyway to put in a script so any video or source will play so I don't have to keep modifying the script? I know if ffdshow works that way with ffdshow_source()
I'm not sure I understand the question, what you want to achieve.
My previous sentence describes principle how it works.
Main purpose of libavisynthw_plugin was to be able to play .avs and use all capabilities of VLC, mainly setting different output modules.
(e.g. my other module libdecklinkoutw_plugin)
videofan3d is offline   Reply With Quote
Old 22nd May 2020, 04:35   #11  |  Link
Milardo
Registered User
 
Join Date: Nov 2008
Posts: 108
Quote:
Originally Posted by videofan3d View Post
If you open the same script using MPC-HC x64, I'd guess it will "skip" as well. Right?
libavisynthw_plugin just opens stream and obtain video+audio frames using AvisSynth.dll




I'm not sure I understand the question, what you want to achieve.
My previous sentence describes principle how it works.
Main purpose of libavisynthw_plugin was to be able to play .avs and use all capabilities of VLC, mainly setting different output modules.
(e.g. my other module libdecklinkoutw_plugin)
Is there a way to send a log that shows errors vlc is having playing back my script?
Milardo is offline   Reply With Quote
Old 22nd May 2020, 16:00   #12  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 8,220
Not exactly as requested, but there is a function in RT_Stats called RT_DebugF(), which sends debug info to a DebugView window.
DebugView v4.9:- https://docs.microsoft.com/en-us/sys...oads/debugview

Code:
RT_DebugF(string format,dat1,...,datn,string "name"="RT_DebugF:",int "TabSz"=4)
 Sends  a formatted string to DebugView Window. The unnamed 'format' string and optional unnamed 'dat' args are used to construct the
 text string that is sent to DebugView, uses C/CPP printf() style formatting.
 Format: compulsory string controlling format and describing the datn type args that are expected.
 datn: Variable number of data args of any type (excluding clip).
 Name, Default "RT_DebugF:". Allows you to change the default name prepended to each line of text output to DebugView Window.
 TabSz, Default 4 (1 ->32). TAB step setting used for Chr(9) tab ('\t')  character.
 To set either Name or TabSz, you must use the named form eg Name="NewName:" or TabSz=8 as Avisynth does not know where the data args
 end.

 printf Format spec here:- http://msdn.microsoft.com/en-us/library/56e442dc%28v=vs.71%29.aspx
  NOTE, the only support for printing Bool variables is %s as string, ie prints "True" or "False".
 Formatting supported %[flags] [width] [.precision] type
  flags, one of  "-,+,0, ,#"
  width, integer, "*" supported (width supplied via dat arg).
  Precision, integer, "*" supported (precision supplied via dat arg).
  type,
    "c,C,d,i,o,u,x,X",  Integer type, c,C=character, d,i=signed, o,u,x,X=unsigned (o=octal, x=Hex).
    "e,E,f,g,G",        Floating point type
    "s,S",              String type (also Bool).

  Formatting Insertion point is marked with '%' character in the format string (as in Avisynth String function), if you wish to use
  a percent character within the output string, it should be inserted twice in the format string ie '%%' will produce a single '%'.
  The data datn arg strings do not require a double '%' character.

  A Backslash character '\' introduces escape sequences, to insert a backslash character itself, you must supply a double
  backslash sequence ie '\\'.
  Converts embedded escape character sequences (Case Significant):-
    '\\' Converted to '\'       Single Backslash
    '\n' Converted to Chr(10)   NewLine
    '\r' [and Chr(13)] Converted to Chr(10)   NewLine
    '\t' [and Chr(9)] Converted to multiple SPACE's. Horizontal TAB (Tab positions relative to name + SPACE [if not ending in SPACE])
    '\x', where x is ANY OTHER CHARACTER not included above, will be copied verbatim, ie '\x'.

  Escape sequences are replaced only when occurring in the format string, if you need escapes in data string then use RT_String and
  RT_Debug functions.

  Example:
   RT_DebugF("Hello there %s and %s.\nGoodbye %d.","Fred","Ted",2013)
   would output same as:-   RT_Debug("Hello there Fred and Ted." + Chr(10) + "Goodbye 2013.")
RT_Stats available @ MediaFire below this post.

If messages required at every frame, then need to do that within runtime environment, eg Scriptclip.

For VLC, cannot show what errors vlc is having, but can tell you how far it got without vlc errors.
__________________
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; 22nd May 2020 at 16:03.
StainlessS is offline   Reply With Quote
Old 22nd May 2020, 17:13   #13  |  Link
Milardo
Registered User
 
Join Date: Nov 2008
Posts: 108
]Does any of this message log from vlc help?

Code:
avisynth info: DEMUX_GET_POSITION=0.000049
avisynth info: DEMUX_GET_TIME=4208333
avisynth info: DEMUX_GET_LENGTH=86399972222
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1003 ms)
main error: Timestamp conversion failed for 4305556: no reference clock
main error: Could not convert timestamp 0 for rawvideo
avisynth info: DEMUX_GET_POSITION=0.000051
avisynth info: DEMUX_GET_TIME=4368055
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000052
avisynth info: DEMUX_GET_TIME=4513888
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000054
avisynth info: DEMUX_GET_TIME=4673611
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000056
avisynth info: DEMUX_GET_TIME=4819444
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000058
avisynth info: DEMUX_GET_TIME=4979166
avisynth info: DEMUX_GET_LENGTH=86399972222
main warning: decoder/packetizer fifo full (data not consumed quickly enough), resetting fifo!
avisynth info: DEMUX_GET_POSITION=0.000059
avisynth info: DEMUX_GET_TIME=5118055
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000061
avisynth info: DEMUX_GET_TIME=5263888
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000063
avisynth info: DEMUX_GET_TIME=5409722
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000064
avisynth info: DEMUX_GET_TIME=5569444
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000066
avisynth info: DEMUX_GET_TIME=5729166
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000068
avisynth info: DEMUX_GET_TIME=5875000
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000070
avisynth info: DEMUX_GET_TIME=6013888
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000071
avisynth info: DEMUX_GET_TIME=6145833
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000073
avisynth info: DEMUX_GET_TIME=6277777
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000074
avisynth info: DEMUX_GET_TIME=6409722
avisynth info: DEMUX_GET_LENGTH=86399972222
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1021 ms)
main error: Timestamp conversion failed for 6534723: no reference clock
main error: Could not convert timestamp 0 for rawvideo
avisynth info: DEMUX_GET_POSITION=0.000076
avisynth info: DEMUX_GET_TIME=6548611
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000078
avisynth info: DEMUX_GET_TIME=6708333
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000080
avisynth info: DEMUX_GET_TIME=6875000
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000081
avisynth info: DEMUX_GET_TIME=7034722
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000083
avisynth info: DEMUX_GET_TIME=7180555
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000085
avisynth info: DEMUX_GET_TIME=7333333
avisynth info: DEMUX_GET_LENGTH=86399972222
main warning: decoder/packetizer fifo full (data not consumed quickly enough), resetting fifo!
avisynth info: DEMUX_GET_POSITION=0.000086
avisynth info: DEMUX_GET_TIME=7451388
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000088
avisynth info: DEMUX_GET_TIME=7604166
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000090
avisynth info: DEMUX_GET_TIME=7763888
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000092
avisynth info: DEMUX_GET_TIME=7909722
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000093
avisynth info: DEMUX_GET_TIME=8069444
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000095
avisynth info: DEMUX_GET_TIME=8201388
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000096
avisynth info: DEMUX_GET_TIME=8333333
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000098
avisynth info: DEMUX_GET_TIME=8465277
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000100
avisynth info: DEMUX_GET_TIME=8597222
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000101
avisynth info: DEMUX_GET_TIME=8729166
avisynth info: DEMUX_GET_LENGTH=86399972222
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1023 ms)
avisynth info: DEMUX_GET_POSITION=0.000103
avisynth info: DEMUX_GET_TIME=8875000
avisynth info: DEMUX_GET_LENGTH=86399972222
main error: Timestamp conversion failed for 8868056: no reference clock
main error: Could not convert timestamp 0 for rawvideo
avisynth info: DEMUX_GET_POSITION=0.000104
avisynth info: DEMUX_GET_TIME=9020833
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000106
avisynth info: DEMUX_GET_TIME=9173611
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000108
avisynth info: DEMUX_GET_TIME=9319444
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000110
avisynth info: DEMUX_GET_TIME=9472222
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000111
avisynth info: DEMUX_GET_TIME=9618055
avisynth info: DEMUX_GET_LENGTH=86399972222
main warning: decoder/packetizer fifo full (data not consumed quickly enough), resetting fifo!
avisynth info: DEMUX_GET_POSITION=0.000113
avisynth info: DEMUX_GET_TIME=9743055
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000114
avisynth info: DEMUX_GET_TIME=9875000
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000116
avisynth info: DEMUX_GET_TIME=10020833
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000118
avisynth info: DEMUX_GET_TIME=10180555
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000120
avisynth info: DEMUX_GET_TIME=10347222
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000121
avisynth info: DEMUX_GET_TIME=10493055
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000123
avisynth info: DEMUX_GET_TIME=10618055
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000125
avisynth info: DEMUX_GET_TIME=10756944
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000126
avisynth info: DEMUX_GET_TIME=10888888
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000128
avisynth info: DEMUX_GET_TIME=11020833
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000129
avisynth info: DEMUX_GET_TIME=11159722
avisynth info: DEMUX_GET_LENGTH=86399972222
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1028 ms)
main error: Timestamp conversion failed for 11201389: no reference clock
main error: Could not convert timestamp 0 for rawvideo
avisynth info: DEMUX_GET_POSITION=0.000131
avisynth info: DEMUX_GET_TIME=11305555
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000133
avisynth info: DEMUX_GET_TIME=11451388
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000134
avisynth info: DEMUX_GET_TIME=11611111
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000136
avisynth info: DEMUX_GET_TIME=11756944
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000138
avisynth info: DEMUX_GET_TIME=11916666
avisynth info: DEMUX_GET_LENGTH=86399972222
main warning: decoder/packetizer fifo full (data not consumed quickly enough), resetting fifo!
avisynth info: DEMUX_GET_POSITION=0.000139
avisynth info: DEMUX_GET_TIME=12048611
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000141
avisynth info: DEMUX_GET_TIME=12201388
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000143
avisynth info: DEMUX_GET_TIME=12347222
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000145
avisynth info: DEMUX_GET_TIME=12506944
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000147
avisynth info: DEMUX_GET_TIME=12666666
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000148
avisynth info: DEMUX_GET_TIME=12812500
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000150
avisynth info: DEMUX_GET_TIME=12944444
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000151
avisynth info: DEMUX_GET_TIME=13076388
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000153
avisynth info: DEMUX_GET_TIME=13208333
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000155
avisynth info: DEMUX_GET_TIME=13354166
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000156
avisynth info: DEMUX_GET_TIME=13500000
avisynth info: DEMUX_GET_LENGTH=86399972222
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1034 ms)
main error: Timestamp conversion failed for 13604167: no reference clock
main error: Could not convert timestamp 0 for rawvideo
avisynth info: DEMUX_GET_POSITION=0.000158
avisynth info: DEMUX_GET_TIME=13645833
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000160
avisynth info: DEMUX_GET_TIME=13812500
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000162
avisynth info: DEMUX_GET_TIME=13979166
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000164
avisynth info: DEMUX_GET_TIME=14145833
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000166
avisynth info: DEMUX_GET_TIME=14312500
avisynth info: DEMUX_GET_LENGTH=86399972222
main warning: decoder/packetizer fifo full (data not consumed quickly enough), resetting fifo!
avisynth info: DEMUX_GET_POSITION=0.000167
avisynth info: DEMUX_GET_TIME=14437500
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000169
avisynth info: DEMUX_GET_TIME=14590277
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000171
avisynth info: DEMUX_GET_TIME=14743055
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000173
avisynth info: DEMUX_GET_TIME=14916666
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000174
avisynth info: DEMUX_GET_TIME=15076388
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000176
avisynth info: DEMUX_GET_TIME=15215277
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000178
avisynth info: DEMUX_GET_TIME=15347222
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000179
avisynth info: DEMUX_GET_TIME=15472222
avisynth info: DEMUX_GET_LENGTH=86399972222
avisynth info: DEMUX_GET_POSITION=0.000180
avisynth info: DEMUX_GET_TIME=15583333
avisynth info: DEMUX_GET_LENGTH=86399972222
main warning: picture is too late to be displayed (missing 3 ms)
main warning: picture is too late to be displayed (missing 4 ms)
avisynth info: DEMUX_GET_POSITION=0.000182
avisynth info: DEMUX_GET_TIME=15708333
avisynth info: DEMUX_GET_LENGTH=86399972222
main warning: picture is too late to be displayed (missing 5 ms)
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1034 ms)
main error: Timestamp conversion failed for 15791667: no reference clock
main error: Could not convert timestamp 0 for rawvideo
avisynth info: DEMUX_GET_POSITION=0.000183
avisynth info: DEMUX_GET_TIME=15812500
Avisynth script:

Code:
SetMemoryMax(6000)
global threads=2

LoadPlugin("C:\test\VideoInputSource_x64.dll")

LoadPlugin("C:\test\svpflow1_64.dll")
LoadPlugin("C:\test\svpflow2_64.dll")

VideoInputSource(1,"USB",1280,720)
ConvertToYV12()


SetFilterMTMode("DEFAULT_MT_MODE",2)
SetFilterMTMode ("SVSuper", 1)
SetFilterMTMode ("SVAnalyse", 1)
SetFilterMTMode ("SVSmoothFps", 1)

global crop_string=""
global resize_string=""
global super_params     = "{pel:1,gpu:1,scale:{up:0},rc:true}"
global analyse_params   = "{gpu:1,vectors:3,block:{w:16},main:{search:{coarse:{type:2,distance:-8,bad:{sad:2000,range:24}},type:2}},refine:[{thsad:250}]}"
global smoothfps_params = "{gpuid:11,rate:{num:144,den:1,abs:true},algo:11,linear:true,scene:{mode:0,blend:true}}"
global demo_mode = 0
global stereo_type = 0
global nvof = 0
global nvof_blk = 16
########## BEGIN OF base.avs ##########
# This file is a part of SmoothVideo Project (SVP) ver.4
# This is NOT the full AVS script, all used variables are defined via
# JScript code that generates the full script text.
function interpolate(clip src)
{
	input = crop_string=="" ? src : eval("src."+crop_string)
	input = resize_string=="" ? input : eval("input."+resize_string)
	nvof==0 ? eval("""
		super=SVSuper(input, super_params)
		vectors=SVAnalyse(super, analyse_params, src=input)
		smooth=SVSmoothFps(input, super, vectors, smoothfps_params, mt=threads, src=src)
	""") : eval("""
	        
                nvof_src = input.BicubicResize(input.width/nvof_blk*4,input.height/nvof_blk*4,src_width=-(input.width % nvof_blk),src_height=-(input.height % nvof_blk))
		smooth=SVSmoothFps_NVOF(input, smoothfps_params, nvof_src=nvof_src, mt=threads, src=src)
	""")
	return demo_mode==0 ? smooth : demo(input,smooth)
}
input=last
	stereo_type==0 ? eval(""" interpolate(input)
""") : 	stereo_type==1 ? eval("""
		lf = interpolate(input.crop(0,0,input.width/2,0))
		rf = interpolate(input.crop(input.width/2,0,0,0))
		StackHorizontal(lf, rf)
""") : 	stereo_type==2 ? Eval("""
		lf = interpolate(input.crop(0,0,0,input.height/2))
		rf = interpolate(input.crop(0,input.height/2,0,0))
		StackVertical(lf, rf)""") : input
########### END OF base.avs ###########
Prefetch(threads)
Milardo is offline   Reply With Quote
Old 22nd May 2020, 18:05   #14  |  Link
Milardo
Registered User
 
Join Date: Nov 2008
Posts: 108
I think the problem is with the resolution. I tried playback of a 1280x720 video file and it had the same issue-which is when you watch it will play but freeze every few seconds-video not audio. I changed the resolution of my capture card to 720x480 and no playback video issues now.
Milardo is offline   Reply With Quote
Reply

Tags
avisynth, vlc, vlc plugin

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 22:21.


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