php - Use a video's first frame as <image> source
Get the solution ↓↓↓I'm trying to generate a downloadable pdf report from a "video" report (basically a page with some info and a video). When you download it, it should have the first frame of the video being displayed.
I need it to be in an<image>
tag, because DomPDF doesn't display a<video>
tag that has preloaded image....
I'm on a shared hosting, I have php available, but that's about it..
I tried FFMpeg to get the first frame of the video, but I can't get it to work. It has some weird error:
Fatal error: Uncaught Alchemy\BinaryDriver\Exception\ExecutableNotFoundException: Executable not found, proposed : avprobe, ffprobe in /home/aquady1q/public_html/verslagen/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php:159 Stack trace: #0 /home/aquady1q/public_html/verslagen/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Driver/FFProbeDriver.php(48): Alchemy\BinaryDriver\AbstractBinary::load(Array, NULL, Object(Alchemy\BinaryDriver\Configuration)) #1 /home/aquady1q/public_html/verslagen/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(226): FFMpeg\Driver\FFProbeDriver::create(Object(Alchemy\BinaryDriver\Configuration), NULL) #2 /home/aquady1q/public_html/verslagen/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFMpeg.php(132): FFMpeg\FFProbe::create(Array, NULL, Object(Doctrine\Common\Cache\ArrayCache)) #3 /home/aquady1q/public_html/verslagen/api/videos/thumb.php(17): FFMpeg\FFMpeg::create() #4 {main} Next FFMpeg\Exception\ExecutableNotFoundException: Unable to load FFProbe in /home/aquady1q/public_html/ve in /home/aquady1q/public_html/verslagen/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Driver/FFProbeDriver.php on line 50
Link to the api if you need it: https://aquadynamica.be/verslagen/api/videos/thumb.php?video=video2_6102bf872f254.mp4
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: uncaught mysqli_sql_exception
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.