Log in

View Full Version : Problem with Guide for "How to prepare a Blu-ray for editing in a NLE"


jealousy91
9th February 2019, 07:37
I'm following the guide here on how to prepare a Blu-ray file for any non-linear editing software and installed all the necessary softwares.
https://forum.doom9.org/showthread.php?t=163649

In the section that reads Mount the AVS file it says to right click on the AVS file extension and click on “Quick Mount” and a folder should appear. But this does not happen for me, instead a "PFM Mount' appears and when I click on it a Mount options box appears and and when I click Mount it says the file cannot be mounted as it is not of a supported file format.

I've tried asking for help here but nothing worked.
https://forum.videohelp.com/threads/392146-Mounting-on-File-Not-Working-Properly

manolito
9th February 2019, 11:09
As someone at Videohelp already pointed out, this guide uses an older (and IMO more reliable) version of AVFS. I uploaded it here:
https://www.sendspace.com/file/0owoff

Make sure to uninstall your version of AVFS and PFMAP before installing this older version.

Good luck
manolito

jealousy91
10th February 2019, 05:02
When I right click on the avs file now it says "Quick mount" like it's supposed to. But when I click on it says "File cannot be mounted. It is not of a supported file format."

https://i.postimg.cc/mgG0wRZn/vlcsnap-2019-02-09-15h28m33s858.png (https://postimg.cc/zV0tzsgw)
https://i.postimg.cc/CR94dSL8/vlcsnap-2019-02-09-15h29m00s053.png (https://postimg.cc/CR94dSL8)

lansing
10th February 2019, 07:41
Don't use "quick mount"

manolito
10th February 2019, 11:00
On your screen shot it looks like you are trying to mount an MKV instead of an AVS script. This cannot work of course. Or did you configure the Windows Explorer to not show known file extensions?

Anyways, you need to post the content of your AVS script here. And you should try to open this AVS in VDub or a DirectShow based player (like MPC-HC or WMP). Do you get an error message? What does it say?

And contrary to what lansing said "Quick Mount" is the way to go.

tebasuna51
10th February 2019, 12:06
Or did you configure the Windows Explorer to not show known file extensions?

Of course. The .mkv is show like 1KB Size and Type AviSynth Script.
@jealousy91 please configure Windows Explorer to show always extensions

Anyways, you need to post the content of your AVS script here. And you should try to open this AVS in VDub or a DirectShow based player (like MPC-HC or WMP). Do you get an error message? What does it say?

See the videohelp forum.

jealousy91
11th February 2019, 05:43
https://forum.videohelp.com/forums/11-Video-Conversion

With advice from a user on videohelp, I enabled to show the extensions to see what the files really are

https://i.postimg.cc/SxXWwx0D/vlcsnap-2019-02-10-17h24m10s384.png (https://postimg.cc/LJpYPR81)

Then I installed the x86 versions of VirtualDub2 and AviSynth and then added a 32-bit plugin of ffms2.dll to avisynth plugins directory and the avs file now works

https://i.postimg.cc/66mqFL9x/vlcsnap-2019-02-10-17h28m56s635.png (https://postimg.cc/4npX9c7W)
https://i.postimg.cc/jj7BdTfh/vlcsnap-2019-02-10-17h26m53s444.png (https://postimg.cc/v1G03p31)

But when I try to Quick mount it I get the same error message. Here's a video demonstrating it.
https://vimeo.com/user94960228/review/316450300/898b1ae362

manolito had said that I'm trying to mount an MKV instead of an AVS script and that this obviously cannot work.

manolito
11th February 2019, 12:40
If you can now open the AVS script in VDub or a software player, this is real progress...

For the mounting error I don't know, your vimeo link does not work here (Germany). Some things to try:

The AVFS readme says that you need to register the DLL after installing Pismo with this command:
pfm register c:\windows\avfs.dll

The other thing you can try is add a color conversion command to the end of your script:
You may need to add a ConvertToRGB24() to the end of your script in order to generate an AVI file that most things understand.


Cheers
manolito

jealousy91
11th February 2019, 14:09
OK. If not Ill try an older version of Pismo.

