Skip to content

Commit

Permalink
fix(server): copy video projection metadata for 360 videos (#12376)
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev authored Sep 6, 2024
1 parent 0280381 commit aa0097b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/services/media.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,7 @@ describe(MediaService.name, () => {
'-fps_mode passthrough',
'-map 0:0',
'-map 0:1',
'-strict unofficial',
'-v verbose',
'-vf scale=-2:720,format=yuv420p',
'-preset 12',
Expand Down Expand Up @@ -1372,6 +1373,7 @@ describe(MediaService.name, () => {
'-fps_mode passthrough',
'-map 0:0',
'-map 0:1',
'-strict unofficial',
'-g 256',
'-v verbose',
'-vf format=nv12,hwupload_cuda,scale_cuda=-2:720',
Expand Down Expand Up @@ -1532,6 +1534,7 @@ describe(MediaService.name, () => {
'-fps_mode passthrough',
'-map 0:0',
'-map 0:1',
'-strict unofficial',
'-bf 7',
'-refs 5',
'-g 256',
Expand Down Expand Up @@ -1716,6 +1719,7 @@ describe(MediaService.name, () => {
'-fps_mode passthrough',
'-map 0:0',
'-map 0:1',
'-strict unofficial',
'-g 256',
'-v verbose',
'-vf format=nv12,hwupload,scale_vaapi=-2:720',
Expand Down Expand Up @@ -1913,6 +1917,7 @@ describe(MediaService.name, () => {
'-fps_mode passthrough',
'-map 0:0',
'-map 0:1',
'-strict unofficial',
'-g 256',
'-v verbose',
'-vf scale_rkrga=-2:720:format=nv12:afbc=1',
Expand Down
1 change: 1 addition & 0 deletions server/src/utils/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class BaseConfig implements VideoCodecSWConfig {
'-fps_mode passthrough',
// explicitly selects the video stream instead of leaving it up to FFmpeg
`-map 0:${videoStream.index}`,
'-strict unofficial',
];

if (audioStream) {
Expand Down

0 comments on commit aa0097b

Please sign in to comment.