GraphPresets

Aus DVBViewer
Wechseln zu: Navigation, Suche

Bei den Filtergraph-Presets handelt es sich um .ini Dateien, die allerdings mit der Endung .fgp im GraphPresets Ordner gespeichert werden. Über die Dateien kann bestimmt werden welche DirectShow Filter für bestimmte Dateien verwendet werden sollen (mit Ausnahme vom Video Renderer).

Das ganze ist eine Erweiterung der Einstellmöglichkeiten unter Optionen DirectX, wenn die Audio/Video A/B Einstellungen nicht ausreichen.


Die Presets können in den Optionen DirectX aktiviert bzw. Deaktiviert werden.

Für das einfacherer bearbeiten von Graph Presets gibt es den Graph Presets - Editor


Hier mal ein Beispiel für den Aufbau so einer .fgp Datei

;--------------------------------------------------------------
;Preset application rules
;--------------------------------------------------------------

;1) Filtergraph Presets are INI format text files with a .fgp filename extension. 
;   They define DirectShow components that shall be used by DVBViewer, must 
;   be stored in the GraphPresets subdirectory of the configuration folder 
;   and comply with the rules given below. Available presets are listed in the
;   DVBViewer options and can be enabled/disabled individually.

;2) For selecting a particular SourceFilter/Splitter, Decoder, PostProcessor or 
;   Renderer Filter, DVBViewer uses the first filtergraph preset (in displayed order)
;   that is applicable in the given situation and specifies the required Filter. 
;   A preset is applicable if it is enabled and the conditions specified in the 
;   General section are met.

;3) If no preset is applicable or none of them specifies the required filter or
;   if the filter specified by a preset is not available, DVBViewer uses the 
;   DirectX (DirectShow) settings in the options (including the Video/Audio A/B mechanism) 
;   for selection. If neither a preset nor the DirectShow settings specify a filter, 
;   DVBViewer delegates the selection to the standard DirectShow mechanism.

;4) The General section of a preset file is mandatory. All SourceFilter/Splitter, 
;   Decoder, Postprocessor and Renderer sections are optional. They must contain 
;   the mandatory fields if they are present (see remarks below). Otherwise DVBViewer
;   will ignore them. Lines starting with ";" are comments and have no effect.

;5) The SourceFilter and Splitter sections only apply to file playback. 
;   The Decoder/PostProcessor/Renderer sections apply to TV/Radio or file 
;   playback, depending on the conditions specified in the General section.

;6) Multiple presets may affect playback at the same time if they only 
;   specify filters partially. E.g. if one applicable preset only specifies a 
;   video decoder and another one only an audio decoder for a certain condition, 
;   DVBViewer will use both when it builds the filter graph.

;--------------------------------------------------------------

[General]
;DVBViewer uses DisplayName for displaying the preset in a list (mandatory)
DisplayName=

;DVBViewer uses Description for displaying a hint (optional)
Description=

;Conditions for applying this preset (same as Video/Audio A/B conditions, mandatory). 
Conditions=

;Specifies whether this preset is enabled (1) or disabled (0)
;(optional - DVBViewer sets a default if not specified)
;DVBViewer writes to this field according to the checkboxes in the list of presets
Enabled=

;--------------------------------------------------------------

[SourceFilter]
;The SourceFilter/Splitter sections only apply to file playback and require the
;specification of at least one file extension in the conditions given in the 
;General section. The file type is the only criterium for selecting a SourceFilter/Splitter.
;Other conditions are ignored. If none of the applicable presets specifies
;a SourceFilter/Splitter for the given file type, or if it is not available, 
;DVBViewer uses the DVBViewer Filter, if applicable and enabled for the file type in the
;DVBViewer options. Otherwise the source filter/splitter selection is up to DirectShow.

;the source filter CLSID (mandatory)
CLSID=

;--------------------------------------------------------------

[Splitter]
;The Splitter section only applies if no source filter is specified
;DVBViewer uses the splitter in combination with the MS Async File Source.

