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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 4th November 2022, 11:13   #1421  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 465
Quote:
Originally Posted by FranceBB View Post
About the "I'm using it only to play stuff in my library", why not using PotPlayer which supports Avisynth post-processing via an Avisynth Script?
PotPlayer will pipe to Avisynth automatically under the hood, thus avoiding indexing.
Thanks for the tip. Currently I'm exploring the same kind of thing with MPC-HC using CrendKing's Avisynth filter. As far as I can tell it inserts Avisynth between LAV decoders and the renderer, so no indexing required either, but I'm having a couple of dealbreaking issues with it (see Issues tab in the Git).
flossy_cake is offline   Reply With Quote
Old 9th November 2022, 12:49   #1422  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,170
L-SMASH-Works 20221109
https://github.com/HomeOfAviSynthPlu...Works/releases
kedautinh12 is offline   Reply With Quote
Old 9th November 2022, 13:27   #1423  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Chelsea, UK
Posts: 3,419
Quote:
Originally Posted by kedautinh12 View Post
What an important changelog!


Code:
AviSynth: added support for XYZ12LE format (represented as RGB48).
Thank you so so so so much Asd-g!
I've never felt so welcomed and cared for, honestly!
Every single time I raise an issue with this indexer, it's taken into consideration and addressed.

I love LWLibav



By the way, I tested it and it does indeed work.
While FFVideoSource() converts XYZ to YUV, LWLibavVideoSource() preserves the original XYZ inside the video, thus displaying it correctly and allowing us to work directly with XYZ!


Last edited by FranceBB; 9th November 2022 at 13:40.
FranceBB is offline   Reply With Quote
Old 9th November 2022, 13:48   #1424  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,170
@FranceBB, you can comment about XYZ in FFMpeg, i think author will update for it
kedautinh12 is offline   Reply With Quote
Old 18th November 2022, 10:43   #1425  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 465
Here is a clip which LWlibavVideoSource cannot seem to play properly: https://drive.google.com/file/d/1lHB...usp=share_link

It seems to have something to do with that soft telecine / repeat fields issue causing it to go out of sync with audio because the repeat field flags aren't being obeyed correctly (discussion about that back on page 58).

Code:
file = "480i multiple cadences.mkv"

AudioDub(LWlibavVideoSource(file, repeat=false), LWLibavAudioSource(file, stream_index=-1))

ScriptClip(last, """SubTitle(String(propGetAny(last, "_FieldBased")))""")
If I set repeat=true I get:



The _FieldBased frame property might offer a clue: the panning sequence starting at 1:25 is showing a _FieldBased value with pattern: 0-1-2, which means "progressive-bff-tff" which doesn't seem right for a 3:2 sequence, so maybe it has something to do with that?

FFMpegSource2 doesn't populate the _FieldBased prop, but can play it correctly with rffmode=1 which means "Honor all pulldown flags":

Code:
FFMpegSource2(file, rffmode=1, atrack=-1)
But, something is still not right: if I do simple bob deinterlacing with:

Code:
FFMpegSource2(file, rffmode=1, atrack=-1)
Bob()
The result is that "jumping back and forth" artefact which looks like the field order is wrong. So I try to correct that with:

Code:
FFMpegSource2(file, rffmode=1, atrack=-1)
AssumeTFF()
Bob()
^ this is better, but there are still some sequences which appear to have the wrong field order -- look at the "Series Story Editor" at 00:14, it still moves in the wrong direction for one frame before jumping forward 2 frames. I would have thought that was impossible with Bob().


edit: it seems these dynamic changes in field order need to be obeyed, in addition to the repeat field flags, in order to get correct playback. Still, it doesn't make sense to me as I thought analogue CRT would just scan field1 followed by field2 at all times. Seems my understanding is completely wrong: https://www.dvmp.co.uk/digital-video.htm

Last edited by flossy_cake; 18th November 2022 at 11:28.
flossy_cake is offline   Reply With Quote
Old 18th November 2022, 11:26   #1426  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,170
I think you need report here to fix faster
https://github.com/HomeOfAviSynthPlu...H-Works/issues
kedautinh12 is offline   Reply With Quote
Old 18th November 2022, 12:33   #1427  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 465
Quote:
Originally Posted by kedautinh12 View Post
I think you need report here to fix faster
https://github.com/HomeOfAviSynthPlu...H-Works/issues
Thanks, done.
flossy_cake is offline   Reply With Quote
Old 24th November 2022, 17:10   #1428  |  Link
isidroco
Registered User
 
Join Date: Nov 2008
Posts: 72
I have a problem with small lagarith clips made from pictures with repeated null frames: https://www.mediafire.com/file/hwdf8...ditos.avi/file
Using it to make a slideshow. DirectShowSource will add an extra frame. And LWLibavVideoSource will only return one frame instead of 150.
This is my test script:

