File

lib/common/file/entity/video-file-metadata.entity.ts

Description

The entity stores the video metadata of the file

Index

Properties

Properties

bitrate
Type : number
Decorators :
@Index()
@Column('int', {nullable: true})
codec
Type : string
Decorators :
@Index()
@Column('varchar', {nullable: true})
colorRange
Type : string
Decorators :
@Index()
@Column('varchar', {name: 'color_range', nullable: true})
colorSpace
Type : string
Decorators :
@Index()
@Column('varchar', {name: 'color_space', nullable: true})
container
Type : string
Decorators :
@Index()
@Column('varchar', {nullable: true})
displayAspectRatio
Type : string
Decorators :
@Index()
@Column('varchar', {name: 'display_aspect_ratio', nullable: true})
duration
Type : number
Decorators :
@Index()
@Column('decimal', {nullable: true, default: undefined, precision: 15, scale: 10})
frameRate
Type : string
Decorators :
@Index()
@Column('varchar', {name: 'frame_rate', nullable: true})
height
Type : number
Decorators :
@Index()
@Column('int', {nullable: true, default: undefined})
id
Type : number
Decorators :
@PrimaryGeneratedColumn({zerofill: true})
rotate
Type : string
Decorators :
@Index()
@Column('varchar', {nullable: true})
sampleAspectRatio
Type : string
Decorators :
@Index()
@Column('varchar', {name: 'sample_aspect_ratio', nullable: true})
width
Type : number
Decorators :
@Index()
@Column('int', {nullable: true, default: undefined})
import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";
import { VideoFileMetadata } from "../file.types";

/**
 * The entity stores the video metadata of the file
 */
@Entity("file_metadata_video")
export class VideoFileMetadataEntity implements VideoFileMetadata {
  @PrimaryGeneratedColumn({ zerofill: true })
  id: number;

  @Index()
  @Column("varchar", { nullable: true })
  codec: string;

  @Index()
  @Column("varchar", { nullable: true })
  container: string;

  @Index()
  @Column("int", { nullable: true, default: null })
  width: number;

  @Index()
  @Column("int", { nullable: true, default: null })
  height: number;

  @Index()
  @Column("int", { nullable: true })
  bitrate: number;

  @Index()
  @Column("decimal", {
    nullable: true,
    default: null,
    precision: 15,
    scale: 10,
  })
  duration: number;

  @Index()
  @Column("varchar", { name: "sample_aspect_ratio", nullable: true })
  sampleAspectRatio: string;

  @Index()
  @Column("varchar", { name: "display_aspect_ratio", nullable: true })
  displayAspectRatio: string;

  @Index()
  @Column("varchar", { name: "color_range", nullable: true })
  colorRange: string;

  @Index()
  @Column("varchar", { name: "color_space", nullable: true })
  colorSpace: string;

  @Index()
  @Column("varchar", { name: "frame_rate", nullable: true })
  frameRate: string;

  @Index()
  @Column("varchar", { nullable: true })
  rotate: string;
}

results matching ""

    No results matching ""