PHP-FFMpeg/PHP-FFMpeg

how to extract frames without save a video?

開放

#514 建立於 2018年4月9日

 (3 則留言) (1 個反應) (0 位負責人)PHP (915 個分叉)batch import
Featurehelp wanted

倉庫指標

星標
 (4,641 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

the document for extractMultipleFrames is not clear, since we add the folder to method extractMultipleFrames, why we need to add another path to save method? the folder is the place to save all frames, but specify it there doesn't work as expect, we have to extract frames when transcode a video into another format, this is not what we need.

$video
    ->filters()
    ->extractMultipleFrames(FFMpeg\Filters\Video\ExtractMultipleFramesFilter::FRAMERATE_EVERY_10SEC, '/path/to/destination/folder/')
    ->synchronize();

$video
    ->save(new FFMpeg\Format\Video\X264(), '/path/to/new/file');

貢獻者指南