;The splitter CLSID (mandatory)
CLSID=

;The splitter name (optional). DirectShow uses a default name if not specified.
Name=

;--------------------------------------------------------------

[MPEG2Decoder]

;The decoder CLSID. Mandatory if Name is not specified. 
CLSID=

;The decoder name. Mandatory if no CLSID is specified, otherwise optional.
;If a CLSID is specified, Name is the display name. If no display name is
;specified DirectShow uses a default name.
;If no CLSID is specified, DVBViewer picks the first MPEG2 decoder from 
;its list that contains Name as substring (upper/lower case ignored)
Name=

[H264Decoder]
;see above
CLSID=
Name=

[VC1Decoder]
;see above
CLSID=
Name=

[MP2Decoder]
;see above
CLSID=
Name=

[MP3Decoder]
;see above
CLSID=
Name=

[AC3Decoder]
;see above
CLSID=
Name=

[AACDecoder]
;see above
CLSID=
Name=

;--------------------------------------------------------------
;Specifying a CLSID is mandatory for the following decoders,
;because they are not represented by a DVBViewer decoder category.
;Name is optional.

[TrueHDDecoder]
CLSID=
Name=

[DTSDecoder]
CLSID=
Name=

[HDMV_LPCMDecoder]
CLSID=
Name=

;--------------------------------------------------------------

[VideoDecoder]
;Decoder for video types that are not specifically detected by DVBViewer (e.g. DivX, XviD).
;CLSID is mandatory, Name optional
CLSID=
Name=

[AudioDecoder]
;Decoder for audio types that are not specifically detected by DVBViewer (e.g. ogg, flac).
;CLSID is mandatory, Name optional
CLSID=
Name=

;--------------------------------------------------------------

[VideoPostProc]
;Video Postprocessor. CLSID is mandatory, Name optional
CLSID=
Name=

[AudioPostProc]
;Audio Postprocessor. CLSID is mandatory, Name optional
CLSID=
Name=

;--------------------------------------------------------------

[VideoRenderer]
;The video renderer name (mandatory)
;DVBViewer will pick the first video renderer from its list 
;that contains Name as substring (upper/lower case ignored)
Name=

;--------------------------------------------------------------

[AudioRenderer]
;The audio renderer name (mandatory)
;DVBViewer will pick the first audio renderer from its list 
;that contains Name as substring (upper/lower case ignored)
Name=


Und noch ein Beispiel mit eingesetzten Werten.


YOUTUBE_STREAM_LAV_FFDSHOW.fgp

[General]
DisplayName=YouTube streams with LAV filters
Description=Uses LAV filters for playback of YouTube streams. Requires LAV filters installed.

Conditions=.you,Stream

Enabled=0

;--------------------------------------------------------------

[Splitter]
CLSID={171252A0-8820-4AFE-9DF8-5C92B2D66B04}
Name=LAV Splitter

;--------------------------------------------------------------

[MPEG2Decoder]
CLSID={EE30215D-164F-4A92-A4EB-9D4C13390F9F}
Name=LAV Video Decoder

[H264Decoder]
CLSID={EE30215D-164F-4A92-A4EB-9D4C13390F9F}
Name=LAV Video Decoder

[VC1Decoder]
CLSID={EE30215D-164F-4A92-A4EB-9D4C13390F9F}
Name=LAV Video Decoder

[VideoDecoder]
CLSID={EE30215D-164F-4A92-A4EB-9D4C13390F9F}
Name=LAV Video Decoder

[MP2Decoder]
CLSID={E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
Name=LAV Audio Decoder

[MP3Decoder]
CLSID={E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
Name=LAV Audio Decoder

[AC3Decoder]
CLSID={E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
Name=LAV Audio Decoder

[AACDecoder]
CLSID={E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
Name=LAV Audio Decoder

[AudioDecoder]
CLSID={E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
Name=LAV Audio Decoder

;--------------------------------------------------------------

[AudioRenderer]
Name=ReClock Audio Renderer