# FormatSource - [Overview](#section1977746972165631) - [Summary](#section1154583350165631) - [Data Fields](#pub-attribs) - [Details](#section1037039597165631) - [Field](#section1175359571165631) - [fd](#adc25d5e97f531f36d7f129136abb483d) - [stream](#a33f6a121891b692ef246011e0415f3fe) - [type](#abdb0407f672c5e9af53eae7726c2e7b2) - [url](#adc0405c090069d6bbf2017995710a0f8) ## **Overview** **Related Modules:** [Format](format.md) **Description:** Defines the demuxer data source. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields

Variable Name

Description

type

SourceType

  

union {

  

int fd

  

char url [URL_LEN]

  

BufferStream * stream

  

};

Defines information about different types of data sources.

## **Details** ## **Field ** ## fd ``` int FormatSource::fd ``` **Description:** Local file descriptor ## stream ``` [BufferStream](bufferstream.md)* FormatSource::stream ``` **Description:** Pointer to the function for reading buffer stream data ## type ``` [SourceType](format.md#ga3ae727773c367ac1041d72ac770a0ab1) FormatSource::type ``` **Description:** Data source type. For details, see [SourceType](format.md#ga3ae727773c367ac1041d72ac770a0ab1). ## url ``` char FormatSource::url[[URL_LEN](format.md#ga1ac54dd3b9b49c1800b5f502a87650be)] ``` **Description:** Network URI or local file path. The maximum length is specified by **URL\_LEN**.