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 21st April 2021, 14:07   #1301  |  Link
Nico8583
Registered User
 
Join Date: Jan 2010
Location: France
Posts: 851
Thank you HolyWu !
Nico8583 is offline   Reply With Quote
Old 21st April 2021, 14:11   #1302  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by HolyWu View Post
https://github.com/HolyWu/L-SMASH-Wo...ks_20210421.7z
  • Update to FFmpeg 4.4.
  • Update to dav1d 0.8.2.
  • Update to nv-codec-headers 11.0.10.1.
  • Update mfx_dispatch to API 1.35.
  • Update to xxHash 0.8.0.
  • LWLibav: Set frame properties for AviSynth+. (Asd-g)
  • LWLibav: Export AviSynth variables FFSAR_NUM, FFSAR_DEN, FFSAR. (Asd-g)
  • lwindex: Fix crash when opening remote files. (AkarinVS)
  • lwindex: Hash value in FileHash field is now 64 bits long.
thanks

did you add what Asd-g forget https://github.com/HolyWu/L-SMASH-Wo...ment-753911159 ?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 23rd April 2021, 07:12   #1303  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Thanks
kedautinh12 is offline   Reply With Quote
Old 23rd April 2021, 15:57   #1304  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Thankyou Mister Wu :- https://www.youtube.com/watch?v=3w3X95uWv8A
__________________
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 offline   Reply With Quote
Old 24th April 2021, 13:25   #1305  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 996
Thanks, this is almost the only source filter I use
__________________
Live and let live

Last edited by gispos; 24th April 2021 at 13:29.
gispos is offline   Reply With Quote
Old 24th April 2021, 13:52   #1306  |  Link
abyss616
Registered User
 
Join Date: Dec 2008
Posts: 99
I tried to do some research on this, both in reading this thread and my own testing, but I wanted to get a more definitive answer: is the cache file created by MeGUI different than the one created when using VirtualDub/AvsPMod? Since I'm dealing with 1080i files that are several GB in size, I'd love to use the same cache file across both programs so I don't have to wait (and wait, and wait) for a new file to be generated when I go from one program to another. Thanks.
abyss616 is offline   Reply With Quote
Old 24th April 2021, 20:50   #1307  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
I typically capture my VHS-tapes three times into YUV422-10bit (Blackmagic Intensity Shuttle).
Then I load these three files in AVISynth+ using LibavSMASH and do some median() processing to get rid of recording-noise.

I really gave LibavSMASH a try. But it nearly always reindexed my files upon reloading the AVS-file into VDub. And my files are *huge* (400GB per File).
It takes about 15 minutes to reindex a single file. So reloading a AVS-file may take up to 45 minutes. This is very painful.

How can I force LibavSMASH to never re-index a file if a index is already present?
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 24th April 2021, 21:10   #1308  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Quote:
Originally Posted by scharfis_brain View Post
I typically capture my VHS-tapes three times into YUV422-10bit (Blackmagic Intensity Shuttle).
Then I load these three files in AVISynth+ using LibavSMASH and do some median() processing to get rid of recording-noise.

I really gave LibavSMASH a try. But it nearly always reindexed my files upon reloading the AVS-file into VDub. And my files are *huge* (400GB per File).
It takes about 15 minutes to reindex a single file. So reloading a AVS-file may take up to 45 minutes. This is very painful.

How can I force LibavSMASH to never re-index a file if a index is already present?

It normally does not re-index by default. You might have done something to the cache file (.lwi), or location of files ?

Also, if you use MOV container for v210, you don't need an index when using LSmashVideoSource
poisondeathray is offline   Reply With Quote
Old 24th April 2021, 21:43   #1309  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
This anything to do with it [from old docs, dont know if changed]

Code:
#LoadPlugin("LSMASHSource.dll")
##################################
## @ atrack  - audio track number. Default auto. If -2, ignore audio.
## @ fpsnum, fpsden - framerate. Default auto.
## @ stacked - if true, return Stack16 format.
##    (note, stacked=true requires a 16-bit color format)
## @ format  - force specified output pixel format. Default auto.
##    (see documentation for valid color formats)
##    (if stacked = true, default "YUV420P16")
## @ cache - if true (the default), create an index file.
##
function LibavSource2(string path, int "atrack", 
\          int "fpsnum", int "fpsden",
\          string "format", bool "stacked", bool "cache") 
{
    atrack   = Default(atrack, -1)
    fpsnum   = Default(fpsnum, 0)
    fpsden   = Default(fpsden,  1)
    stacked  = Default(stacked, false)
    cache    = Default(cache, true)

    format   = Default(format, "")
    format   = (format=="" && stacked==true) ? "YUV420P16" : ""

    video = LWLibavVideoSource(path, 
    \               fpsnum=fpsnum, fpsden=fpsden, format=format,
    \               stacked=stacked, cache=cache)
    return (atrack==-2) ? video: AudioDub(video, 
   \    LWLibavAudioSource(path, stream_index=atrack, cache=cache))
}
Maybe try with cache=false (perhaps after check [ Exist() ] on exisitng index).

EDIT: Or is that too obvious.

EDIT: Yeah, cache default true for current LWLibavAudioSource,
http://avisynth.nl/index.php/LSMASHS...bavVideoSource
__________________
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; 24th April 2021 at 22:07.
StainlessS is offline   Reply With Quote
Old 25th April 2021, 02:22   #1310  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
You can use LSMASHVideoSource without cache function
kedautinh12 is offline   Reply With Quote
Old 17th May 2021, 12:39   #1311  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Error when index .avi with L-SMASH source, original video have 25 minutes but when i index video output just 22 minutes

Example video: https://drive.google.com/file/d/1MDi...w?usp=drivesdk
kedautinh12 is offline   Reply With Quote
Old 17th May 2021, 20:06   #1312  |  Link
JKyle
App Digger
 
