
Recherche avancée
Autres articles (48)
-
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (6789)
-
Thumbnail generation in Laravel with FFmpeg
28 mai 2023, par hehehheheheUsing FFmpeg video upload is successful in the database, but the file is not found in the storage directory. I want to make a thumbnail of the video that has just been uploaded using FFmpeg in Laravel. When viewed in the database it has been uploaded, but when viewed in the Laravel storage directory the file does not exist. What is the solution ?


$store = new Post();
$files = $request->file('file');
$ext = $files->getClientOriginalExtension();
if ($ext == 'mp4' || $ext == 'mkv' || $ext == 'webm') {
 $ext = $request->file('file')->extension();
 $final = 'video' . time() . '.' . $ext;
 $request->file('file')->move(storage_path('app/public/uploads/video/'), $final);
 $store->file = $final;

 // For Thumbnail
 $thumbnailName = 'thumbnail' . time() . '.jpg';
 $thumbnailPath = storage_path('app/public/uploads/video/thumbnails/') . $thumbnailName;

 $ffmpegCommand = "ffmpeg -i " . storage_path('app/public/uploads/video/') . $final . " -ss 00:00:01.00 -vframes 1 " . $thumbnailPath;
 exec($ffmpegCommand);

 $store->thumbnail = $thumbnailName;
}



I've looked and tried coding based on the latest documentation, but it still can't run.


-
Flutter app crashes in release mode when initializing FlutterFFmpegConfig() ;
18 février 2021, par Mahmoud EidarousThe app is working on Android on Debug mode(only) with no errors in the logcat/terminal.
But when I tested it on iOS (even in debug mode), it crashes on a specific page.
After long tests, I could know that this line was causing the app to crash.


FlutterFFmpegConfig _flutterFFmpegConfig = FlutterFFmpegConfig();



If I comment that line, the app won't crash, but I need that line to manipulate videos in the app.


I'm using
flutter_ffmpeg: ^0.3.0
inpubspec.yaml
, andfull-gpl
package is set inandroid\build.gradle


ext {
 flutterFFmpegPackage = "full-gpl"
}



Related package initializations code snippet :


final FlutterFFmpegConfig _flutterFFmpegConfig = new FlutterFFmpegConfig();
final FlutterFFmpeg _flutterFFmpeg = new FlutterFFmpeg();
final FlutterFFprobe _flutterFFprobe = new FlutterFFprobe();



I'm not sure, but it seems like the app can't handle creating all these objects at the same class !
Anyone familiar with this problem ?


-
Problems cropping videos with ffmpeg -ss -t
8 décembre 2016, par Alex BollbachI have been trying to figure out how to precisely crop out sub-sections of a video
final.mp4
, for example a cropped video with range [0.2, 0.28] or [9.1, 10.2]. So I’ve been using ffmpeg with -ss and -t options. The following command (or some similar form) is what I’ve seen prescribed :ffmpeg -y -i final.mp4 -ss 00:00:01 -t 00:00:01.5 -acodec copy -vcodec copy crop1.mp4
What I expect is a cropped video of length 1.5 starting at time
1.0
, but I get a broken video that doesn’t play. Or I’ll try :ffmpeg -y -i final.mp4 -ss 1 -c copy -t 1.5 crop1.mp4
and get a video with the audio cropped to 1.5 seconds but the video lasting much longer freeze framed.
The point is this should be a relatively straightforward operation but I’m running into problems at every turn. What is wrong with these commands ? My original video is a 7 minute youtube ripped mp4 which I trimmed down to 10 seconds (this seemed to work). But now further finer-grain trimming of that video is showing confusing behavior. Perhaps my video file is somehow in a bad state from the first trimming ?