Skip to content

Commit

Permalink
fix(server): extract motion photo android single frame (immich-app#3903)
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev authored Aug 29, 2023
1 parent d0a0673 commit e510e73
Show file tree
Hide file tree
Showing 7 changed files with 163 additions and 147 deletions.
5 changes: 4 additions & 1 deletion server/src/domain/media/media.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface ResizeOptions {
}

export interface VideoStreamInfo {
index: number;
height: number;
width: number;
rotation: number;
Expand All @@ -18,8 +19,10 @@ export interface VideoStreamInfo {
}

export interface AudioStreamInfo {
index: number;
codecName?: string;
codecType?: string;
frameCount: number;
}

export interface VideoFormat {
Expand Down Expand Up @@ -55,7 +58,7 @@ export interface BitrateDistribution {
}

export interface VideoCodecSWConfig {
getOptions(stream: VideoStreamInfo): TranscodeOptions;
getOptions(videoStream: VideoStreamInfo, audioStream: AudioStreamInfo): TranscodeOptions;
}

export interface VideoCodecHWConfig extends VideoCodecSWConfig {
Expand Down
Loading

0 comments on commit e510e73

Please sign in to comment.