"C:\Program Files\MediaCoder\codecs\mencoder.exe" -of rawvideo -ovc raw -rawvidopts pipe=0x00000370 -ofps 15000/1001 -channels 2 -aid 1 -demuxer mkv -demuxer mkv -vf-add scale=704:396:0:0 -vf-add  
unsharp=l8x8:0.2:c8x8:0.2 -sws 9 -vf-add harddup -af resample=44100:0:0,channels=2,volume=5:0 -oac pcm -pcmopts pipe=0x0000037C -mc 0 -endpos 00:00:10 "D:\input.mkv" -o NUL
这是mediacoder里的mencoder的命令行,看命令行应该是同时解码视频和音频并建立管道给x264和lame了.
x264和lame的命令行如下(使用的是标准输入流)
".\codecs\x264.exe" --no-progress --profile high --weightp 2 --b-pyramid strict --scenecut 40 --rc-lookahead 40 --b-adapt 2 --keyint 250 --min-keyint 25 --non-deterministic --aq-mode 1 --aq-strength 1.0 --subme 7 --me tesa --merange  
16 --partitions all --8x8dct --bframes 3 --direct auto --trellis 1 --weightb --ref 2 --psy-rd 1:0 --bitrate 450 --qcomp 0.6 --sar 333:320 --threads 3 --input-res 704x396 --fps 15000/1001 --input-csp yv12 -o  
"C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mctemp5036fd9dba930da2.264" -".\codecs\lame.exe" --cbr -b 44 -q 2 --noreplaygain --add-id3v2 --resample 44100 -r -s 44100 --quiet - "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mctemp5036fd9dba930da2.mp3"难道是mencoder自己建立好了通讯管道吗,如果不是是怎么操作的?
网上搜到的全是通过管道接收控制台返回行的教程,象这样的一个程序建2个管道,并把结果同时通过管道发给2个程序的标准输入流的我一个没找到.小弟新人请高人解答.