Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ligonsker's avatar

Does Laravel have a built-in way to get uploaded video file duration?

Hello,

If I want to get a video file's duration, is ID3 still my only option? Or Laravel has now a built-in feature for that?

Thanks

0 likes
2 replies
errorhero's avatar

Hi

Yes, Laravel doesn't have a built-in method specifically for retrieving video file duration. However, you can utilize third-party packages like PHP-FFMpeg or ffmpeg-php to extract duration information from uploaded video files. These packages integrate seamlessly with Laravel and provide functionalities to handle video processing tasks efficiently. Thanks

Please or to participate in this conversation.