View Full Version : FFmpegSource2 audio encoding


martanius
28th May 2018, 10:24
Hello. I recently started using FFmpegSource2 insted of DirectShowSource since it takes like 10 minutes less (or even more with longer videos) to load the video files.

Now encoding video works well but when I try to encode audio, the progress window shows up, it says it's opening file, and shortly after that the window close itself. When I look into the megui log it says it doesn't know that function.

This is what I use:

FFmpegSource2("video.mp4", vtrack = -1, atrack = -1, timecodes="G:\ReCentral\timecodes\timecodes_video.txt")

Anyone know how to encode audio with it? I have to rewrite it to DirectShowSource to be able to encode audio. Even tho it takes much longer.

http://i66.tinypic.com/i5xgsk.jpg

poisondeathray
28th May 2018, 16:02
ffmpegsource2 is a helper function that comes with ffms2.avsi . Place ffms2.avsi in the plugins directory to autoload, or Import() it explicitly, or copy the function to the script

sneaker_ger
28th May 2018, 16:09
No, ffmpegsource2() should be part of the dll since 2.22.

martanius
28th May 2018, 22:13
ffmpegsource2 is a helper function that comes with ffms2.avsi . Place ffms2.avsi in the plugins directory to autoload, or Import() it explicitly, or copy the function to the script

Thank you! I placed all dlls and .avsi script in ...\MeGui\tools\avs\plugins and now it works perfectly. :)

sneaker_ger
28th May 2018, 22:28
So you had an old ffms2 version?

martanius
28th May 2018, 22:43
The dlls weren't in the plugins folder at all. I have ffms2-2.23.1-msvc.