manolito
11th February 2019, 15:29
You already have an older Pismo version in my uploaded package. This one does work with AVFS 1.0.0.5.
Don't forget to register the avfs.dll.

jealousy91
11th February 2019, 17:44
I tried to register AVFS with cmd using c:\windows\avfs.dll and got this message

https://i.postimg.cc/mgjHrVqp/vlcsnap-2019-02-11-11h35m43s165.png (https://postimg.cc/mPcDX3T7)

Did I type the wrong command?

poisondeathray
11th February 2019, 20:39
I tried to register AVFS with cmd using c:\windows\avfs.dll and got this message

Did I type the wrong command?


yes, wrong command . You need pfm register

as per the instructions


pfm register c:\windows\avfs.dll


You might need to be logged in as administrator or elevated priviledges

jealousy91
25th October 2021, 04:42
I've gotten a new PC now and I'm currently reinstalling all the necessary programs for this, but I don't remember which older version of PFMAP was provided by manolito here (https://forum.doom9.org/showthread.php?p=1865120#post1865120) as the link for it has expired

If anyone knows which previous version of PFMAP is needed and can provide a link for it would be greatly appreciated.

jealousy91
25th October 2021, 09:26
I've gotten a new PC now and I'm currently reinstalling all the necessary programs for this, but I don't remember which older version of PFMAP was provided by manolito here (https://forum.doom9.org/showthread.php?p=1865120#post1865120) as the link for it has expired

If anyone knows which previous version of PFMAP is needed and can provide a link for it would be greatly appreciated.

I'm using PFMAP build 180 and it shows Quick Mount when I right-click on an avs file.

But I'm having an issue registering avfs.dll through the command prompt. When I enter the command pfm register c:\windows\avfs.dll it'll then say Registering formatter "pfm register c:\windows\avfs.dll".. with nothing happening and being unable to quick mount. I also tried the command regsvr32 avfs.dll by placing avfs.dll in the System32 folder and got this error message

The module "avfs.dll" was loaded but the entry point
DllRegisterServer was not found.

Make sure that "avfs.dll" is a valid DLL or OCX file and then try
again.

Am I using the wrong command? Did I place avfs.dll in the wrong file location? Or is it something else I'm doing wrong?

I'm using Windows 10.

manolito
25th October 2021, 17:50
Hi,

I just reuploaded the older version from the second post in this thread. Download here:
https://www.sendspace.com/file/k32v8m

I have not used this software for some time, just a few things to observe:

Do not mix versions. Uninstall all other versions of this software completely, then reboot your machine before installing this version.

Follow the instructions in the ReadMe to the letter.

I omly tested this version under WinXP and Win7. No idea how it behaves under Win10.


Good luck...

jealousy91
25th October 2021, 18:57
I followed the installation instructions in the readme.txt with the proper version of PFMAP provided and got this

Before doing this, I uninstalled PFMAP v180 that I already had installed then restarted my PC

https://i.postimg.cc/G29QBNXX/vlcsnap-2021-10-25-14h22m31s810.png

tebasuna51
27th October 2021, 09:51
Read this thread https://forum.doom9.org/showthread.php?p=1816181#post1816181
Maybe can help you.

poisondeathray
28th October 2021, 00:16
Why don't you just use the newer version ? Is context menu that important for you ? That old version only works with x86 avisynth

If you insist on using the old version - Are you sure the old PFMAP v180 is a good idea ? If you look at the changelog, many of the changes were related to win10 compatibility
https://pismotec.com/download/pfmap-192-readme.txt

avfs 1.0.0.5 is from 2010. 1.0.0.6 is from 2015.


The newest versions of avfs from 2021 run from commandline, and are bundled with vapoursynth installer. They support x64 avisynth and vapoursynth (instead of x86 avisynth only)

avfs with vapoursynth version has other benefits, including fourcc emulation of IYUV, UYVY, v210 . This means higher compatibility in some NLE's - less quality loss and mishandling.

For example you have vegas 19 in your screenshot. If you mount a YV12, or YUY2 script with the old avfs, it will be converted to Computer RGB, instead of Studio RGB in vegas. This has potential to clip data. In other NLE's like premiere that have YUV timelines, when you use the correct fourcc's - they are treated as YUV, instead of RGB - again, no clipping and RGB conversion

