Log in

View Full Version : Avisynth virtual file system


Pages : 1 2 3 4 [5] 6

osgZach
30th January 2017, 00:08
How did you get that crash dump?

Also weird, you're right. I don't know why its not crashing now

edit: haha I'm dumb as shit. I was loading a script that didn't exist.
It still crashes, only now its when trying to load the signpost instead of the script.. how can I obtain a data dump like you posted?

osgZach
30th January 2017, 03:59
So I also went back to AVFS distributed with R35

Vegas won't import AVS scripts unless I throw a ConvertToRGB() on the end, however that does also make AVFS crash.
ConvertToRGB() will make it crash when trying to load the signpost
ConvertToRGB24() will make it crash immediately upon trying to mount the script

Oddly enough if I use DirectShowSource instead of AviSource, it will load the file, ConvertToRGB won't crash anything and the video track will import into Vegas just fine from what I can tell

I hope this information is helpful

marcorocco
13th March 2017, 16:24
Hi to all, kindly I wonder if there is a way so that the virtual .AVI file have the interlace flag. My NLE recognize the AVFS output only as "progressive" also even if the content is interlace. Consequently I come to have a series of problems related to the treatment, if possibile I would like to have a virtual .AVI file (uncompressed YUY2 in my case) that looks like interlaced.. also for the mediainfo. Is this possible? thanks

Myrsloik
13th March 2017, 18:35
So I also went back to AVFS distributed with R35

Vegas won't import AVS scripts unless I throw a ConvertToRGB() on the end, however that does also make AVFS crash.
ConvertToRGB() will make it crash when trying to load the signpost
ConvertToRGB24() will make it crash immediately upon trying to mount the script

Oddly enough if I use DirectShowSource instead of AviSource, it will load the file, ConvertToRGB won't crash anything and the video track will import into Vegas just fine from what I can tell

I hope this information is helpful

I've investigated some more but can pinpoint the exact reason it breaks. In my tests it works properly around 1/4 of the time to make things even more odd.

marcorocco
17th March 2017, 00:43
Hi, I use AVFS to load 100/150 video clips (video only, no audio) and I have noted that for each clip loaded there is a RAM usage. When I have charged all the clips the PC is slow because freee RAM is too little. I wonder if is there a way to set avfs, possibly, to avoid ram usage or use only hard disk. Thanks

marcorocco
18th March 2017, 01:35
Hi, I use AVFS to charge 100/150 video clip (no audio) but I have noted that when the number of clip loaded is too high my PC become slow and the usage of RAM is a lot. Please I wonder if is there a way to don't use RAM for each clip loaded or if AVFS can use hard disk instead of ram. Thanks

Myrsloik
21st March 2017, 19:58
All bugs should now have been ironed out in VS R37. I can also blame them all on Avisynth 2.6 API changes. They're evil.

marcorocco
27th March 2017, 09:07
Hi,

kindly I wonder if there is a way to get as target .AVI a MJPG video file instead of YUY2 uncompressed. I know this process is not really cheap but to improve compatibily with some NLE software that can manage only mjpeg video file .. this is the only way. Is it possibile? thanks

Myrsloik
27th March 2017, 09:08
Hi,

kindly I wonder if there is a way to get as target .AVI a MJPG video file instead of YUY2 uncompressed. I know this process is not really cheap but to improve compatibily with some NLE software that can manage only mjpeg video file .. this is the only way. Is it possibile? thanks

No.

Filler.

marcorocco
27th March 2017, 20:08
No.

Filler.

I understand, otherwise is there a way to get an interlaced .avi YUY2 uncompressed virtual file? I mean an .avi that is "flagged interlace" and represent a pure interlace video file recognized as well aldo by mediainfo. At the moment seems that AVFS expose only a progressive output, even if with a interlaced content... but NLE and all others "receiver" can see it only as "progressive". Is it possible that? thanks

