
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (61)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (6873)
-
Trying to merge two videos from my photo roll with Flutter ffmpeg without success
4 avril 2023, par Stéphane de LucaMy goal is to merge too video I pick from my photo roll.
My code starts as follows :


// videos[0] contains: "content://media/external/video/media/2779"
 final v1 = await videos[0].getMediaUrl();
 if (v1 == null) return;
 final v1Path = await LecleFlutterAbsolutePath.getAbsolutePath(uri: v1);



But printing
v1Path
give a path withjpeg
extension :
/data/user/0/com.example.shokaze/cache/OutputFile_1669939088711.jpeg' which I though would have bear
mp4` as it is a video.

Why is it so ?


Another question I have is how can I make a relevant path so that the ffmpeg video appears in my roll after its creation ? Should I do the following and provide
outputPath
to the code ?

The command it executes is :

-i /data/user/0/com.example.shokaze/cache/OutputFile_1669940421875.jpeg -i /data/user/0/com.example.shokaze/cache/OutputFile_1669940428723.jpeg -filter_complex '[0:0][1:0]concat=n=2:v=1:a=0[out]' -map '[out]' /data/user/0/com.example.shokaze/app_flutter/output.mp4


And I get an error :

I/flutter (30190): error 1


My code is as follows :


String output = "content://media/external/video/media/output";
 final outputPath = await LecleFlutterAbsolutePath.getAbsolutePath(uri: output);
 if (outputPath == null) return;



The full code is as follows :


// Makes the final video by merging all videos from the mixing table
 void makeFinalVideo() async {
 if (videos.length < 2) return;

 final v1 = await videos[0].getMediaUrl();
 if (v1 == null) return;
 final v1Path = await LecleFlutterAbsolutePath.getAbsolutePath(uri: v1);
 if (v1Path == null) return;
 //String v1 = "";
 final v2 = await videos[1].getMediaUrl();
 if (v2 == null) return;
 final v2Path = await LecleFlutterAbsolutePath.getAbsolutePath(uri: v2);
 if (v2Path == null) return;
 String output = "content://media/external/video/media/output";
 final outputPath = "";
 // await LecleFlutterAbsolutePath.getAbsolutePath(uri: output);
 // if (outputPath == null) return;

 Video.merge(v1Path, v2Path, outputPath);
 }



class Video {
 /// Merges the video [v1] with [v2] as [output] video located in app doc path
 static void merge(String v1, String v2, String output) async {
 final appDocDir = await getApplicationDocumentsDirectory();

 //final appDir = await syspaths.getApplicationDocumentsDirectory();
 String rawDocumentPath = appDocDir.path;
 final outputPath = '$rawDocumentPath/output.mp4';

 final command =
 '-i $v1 -i $v2 -filter_complex \'[0:0][1:0]concat=n=2:v=1:a=0[out]\' -map \'[out]\' $outputPath';
 //await execute(command);
 try {
 final r = await FFmpegKit.execute(command);

 //.then((rc) => print("FFmpeg process exited with rc $rc"));
 print("Result: $r");
 } catch (e) {
 print("Exception: $e");
 }
 }
}



-
B2B Marketing Attribution Guide : How to Master It in 2024
21 mai 2024, par Erin -
Anomalie #4737 : Erreur recherche dans les forums dans le privé
9 juillet 2021, par JLuc -Avec ou sans "plat", le SQL généré est :
- <span class="CodeRay"><span class="class">SELECT</span> forum.id_forum, resultats.points <span class="keyword">AS</span> points, forum.statut
- <span class="keyword">FROM</span> spip_forum <span class="keyword">AS</span> <span class="string"><span class="delimiter">`</span><span class="content">forum</span><span class="delimiter">`</span></span>
- <span class="keyword">INNER</span> <span class="keyword">JOIN</span> spip_resultats <span class="keyword">AS</span> resultats <span class="keyword">ON</span> ( resultats.id = forum.id_forum )
- <span class="keyword">WHERE</span> <span class="keyword">NOT</span>((forum.statut <span class="keyword">LIKE</span> <span class="string"><span class="delimiter">'</span><span class="content">priv%</span><span class="delimiter">'</span></span>))
- <span class="keyword">AND</span> (resultats.recherche=<span class="string"><span class="delimiter">'</span><span class="content">c7b4cacf770e2915</span><span class="delimiter">'</span></span> <span class="keyword">AND</span> resultats.table_objet=<span class="string"><span class="delimiter">'</span><span class="content">forum</span><span class="delimiter">'</span></span> <span class="keyword">AND</span> resultats.serveur=<span class="string"><span class="delimiter">'</span><span class="delimiter">'</span></span>)
- <span class="keyword">GROUP</span> <span class="keyword">BY</span> forum.id_forum
- <span class="keyword">ORDER</span> <span class="keyword">BY</span> forum.id_forum <span class="directive">DESC</span>
- </span>
Le pb vient du fait que c’est le forum id_thread qui est enregistré dans la table spip_resultats.