nameS="07 - creditos"
extS=".avi"
# v= DirectShowSource( nameS + extS , ConvertFPS=true)
# v= trim(v, 1, length= framecount(v)-1 )
v= LWLibavVideoSource(nameS+extS)
v= ScriptClip(v, """
Subtitle(String( int(current_frame/30))+" seconds",
\ align=5, size=height(v)/16 )
""")
# v= info(v, size= height(v)*.05)
return v
isidroco is offline   Reply With Quote
Old 12th December 2022, 20:18   #1429  |  Link
Hotte
Registered User
 
Join Date: Oct 2014
Posts: 209
LSmashAudio PCM Distortion

Quote:
Originally Posted by LigH View Post
Video: AVDH 1280x720 29.97fps 97223kbps [V: Apple Video Media Handler [eng] (dnxhd dnxhr hqx, yuv422p10le, 1280x720, 97223 kb/s)]
Audio: PCM 48000Hz stereo 1536kbps [A: Apple Sound Media Handler [eng] (pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s)]

Codec ID: sowt

My guess would be that the endianness of the PCM audio was not correctly respected.
Hi, all my Videos containing pcm_s16be or pcm_s16le audio are fully distorted when read with LSmashAudioSource, while LSmashVideoSource is just fine. I've got the latest build from 20221109. It is a pity to wait for indexing of workaround solutions just to get audio right.

Any news about this ?
Hotte is offline   Reply With Quote
Old 13th December 2022, 00:54   #1430  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,170
Are you try LWLibavAudioSource??
kedautinh12 is offline   Reply With Quote
Old 13th December 2022, 01:48   #1431  |  Link
Hotte
Registered User
 
Join Date: Oct 2014
Posts: 209
I did and it works. But it needs indexing, which I'd like to avoid and should not be necessary due to the fact that LSmashVideoSource works perfectly on my files for the video-stream without any indexing.

And: I do not understand why these files play instantly without issues and without any indexing if you open them directly with VDub2.

Something seems wrong with LSmashAudioSource and PCM-Audio from everyday-movs from everyday-cams like Nikon D5300 or Panasonic G9.
Hotte is offline   Reply With Quote
Old 13th December 2022, 02:02   #1432  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,170
You can create issue to fix faster or developer will explain about it
https://github.com/HomeOfAviSynthPlu...H-Works/issues

Last edited by kedautinh12; 13th December 2022 at 02:57.
kedautinh12 is offline   Reply With Quote
Old 15th December 2022, 15:33   #1433  |  Link
Hotte
Registered User
 
Join Date: Oct 2014
Posts: 209
Quote:
Originally Posted by kedautinh12 View Post
You can create issue to fix faster or developer will explain about it
https://github.com/HomeOfAviSynthPlu...H-Works/issues
Thanks. I opened issue #26
Hotte is offline   Reply With Quote
Old 16th December 2022, 19:29   #1434  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,498
Quote:
I do not understand why these files play instantly without issues and without any indexing if you open them directly with VDub2.
I think that is because the ISO container files [mp4 etc] that LSmashVideoSource() opens, already have some sort of index, as do AVI files.

EDIT: As posted in #1422,
Code:
    Function IsISOFileName(String s)        {s=RT_GetFileExtension(s) Return(s==".mov"||s==".mp4"||s==".m4v"||s==".3gp"||s==".3gpp2"||s==".3g2"||s==".mj2"||s==".dvb"||
                                            \ s==".dcf"||s==".m21"||s==".m4a"||s==".m4b"||s==".m4p"||s==".k3g"||s==".jpm"||s==".jpx"||s==".mqv"||s==".ismv"||s==".isma"||s==".f4v")}
At least one of above is an audio-only ISO file. [".m4a"]

Only use LWLibavVideoSource() for non ISO video files. [attempt to open non ISO with LSmashVideoSource() will fail].

EDIT:
Here is a reasonably simple function to open files based on extension, works pretty well and could be used as an example to create your own,
https://forum.doom9.org/showthread.p...68#post1874068
Is implemented as an Avisynthesizer_Mod template.

See also the following posts where may have been improved.

And here:- https://forum.doom9.org/showthread.p...11#post1880511
Hello_Hello did his own version of a similar script.

Edit: Also, here description of my function (presumably the last mod of mine in that thread), where can change preferred order of source filters tried [EDIT: via Pref arg].
Quote:
Originally Posted by StainlessS View Post
Well sometimes a source filter dont work proper, and is good to have an alternative, and way to force that alternative. [and 5 is better than 2]

Currently lookin' summick like this

