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 30th July 2019, 17:32   #821  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,253
Quote:
Originally Posted by Groucho2004 View Post
I don't see anything in the code (on github) that would suddenly stop it from working with AVS2.6. That could be tested easily, I guess.
OK, Tried RawSoucePlus() on avs v2.60 standard, crashes.

Code:
00000100    16:28:48.211    GetSeq: Multi-SourceFilter Attempt open of Video File
00000101    16:28:48.211    GetSeq:     'D:\GetSeq_Test\TEST\elephants_dream_480p24.y4m'
00000102    16:28:48.398    GetSeq: Has 1 Video streams.
00000103    16:28:48.398    GetSeq: Has 0 Audio streams.
00000104    16:28:48.398    GetSeq: Attempt Open Video with RawSourcePlus.
00000105    16:28:48.414    GetSeq: *** Catch *** Evaluate: Unrecognized exception!
00000106    16:28:48.414    GetSeq: ([GScript], line 83)
00000107    16:28:48.414    GetSeq: ([GScript], line 86)
00000108    16:28:48.414    GetSeq:
00000109    16:28:48.414    GetSeq: !!! Set !!! ... FFMS CacheFile = C:\Users\root\AppData\Local\Temp\elephants_dream_480p24.y4m.ffindex
00000110    16:28:48.414    GetSeq: Attempt Index Video for FFVideoSource.
00000111    16:28:52.142    GetSeq: Attempt Open Video with FFVideoSource.
00000112    16:28:52.158    GetSeq: OK ... FFVideoSource opened Video.
00000113    16:28:52.158    GetSeq: Time taken to Open clip = 3.952888 Seconds(0.065881 Mins)
__________________
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 30th July 2019, 17:47   #822  |  Link
Groucho2004
Cantankerous Fossil
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,470
Quote:
Originally Posted by StainlessS View Post
OK, Tried RawSoucePlus() on avs v2.60 standard, crashes.
Script?
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 30th July 2019, 17:51   #823  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,253
Code:
c = vFn.RawSourcePlus(fpsnum=num,fpsden=den)
__________________
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 30th July 2019, 17:54   #824  |  Link
Groucho2004
Cantankerous Fossil
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,470
Quote:
Originally Posted by StainlessS View Post
Code:
c = vFn.RawSourcePlus(fpsnum=num,fpsden=den)
I don't get what GScript and FFVideoSource have to do with it...
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 30th July 2019, 18:57   #825  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,253
I'm using it in GetSeq(), via this lot
Code:
# END OF GetSeq.avsi
#Import(".\GetSeq.avsi")

#FN="E:\Starwars\SW.avi"
#FN="D:\Parade.avi"
#FN=".\TEST\10Bit_Standard8_Scan_16FPS.avi"     # This 10 bit dont load with Avisource(), [and no audio]
#FN=".\TEST\ALTEST2.mp4"
#FN=".\TEST\heima_720p_500.mp4"
#FN=".\TEST\tears_of_steel_1080pwebm.webm"
#FN=".\TEST\1.wmv"
#FN=".\TEST\2018_0525_135958_020.MOV"
#FN=".\TEST\1.flv"
#FN=".\TEST\CrowdRun_2160p50.x264.CRF25.mkv"
#FN=".\TEST\DJI Inspire Drone Video Long GOP Jerkiness .MOV"
FN=".\TEST\elephants_dream_480p24.y4m"
#FN=".\TEST\1.mpg"

PREF="R" ] order of sourcefilters tried
Getseq(FN,Pref=Pref,fpsnum=33000,fpsden=1001,Debug=True)     # Test 33000/1001
which called

Code:
RawSoucePlus(FN,fpsnum=33000,fpsden=1001)
Code:
/*
    Req:- RT_Stats, FFMS, LSmash. CallCmd, MediaInfo CLI v0.7.83+ (may work with later versions)

    Function GetSeq(String "vFn",String "aFn",String "Pref"="",Val "fpsNum",Val "fpsDen",bool "Debug"=False,Bool "Verbose"=False)


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

    Specify FrameRate using fpsnum (Numerator) and fpsden (Denominator)    # *** INGNORED if AVI ***
        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.
        ALWAYS:- use named args if using fpsnum/fpsden, argument order may change.





    FFMS Cachefile (used for .ffindex file) directory can be set using global variable GLB_GETSEQ_FFMS_CACHE_DIR, NO trailing backslash.
        Global GLB_GETSEQ_FFMS_CACHE_DIR = RT_GetSystemEnv("TEMP")  # Set to the Current User's Temp directory.

    If Global variable GLB_GETSEQ_DEL_INDEX_ON_CLOSE is True, then will auto Delete both FFMS and LSMash indexes on clip closure.
        Global GLB_GETSEQ_DEL_INDEX_ON_CLOSE = True    # If true, Auto delete indexes on clip closure. # Could create stub which sets True/False depending upon your own arg.

*/
The file itself is from one of the samples in the Avisynth Usage forum stickies (Consolidated list of test video clip resources).

