i recently learned about this plugin and it handles my hdpvr .ts files very well. no more crashes or program shutdowns while stepping bw/fw. however, i also just learned that its very slow at loading an avs script. when i am debuggin my scripts, i have to wait for it to load up the video. i even tried trim'ing to the position to speed it up, but that doesn't matter, it still takes the same amount of time to load up.
the above snippet is the complete script to load both audio/video.Code:v = "h:\video.ts" LoadPlugin( "C:\PLUGINS\LSMASHSource.dll" ) LWLibavVideoSource(v, cache=True, threads=2).selectevery(2,1) AudioDub(last, LWLibavAudioSource(v, stream_index=1, av_sync=true))
is there any way of speeding it up ?
+ Reply to Thread
Results 1 to 16 of 16
Loading a source will take some time due to the indexing step.
cache=True -> index file will be created next to the input file (if it does not exist)
cache=false -> index will be created inside the RAM (this might cause problems)
read: http://forum.doom9.org/showthread.php?t=167435 and: https://github.com/VFR-maniac/L-SMASH-Works/issues/17
i even tried trim'ing to the position to speed it up, but that doesn't matter,
Only way to really speed up the loading of the Avisynth script, would be to create the index file before loading the script.
yeah, but loading for the first time thus creating the initial first index always took a long time in ffmpegsource too, but subsequent loading was always instant, thanks to the index it created. LWLibavVideoSource doesn''t seem to work the same. it recreates the index or is re-reading it entirely, thus taking the same amount of time. the index has been created. but this is no good way to work with scripts under this behavior. i'd sure forget the next move (edit/idea) that i was planning while waiting for the video to load up again during repetivie dubugging situtations.
just for record purposes, the sources are .ts files from the hauppauge hdvpr, 720x480i, duration 01:33:53.280 on file used in this post. my usual file lengths are 1/2 hr or less captures.
edit: i closed down other tasks and re-ran stats again.
the script in post #1 takes: 2min 02secs to load 1st time, and 18secs subseq loads, index size 82MB
the script below takes: 2min 4secs to load 1st time, and 1.5secs subseq loads, index size 501KB
v = "h:\499.video.hdpvr.nbc.snl.MyLeyCyrus2013.full.9Mbpts.ts" LoadPlugin( "c:\plugins\ffms2.dll" ) FFIndex(v) aud = FFAudioSource(v) vid = FFVideoSource(v) audiodub(vid, aud)
Last edited by vhelp; 14th Oct 2013 at 11:06.
is that a utility ?
yes, aui_indexer (which requires lsmashinput.aui) is comparable to ffmsindex.
i goggle "aui_indexer" and found this link and downloaded the app, but the readme is in japaneese.
edit: i see i need more files. i will search later, have to step out..thanks for the help.
Last edited by vhelp; 14th Oct 2013 at 11:57.
attached aui_indexer 0.01 and lwinput from L-SMASH_Works r679
got L-SMASH_Works from:
Last edited by Selur; 14th Oct 2013 at 12:21.
just d/l'ed the tool. will try it out, thanks again.
no, it failed. when i loaded the script, it overwritten the aui_indexer's.. it is rewriting the index now..
cache=false was used. i will try with cache=true now..
nope. cache=true also overwites aui_index's index file.
hmm, seems like they changed something.
i should have kept a record of all the test scenarios so, far. i guess i'll have to start over.
this is the d/l'ed pkg version i have currently: "L-SMASH-Works_r688v2.7z" files dumped inside my c:\plugins folder.
LSMASHSource.dll 8,230kb 08/30/2013 12:45pm msvcr110.dll 855kb 11/05/2012 9:20am #01 overwrites aui_index index file LWLibavVideoSource(v, stream_index=1, cache=true).selectevery(2,0) AudioDub(last, LWLibavAudioSource(v, cache=true, stream_index=1, av_sync=true))
#02 video only = 9 secs load time:
# if original LSMash created index, then=9secs, else if aui_index created=overwrites a new index # LWLibavVideoSource(v, stream_index=0, cache=true , seek_mode=0 ).selectevery(2,0)
# if original LSMash created index, then=17secs, else if aui_index created=overwrites a new index LWLibavVideoSource(v, stream_index=0, cache=true , seek_mode=0 ).selectevery(2,0) AudioDub(last, LWLibavAudioSource(v, av_sync=true))
# if original LSMash created index, then=17secs, else if aui_index created=overwrites a new index LWLibavVideoSource(v, stream_index=0, cache=true , seek_mode=0 ).selectevery(2,0) AudioDub(last, directshowsource(v)) # get audio through directshow, sample rate was 44.1k, probably default, maybe conversion-slowed
# if original LSMash created index, then=17secs, else if aui_index created=overwrites a new index LWLibavVideoSource(v, stream_index=0, cache=true , seek_mode=0 ).selectevery(2,0) AudioDub(last, ffAudioSource(v, track=1)) # get audio through ffAudioSource (ffms2.dll), sample rate was 48k, crashes after 1st playback
After about 5 years,
is there some command line utility out there to create lwi , index file for LWLibavSource?
I downloaded that lwinput.aui from Selur, also downloaded latest aui_indexer.exe for 2016 but those lwi do not match, there is difference in header, POC value and some more.
Both utilities aui_indexer.exe or LWLibavSource in Vapoursynth refuse the other lwi respectively and create one of their own.