# FFmpeg: localhost vs. web-host

**URL:** <https://www.phphelp.com/t/ffmpeg-localhost-vs-web-host/29883>\
**Category:** General PHP Help\
**Created:** [September 5, 2019, 8:24am UTC](https://www.phphelp.com/t/ffmpeg-localhost-vs-web-host/29883 "2019-09-05T08:24:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juli1403](https://www.phphelp.com/letter_avatar_proxy/v4/letter/j/e8c25b/32.png) [@juli1403](https://www.phphelp.com/u/juli1403)\
**Post date:** [September 5, 2019, 8:24am UTC](https://www.phphelp.com/t/ffmpeg-localhost-vs-web-host/29883/1 "2019-09-05T08:24:23Z")

</div>

Hello everybody,

I have a problem, and I don´t know how to solve it. I have assigned a programmer to help me.  
The task was to create PHP-file that makes from 10 small/short mp4 (10-15 sec) videos one big mp4-file (1:20 min). His PHP-file works perfect at his localhost (xampp).

But on my web-hosted -server it didn’t work. Some Code. The hoster installed the ffmpeg for me and said it works. How is that possible?

\<?php //phpinfo(); $ffmpeg = trim(shell\_exec('which ffmpeg')); //or better yet: $ffmpeg = trim(shell\_exec('type -P ffmpeg')); if (empty($ffmpeg)) { die('ffmpeg not available'); } shell\_exec($ffmpeg . ' -i ...'); ?\>

—\> No Errors

I really need that PHP-file for my work. And I don´t know how to solve it. It would be great if somebody has an idea or advice for me.

Kind regards,  
Julie