EDIT: Under Avs v2.60 Standard with GScript. (thats why GScript flagged). [RawSourcePlus works fine under AVS+, where using GetSeq() without GScript]
EDIT: Its a bit big to post GetSeq.avsi and the required MIFO_LIB.avsi. (MediaInfo Library of script functions)
EDIT: Tests only done on Win7 not XP.
__________________
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; 30th July 2019 at 19:17.
StainlessS is offline   Reply With Quote
Old 31st July 2019, 16:56   #826  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,223
Is this known issue that VC-1 decoding is totally broken with this plugin?
Atak_Snajpera is offline   Reply With Quote
Old 1st August 2019, 08:29   #827  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,955
Yes, a little while ago:

Quote:
Originally Posted by Gser View Post
Yeah the newest L-smash does not work for VC-1 at all,at least not in avs+. Getting super corrupt frames with grey bits everywhere.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 2nd August 2019, 17:33   #828  |  Link
Doriandal
Registered User
 
Join Date: Apr 2017
Posts: 2
Why LSMASHVideoSource displays/decodes inmediatly on my PC while LSMASHAudioSource takes more time? If i load an only-video AVS it takes a split-second to load the player, but if i add LSMASHAudioSource it takes like 4 or 5 seconds to load.

I'm working with Apple ProRes, sound is PCM.

Not a big deal but i'm curious about that.
Doriandal is offline   Reply With Quote
Old 2nd August 2019, 17:41   #829  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,982
Quote:
Originally Posted by Doriandal View Post
Why LSMASHVideoSource displays/decodes inmediatly on my PC while LSMASHAudioSource takes more time? If i load an only-video AVS it takes a split-second to load the player, but if i add LSMASHAudioSource it takes like 4 or 5 seconds to load.

I'm working with Apple ProRes, sound is PCM.

Not a big deal but i'm curious about that.
It's indexing the audio

LSmashVideoSource does not require indexing for ISO Base formats (MP4, MOV)
poisondeathray is offline   Reply With Quote
Old 2nd August 2019, 18:05   #830  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,253
PDR, confirmation please,
LSMASHAudioSource will sometimes index audio [EDIT: in an ISO container] (as well as LWLibavAudioSource), and not just fail on that audio.

[EDIT: Something I may need to anticipate in multi-source script function]

EDIT: Are there any circumstances in which LSmashVideoSource will index video ?
__________________
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 August 2019 at 20:14.
StainlessS is offline   Reply With Quote
Old 7th August 2019, 18:45   #831  |  Link
HolyWu
Registered User
 
HolyWu's Avatar
 
Join Date: Aug 2006
Location: Taiwan
Posts: 662
  • Update to FFmpeg 4.2.
  • Add parameter cachefile.

Last edited by HolyWu; 17th August 2019 at 08:47.
HolyWu is offline   Reply With Quote
Old 7th August 2019, 19:19   #832  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 7,253
Thanks HolyWu.

