
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (67)
-
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 (10368)
-
Combining multiple image files into a video while using filter_complex to apply a watermark
14 décembre 2017, par GeuisI’m trying to combine two ffmpeg operations into a single one.
Currently I have two sets of ffmpeg commands that first generate a video from existing images, then runs that video through ffmpeg again to apply a watermark.
I’d like to see if its possible to combine these into a single operation.
# Create the source video
ffmpeg -y \
-framerate 1/1 \
-i layer-%d.png \
-r 30 -vcodec libx264 -preset ultrafast -crf 23 -pix_fmt yuv420p \
output.mp4
# Apply the watermark and render the final output
ffmpeg -y \
-i output.mp4 \
-i logo.png \
-filter_complex "[1:v][0:v]scale2ref=40:40[a][b];[b][a]overlay=(80):(main_h-200-80)" \
final.mp4 -
How to extract audio from a video in Flutter ?
14 janvier, par Mohammed BekeleI have an image picker in Flutter to get the video from the device, and then I created a function to extract the audio using ffmpeg_kit_flutter package.


Future<void> _convertVideoToAudio() async {
 if (_pickedVideo != null) {
 bool? permissionGranted = await _requestStoragePermission();
 if (permissionGranted != true) {
 print("Storage permission denied.");
 return;
 }

 String videoPath = _pickedVideo!.path;
 _outputPath = await getOutputFilePath(); // Get platform-specific path

 try {
 // Ensure the output directory exists
 await Directory(path.dirname(_outputPath)).create(recursive: true);

 await FFmpegKit.execute(
 "-i $videoPath -vn -c:a libmp3lame -q:a 2 $_outputPath"); // FFmpeg command
 print("Video converted to audio successfully!");
 _showSuccessDialog(); // Display success dialog

 try {
 final String fileName = path.basename(_outputPath);
 final transcription =
 await _sendAudioForTranscription(_outputPath, fileName);

 if (transcription != null) {
 setState(() {
 _transcription = transcription;
 });
 } else {
 setState(() {
 _transcription = "Transcription failed";
 });
 }
 } catch (e) {
 print('Error in transcription request: $e');
 setState(() {
 _transcription = "Network request failed";
 });
 }
 } catch (e) {
 print("Error converting video: $e");
 _showErrorDialog(); // Display error dialog
 } finally {
 setState(() {
 _pickedVideo = null; // Clear selected video
 });
 }
 } else {
 print("Please pick a video first.");
 }
 }
</void>


and for getting the path I have this function


Future<string> getOutputFilePath() async {
 final directory = await getApplicationDocumentsDirectory();
 final downloadsDirectory = Directory('${directory.path}/downloads');
 if (!(await downloadsDirectory.exists())) {
 await downloadsDirectory.create(recursive: true);
 }
 final String fileName = path
 .basename(_pickedVideo!.path)
 .replaceAll('.mp4', '.mp3'); // Replace extension
 final filePath = '${downloadsDirectory.path}/$fileName';
 return filePath;
 }
</string>


but this is not working somehow. Because after I get the audio I'm uploading it to a server with http, then it displays that there is no path where the audio supposed to be.


-
ffmpeg complex filter - multiple crops on black background
31 octobre 2017, par Kevin O'HaraWe are attempting to process a video file by cropping it into several pieces and arranging it on a black background which is exactly 1920x1080. The following command runs but it never completes and we have to kill the process.
Is there something wrong with how we’re trying to do this ?
ffmpeg -i in.mov -y -filter_complex "\
color=s=1920x1080:c=black[bg];\
[0:v]crop=w=1920:h=ih:x=0:y=0[crop1];\
[0:v]crop=w=iw-1920:h=ih:x=1920:y=0[crop2];\
[bg][crop1]overlay=x=0:y=0[out1];\
[out1][crop2]overlay=x=0:y=h[final]" \
-map [final] out.mov