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
李帅
2022-03-23 17:53:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9c35fe7c6f6ce331bd1845819cdbe35938d56f70
9c35fe7c
1 parent
6e891a66
1.更改ffmpeg 地址
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
app/Jobs/MakeVideo.php
app/Jobs/MakeVideo.php
View file @
9c35fe7
...
...
@@ -95,8 +95,7 @@ class MakeVideo implements ShouldQueue
escapeshellarg
(
$video
);
// 执行合成
$this
->
execmd
(
$cmd
);
if
(
$this
->
execmd
(
$cmd
)){
$video2
=
$this
->
getTempPath
();
$cmd
=
$this
->
ffmpeg
.
' -y -i '
.
escapeshellarg
(
$video
)
.
' -vf '
.
...
...
@@ -117,7 +116,7 @@ class MakeVideo implements ShouldQueue
Immerse
::
query
()
->
create
([
'user_id'
=>
1
,
'title'
=>
''
,
'content'
=>
$this
->
adminMakeVideo
->
feel
,
'content'
=>
$this
->
adminMakeVideo
->
feel
??
''
,
'url'
=>
$video2
,
'type'
=>
$this
->
adminMakeVideo
->
type
==
1
?
2
:
1
,
'duration'
=>
$video_info
[
'format'
][
'duration'
],
...
...
@@ -128,9 +127,12 @@ class MakeVideo implements ShouldQueue
'bgm'
=>
$this
->
adminMakeVideo
->
bgm_url
,
]);
}
else
{
Log
::
info
(
'
'
);
Log
::
info
(
'退出1
'
);
return
;
}
}
else
{
Log
::
info
(
'退出2'
);
}
}
...
...
Please
register
or
login
to post a comment