JKyle's Avatar
 
Join Date: Sep 2018
Posts: 411
@HolyWu,

Plz take a look at this issue I posted the other day.
It's about wrong frame rate(playback duration) info served by LSMASHVideoSource for (some) Dolby Vision video streams.
JKyle is offline   Reply With Quote
Old 18th May 2021, 02:59   #1313  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,048
I'm having an interesting problem. I have 32-bit AVIsynth 2.60 installed on both my Win7 laptop and the WinXP x64 partition on my desktop. I have an MP4 file and an AVIsynth script on an external hard drive (to eliminate any problems resulting from differences between files). The newest version of 32-bit Lsmashsource.dll has been extracted to the plugin folders on both computers. The laptop's avisynth can read the MP4 just fine, but my desktop's avisynth complains that there is no function named lsmashaudiosource, LWLibavAudioSource, ffms2source, etc.??
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.

Last edited by Katie Boundary; 18th May 2021 at 03:05.
Katie Boundary is offline   Reply With Quote
Old 18th May 2021, 05:21   #1314  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Quote:
Originally Posted by HolyWu View Post
Your video is VFR (Variable Frame Rate). The returned frame count from the source filter is correct. But the returned frame rate is higher than the average frame rate, hence the duration becomes shorter. However that's not an issue at all if you know how to correctly process VFR videos.
my mediainfo wasn't reported that vfr, now i used fpsnum=25, fpsden=1 and that correct duration, sr for your waste time
kedautinh12 is offline   Reply With Quote
Old 18th May 2021, 07:56   #1315  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
@ Katie Boundary: Use AVSMeter (AVSMeter.exe -avsinfo -l) to check if AviSynth is installed correctly, in which directory it looks for plugins, which plugins are found, which functions are known (the created log file is more verbose than the screen output).
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 18th May 2021 at 07:59.
LigH is offline   Reply With Quote
Old 18th May 2021, 11:33   #1316  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by HolyWu View Post
Your video is VFR (Variable Frame Rate). The returned frame count from the source filter is correct. But the returned frame rate is higher than the average frame rate, hence the duration becomes shorter. However that's not an issue at all if you know how to correctly process VFR videos.
I can't understand that. My test show:

1) Load Kanjani8.avi in VirtualDub2:
38902 frames, 25 fps -> Duration 24:56
sequence of frames:
KDPPPPPPPPPPKDKDKDKPPPPPPPPPPPPPPPPPPPDPDPDP...
K=Key frame, D=Drop or Duplicated frame

2) Load LWLibavVideoSource("C:\tmp\Kanjani8.avi") in VirtualDub2:
34239 frames, 25 fps -> Duration 22:49
Drop/Duplicated frames deleted, but the fps is not changed then the duration is shorter.
It is not than you say or the help show:
Quote:
+ fpsnum (default : 0)
Output frame rate numerator for VFR->CFR (Variable Frame Rate to Constant Frame Rate) conversion.
If frame rate is set to a valid value, the conversion is achieved by padding and/or dropping frames at the specified frame rate.
Otherwise, output frame rate is set to a computed average frame rate and the output process is performed by actual frame-by-frame
3) Load LWLibavVideoSource("C:\tmp\Kanjani8.avi", fpsnum=25, fpsden=1) in VirtualDub2:
38902 frames, 25 fps -> Duration 25:56
The Drop/Duplicated frames are preserved. Now is correct.

4) Load FFVideoSource("C:\tmp\Kanjani8.avi", timecodes = "C:\tmp\Kanjani8.txt") in VirtualDub2:
34239 frames, 22 fps -> Duration 25:56
FFVideoSource output the average fps to preserve duration.
And output the timecodes for a perfect sync with audio in a mkv VFR.
I don't know how output timecodes with LWLibav.

5) Load FFVideoSource("C:\tmp\Kanjani8.avi", fpsnum=25, fpsden=1) in VirtualDub2:
38902 frames, 25 fps -> Duration 25:56
The Drop/Duplicated frames are preserved. The same than LWLibav.

And MediaInfo can't detect VFR in avi files.
With Avinaptic we can detect Null/Drop/Duplicated frames:
Code:
Video track

FourCC                      XVID/XVID
Resolution                  1280 x 720
Frame aspect ratio          16:9 = 1.777778
Pixel aspect ratio          1:1 = 1
Display aspect ratio        16:9 = 1.777778
Vprp aspect ratio           71:40 = 1.775 (~16:9)
Framerate                   25 fps
Total frames                38,902
Stream size                 559,355,390 bytes (533.442869 MiB)
Bitrate                     2875.715336 kbps
Qf                          0.124814
Key frames                  264 (0; 12; 14; 16; 18; ... 38763)
Null frames                 4,663 (1; 13; 15; 17; 38; ... 38837)
...
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 18th May 2021, 13:39   #1317  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Thanks for your info but how to make timecodes file???
kedautinh12 is offline   Reply With Quote
Old 18th May 2021, 19:16   #1318  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
To make timecodes with FFVideoSource("C:\tmp\Kanjani8.avi", timecodes = "C:\tmp\Kanjani8.txt")

Now recode only 34239 frames and after add timecodes with mkvmerge/mp4fpsmod for mkv/mp4
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 18th May 2021, 19:54   #1319  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Thanks
kedautinh12 is offline   Reply With Quote
Old 22nd May 2021, 10:52   #1320  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Hi there, HolyWu, I noticed that you have archived your repository, so I can't open any new issue on GitHub, therefore I might as well post it here.

I think this is something of concern that has to be addressed on developers side: https://forum.doom9.org/showthread.php?p=1943307
FranceBB 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 22:35.


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