JohannesL
12th September 2009, 14:52
Here's how I do it:
Install Wine
Install AviSynth (run the EXE through Wine)
Install x264, vorbis-tools and mkvtoolnix (Linux versions) and get avs2yuv and wavi EXEs
Create an avs using your preferred text editor
Save this script as enc.sh and run it with ./enc.sh avs.avs:
#!/bin/bash
mkfifo v.y4m
mkfifo a.wav
x264 v.y4m --crf 22 -o ve.mkv &
wine avs2yuv.exe "$1" v.y4m
oggenc a.wav -q 3 -o ae.ogg &
wine wavi.exe "$1" a.wav
mkvmerge ve.mkv ae.ogg -o result.mkv
rm v.y4m ve.mkv a.wav ae.ogg
You can also use VirtualDub if you disable "Use DirectX for display panes", but that limits you to VfW/ACM encoding, so I don't recommend it. It's nice for previewing, however.
Share your knowledge here.
edit: updated script
Install Wine
Install AviSynth (run the EXE through Wine)
Install x264, vorbis-tools and mkvtoolnix (Linux versions) and get avs2yuv and wavi EXEs
Create an avs using your preferred text editor
Save this script as enc.sh and run it with ./enc.sh avs.avs:
#!/bin/bash
mkfifo v.y4m
mkfifo a.wav
x264 v.y4m --crf 22 -o ve.mkv &
wine avs2yuv.exe "$1" v.y4m
oggenc a.wav -q 3 -o ae.ogg &
wine wavi.exe "$1" a.wav
mkvmerge ve.mkv ae.ogg -o result.mkv
rm v.y4m ve.mkv a.wav ae.ogg
You can also use VirtualDub if you disable "Use DirectX for display panes", but that limits you to VfW/ACM encoding, so I don't recommend it. It's nice for previewing, however.
Share your knowledge here.
edit: updated script