# VideoFile

Type: VideoFile

Schema: [VideoFile](https://sourcey-peertube.pages.dev/api-rest-reference/models/videofile.md)

- `id` (optional)
  Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
  
  minimum: 1
  
  Example:
  
  ```json
  42
  ```

- `magnetUri` (optional)
  Type: string, uri
  
  magnet URI allowing to resolve the video via BitTorrent without a metainfo file
  
  pattern: "/magnet:\\?xt=urn:[a-z0-9]+:[a-z0-9]{32}/i"

- `resolution` (optional)
  Reference: [VideoResolutionConstant](https://sourcey-peertube.pages.dev/api-rest-reference/models/videoresolutionconstant.md); Type: VideoResolutionConstant
  
  resolutions and their labels for the video

- `size` (optional)
  Type: integer
  
  Video file size in bytes

- `torrentUrl` (optional)
  Type: string, url
  
  Direct URL of the torrent file

- `torrentDownloadUrl` (optional)
  Type: string, url
  
  URL endpoint that transfers the torrent file as an attachment (so that the browser opens a download dialog)

- `fileUrl` (optional)
  Type: string, url
  
  Direct URL of the video

- `playlistUrl` (optional)
  Type: string, url
  
  Playlist URL of the file if it is owned by a playlist

- `fileDownloadUrl` (optional)
  Type: string, url
  
  URL endpoint that transfers the video file as an attachment (so that the browser opens a download dialog)

- `fps` (optional)
  Type: number
  
  Frames per second of the video file

- `width` (optional)
  Type: number
  
  **PeerTube >= 6.1** Video stream width

- `height` (optional)
  Type: number
  
  **PeerTube >= 6.1** Video stream height

- `metadataUrl` (optional)
  Type: string, url
  
  URL dereferencing the output of ffprobe on the file

- `hasAudio` (optional)
  Type: boolean
  
  **PeerTube >= 6.2** The file container has an audio stream

- `hasVideo` (optional)
  Type: boolean
  
  **PeerTube >= 6.2** The file container has a video stream

- `storage` (optional)
  Reference: [FileStorage](https://sourcey-peertube.pages.dev/api-rest-reference/models/filestorage.md); Type: FileStorage
  
  The file storage type:
    - `0` File system
    - `1` Object storage
  
  
  enum: [0,1]