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:37:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6e891a66f2147e8eb74b7324f0b7ce8b3f6976c9
6e891a66
1 parent
19eaa65f
1.更改ffmpeg 地址
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
app/Jobs/MakeVideo.php
app/Jobs/MakeVideo.php
View file @
6e891a6
...
...
@@ -10,6 +10,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use
Illuminate\Foundation\Bus\Dispatchable
;
use
Illuminate\Queue\InteractsWithQueue
;
use
Illuminate\Queue\SerializesModels
;
use
Illuminate\Support\Facades\Log
;
use
Illuminate\Support\Facades\Storage
;
class
MakeVideo
implements
ShouldQueue
...
...
@@ -18,11 +19,11 @@ class MakeVideo implements ShouldQueue
public
$adminMakeVideo
;
protected
$ffmpeg
=
'/Users/lishuai/Documents/ffmpeg/ffmpeg'
;
protected
$ffmpeg
;
protected
$ffprobe
=
'/Users/lishuai/Documents/ffmpeg/ffprobe'
;
protected
$ffprobe
;
protected
$ffplay
=
'/Users/lishuai/Documents/ffmpeg/ffplay'
;
protected
$ffplay
;
/**
* Create a new job instance.
...
...
@@ -32,6 +33,10 @@ class MakeVideo implements ShouldQueue
public
function
__construct
(
AdminMakeVideo
$adminMakeVideo
)
{
$this
->
adminMakeVideo
=
$adminMakeVideo
;
$this
->
ffmpeg
=
env
(
'FFMPEG_CMD'
);
$this
->
ffprobe
=
env
(
'FFPROBE_CMD'
);
$this
->
ffplay
=
env
(
'FFPLAY_CMD'
);
}
/**
...
...
@@ -123,6 +128,7 @@ class MakeVideo implements ShouldQueue
'bgm'
=>
$this
->
adminMakeVideo
->
bgm_url
,
]);
}
else
{
Log
::
info
(
''
);
return
;
}
...
...
Please
register
or
login
to post a comment