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:21:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4fa18f593aa9991432fffdac51407d7d78a5b0c6
4fa18f59
1 parent
eb8df8a6
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 @
4fa18f5
...
...
@@ -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
)
.
$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
);
' -filter_complex amix=inputs=2:duration=first:dropout_transition=2'
.
' -ar 48000 -ab 64k '
.
escapeshellarg
(
$audio
);
if
(
!
$this
->
execCmd
(
$cmd
))
return
;
$audio_input
=
' -i '
.
escapeshellarg
(
$audio
);
...
...
@@ -96,7 +96,7 @@ class AdminMakeImmerse implements ShouldQueue
$audio
=
$this
->
getAbsolutePath
(
$this
->
getTempPath
(
'.mp3'
,
'audio'
));
$cmd
=
$this
->
ffmpeg
.
' -y -i '
.
escapeshellarg
(
$audio_empty
)
.
' -
y -
i '
.
escapeshellarg
(
$bgm
)
.
' -i '
.
escapeshellarg
(
$bgm
)
.
' -filter_complex amix=inputs=2:duration=first:dropout_transition=2 '
.
'-ar 48000 -ab 64k '
.
escapeshellarg
(
$audio
);
if
(
!
$this
->
execCmd
(
$cmd
))
return
;
...
...
Please
register
or
login
to post a comment