On this page |
概要
この反対の処理(フレーム画像を動画に変換)がFFmpeg Encode Videoノードです。
このノードは2通りの方法で使用します:
-
入力を接続しない場合は、画像を抽出したい動画ファイルを指定します。
-
このノードに動画ファイルの
output
を持った入力ワークアイテムが存在すれば、このノードは入力のワークアイテム毎に静止画像シーケンスを抽出します。
このノードは、入力の動画からすべての画像を抽出する 1個のワークアイテム を生成します(フレーム毎に別々のワークアイテムを生成しません)。
ワークアイテムのoutput
は、出力ファイル名の配列です。
ファイル毎に別々のワークアイテムが生成されるように出力をノードに接続したいのであれば、Work Item Expandノードを使用することで、ワークアイテム(s)内の出力ファイルを分割することができます。
インストール
このノードは、ffmpeg
コマンドラインツールのラッパーです。
このノードを動作させるには、各マシン上にFFmpegがインストールされている 必要があります 。
FFmpegコマンドラインツールを検索するノードに関しては、そのツールの実行可能バイナリのパスが以下の方法のどれかで利用できる必要があります:
-
システムパス。
-
PDG_FFMPEG
という名前の環境変数でパスを指定。 -
ノードの FFmpeg Binary Path パラメータで直接パスを指定。
Tip
$HH/help/files/pdg_examples/top_multishot
と$HH/help/files/pdg_examples/top_rop
のサンプルでは、このノードを使用して、レンダリング画像から動画を生成する方法を説明しています。
TOP Attributes
|
integer |
出力される画像の高さ。 |
|
integer |
出力される画像の幅。 |
|
float |
1秒あたりのフレーム数。 |
パラメータ
Node
Input Source
入力ソースを選択します。
Upstream Output File
入力動画は、 File Tag パラメータで指定されたタグを持った上流のワークアイテムから最初に出力されたファイルになります。
Custom File Path
入力動画は、 File Path パラメータで指定します。
File Tag
入力ソースのファイルタグを指定します。
File Path
入力ソースのファイルパスを指定します。
Frames Per Second
1秒あたりに抽出する画像の枚数。
Output File Pattern
出力される画像の出力パターンを指定します。
File Tag
出力される画像のファイルタグ。
Width
有効な時、ここには出力される画像の幅を指定します。
Height
有効な時、ここには出力される画像の高さを指定します。
FFmpeg Binary
FFmpegをコールする方法を指定します。
System Path
システムパスからFFmpegが利用可能な時は、このオプションを使用します。
$PDG_FFMPEG
このオプションを選択すると、PDG_FFMPEGという名前の環境変数のパスを使ってFFmpegがコールされます。 この環境変数は、ユーザー側で作成してください。
Custom Path
FFmpeg Binary Path パラメータの値はFFmpegバイナリのパスとして使用されます。
FFmpeg Binary Path
FFmpeg Binary が Custom Path に設定されている時に、そのFFmpegのパスを指定します。
FFmpeg Command
ワークアイテムがクックされた時にコールされるFFmpegコマンドを表示します。 このフィールドを有効にすると、そのコマンドを修正することができますが、他のパラメータを変更しても更新されなくなります。
Schedulers
TOP Scheduler Override
このパラメータは、このノードのTOPスケジューラを上書きします。
Add Job Parms
Opens the Edit Parameter Interface window for the purpose of adding scheduler parameters to the node’s interface.
In-Process Scheduler
The Edit Parameter Interface window opens with the In-Process Scheduler’s parameter folder selected in the Create Parameters column.
Local Scheduler
The Edit Parameter Interface window opens with the Local Scheduler’s parameter folder selected in the Create Parameters column.
HQueue Scheduler
The Edit Parameter Interface window opens with the HQueue Scheduler’s parameter folder selected in the Create Parameters column.
Work Item Label
Determines how the node should label its work items. This parameter allows you to assign non-unique label strings to your work items which are then used to identify the work items in the attribute panel, task bar, and scheduler job names.
No Label
The work items on this node do not have a label.
Inherit From Upstream Item
The work items inherit their labels from their parent work items.
Custom Expression
The work item label is set to the Label Expression custom expression which is evaluated for each item.
Node Defines Label
The work item label is defined in the node’s internal logic.
Label Expression
When on, this parameter specifies a custom label for work items created by this node. The parameter can be an expression that includes references to work item attributes or built-in properties. For example, $OS: @pdg_frame
will set the label of each work item based on its frame value.
Work Item Priority
このパラメータは、現行スケジューラがこのノード内のワークアイテムの優先度を設定する方法を決めます。
Inherit From Upstream Item
ワークアイテムは、親ワークアイテムの優先度を継承します。ワークアイテムに親ワークアイテムがなければ、その優先度は0に設定されます。
Custom Expression
ワークアイテムの優先度は、 Priority Expression の値に設定されます。
Node Defines Priority
ワークアイテムの優先度は、このノード自身の内部優先度計算に基づいて設定されます。
このオプションは、
Python Processor TOP,
ROP Fetch TOP, ROP Output TOPのノードでのみ利用可能です。
これらのノードは、各自のノードロジックで実装された優先度設定スキームを定義しています。
Priority Expression
このパラメータには、ワークアイテムの優先度を設定するためのエクスプレッションを指定します。 このエクスプレッションは、ノード内のワークアイム毎に評価されます。
このパラメータは、 Work Item Priority が Custom Expression に設定されている時にのみ利用可能です。
Examples
example_top_ffmpegextractimages Example for FFmpeg Extract Images TOP node
このサンプルでは、FFmpeg Extract Imagesノードを使って、動画ファイルから画像を抽出する方法を説明しています。
See also |