
Recherche avancée
Autres articles (96)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (11139)
-
Anomalie #2847 : Quand on traduit un article les « auteurs » s’accumulent
26 février 2013, par cedric -Quel était le comportement de SPIP 2 ? Uniquement auteur B (auteur de l’article original) pour la nouvelle traduction ou uniquement auteur A qui traduit ?
-
Laravel not recognize laravel-ffmpeg methods
5 mars 2021, par SirsemyI'd like to put a watermark to a streaming video with Laravel-ffmpeg repo from Github, but it doesn't recognize its own methods.
I've installed the package with composer according to the repo-s readme.md file from here : https://github.com/pascalbaljetmedia/laravel-ffmpeg



I know that there was a similar question here. But nobody answered the question and I've got the method inside the files.



The installation worked properly.
And to stream the video I use these codes : https://codesamplez.com/programming/php-html5-video-streaming-tutorial



But when I put the code above to the
open()
method, Laravel doesn't find thefromDisk
method from the FFMpeg.php file.


FFMpeg::fromDisk('videos')
 ->open('steve_howe.mp4')
 ->addFilter($clipFilter)
 ->export()
 ->toDisk('converted_videos')
 ->inFormat(new \FFMpeg\Format\Video\X264)
 ->save('short_steve.mkv');




My composer.json look like this :



{
 "name": "laravel/laravel",
 "type": "project",
 "description": "The Laravel Framework.",
 "keywords": [
 "framework",
 "laravel"
 ],
 "license": "MIT",
 "require": {
 "php": "^7.1.3",
 "fideloper/proxy": "^4.0",
 "illuminate/config": "5.8.*",
 "illuminate/filesystem": "5.8.*",
 "illuminate/log": "5.8.*",
 "illuminate/support": "5.8.*",
 "laravel/framework": "5.8.*",
 "laravel/tinker": "^1.0",
 "league/flysystem": "~1.0",
 "pbmedia/laravel-ffmpeg": "^4.0",
 "php-ffmpeg/php-ffmpeg": "^0.13",
 "symfony/process": "~4.0"
 },
 "require-dev": {
 "beyondcode/laravel-dump-server": "^1.0",
 "filp/whoops": "^2.0",
 "fzaninotto/faker": "^1.4",
 "mockery/mockery": "^1.0",
 "nunomaduro/collision": "^3.0",
 "phpunit/phpunit": "^7.5"
 },
 "config": {
 "optimize-autoloader": true,
 "preferred-install": "dist",
 "sort-packages": true
 },
 "extra": {
 "laravel": {
 "dont-discover": []
 }
 },
 "autoload": {
 "psr-4": {
 "App\\": "app/"
 },
 "classmap": [
 "database/seeds",
 "database/factories"
 ]
 },
 "autoload-dev": {
 "psr-4": {
 "Tests\\": "tests/"
 }
 },
 "minimum-stability": "dev",
 "prefer-stable": true,
 "scripts": {
 "post-autoload-dump": [
 "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
 "@php artisan package:discover --ansi"
 ],
 "post-root-package-install": [
 "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
 ],
 "post-create-project-cmd": [
 "@php artisan key:generate --ansi"
 ]
 }
}




How could I say to Laravel that recognize the methods ?



Thank you for the help in advance


-
How to save stream with ffmpeg to chunks, But in temporary name and change the name after to const
10 janvier, par EliyaI use ffmpeg to record IP camera and I save every 10 minutes to mp4 file.
This is my code :


ffmpeg -rtsp_transport tcp -i "rtsp://$user_name:$password@$IP:$port/cam/realmonitor?channel=1&subtype=1" -c copy -map 0 -reset_timestamps 1 -f segment -segment_time 600 -strftime 1 "%Y-%m-%d__%H:%M:%S.mp4"



Is there a way to save the file in temporary name until 10 minutes is done ?
I mean when the recording of 10 minutes didn't end the suffix will be bla.temp and when the recording of the 10 minutes is over, ffmpeg will change the suffix to .mp4 ?
is that possible ?