Code:
    Req:- RT_Stats, CallCmd, MIFO_Lib(MediaInfo script lib),  MediaInfo CLI v0.7.83+ (may work with later versions)
        Also, FFMS, LSmash, RawSourcePlus or RawSource (one of them), DSS2.

    Function GetSeq(String "vFn",String "aFn"="",String "Pref"="",Int "VTrack"=-1,Int "ATrack"=-1,Val "fpsNum"=Undefined,Val "fpsDen"=Undefined,
                    \ Bool "Cache"=True,String "CacheDir"="",Bool "CacheDel"=False,Int "Threads"=0,Int "RFFMode"=0,String "TimeCodes"="",Int "AdjustDelay"=-1,String "VarPrefix"="",

    vFn,            Default "", default is NO video file. Can also use VTrack=-2 for no video. If "" and Vtrack != -2, then returns a single frame BlankClip, YV12 640x480, subtitle "No Video File".
    aFn,            Default "". Where "", will use audio from vFn. Can use ATrack=-2 for no audio.

    Pref,           Default "" {Same as "AIRFLD"). Order in which source filters are tried.
                    "A" = AviSource() (Only if extension is *.AVI, WavSource if Audio is WAV).
                    "I" = LSmashVideoSource() (Only if extension is an ISO type file, ie mov, mp4, m4v, 3gp, 3g2, mj2, dvb, dcf, m21.).
                    "R" = RawSourcePlus() (Only if extension is ".y4m".) RawSourcePlus if Avs+ and RawSource if Not Avs+.
                    "F" = FFVideoSource().
                    "L" = LWLibavVideoSource(), from LSMash.
                    "D" = DSS2()

    VTrack,         Default: -1 (auto. Video track number. If -2, disable video.
    ATrack,         Default: -1 (auto). Audio track number. If -2, disable audio.

    Cache,          Default True. False disables the writing of an index file (LWLibavSource and FFMS2 only).
    CacheDir,       Default Undefined. The directory location of the index file written by FFMS2 only. NOTE Directory NOT filename, No backslash at end of folder name.
                    If cache==true and CacheDir = "%TEMP%" then will be set to system environment user TEMP folder.
    CacheDel,       Default False [forced False if Cache=false] . If true, then auto delete FFMS[.ffindex] & LWLibavSource[.lwi] index files on clip closure.

    Threads,        Default 0(auto). The number of threads for LSMASH / FFMS4 to use.

    RFFMode,        Default 0. Honour repeat field flags (LWLibavSource & FFMS2 only).
                        FFMS2:         0=false, 1=true, 2=force film.
                        LWLibavSource: 0=false, 1=true, 2=false.


    fpsnum,
    fpsden,         Defaults Undefined. Framerate for VFR->CFR conversion. # *** INGNORED if AVI ***
                        Specify FrameRate using fpsnum (Numerator) and fpsden (Denominator)
                        num only,  eg fpsnum=25.0,               FrameRate = 25.0  FPS
                        num & den, eg fpsnum=24000 fpsden=1001,  FrameRate = 23.976 FPS (Both should be type Int).
                        neither specified                        FrameRate = UnDefined, ie whatever source filter thinks it is. (no VFR->CFR conversion)

    Timecodes,      Default "". FFMS only, write Matroska Timecodes to filename Timecodes.
    AdjustDelay,    Default -1. FFMS Only.
    VarPrefix,      Default "". FFMS only, Variable for FFInfo().
__________________
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; 19th December 2022 at 02:26.
StainlessS is offline   Reply With Quote
Old 19th December 2022, 02:25   #1435  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,134
Quote:
Originally Posted by StainlessS View Post
lsmash-r784-150316-XP Here :- http://megui.tmebi.de/stable/
Have I mentioned this year that you're my favorite person on Doom9?
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 19th December 2022, 03:00   #1436  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,498
It's lovely to be somebodies fav, cos everybody else hates me

but, seems hello_hello posted about the file first on the D9, [2017]
Quote:
Originally Posted by hello_hello View Post
It appears to be missing for a 32bit operating system setup and dare I say it..... XP.

I think for the older L-Smash it should be msvcr100.dll.
There's a copy in the "lsmash-r784-150316-XP.7z" file but not in the "MeGUI\tools\lsmash" folder. I assume there should be?

I'm not having problems as I have the appropriate runtime installed, but I thought I'd mention it.
__________________
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 19th December 2022, 15:05   #1437  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,758
Quote:
Originally Posted by StainlessS View Post
It's lovely to be somebodies fav, cos everybody else hates me

but, seems hello_hello posted about the file first on the D9, [2017]
but I don't hate you
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 19th December 2022, 18:35   #1438  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,498
Not yet you dont, give it time.

EDIT: In reply to gispos next post::
Well you should, I'm nasty
__________________
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; 21st December 2022 at 02:10.
StainlessS is offline   Reply With Quote
Old 19th December 2022, 20:07   #1439  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 1,114
I don't hate you either, my dear.
__________________
Live and let live
gispos is offline   Reply With Quote
Old 22nd December 2022, 21:02   #1440  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Chelsea, UK
Posts: 3,419
Quote:
Originally Posted by StainlessS View Post
It's lovely to be somebodies fav, cos everybody else hates me
Nah, who could hate you?
You're like a lovely added grandpa for us ehehehehehe
FranceBB is offline   Reply With Quote
Reply


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 - 2026, vBulletin Solutions Inc.