Showing
1 changed file
with
9 additions
and
3 deletions
... | @@ -10,6 +10,7 @@ use Illuminate\Contracts\Queue\ShouldQueue; | ... | @@ -10,6 +10,7 @@ use Illuminate\Contracts\Queue\ShouldQueue; |
10 | use Illuminate\Foundation\Bus\Dispatchable; | 10 | use Illuminate\Foundation\Bus\Dispatchable; |
11 | use Illuminate\Queue\InteractsWithQueue; | 11 | use Illuminate\Queue\InteractsWithQueue; |
12 | use Illuminate\Queue\SerializesModels; | 12 | use Illuminate\Queue\SerializesModels; |
13 | +use Illuminate\Support\Facades\Log; | ||
13 | use Illuminate\Support\Facades\Storage; | 14 | use Illuminate\Support\Facades\Storage; |
14 | 15 | ||
15 | class MakeVideo implements ShouldQueue | 16 | class MakeVideo implements ShouldQueue |
... | @@ -18,11 +19,11 @@ class MakeVideo implements ShouldQueue | ... | @@ -18,11 +19,11 @@ class MakeVideo implements ShouldQueue |
18 | 19 | ||
19 | public $adminMakeVideo; | 20 | public $adminMakeVideo; |
20 | 21 | ||
21 | - protected $ffmpeg = '/Users/lishuai/Documents/ffmpeg/ffmpeg'; | 22 | + protected $ffmpeg; |
22 | 23 | ||
23 | - protected $ffprobe = '/Users/lishuai/Documents/ffmpeg/ffprobe'; | 24 | + protected $ffprobe; |
24 | 25 | ||
25 | - protected $ffplay = '/Users/lishuai/Documents/ffmpeg/ffplay'; | 26 | + protected $ffplay; |
26 | 27 | ||
27 | /** | 28 | /** |
28 | * Create a new job instance. | 29 | * Create a new job instance. |
... | @@ -32,6 +33,10 @@ class MakeVideo implements ShouldQueue | ... | @@ -32,6 +33,10 @@ class MakeVideo implements ShouldQueue |
32 | public function __construct(AdminMakeVideo $adminMakeVideo) | 33 | public function __construct(AdminMakeVideo $adminMakeVideo) |
33 | { | 34 | { |
34 | $this->adminMakeVideo = $adminMakeVideo; | 35 | $this->adminMakeVideo = $adminMakeVideo; |
36 | + | ||
37 | + $this->ffmpeg = env('FFMPEG_CMD'); | ||
38 | + $this->ffprobe = env('FFPROBE_CMD'); | ||
39 | + $this->ffplay = env('FFPLAY_CMD'); | ||
35 | } | 40 | } |
36 | 41 | ||
37 | /** | 42 | /** |
... | @@ -123,6 +128,7 @@ class MakeVideo implements ShouldQueue | ... | @@ -123,6 +128,7 @@ class MakeVideo implements ShouldQueue |
123 | 'bgm' => $this->adminMakeVideo->bgm_url, | 128 | 'bgm' => $this->adminMakeVideo->bgm_url, |
124 | ]); | 129 | ]); |
125 | } else { | 130 | } else { |
131 | + Log::info(''); | ||
126 | return; | 132 | return; |
127 | } | 133 | } |
128 | 134 | ... | ... |
-
Please register or login to post a comment