Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
13th March 2009, 12:46 | #1 | Link |
MPlayer addict
Join Date: Dec 2008
Posts: 33
|
How to get avisynth working through pipes
I am long time mencoder user. But this time there is no filter aviable for my needs.
Avisynth works after following procedure Code:
mplayer file -ao -null -speed 4 -vo yuv4mpeg:file=a.y4m Code:
mencoder -nosound a.y4m -ovc copy -o a.avi Code:
wine avs2yuv.exe test -o - | mencoder - -cache 500 -profile x264medium -o file.264 When I create pipes a.y4m and a.avi avisynth is not able to process it. I have tried to search but didn't find solution. However I tried FFVH codec via mencoder but avisynth is not able open it. ffdshow won't install. I am nowadays pretty lost when it comes to windows stuff... Or are pipes out of question when it comes to avisynth? Last edited by multimediaman; 13th March 2009 at 12:48. |
18th March 2009, 16:26 | #4 | Link | |
Registered User
Join Date: Nov 2008
Location: Russia, Spb
Posts: 29
|
Quote:
|
|
20th March 2009, 14:48 | #5 | Link |
MPlayer addict
Join Date: Dec 2008
Posts: 33
|
Thanks for the tip. I am going to check that later.
I am pretty much mencoder fan, though I just made a little script to automate that makes life little bit easier for me. It works for mpg files and uses DGIndex and DGDecode. Code:
#!/bin/bash #Public Domain #Plugin path ppath="$HOME/.wine/drive_c/Program Files/AviSynth 2.5/plugins" #Plugin path for wine wppath="C:\Program Files\AviSynth 2.5\plugins" if [ $# -eq 0 ] ; then echo "Creates index file and simple modifiable avisynth script" echo "Usage: mpgindex file yadif=[0-3]" echo "yadif deinterlacer is optional" exit 0 fi cd $(dirname "$1") in="$(basename "$1")" if ! [ -f "$in" ] ;then echo "No such file" exit 1 fi out=""$in".d2v" a=0 while [ -f "$out" ] || [ -f "${out%.d2v}".avs ] ; do a=$(expr $a + 1 ) out=""$in"-"$a".d2v" done out="${out%.d2v}" echo DGindex -AIF=["$in"] -OF=["$out"] -OM=0 -minimize -exit wine "$ppath"/DGIndex.exe -AIF=["$in"] -OF=["$out"] -OM=0 -minimize -exit echo -e 'LoadPlugin("'"$wppath\DGDecode.dll"'") MPEG2Source("'"$out.d2v"'")'\ >> "$out".avs if [ $(echo "$2"| cut -d = -f 1) = "yadif" ] ; then mode=$(echo "$2"| cut -d = -f 2) if [ $mode -lt 4 ] && [ $mode -gt -1 ] ; then echo -e 'LoadCPlugin("'"$wppath\yadif.dll"'") yadif(mode='"$mode"')'\ >> "$out".avs else echo "no such mode for yadif: $mode" fi fi echo script: "$out".avs echo index: "$out".d2v exit 0 |
Thread Tools | Search this Thread |
Display Modes | |
|
|