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 4th November 2016, 18:04   #621  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Do a preview of your source, though. L-Smash's fpsnum/fpsden-conversion can get stuttery. Often AssumeFPS() is enough to do the trick because the source isn't really vfr.
sneaker_ger is offline   Reply With Quote
Old 6th November 2016, 05:05   #622  |  Link
fvisagie
Registered User
 
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
Quote:
Originally Posted by jriker1 View Post
If I do reload this in VDub again it comes up 23.976

...

Based on this is a constant frame rate.
Is this is an Avisynth script you loaded into VDub, or did you open the video in it directly? If the former, I suspect that Avisynth/L-SMASH would always report the video framerate as constant.

But first see if any of the suggestions help.
fvisagie is offline   Reply With Quote
Old 7th November 2016, 00:01   #623  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 485
The above is from Mediainfo so not related to avisynth or vdub for the specs of the video.

I'm questioning if this tool is reliable for my conversions. I switched from several other plugins to avisynth because of various white screens at fast moving transition scenes but if this can't even get a basic frame rate right not good. Never saw another tool do this. Annoyed right now as I just converted another video that I was going to watch tonight and it happened again even though in VDub it said it was 23.976 before conversion. I'm going to try the settings suggested but forcing a setting doesn't sound good considering how reliable all the other tools are around this basic check.

JR
jriker1 is offline   Reply With Quote
Old 10th November 2016, 01:59   #624  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
is there some standalone exe command I can use to index files with lsmash (like with ffms2.exe)? reason is I would like to have some status progress bar which I dont have when using it inside megui (aside from the increasing filesize display)
__________________
Laptop Lenovo Legion 5 17IMH05: i5-10300H, 16 GB Ram, NVIDIA GTX 1650 Ti (+ Intel UHD 630), Windows 10 x64, madVR (x64), MPC-HC (x64), LAV Filter (x64), XySubfilter (x64) (K-lite codec pack)

Last edited by Thunderbolt8; 10th November 2016 at 02:08.
Thunderbolt8 is offline   Reply With Quote
Old 10th November 2016, 18:41   #625  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
I don't know of any. That's also the reason why MeGUI schedules an indexing job first.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 10th November 2016, 19:27   #626  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
You could ask the L-Smash guys to output progress every eg 5.0% to DebugView via OutputDebugString().
__________________
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 10th November 2016, 20:43   #627  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
is it normal that LSMASH does the indexing each time the script is called even though when the index file already exists? no updates etc. have been made since that file has been created, but indexing starts anew each time. its rather annoying, when I create an index file with ffms2 and then call that video again, the indexed file is usually regarded as fine and used in contrast to those created with LSMASH.
__________________
Laptop Lenovo Legion 5 17IMH05: i5-10300H, 16 GB Ram, NVIDIA GTX 1650 Ti (+ Intel UHD 630), Windows 10 x64, madVR (x64), MPC-HC (x64), LAV Filter (x64), XySubfilter (x64) (K-lite codec pack)
Thunderbolt8 is offline   Reply With Quote
Old 10th November 2016, 20:51   #628  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
Indexing should only happen if there is no existing index file already (I believe it does not even check if the file date of the source is newer than the file date of the index).

Is there any possible reason that L-SMASH Source may not be able to identify the index file matching the name of the source file (e.g. non-latin characters, access rights, file attributes)?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 10th November 2016, 21:37   #629  |  Link
Taurus
Registered User
 
Taurus's Avatar
 
Join Date: Mar 2002
Location: Krautland
Posts: 903
Quote:
Originally Posted by Thunderbolt8 View Post
is it normal that LSMASH does the indexing each time the script is called
No, it's not nomal.
LSMASH is indexing a file at first start.
Later on the index file is used for any conversions.
There must be something wrong at your side.
Maybe LigH's suggestions shed some light?
Taurus is offline   Reply With Quote
Old 10th November 2016, 21:42   #630  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
This script (originally posted here):- http://forum.doom9.org/showthread.ph...65#post1707765

Can tell how many times MeGUI is opening a script (but not if indexing at every opening, so may not be of use).

(req RT_Stats)
Code:
###
# MeGUI_ReOpenCount.avs
# http://forum.doom9.org/showthread.php?p=1707765#post1707765

LOG     = "MyLog.txt"      COUNTER = "MyCounter.txt"
CNT     = (Exist(COUNTER) ? RT_NumberValue(RT_ReadTxtFromFile(COUNTER,Lines=1)) : 0) + 1
RT_Writefile(LOG, "%d ] *** HERE I AM *** @ %s", CNT, RT_LocalTimeString(file=False), Append=True)
RT_Writefile(COUNTER, "%d", CNT, Append=False)

# ...

Colorbars.KillAudio.Trim(0,-10).ConvertToYV12  # Your Script  (only 10 frames)

# ...

ScriptClip("""
    (current_frame==FrameCount-1)
        \ ? RT_Writefile(LOG, "%d ] *** LAST FRAME, CLOSING SCRIPT *** @ %s", CNT, RT_LocalTimeString(file=False), Append=True)
        \ : NOP
    Return Last
""")
Return Last
Need to make sure that LOG and COUNTER files do not exist before start.

This is result after updating to current developer build a few moments ago.
Code:
# Loading avs into MeGUI
1 ] *** HERE I AM *** @ 2016-11-10 20:29:52.609
2 ] *** HERE I AM *** @ 2016-11-10 20:29:53.406
# Click Aspect Ratio Select close button
# ----
# Click AutoEncode button
3 ] *** HERE I AM *** @ 2016-11-10 20:31:17.546
# Click Start
4 ] *** HERE I AM *** @ 2016-11-10 20:32:08.296
5 ] *** HERE I AM *** @ 2016-11-10 20:32:09.281
5 ] *** LAST FRAME, CLOSING SCRIPT *** @ 2016-11-10 20:32:09.343
# Seems to finish then reopen again
6 ] *** HERE I AM *** @ 2016-11-10 20:32:10.234
Above, I paused before moving onto next stage.
Perhaps you can compare with MeGUI log to see what its doing at what times.
(I did not use L-Smash, might want to modify script).