If you're only using this for import (not filtering or other manipulations) - if you use the native .m2ts container instead of mkv, you should be able to import directly anyways, without avisynth

jealousy91
30th October 2021, 02:44
For example you have vegas 19 in your screenshot. If you mount a YV12, or YUY2 script with the old avfs, it will be converted to Computer RGB, instead of Studio RGB in vegas. This has potential to clip data. In other NLE's like premiere that have YUV timelines, when you use the correct fourcc's - they are treated as YUV, instead of RGB - again, no clipping and RGB conversion

If you're only using this for import (not filtering or other manipulations) - if you use the native .m2ts container instead of mkv, you should be able to import directly anyways, without avisynth
Since I'm doing this for that purpose, I went ahead and took your advice. I directly imported the .m2ts container.

But the wav files I extracted using Megui are not frame-synced with the .m2ts container

https://i.postimg.cc/T1TZkqyB/vlcsnap-2021-10-29-21h42m30s446.png

The audio plays out of sync with the video, even when I try to correct it on the timeline.

poisondeathray
30th October 2021, 04:48
Don't extract the audio (leave it in the m2ts container) ? What kind of audio? Or was the the reason for demuxing it ? (vegas not supporting it)

Is it in sync if you create a script that includes audio with avisynth , in a media player ? e.g. mpchc ?

jealousy91
30th October 2021, 05:50
Don't extract the audio (leave it in the m2ts container) ? What kind of audio? Or was the the reason for demuxing it ? (vegas not supporting it)
The audio is 7.1 DTS-HD MA. It's separated into single wav files for editing reasons. Directly importing the .m2ts container presents it as a single stereo track.


Is it in sync if you create a script that includes audio with avisynth , in a media player ? e.g. mpchc ?
How do I go about doing that?

tebasuna51
30th October 2021, 09:35
But the wav files I extracted using Megui are not frame-synced with the .m2ts container
In MeGUI you load the .mpls.
If the .mpls have 2, or more, .m2ts, maybe credits and movie, the audio can have a fixed delay.

The audio plays out of sync with the video, even when I try to correct it on the timeline.
If you can't correct the sync with a fixed (+ or -) delay, the problem is you have a incorrect fps when play the video in Vegas.

jealousy91
1st November 2021, 02:03
In MeGUI you load the .mpls.
If the .mpls have 2, or more, .m2ts, maybe credits and movie, the audio can have a fixed delay.


If you can't correct the sync with a fixed (+ or -) delay, the problem is you have a incorrect fps when play the video in Vegas.

I went ahead and tried all of that and I got the same results.

poisondeathray
1st November 2021, 06:06
Was the (stereo) audio in sync with the m2ts when loaded in vegas ? Compare the length to the demuxed wav tracks

You can interpret the frame rate in vegas (e.g. is it a 24000/1001 BD, or 24/1 BD ?) , but I doubt that's the problem

You can use wavsource with audiodub to load audio in an avs script, or lwlibavaudiosource or ffaudiosource to load audio in container

Was eac3to used in megui to demux the audio ? Did it report gaps or errors ?

tebasuna51
1st November 2021, 13:12
...
Was eac3to used in megui to demux the audio ? Did it report gaps or errors ?

Yes, the MeGUI tool HD Streams Extractor use eac3to.

If the source is a unique m2ts (for that my question of load a mpls) can't exist gaps, of course can exists errors, but without errors the decompressed wav's must be in sync with video if is played at correct fps.

jealousy91
27th August 2022, 03:10
Don't extract the audio (leave it in the m2ts container) ? What kind of audio? Or was the the reason for demuxing it ? (vegas not supporting it)

Is it in sync if you create a script that includes audio with avisynth , in a media player ? e.g. mpchc ?
Never mind, the pic just shows an additional 30 seconds that was added to the audio at the end. Don't know why I said it was out of sync.

This method isn't really needed anymore since you can import the m2ts file directly into the timeline (same also applies with VOB).

Unless there"s a better way to do this, I still use Megui's HD Stream Extractor to extract the audio channels into single wav files.