ChaosKing,
I think you were keeping list of file extensions that LSmashVideoSource could deal with.
Playing with MediaInfo 19.07, I noticed this
Code:
00000108    07:25:42.729    MIFO_Get: General
00000109    07:25:42.729    MIFO_Get: Count                            : 322
00000110    07:25:42.729    MIFO_Get: StreamCount                      : 1
00000111    07:25:42.729    MIFO_Get: StreamKind                       : General
00000112    07:25:42.729    MIFO_Get: StreamKind/String                : General
00000113    07:25:42.729    MIFO_Get: StreamKindID                     : 0
00000114    07:25:42.729    MIFO_Get: VideoCount                       : 3
00000115    07:25:42.729    MIFO_Get: AudioCount                       : 3
00000116    07:25:42.729    MIFO_Get: Video_Format_List                : AVC / AVC / AVC
00000117    07:25:42.729    MIFO_Get: Video_Format_WithHint_List       : AVC / AVC / AVC
00000118    07:25:42.729    MIFO_Get: Video_Codec_List                 : AVC / AVC / AVC
00000119    07:25:42.729    MIFO_Get: Audio_Format_List                : AAC / AAC / AAC
00000120    07:25:42.729    MIFO_Get: Audio_Format_WithHint_List       : AAC / AAC / AAC
00000121    07:25:42.729    MIFO_Get: Audio_Codec_List                 : AAC LC / AAC LC / AAC LC-SBR
00000122    07:25:42.729    MIFO_Get: CompleteName                     : D:\MintSource\TEST\VAVAVA.mp4
00000123    07:25:42.729    MIFO_Get: FolderName                       : D:\MintSource\TEST
00000124    07:25:42.729    MIFO_Get: FileName                         : VAVAVA
00000125    07:25:42.729    MIFO_Get: FileExtension                    : mp4
00000126    07:25:42.729    MIFO_Get: Format                           : MPEG-4
00000127    07:25:42.729    MIFO_Get: Format/String                    : MPEG-4
00000128    07:25:42.729    MIFO_Get: Format/Extensions                : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
00000129    07:25:42.729    MIFO_Get: Format_Commercial                : MPEG-4
00000130    07:25:42.729    MIFO_Get: Format_Profile                   : Base Media
00000131    07:25:42.729    MIFO_Get: InternetMediaType                : video/mp4
00000132    07:25:42.729    MIFO_Get: CodecID                          : isom
00000133    07:25:42.729    MIFO_Get: CodecID/String                   : isom (isom/avc1)
So I've added missing ones to my list of ISO file extensions that LSmashVideoSource/LSmashAudioSource can open.
Complete list.
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")}
Or bare.
Code:
mov, mp4, m4v, 3gp, 3gpp2, 3g2, mj2, dvb, dcf, m21, m4a, m4b, m4p, k3g, jpm, jpx, mqv, ismv, isma, f4v
__________________
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; 7th August 2019 at 19:27.
StainlessS is offline   Reply With Quote
Old 7th August 2019, 19:19   #833  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,900
thanks, btw. a small tool to create the cache file (like fmsindex for ffvideosource) would be nice
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is online now   Reply With Quote
Old 7th August 2019, 19:30   #834  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Germany
Posts: 676
Quote:
Originally Posted by HolyWu View Post
L-SMASH-Works-r935+26-win64-20190808
  • Update to FFmpeg 4.2.
  • Add parameter cachefile.
Uh... may I ask you an x86 version, please? :P
__________________
Broadcast Encoder
Avisynth memes: 1 - 2 - 3
Videotek - Audacity XP
FranceBB is offline   Reply With Quote
Old 7th August 2019, 21:10   #835  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,223
Quote:
Originally Posted by HolyWu View Post
L-SMASH-Works-r935+26-win64-20190808
  • Update to FFmpeg 4.2.
  • Add parameter cachefile.
Thank you for cachefile file option!
Atak_Snajpera is offline   Reply With Quote
Old 8th August 2019, 09:17   #836  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,955
@Selur: In the meantime, you may use avsr (by Groucho2004) with a minimal script, if applicable...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 8th August 2019, 10:07   #837  |  Link
Groucho2004
Cantankerous Fossil
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,470
Quote:
Originally Posted by LigH View Post
@Selur: In the meantime, you may use avsr (by Groucho2004) with a minimal script, if applicable...
What do you mean by "minimal script"? All you have to do is use the "-i" switch with avsr and the cache/index file will be created. There's no progress indicator though...
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 8th August 2019, 15:12   #838  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: Chamber 36
Posts: 5,873
Quote:
Add parameter cachefile
Thanks for adding this.
stax76 is offline   Reply With Quote
Old 8th August 2019, 16:06   #839  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,223
Quote:
Originally Posted by Groucho2004 View Post
What do you mean by "minimal script"? All you have to do is use the "-i" switch with avsr and the cache/index file will be created. There's no progress indicator though...
Perhaps something like this?

Code:
LoadPlugin("LSMASHSource.dll")
LWLibavVideoSource("video.mkv")
Trim(0,-1)
Atak_Snajpera is offline   Reply With Quote
Old 9th August 2019, 00:06   #840  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 621
Perhaps something like this?

Code:
avs4x26x-x64 video.mkv
MeteorRain 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 18:27.


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