
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (111)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
Les notifications de la ferme
1er décembre 2010, parAfin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
Les notifications de changement de statut
Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
À la demande d’un canal
Passage au statut "publie"
Passage au (...)
Sur d’autres sites (6029)
-
ffmpeg_kit_flutter operation not permitted for audio operations
25 août 2023, par Black Eyed BeansI'm trying to trim an audio file using
ffmpeg_kit_flutter
but I keep getting the error :

audio/path/output.mp3: Operation not permitted.



This is the ffmpeg command that I'm using :


final cmd="-y -i \"$audioPath\" -ss $audioStartTime -to $audioEndTime -c:a libmp3lame $outPutName";



And I've also tried :


final cmd="-y -i \"$audioPath\" -ss $audioStartTime -to $audioEndTime -c copy $outPutName";



But the error is still the same.
I'm using the
ffmpeg_kit_flutter_full_gpl
package.

-
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.