GetChannel のバックアップの現在との差分(No.1)


  • 追加された行はこの色です。
  • 削除された行はこの色です。
 GetChannel(clip clip, int ch1 [, int ch2, ...])
#pre{{
GetChannel (clip, int ch1 [, int ch2, ...])
GetChannels (clip, int ch1 [, int ch2, ...])
GetLeftChannel(clip clip)
GetRightChannel(clip clip)
}}

 GetLeftChannel(clip clip)
v2.5 より前のバージョンでは、GetLeftChannel はステレオ信号の左のチャンネルを、GetRightChannel はステレオ信号の右のチャンネルを返します。GetChannel は v2.5 から内蔵されており、マルチチャンネル信号から 1 つ以上のチャンネルを返します。GetChannels は、GetChannel の別名です。

 GetRightChannel(clip clip)
AviSynth による仮定は行われないため、チャンネルオーダーは入力ファイルのそれによって決定されます。ステレオ 2.0 チャンネル WAV ファイルと 5.1 チャンネル WAV ファイルの場合、チャンネルオーダーは次のようになるはずです:

Prior to v2.5 GetLeftChannel returns the left and GetRightChannel the right channel from a stereo signal. GetChannel is present starting from v2.5 and it returns one or more channels of a multichannel signal. The ordening of the channels is determined by the ordening of the input file, because AviSynth doesn't assume any ordening. In case of stereo 2.0 WAV and 5.1 WAV files the ordening should be as follows:
''WAV 2 チャンネル (ステレオ):''

''WAV 2 ch (stereo):''
|1|左チャンネル|
|2|右チャンネル|

|1|left channel|
|2|right channel|
''WAV 5.1 チャンネル:''

