mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 01:19:45 +00:00
feat(settings): add FFmpeg threads setting for media processing (#415)
* feat(settings): add FFmpeg threads setting for media processing * style(settings): add bottom padding to media processing page
This commit is contained in:
@@ -187,6 +187,7 @@ describe('transcodeVideoWorkflow', () => {
|
||||
transcode: {
|
||||
videoStrategy: 'best_match',
|
||||
hardwareAcceleration: 'auto',
|
||||
threads: 8,
|
||||
},
|
||||
},
|
||||
createdAt: new Date(),
|
||||
@@ -238,6 +239,7 @@ describe('transcodeVideoWorkflow', () => {
|
||||
filePath: '/tmp/video.mp4',
|
||||
hardwareAcceleration: 'auto',
|
||||
sourceVideoBitrate: 850000,
|
||||
threads: 8,
|
||||
}),
|
||||
)
|
||||
})
|
||||
@@ -252,7 +254,9 @@ describe('transcodeVideoWorkflow', () => {
|
||||
output: null,
|
||||
payload: {
|
||||
projectId: 'proj-1',
|
||||
transcode: {},
|
||||
transcode: {
|
||||
threads: 4,
|
||||
},
|
||||
},
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
@@ -303,6 +307,7 @@ describe('transcodeVideoWorkflow', () => {
|
||||
expect(mockActivities.transcodeAudioActivity).toHaveBeenCalledWith({
|
||||
assetKey: 'audio.wav',
|
||||
filePath: '/tmp/video.mp4',
|
||||
threads: 4,
|
||||
})
|
||||
|
||||
expect(mockActivities.updateAssetMediaActivity).toHaveBeenCalledWith({
|
||||
|
||||
Reference in New Issue
Block a user