Use faster method for extracting cover image.
This commit is contained in:
parent
fc80933561
commit
ff2ce4d3ac
1 changed files with 3 additions and 2 deletions
|
@ -15,10 +15,11 @@ final class FFMPEG {
|
|||
}
|
||||
|
||||
public static function grabFirstAudioCover(string $url): Stream {
|
||||
return new ProcessStream(
|
||||
return self::grabFirstVideoFrame($url);
|
||||
/*return new ProcessStream(
|
||||
sprintf('ffmpeg -i %s -an -c:v png -f image2pipe -', escapeshellarg($url)),
|
||||
'rb'
|
||||
);
|
||||
);*/
|
||||
}
|
||||
|
||||
public static function probe(string $url): ?object {
|
||||
|
|
Loading…
Reference in a new issue