View Full Version : How to run AviSynth using wine on Mac?
MichaelRow
21st April 2014, 12:07
Is there a way to run AviSynth using wine and pipe video into x264 on a mac? :thanks:
qyot27
21st April 2014, 15:58
Update to Mavericks
Install the Command Line Tools for Xcode
Install Homebrew
Install Wine from Homebrew
Install AviSynth, et al.
You can just use Windows builds of x264 under Wine, as there isn't really any performance detriment. But for piping, you can use a 32-bit Windows build of FFmpeg (http://ffmpeg.zeranoe.com/builds/):
wine ffmpeg -i input.avs -f yuv4mpegpipe - | x264 --stdin y4m <options> -
Just make sure the Windows builds of x264 and/or FFmpeg are on Wine's PATH. The dumb way is just to shove them into Wine's C:\windows\system32, but it's cleaner if you make directories for them in C:\Program Files or somewhere else and then add that to the PATH using either Wine's copy of Regedit or by using a Windows path editing tool.
Although generally, this thread should probably should have been posted in the Linux & OS X area:
http://forum.doom9.org/forumdisplay.php?f=63
MichaelRow
30th April 2014, 18:15
Update to Mavericks
Install the Command Line Tools for Xcode
Install Homebrew
Install Wine from Homebrew
Install AviSynth, et al.
You can just use Windows builds of x264 under Wine, as there isn't really any performance detriment. But for piping, you can use a 32-bit Windows build of FFmpeg (http://ffmpeg.zeranoe.com/builds/):
wine ffmpeg -i input.avs -f yuv4mpegpipe - | x264 --stdin y4m <options> -
Just make sure the Windows builds of x264 and/or FFmpeg are on Wine's PATH. The dumb way is just to shove them into Wine's C:\windows\system32, but it's cleaner if you make directories for them in C:\Program Files or somewhere else and then add that to the PATH using either Wine's copy of Regedit or by using a Windows path editing tool.
Thanks for the reply.
But I never get it worked, maybe the wrong code.
wine ~/.wine/drive_c/ffmpeg.exe -i "C:\input.avs" -an -f mp4 "C:output.mp4"
Only got a message,and no output file found.
2014-05-01 01:09:34.164 wine[2087:507] /Users/Michael/.wine/drive_c/ffmpeg.exe
qyot27
1st May 2014, 02:14
There's no reason at all to use C:\ in the input and output parameters for ffmpeg.
MichaelRow
18th May 2014, 03:14
There's no reason at all to use C:\ in the input and output parameters for ffmpeg.
Problem solved, generally, avisynth works fine. Thanks for the help.
BTW, I'm trying to use avspmod 2.5.1 on wine. It seems that the preview functionality works great(screenshot (https://drive.google.com/file/d/0B3qFoec7GpBxZGhYYVRKS1FjaUk/edit)), the problem is, it would crash while typing anything in the avs editor, but it's ok if I simply copy & paste expressions to the editor. Is it because missing *.dll needed or somewhat like that? :thanks:
qyot27
18th May 2014, 03:40
I don't know; I don't use AvsPmod or any specialized script editing application. I just use a regular text editor like Notepad (or Wordpad, Leafpad, nano, gedit, etc.) or echo scripts into existence from the shell.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.