Use faster method for extracting cover image.

This commit is contained in:
flash 2023-01-29 21:29:20 +00:00
parent fc80933561
commit ff2ce4d3ac
1 changed files with 3 additions and 2 deletions

View File

@ -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 {