
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (92)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (13090)
-
Flutter video_compress and then ffmpeg trim video to 30s fails with endless logs
7 mars 2021, par Charles BassI am trying to make a simple app in Flutter. A user can either take or pick a video and then upload it. However, I wanted to compress the video for storage purposes on firebase storage, and also trim it to only get the first 30 seconds.


I am facing a very puzzling problem. I am able to compress the video, but with the resultant file, FFmpeg fails to trim it and I get endless logs which result in me having to stop the app and re-run. Alternatively, I am able to trim the video, but with the resultant file, I am unable to compress it getting the error :
Failed to open file '/data/user/0/live.roots.roots/app_flutter/TRIMMED.mp4'. (No such file or directory) PlatformException(error, java.io.IOException: Failed to instantiate extractor., null, java.lang.RuntimeException: java.io.IOException: Failed to instantiate extractor.


This is my code below :




//! function that controls file compression and trimming
static Future<file> compressFile(File file) async {
 print('[COMPRESSING FILE]');

 String mimeStr = lookupMimeType(file.path);
 var fileType = mimeStr.split('/');

 if (fileType.contains("image")) {
 print('[COMPRESSING FILE] - file is image');
 String tempPath = (await getTemporaryDirectory()).path;
 String targetPath = '$tempPath/${DateTime.now().toIso8601String()}.jpg';
 return await compressImageAndGetFile(file, targetPath);
 } else {
 print('[COMPRESSING FILE] - file is video');

 final compressedVideoFile = await compressVideoAndGetFile(file);
 print('[VIDEO FILE COMPRESSED]');
 return await trimVideoGetFile(compressedVideoFile);
 }
 }
 
 
//! function to compress video
static Future<file> compressVideoAndGetFile(File file) async {
 print('[COMPRESSING VIDEO]');

 var result = await VideoCompress.compressVideo(
 file.absolute.path,
 quality: VideoQuality.DefaultQuality,
 deleteOrigin: true,
 );

 print('[COMPRESSED VIDEO TO]: ${result.file.path}');

 return result.file;
 }
 
//! function to trim video
static Future<file> trimVideoGetFile(File file) async {
 print('[TRIMMING VIDEO]');

 Directory appDocumentDir = await getApplicationDocumentsDirectory();
 String rawDocumentPath = appDocumentDir.path;
 String outputPath = rawDocumentPath + "/TRIMMED.mp4";

 final newFile = File(outputPath);

 if (await newFile.exists()) {
 await newFile.delete();
 }

 _flutterFFmpeg
 .execute(
 "-ss 00:00:00 -i ${file.path} -to 00:00:30 -c copy $outputPath")
 .then((rt) async {
 print('[TRIMMED VIDEO RESULT] : $rt');
 if (rt == -1) {
 throw Exception("Something went wrong when trimming the video");
 }
 });

 return File(outputPath);
 }</file></file></file>







Thank you in advance


-
Compiling FFMPEG on CentOS DigitalOcean
29 juillet 2015, par coder_ukI set up a DigitalOcean instance running CentOS 6.5 and successfully followed the guide to compile FFMPEG (https://trac.ffmpeg.org/wiki/CompilationGuide/Centos). Hurrah !
But of course I realised that by default, DigitalOcean creates a root user and so ffmpeg now lives in /root/bin/ffmpeg. Which isn’t ideal because when I want to exec the ffmpeg bin from nginx, I would have to run nginx as root for it to have permission.
Questions ...
1) Long-shot, but presumably if I change the owner of the ffmpeg binary to nginx, it still won’t work, because nginx won’t be able to access the /root folder it is in. Correct ?
2) I could run nginx as root (’user root’). But this seems like a very bad idea. Correct ?
3) Which leaves me with the option of creating a new user, and then compiling ffmpeg into its home folder. But : which user ? EC2 creates ’ec2-user’, so should I make my own equivalent for DO ? But then won’t I have to run nginx as that user, else I’ll run into the same problem ?
Or should I compile ffmpeg into the ’nginx’ home folder, if indeed it has one ? Is that how it is supposed to be done ?
Since compiling ffmpeg takes ages, I don’t want to keep doing it, and the static files all seem very out of date. Thanks
-
SRT protocol not found - Raspbery Pi 4 via ffmpeg
12 août 2021, par Tim MartinWe tried to stream from a rasp Pi 4 via SRT, but we got a error : "protocol not found". Our command line is :


ffplay srt://127.0.0.1:9500?mode=listener&latency=20000



We tried the following guides :
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
how to compile ffmpeg with enabling libsrt
https://www.undergroundnews.dk/index.php/item/107-rtmp-eller-srt-streaming


Those guides worked so far and compiled but we still got the error message.


Do you have any ideas how to get the srt protocol working on a pi via ffmpeg ?