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 2nd November 2022, 14:02   #1421  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,353
Quote:
Originally Posted by flossy_cake View Post
If anyone knows of a way to disable caching/indexing please advise -- maybe there is some undocumented string for one of the cache params to forcefully disable it?

You can't disable indexing unless you use DirectShowSource() + third party codecs like LAV.

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.
FranceBB is offline   Reply With Quote
Old 2nd November 2022, 16:25   #1422  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,426
Quote:
Originally Posted by flossy_cake View Post
Thanks I tried LSMASHVideoSource but like you said it's quite limited and none of my videos open with it.
Quote:
Originally Posted by StainlessS View Post
LSmashVideoSource is for ISO containers only, according to my list M2TS is not type ISO.
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")}
https://en.wikipedia.org/wiki/ISO/IE...ia_file_format

https://en.wikipedia.org/wiki/Compar...tainer_formats

EDIT: Sort of related, ftyp's :- http://www.ftyps.com/
Also see note 1 [what is an ftyp] (a sort of FourCC).
LSMashVideoSource() is just for ISO [ie MP4 and similar] files.
Otherwise use LWLibavVideoSource(). [An alternative video source in LSmash dll]

Same for the audio, LSMashAudioSource(), and LWLibavAudioSource().
__________________
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; 2nd November 2022 at 16:30.
StainlessS is offline   Reply With Quote
Old 4th November 2022, 11:13   #1423  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 370
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   #1424  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 1,473
L-SMASH-Works 20221109
https://github.com/HomeOfAviSynthPlu...Works/releases
kedautinh12 is offline   Reply With Quote
Old 9th November 2022, 13:27   #1425  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,353
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   #1426  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 1,473
@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   #1427  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 370
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   #1428  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 1,473
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   #1429  |  Link
flossy_cake
Registered User
 
Join Date: Aug 2016
Posts: 370
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   #1430  |  Link
isidroco
Registered User
 
Join Date: Nov 2008
Posts: 27
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
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 20:38.


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