The number of re-opens seems to have been reduced since last I tried, was about 7 opens on initial scan, and then another 5
on AutoEncode/render.

EDIT: Number of re-opens probably depend upon options selected in MeGUI.
__________________
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; 10th November 2016 at 22:06.
StainlessS is offline   Reply With Quote
Old 11th November 2016, 15:40   #631  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 485
Quote:
Originally Posted by sneaker_ger View Post
Do a preview of your source, though. L-Smash's fpsnum/fpsden-conversion can get stuttery. Often AssumeFPS() is enough to do the trick because the source isn't really vfr.
You are right on. I did in avisynth:

LWLibavVideoSource("Video.mkv", fpsnum=24000, fpsden=1001)
TextSub("Video.ass")

Output stutters. Really wondering the stability of this tool. Switched to it because referenced before getting these weird white frames flashing on the screen during fast transitions and was wondering if it would help but seems problematic. I'll try removing fpsnum and fpsden and adding .AssumeFPS() to the end of the LWLibavVideoSource line and see if that works.

Thanks.

JR

Last edited by jriker1; 11th November 2016 at 17:01.
jriker1 is offline   Reply With Quote
Old 12th November 2016, 11:04   #632  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
Quote:
Originally Posted by LigH View Post
Indexing should only happen if there is no existing index file already (I believe it does not even check if the file date of the source is newer than the file date of the index).

Is there any possible reason that L-SMASH Source may not be able to identify the index file matching the name of the source file (e.g. non-latin characters, access rights, file attributes)?
no this shouldnt be the problem.

when I opened the script and it created the index file, when I add this file then to the encoding queue then its fine and its not gonna be created again. but when I load the script again even though the index file already exists then it will be created again.
__________________
Laptop Lenovo Legion 5 17IMH05: i5-10300H, 16 GB Ram, NVIDIA GTX 1650 Ti (+ Intel UHD 630), Windows 10 x64, madVR (x64), MPC-HC (x64), LAV Filter (x64), XySubfilter (x64) (K-lite codec pack)
Thunderbolt8 is offline   Reply With Quote
Old 12th November 2016, 11:30   #633  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
There might be a feature to delete the index in some cases because L-SMASH Source has no sanity checks, and it happened often that a remaining index file from a previous job was re-used on a different new source, but with the same file name, which caused issues.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 13th November 2016, 14:11   #634  |  Link
tuanden0
Registered User
 
Join Date: Oct 2016
Posts: 111
I have a problem with L-Smash Source of latest meGUI dev server update.

They detect my video fps 23.976 to 25.850 or 23.810 I tried use AsumeFPS(2400, 1001) but the fps of output didn't change My output video just 25.850.

This is my script

Code:
SetFilterMTMode("DEFAULT_MT_MODE", 2)
SetFilterMTMode("LSMASHVideoSource", 3)
LoadPlugin("E:\Encoder\Tools\LSMASHSource.dll")
LWLibavVideoSource("E:\Download\CG\CCNA Network Cisco 480p.mkv")
AsumeFPS(2400, 1001)
Toon(0.7)
SetFilterMTMode("Deblock", 1)
Deblock(quant=33, bOffset=2)
DeHalo_Alpha()
Prefetch(4)
Sorry for my bad English
tuanden0 is offline   Reply With Quote
Old 13th November 2016, 17:35   #635  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
That's 24000, 1001, not 2400, 1001, you forgot a 0. Anyway you shouldn't get 25.850 fps with this setting
Music Fan is offline   Reply With Quote
Old 13th November 2016, 17:54   #636  |  Link
dipje
Registered User
 
Join Date: Oct 2014
Posts: 268
And it's AssumeFPS with two s at the start instead of AsumeFPS.

So I'm guessing that script gives an error so whatever he's seeing, it's an old version of his script or he's even picking the wrong or something. Or a 'cache' in whatever editor you're using?
dipje is offline   Reply With Quote
Old 14th November 2016, 03:25   #637  |  Link
tuanden0
Registered User
 
Join Date: Oct 2016
Posts: 111
Yay, I change AsumeFPS(2400, 1001) to AssumeFPS(24000, 1001) and it's work. Thank you!
tuanden0 is offline   Reply With Quote
Old 15th November 2016, 18:25   #638  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 485
Quote:
Originally Posted by tuanden0 View Post
Yay, I change AsumeFPS(2400, 1001) to AssumeFPS(24000, 1001) and it's work. Thank you!
Why not just do AssumeFPS(23.976) ?
jriker1 is offline   Reply With Quote
Old 15th November 2016, 18:26   #639  |  Link
jriker1
Registered User
 
Join Date: Dec 2003
Posts: 485
Does LWLibavVideoSource support 4k content? I opened a video in VDub using LWLibavVideoSource pointing to the source file and comes out with a lot of green lines with slight hazy view of the video in the background that you can see in between the green lines.

Thanks.

JR
jriker1 is offline   Reply With Quote
Old 15th November 2016, 18:31   #640  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Your source is using a bit-depth higher than 8 bit. You can instruct l-smash to dither it down via format="YUV420P8" parameter. (See README included in L-Smash package and AviSynth docs)
sneaker_ger 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 05:05.


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