|
@@ -232,7 +232,14 @@ describe(MediaService.name, () => {
|
|
'/original/path.ext',
|
|
'/original/path.ext',
|
|
'upload/encoded-video/user-id/asset-id.mp4',
|
|
'upload/encoded-video/user-id/asset-id.mp4',
|
|
{
|
|
{
|
|
- outputOptions: ['-vcodec h264', '-acodec aac', '-movflags faststart', '-preset ultrafast', '-crf 23'],
|
|
|
|
|
|
+ outputOptions: [
|
|
|
|
+ '-vcodec h264',
|
|
|
|
+ '-acodec aac',
|
|
|
|
+ '-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
|
|
+ '-preset ultrafast',
|
|
|
|
+ '-crf 23',
|
|
|
|
+ ],
|
|
twoPass: false,
|
|
twoPass: false,
|
|
},
|
|
},
|
|
);
|
|
);
|
|
@@ -261,7 +268,14 @@ describe(MediaService.name, () => {
|
|
'/original/path.ext',
|
|
'/original/path.ext',
|
|
'upload/encoded-video/user-id/asset-id.mp4',
|
|
'upload/encoded-video/user-id/asset-id.mp4',
|
|
{
|
|
{
|
|
- outputOptions: ['-vcodec h264', '-acodec aac', '-movflags faststart', '-preset ultrafast', '-crf 23'],
|
|
|
|
|
|
+ outputOptions: [
|
|
|
|
+ '-vcodec h264',
|
|
|
|
+ '-acodec aac',
|
|
|
|
+ '-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
|
|
+ '-preset ultrafast',
|
|
|
|
+ '-crf 23',
|
|
|
|
+ ],
|
|
twoPass: false,
|
|
twoPass: false,
|
|
},
|
|
},
|
|
);
|
|
);
|
|
@@ -279,6 +293,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec h264',
|
|
'-vcodec h264',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=-2:720',
|
|
'-vf scale=-2:720',
|
|
'-preset ultrafast',
|
|
'-preset ultrafast',
|
|
'-crf 23',
|
|
'-crf 23',
|
|
@@ -299,7 +314,14 @@ describe(MediaService.name, () => {
|
|
'/original/path.ext',
|
|
'/original/path.ext',
|
|
'upload/encoded-video/user-id/asset-id.mp4',
|
|
'upload/encoded-video/user-id/asset-id.mp4',
|
|
{
|
|
{
|
|
- outputOptions: ['-vcodec h264', '-acodec aac', '-movflags faststart', '-preset ultrafast', '-crf 23'],
|
|
|
|
|
|
+ outputOptions: [
|
|
|
|
+ '-vcodec h264',
|
|
|
|
+ '-acodec aac',
|
|
|
|
+ '-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
|
|
+ '-preset ultrafast',
|
|
|
|
+ '-crf 23',
|
|
|
|
+ ],
|
|
twoPass: false,
|
|
twoPass: false,
|
|
},
|
|
},
|
|
);
|
|
);
|
|
@@ -318,6 +340,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec h264',
|
|
'-vcodec h264',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=720:-2',
|
|
'-vf scale=720:-2',
|
|
'-preset ultrafast',
|
|
'-preset ultrafast',
|
|
'-crf 23',
|
|
'-crf 23',
|
|
@@ -340,6 +363,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec h264',
|
|
'-vcodec h264',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=-2:720',
|
|
'-vf scale=-2:720',
|
|
'-preset ultrafast',
|
|
'-preset ultrafast',
|
|
'-crf 23',
|
|
'-crf 23',
|
|
@@ -362,6 +386,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec h264',
|
|
'-vcodec h264',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=-2:720',
|
|
'-vf scale=-2:720',
|
|
'-preset ultrafast',
|
|
'-preset ultrafast',
|
|
'-crf 23',
|
|
'-crf 23',
|
|
@@ -392,6 +417,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec h264',
|
|
'-vcodec h264',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=-2:720',
|
|
'-vf scale=-2:720',
|
|
'-preset ultrafast',
|
|
'-preset ultrafast',
|
|
'-crf 23',
|
|
'-crf 23',
|
|
@@ -419,6 +445,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec h264',
|
|
'-vcodec h264',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=-2:720',
|
|
'-vf scale=-2:720',
|
|
'-preset ultrafast',
|
|
'-preset ultrafast',
|
|
'-b:v 3104k',
|
|
'-b:v 3104k',
|
|
@@ -443,6 +470,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec h264',
|
|
'-vcodec h264',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=-2:720',
|
|
'-vf scale=-2:720',
|
|
'-preset ultrafast',
|
|
'-preset ultrafast',
|
|
'-crf 23',
|
|
'-crf 23',
|
|
@@ -468,6 +496,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec vp9',
|
|
'-vcodec vp9',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=-2:720',
|
|
'-vf scale=-2:720',
|
|
'-cpu-used 5',
|
|
'-cpu-used 5',
|
|
'-row-mt 1',
|
|
'-row-mt 1',
|
|
@@ -496,6 +525,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec vp9',
|
|
'-vcodec vp9',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=-2:720',
|
|
'-vf scale=-2:720',
|
|
'-cpu-used 5',
|
|
'-cpu-used 5',
|
|
'-row-mt 1',
|
|
'-row-mt 1',
|
|
@@ -521,6 +551,7 @@ describe(MediaService.name, () => {
|
|
'-vcodec h264',
|
|
'-vcodec h264',
|
|
'-acodec aac',
|
|
'-acodec aac',
|
|
'-movflags faststart',
|
|
'-movflags faststart',
|
|
|
|
+ '-fps_mode passthrough',
|
|
'-vf scale=-2:720',
|
|
'-vf scale=-2:720',
|
|
'-preset ultrafast',
|
|
'-preset ultrafast',
|
|
'-threads 2',
|
|
'-threads 2',
|