''WAV 5.1 ch:''
|1|フロント左チャンネル|
|2|フロント右チャンネル|
|3|フロントセンターチャンネル|
|4|LFE((訳者註: 低域効果。LFE は、Low Frequency Effects の略。参考: [[ホームシアター製品のFAQページ|サポートダウンロード|YAMAHA:http://www.yamaha.co.jp/audio/support/info/faq/audiofaq9_4.html]]))(サブウーファー)|
|5|リア左チャンネル|
|6|リア右チャンネル|

|1|front left channel|
|2|front right channel|
|3|front center channel|
|4|LFE (Subwoofer)|
|5|rear left channel|
|6|rear right channel|
#pre{{
# 右チャンネルの情報を削除して、左チャンネルのみのモノラルクリップとして返す:
video = AviSource("c:\filename.avi")
stereo = WavSource("c:\afx-ab3_t4.wav")
mono = GetLeftChannel(stereo)
return AudioDub(video, mono)

Examples:
# v2.5を使うと、こうなる:
video = AviSource("c:\filename.avi")
stereo = WavSource("c:\afx-ab3_t4.wav")
mono = GetChannel(stereo, 1)
return AudioDub(video, mono)

 # Removes right channel information, and return as mono clip with only left channel:
 video = AviSource("c:\filename.avi")
 stereo = WavSource("c:\afx-ab3_t4.wav")
 mono = GetLeftChannel(stereo)
 return AudioDub(video, mono)
# AVI ファイル自身からチャンネルを取得することも可能:
video = AviSource("c:\filename.avi")
return GetChannel(video, 1)

 # Using v2.5 this becomes:
 video = AviSource("c:\filename.avi")
 stereo = WavSource("c:\afx-ab3_t4.wav")
 mono = GetChannel(stereo, 1)
 return AudioDub(video, mono)
# 「非圧縮 5.1 チャンネル WAV」音声を持つ AVI をステレオ信号に変換する:
video = AviSource("c:\divx_wav.avi")
audio = WavSource("c:\divx_wav.avi")
stereo = GetChannel(audio, 1, 2)
return AudioDub(video, stereo)
}}

 # You could also obtain the channels from the avi file itself:
 video = AviSource("c:\filename.avi")
 return GetChannel(video, 1)
*** 注釈 1: [#x26f9a50]

 # Converts avi with "uncompressed 5.1 wav" audio to a stereo signal:
 video = AviSource("c:\divx_wav.avi")
 audio = WavSource(c:\divx_wav.avi)
 stereo = GetChannel(audio, 1, 2)
 return AudioDub(video, stereo)
すべてのファイルフォーマットは、異なるチャンネルオーダーを持っています。次の表は、いくつかのフォーマットに関するチャンネルオーダーを提供します(プラグイン作者にとって有用です :))

''Remark1:''
|参考文献:|チャンネル 1:|チャンネル 2:|チャンネル 3:|チャンネル 4:|チャンネル 5:|チャンネル 6:|h
|[[5.1 WAV:http://www.cs.bath.ac.uk/~jpff/NOS-DREAM/researchdev/wave-ex/wave_ex.html]]|フロント左チャンネル|フロント右チャンネル|フロントセンターチャンネル|LFE|リア左チャンネル|リア右チャンネル|
|[[5.1 AC3:http://www.atsc.org/standards/a_52a.pdf]]|フロント左チャンネル|フロントセンターチャンネル|フロント右チャンネル|リア左チャンネル|リア右チャンネル|LFE|
|[[5.1 DTS:http://webapp.etsi.org/action%5CPU/20020827/ts_102114v010101p.pdf]]|フロントセンターチャンネル|フロント左チャンネル|フロント右チャンネル|リア左チャンネル|リア右チャンネル|LFE|
|[[5.1 AAC:http://www.hydrogenaudio.org/index.php?showtopic=10986]]|フロントセンターチャンネル|フロント左チャンネル|フロント右チャンネル|リア左チャンネル|リア右チャンネル|LFE|
|[[5.1 AIFF:http://preserve.harvard.edu/standards/Audio%20IFF%20Specification%201%203.pdf]]|フロント左チャンネル|リア左チャンネル|フロントセンターチャンネル|フロント右チャンネル|リア右チャンネル|LFE|

Every file format has a different channel ordening. The following table gives this ordening for some formats (useful for plugin writers :))
* 5.1 DTS: LFE は、(マルチチャンネル MPEG2 のように)独立したストリームである。~
* AAC の仕様書(フリー版)は、インターネット上で入手不可能か?

|reference:|channel 1:|channel 2:|channel 3:|channel 4:|channel 5:|channel 6:|h
|~[[[5.1 WAV]:http://www.cs.bath.ac.uk/~jpff/NOS-DREAM/researchdev/wave-ex/wave_ex.html]]|front left channel|front right channel|front center channel|LFE|rear left channel|rear right channel|
|~[[[5.1 AC3]:http://www.atsc.org/standards/a_52a.pdf]]|front left channel|front center channel|front right channel|rear left channel|rear right channel|LFE|
|~[[[5.1 DTS]:http://webapp.etsi.org/action%5CPU/20020827/ts_102114v010101p.pdf]]|front center channel|front left channel|front right channel|rear left channel|rear right channel|LFE|
|~[[[5.1 AAC]:http://www.hydrogenaudio.org/index.php?showtopic=10986]]|front center channel|front left channel|front right channel|rear left channel|rear right channel|LFE|
|~[[[5.1 AIFF]:http://preserve.harvard.edu/standards/Audio%20IFF%20Specification%201%203.pdf]]|front left channel|rear left channel|front center channel|front right channel|rear right channel|LFE|
*** 注釈 2: [#ad109c07]

-5.1 DTS: the LFE is on a separate stream (much like on multichannel MPEG2).
-AAC specifications are unavailable on the internet (a free version)?
執筆時点((ここで言う「執筆時点」とは、日本語訳ではなく、英語によるオリジナルのページが執筆/編集された時のことを指します。))では、BeSweet には依然として [[2GB の壁:http://forum.doom9.org/showthread.php?s=&postid=305084]]があります。このため、5.1 チャンネル WAV のサイズは 2GB 未満になるようにしてください。さもなければ、6 つの独立した WAV ファイルにエンコードするか、HeadAC3he を使用してください。

''Remark2:''
#hr

At the time of writing, BeSweet still has the [[[2GB barrier]:http://forum.doom9.org/showthread.php?s=&postid=305084]]. So make sure that the size of the 5.1 WAV is below 2GB, otherwise encode to six separate wavs or use HeadAC3he.
註: このページは、AviSynth 2.5.7 に同梱されているマニュアル(英語版)の日本語訳です。原文は、AviSynth をインストールしたフォルダ内の Docs/english/corefilters/getchannel.htm にあります。なお、このページのテキストおよび画像のライセンスは、オリジナルのそれに準じます。

''Remark3:''

GetChannels is an alias to GetChannel and they can be used interchangeably. The syntax is the same for both.