Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2023-05-19 00:18:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eb8df8a65bf289b510c0c5f5e203cc2b11cb19a7
eb8df8a6
1 parent
400c842e
1.测试一下音频淡出效果
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
app/Jobs/AdminMakeImmerse.php
app/Jobs/AdminMakeImmerse.php
View file @
eb8df8a
...
...
@@ -68,11 +68,11 @@ class AdminMakeImmerse implements ShouldQueue
if
(
$is_bgm
)
{
// 有背景音 融合
$audio
=
$this
->
getAbsolutePath
(
$this
->
getTempPath
(
'.mp3'
,
'audio'
));
$cmd
=
$this
->
ffmpeg
.
' -
y -
i '
.
escapeshellarg
(
$file
)
.
' -
y -
i '
.
escapeshellarg
(
$bgm
)
.
' -filter_complex amix=inputs=2:duration=first:dropout_transition=2
;afade=t=out:st=33:d=5
'
.
' -ar 48000 -ab 64k '
.
escapeshellarg
(
$audio
);
$cmd
=
$this
->
ffmpeg
.
' -y '
.
' -i '
.
escapeshellarg
(
$file
)
.
' -i '
.
escapeshellarg
(
$bgm
)
.
' -filter_complex amix=inputs=2:duration=first:dropout_transition=2
[amix];[amix]afade=t=out:st=33:d=5[afade]
'
.
' -
map[afade] -
ar 48000 -ab 64k '
.
escapeshellarg
(
$audio
);
if
(
!
$this
->
execCmd
(
$cmd
))
return
;
$audio_input
=
' -i '
.
escapeshellarg
(
$audio
);
...
...
Please
register
or
login
to post a comment