
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (66)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (11490)
-
Flutter : Failed assertion : 'file.absolute.existsSync()' : is not true
11 août 2022, par whatwhatwhatIn my app, a user can send a file to others in a group chat. First, the user records some audio using their mic. The file is then touched up using FFMPEG. Then, the file is uploaded to Firebase Cloud Storage and if this is successful, a record is written in Firebase Realtime Database.


I'm getting the error below when the user records a long audio file and then presses submit. It almost seems as though FFMPEG hasn't finished processing the file...but I thought I used my async/await correctly to make sure that this processing is finished before moving on ?




##MyAppFile## saveMyAppFileToCloudStorage Error : 'package:firebase_storage/src/reference.dart' : Failed assertion : line 127 pos 12 : 'file.absolute.existsSync()' : is not true.




Psuedo-code :


- 

- User records audio
- Audio file is processed using FFMPEG and the new processed file is created on the user's phone
- User hits submit, uploading the file to Cloud Storage and, if successful, writing a record to Realtime Database








Order of Functions After User Hits Submit :


- 

- msgInput.dart -> sendMyAppFile()
- msgInput.dart -> prepareMyAppFileForSending()
- msgInput.dart -> runFFMPEGHighLow()
- message_dao.dart -> sendMyAppFile()
- message_dao.dart -> saveMyAppFileToCloudStorage() //ERROR COMES FROM THIS FUNCTION












The Code :


//msgInput.dart
Future<void> sendMyAppFile() async {
 if (sendableMyAppFileExists == 1) {
 final MyAppFileReadyToBeSent = await prepareMyAppFileForSending();

 if (MyAppFileReadyToBeSent == '1') {
 messageDao.sendMyAppFile(MyAppFile, filepath, filename); 
 } else {
 
 }
 }

 setState(() {
 sendableMyAppFileExists = 0;
 });
 }
 
 Future<string> prepareMyAppFileForSending() async {
 if (sendableMyAppFileExists == 1) {
 if (recordedMyAppFileFilterID == '1') {

 await runFFMPEGHighLow('1'); 

 return '1';
 }

 if (recordedMyAppFileFilterID == '2') {

 await runFFMPEGHighLow('2'); 

 return '1';
 }
 }

 return '0';
 }
 
 Future<void> runFFMPEGHighLow(String filterID) async { 
 if (filterID != '1' && filterID != '2') {
 return;
 }

 if (sendableMyAppFileExists == 1) {
 if (filterID == '1') {

 await FFmpegKit.executeAsync(/*...parms...*/);
 setState(() {
 currentMyAppFileFilename = currentMyAppFileFilename + '1.mp3'; 
 });

 }

 if (filterID == '2') {

 await FFmpegKit.executeAsync(/*...parms...*/);
 setState(() {
 currentMyAppFileFilename = currentMyAppFileFilename + '2.mp3';
 });

 }
 }
 }
 
//message_dao.dart
void sendMyAppFile(ChatData MyAppFile, String filepath, String filename) {
 saveMyAppFileToCloudStorage(filepath, filename).then((value) {
 if (value == true) {
 saveMyAppFileToRTDB(MyAppFile);
 }
 });
 }
 
Future<bool> saveMyAppFileToCloudStorage(String filepath, String filename) async {
 //filepath: /data/user/0/com.example.MyApp/app_flutter/MyApp/MyAppAudioFiles/MyAppFiles/2d7af6ae-6361-4be5-8209-8498dd17d77d1.mp3
 //filename: 2d7af6ae-6361-4be5-8209-8498dd17d77d1.mp3

 _firebaseStoragePath = MyAppFileStorageDir + filename;
 
 File file = File(filepath);

 try {
 await _firebaseStorage
 .ref(_firebaseStoragePath)
 .putFile(file);
 return true;
 } catch (e) {
 print('##MyAppFile## saveMyAppFileToCloudStorage Error: ' + e.toString()); //ERROR COMES FROM THIS LINE
 return false;
 }
 return true;
 }
</bool></void></string></void>


-
Is there a way to use ffmpeg for RGB to true YUV (not YCbCr) conversion ?
16 avril 2022, par haidahaidaAs far as I can see in the documentation, all conversions involving YUV actually use YCbCr. There are slight differences though, and I would like to convert to the actual YUV format. Is there any way at all using ffmpeg ? As an afterthought, is there any other way that is as fast as ffmpeg ?




Image source


-
avcodec/mpegvideo_enc : Remove always-true check
23 mars 2022, par Andreas Rheinhardt