Myrsloik
27th March 2017, 20:43
I understand, otherwise is there a way to get an interlaced .avi YUY2 uncompressed virtual file? I mean an .avi that is "flagged interlace" and represent a pure interlace video file recognized as well aldo by mediainfo. At the moment seems that AVFS expose only a progressive output, even if with a interlaced content... but NLE and all others "receiver" can see it only as "progressive". Is it possible that? thanks

I guess I could add a script variable to control that. Maybe. I'll think about it. There's no existing way to do it though.

kolak
28th March 2017, 21:33
AVI doesn't have a standard way of flagging filed order, store timecode etc.(at least as far I know). Different companies do it different way using private headers etc.
I would rather see avfs supporting MOV (MXF is to complex I assume) which would make it more robust and better supported. I assume MOV formatter is not trivial either.

rs008f
14th July 2017, 03:47
AVFS 1.0.0.6 auto exit for me. How do I fix this? I have Windows 7 64bit.

VS_Fan
14th July 2017, 06:21
AVFS 1.0.0.6 auto exit for me. How do I fix this? I have Windows 7 64bit.
Use the latest version from VapourSynth portable package (https://github.com/vapoursynth/vapoursynth/releases): If anyone needs the most recent binaries simply grab the VapourSynth portable packages and extract avfs.exe from there. Needs VS2015 runtime installed.

Myrsloik
14th July 2017, 12:19
Use the latest version from VapourSynth portable package (https://github.com/vapoursynth/vapoursynth/releases):

You need the VS2017 runtime instead nowadays but that's the only difference

link626
28th July 2017, 07:46
My windows control panel shows I have 2015 visual C++ installed.
Then I installed 2017 C++ runtime x86 and x64.

But avfs still auto exits when I try to mount an .avs. Goes straight back to command prompt.

D:\encode>avfs frameserver.avs
Press CTRL+C to exit.
D:\encode>

It just quits and doesn't mount anything.
c:\volumes is empty.
But i know pfm works because I mounted an iso file just fine.


I tried both 1.006 and 1.007. Both auto quit.

I'm running win10 x64. Help?


my frameserver.avs code is simply
AviSource("d:\encode\output.avi")

premiere pro is frame serving to output.avi.

VS_Fan
28th July 2017, 19:21
... Help? ...Some ideas:

Try using the “-d” switch to get diagnostic info from avfs. Post it here
Can you open the “output.avi” file by any other means? Any media player?
If you are not doing any processing in avisynth you don’t need avfs. Just use the “output.avi” file.

link626
29th July 2017, 08:06
Some ideas:

Try using the “-d” switch to get diagnostic info from avfs. Post it here
Can you open the “output.avi” file by any other means? Any media player?
If you are not doing any processing in avisynth you don’t need avfs. Just use the “output.avi” file.


output.avi is a pseudo-file, no more than a few hundred KB, frameserved by Advanced FrameServer from within premiere pro.

ffmpeg can open and encode from the output.avi.
virtualdub can open the avi.

But I was trying to frameserve to handbrakecli, because that is what I always use to encode x264.
Based on instruction from the web, I needed avfs and pfm in order for handbrakecli to be able to encode from the virtual file.


-d switch doesn't show any output at all.
it goes straight to "press ctrl c to exit"
then quits.

However, when I look at my c:\volumes folder, I see a frameserver.avs folder created for a split second, then it disappears.

VS_Fan
29th July 2017, 09:50
ffmpeg can open and encode from the output.aviI’m guessing you tried reading the “output.avi” file directly into handbrakecli, but it didn’t work, right? Here a couple more ideas:

If ffmpeg can read your file, try using ffmpegsource input avisynth filter (http://avisynth.nl/index.php/FFmpegSource) instead of AviSource in avisynth: FFmpegSource2 ("d:\encode\output.avi") Use ffmpeg to encode to h264 (https://trac.ffmpeg.org/wiki/Encode/H.264)

poisondeathray
29th July 2017, 15:19
So the afs avi is valid since vdub can open it, but check if frameserver.avs is valid - can you open that in vdub and any error messages

mp3dom
30th July 2017, 22:40
I have exactly the same problem with Win10 CU x64. Doesn't mount and go directly to the prompt and the -d switch doesn't do anything.
Also, after a while I unsuccessfully try to mount an avs, I always get a APC_INDEX_MISMATCH BSOD (the more I try, the quicker it appear)

Myrsloik
30th July 2017, 22:55
I have exactly the same problem with Win10 CU x64. Doesn't mount and go directly to the prompt and the -d switch doesn't do anything.
Also, after a while I unsuccessfully try to mount an avs, I always get a APC_INDEX_MISMATCH BSOD (the more I try, the quicker it appear)

This happens with trivial scripts like a simple avisource or version?

poisondeathray
31st July 2017, 00:54
What about running from elevated prompt ? Windows is very picky about permissions and writing to c: drive

Or how about changing c:\volumes to some other drive ? Not sure how to do that

link626
3rd August 2017, 10:37
So the afs avi is valid since vdub can open it, but check if frameserver.avs is valid - can you open that in vdub and any error messages

virtualdub can open the avs file just fine. no error.

elevated prompt doesn't make a difference.


I've been encoding with ffmpeg the last few videos, and I think I have most of the handbrakecli settings translated over, so this will have to be the workaround to the avfs fail.

MysteryX
24th August 2017, 19:35
I confirm this doesn't work on Windows 10 x64. C:\volumes remains empty. I tried running as admin.

marcorocco
12th November 2017, 23:51
seems that AVFS wont' works with avisynth's 64bit script :(

Myrsloik
13th November 2017, 00:06
seems that AVFS wont' works with avisynth's 64bit script :(

lrn2bugreport kthxbye

poisondeathray
13th November 2017, 01:53
64bit avs works ok here with avfs

There was an update a few months ago with pfmap IIRC , make sure you guys are using latest versions of everything

marcorocco
19th December 2017, 22:18
pfmap IIRC ?

I already have download the Pismo File Mount Audit Package 190 + AVFS 1.0.0.6 but seems won't load 64bit .avs :(

poisondeathray
20th December 2017, 00:00
For avs+ x64 mt , I use avfs script.avs . The avfs.exe I use is bundled with vapoursynth x64. It's definitely working, and definitely x64 mt (prefetch working). (That avfs.exe also mounts vpy scripts)

For avisynth x86 (vanilla) I use pfm mount . I still need the x86 version to interface with things like debugmode frameserver / advanced frameserver

marcorocco
24th December 2017, 12:28
Ah ok Avisynth R274 + AVFS 1.0.0.7 + LSMashsource R921 in my Windows10-64bit now works.

But using AVFS.EXE 1.0.0.7, instead of the "PFM mount" I alwais need to keep open the commandline dos-window :( I'm in a batch processing and need to mount 50/100 video files... it's not the best solutions keeping open 50/100 dos windows, so I wonder if is there a way to have the 64bit version of AVFS (1.0.0.7) like the 32bit (1.0.0.5 using PFM.exe + avfs.DLL)?

Or in there a way to get the AVFS.DLL 64bit to have the same usage?

Thanks

Myrsloik
24th December 2017, 14:25
Ah ok Avisynth R274 + AVFS 1.0.0.7 + LSMashsource R921 in my Windows10-64bit now works.

But using AVFS.EXE 1.0.0.7, instead of the "PFM mount" I alwais need to keep open the commandline dos-window :( I'm in a batch processing and need to mount 50/100 video files... it's not the best solutions keeping open 50/100 dos windows, so I wonder if is there a way to have the 64bit version of AVFS (1.0.0.7) like the 32bit (1.0.0.5 using PFM.exe + avfs.DLL)?

Or in there a way to get the AVFS.DLL 64bit to have the same usage?

Thanks

No. It's no longer implemented as a shell extension. Just write your own wrapper to hide and manage the processes if it bothers you.

marcorocco
24th December 2017, 18:40
Oh, I understand however the usage of AVFS.exe in batch processing and with multiple files is uncomfortable, having to open a new window each time.
Nobody can create a .dll with the 64bit version of AVFS?
I'm a Cat... I'm not able to write a wrapper o_o however AVFS works great

mtamimi
6th April 2018, 12:31
sometimes w/o "ConvertToRGB24()" the picture is garbled, so using "ConvertToRGB24()" fixes the issue, but also alters the color of the source! what can I do to overcome this problem?

Thnx

poisondeathray
6th April 2018, 15:49
sometimes w/o "ConvertToRGB24()" the picture is garbled, so using "ConvertToRGB24()" fixes the issue, but also alters the color of the source! what can I do to overcome this problem?




What is the source?

Did you use the correct matrix ? For most HD sources it would be 709
eg.

ConvertToRGB24(matrix="rec709")

mtamimi
7th April 2018, 11:26
What is the source?

Did you use the correct matrix ? For most HD sources it would be 709
eg.

ConvertToRGB24(matrix="rec709")


No I did not! I did not encode anything with avfs because of that issue. So how can I determine the correct color matrix for Blu-Rays and DVDs?

Thnx

poisondeathray
7th April 2018, 15:51
No I did not! I did not encode anything with avfs because of that issue. So how can I determine the correct color matrix for Blu-Rays and DVDs?

Thnx

As as general rule, "SD" use Rec601 , "HD" uses Rec709 . (UHD BD can use Rec2020)

mtamimi
13th April 2018, 07:27
Thnx for the help...

So now I am using this "ConvertToRGB(matrix="rec709")" as the last line in my avs scripts so that I can use avfs w/o issues.

My question is, does this alter the source quality -i.e. regular Blu-Ray- in any way?

Also, using ConvertToRGB instead of ConvertToRGB24, does this lead to any differences at all?!

Thnx

poisondeathray
13th April 2018, 15:45
So now I am using this "ConvertToRGB(matrix="rec709")" as the last line in my avs scripts so that I can use avfs w/o issues.

My question is, does this alter the source quality -i.e. regular Blu-Ray- in any way?


Technically, yes . To the human eye it will be pretty much indistinguishable. But this is an 8bit conversion to RGB from YUV - there are going to be minor rounding errors and precision loss . Some values in 8bit YUV are not "mappable" to 8bit RGB. You will not be able to "recover" the original YUV values from the BD source exactly. If you export back out an 8bit 4:2:0 YUV format, there is some loss too, for the same reasons. Also some loss from the chroma up/down sampling algorithm unless you use nearest neighbor. You can read up on YUV/RGB conversions for more info, it's discussed here and other places quite frequently


Also, using ConvertToRGB instead of ConvertToRGB24, does this lead to any differences at all?!


By default, ConvertToRGB() is actually ConvertToRGB32() . RGB32 in avisynth usually indicates three 8 bit channels R,G,B each + 8bit alpha channel or dummy alpha channel (fake data) . There is no alpha channel from a blu-ray source.

But some programs and codecs might handle RGB32 better than RGB24 in terms of performance. It has to do with memory layout and handling. Quality wise no difference if coming from a BD source

mtamimi
14th April 2018, 10:40
Technically, yes . To the human eye it will be pretty much indistinguishable. But this is an 8bit conversion to RGB from YUV - there are going to be minor rounding errors and precision loss . Some values in 8bit YUV are not "mappable" to 8bit RGB. You will not be able to "recover" the original YUV values from the BD source exactly. If you export back out an 8bit 4:2:0 YUV format, there is some loss too, for the same reasons. Also some loss from the chroma up/down sampling algorithm unless you use nearest neighbor.

Is there a way not to use this conversion at all and continue using avfs?!

Thnx

*edit*
I have to add that I am only using a script to transcode the Blu-Ray video to x264...In other words, this loss due to conversion, does it matter in my case since I am converting from lossless to lossy?!

*edit2*
I just made a test encode, and Media Info is showing this "Color space : YUV", what does this mean? Didn't we convert to something else?!

poisondeathray
14th April 2018, 15:35
*edit*
I have to add that I am only using a script to transcode the Blu-Ray video to x264...In other words, this loss due to conversion, does it matter in my case since I am converting from lossless to lossy?!

Then you don't need avfs

avfs is to make a "fake" virtual AVI, that allows you to bridge avisynth to other programs which do not accept avs scripts, or avoiding the alternative of using large lossless intermediate files . A common use is some other programs (e.g. NLE's) might not be compatible, and some of them do not accept "YV12" by the avfs method, hence the need for RGB

x264 can be compile with avs support (direct avisynth input) , or ffmpeg libx264 can accept avs directly


*edit2*
I just made a test encode, and Media Info is showing this "Color space : YUV", what does this mean? Didn't we convert to something else?!

You started with YUV, the final format is YUV. You don't need avfs

mtamimi
14th April 2018, 16:46
Then you don't need avfs

avfs is to make a "fake" virtual AVI, that allows you to bridge avisynth to other programs which do not accept avs scripts, or avoiding the alternative of using large lossless intermediate files . A common use is some other programs (e.g. NLE's) might not be compatible, and some of them do not accept "YV12" by the avfs method, hence the need for RGB

x264 can be compile with avs support (direct avisynth input) , or ffmpeg libx264 can accept avs directly



You started with YUV, the final format is YUV. You don't need avfs

the gui that I am using does not support avs scripts, that's why I am using avfs...is there a different way to use avs scripts with apps that does not support avisynth w/o the need to convert to rgb?

Also, since I did convert to rgb, why the output is yuv?

Thnx

poisondeathray
14th April 2018, 16:50
the gui that I am using does not support avs scripts, that's why I am using avfs...is there a different way to use avs scripts with apps that does not support avisynth w/o the need to convert to rgb?


Then consider using another GUI, or another method. There are many GUI's that support direct , proper YUV without that intermediate step

This is avoidable loss, and faster without avfs or extraneous conversions


Also, since I did convert to rgb, why the output is yuv?


Because you're encoding YUV . That RGB step is unnecessary. Slower to encode and process, and you incur some quality loss converting back and forth

YUV => RGB => YUV

x264 support RGB encoding too, but it's not commonly used and compression efficiency is low. YUV 4:2:0 is the most common

mtamimi
14th April 2018, 22:39
Then consider using another GUI, or another method. There are many GUI's that support direct , proper YUV without that intermediate step

Can you suggest some? So that I can test and choose among a list of suggestions...

Thnx

poisondeathray
15th April 2018, 00:09
Can you suggest some? So that I can test and choose among a list of suggestions...

Thnx

I'm not up to date on the GUI's , but some popular ones might include megui, staxrip, ripbot264, hybrid, simple x244 launcher,... probably dozens more

mtamimi
15th April 2018, 20:53
I'm not up to date on the GUI's , but some popular ones might include megui, staxrip, ripbot264, hybrid, simple x244 launcher,... probably dozens more

:thanks:

Dogway
20th December 2018, 19:42
Does anyone know if this works with DaVinci Resolve or Nuke? Mounting works because I can open the mounted avi (even in avspmod with directshowsource() ) but it refuses to load in said aplications. Everything is x64 on my end. Thanks.

poisondeathray
20th December 2018, 20:55
Does anyone know if this works with DaVinci Resolve or Nuke? Mounting works because I can open the mounted avi (even in avspmod with directshowsource() ) but it refuses to load in said aplications. Everything is x64 on my end. Thanks.

Commandline version does , for only for certain pixel formats (at least it works in vapoursynth, it should for avs+ )

For example , Resolve expects 10bit RGB and won't accept 8bit

Dogway
21st December 2018, 14:01
Thanks poisondeathray, worked flawlessly. In Nuke doesn't but I doubt I will ever need it for Nuke though.

rgr
25th July 2023, 12:24
1. Is AVFS a dead project already?
2. Is it normal that after adding "convertbits(10)" the script is no longer supported by AVFS?