Closed SergeyKozlov closed 6 years ago
In what kind of class do you use this code? It doesn’t seem Laravel related.
I just want to transcode the video file into the HLS format. What do you need to do for this?
The question is how do I use the product laravel-ffmpeg without Laravel?
This project should be used with Laravel. You should use the underlying package: https://github.com/PHP-FFMpeg/PHP-FFMpeg
When I use the PHP-FFMpeg. I'm getting a conflict of versions in the composer
It's my composer.json: { "require": { ... "php-ffmpeg/php-ffmpeg": "dev-master", "pbmedia/laravel-ffmpeg": "dev-master", ... } }
Hey. I use the product laravel-ffmpeg. Here's my attempt to use the code:
But I get the error: Fatal error: Uncaught RuntimeException: A facade root has not been set. in /usr/share/nginx/html/vendor/illuminate/support/Facades/Facade.php:218 Stack trace:
0 /usr/share/nginx/html/system/test/ffmpeg_hls2.php(87): Illuminate\Support\Facades\Facade::__callStatic('open', Array)
#1 {main} thrown in /usr/share/nginx/html/vendor/illuminate/support/Facades/Facade.php on line 218
What did I do wrong? Thank you.