Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (66)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire 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 2013

    Puis-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 2011

    You 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 whatwhatwhat

    In 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 :

    


      

    1. User records audio
    2. 


    3. Audio file is processed using FFMPEG and the new processed file is created on the user's phone
    4. 


    5. User hits submit, uploading the file to Cloud Storage and, if successful, writing a record to Realtime Database
    6. 


    


    Order of Functions After User Hits Submit :

    


      

    1. msgInput.dart -> sendMyAppFile()
    2. 


    3. msgInput.dart -> prepareMyAppFileForSending()
    4. 


    5. msgInput.dart -> runFFMPEGHighLow()
    6. 


    7. message_dao.dart -> sendMyAppFile()
    8. 


    9. message_dao.dart -> saveMyAppFileToCloudStorage() //ERROR COMES FROM THIS FUNCTION
    10. 


    


    The Code :

    


    //msgInput.dart&#xA;Future<void> sendMyAppFile() async {&#xA;    if (sendableMyAppFileExists == 1) {&#xA;      final MyAppFileReadyToBeSent = await prepareMyAppFileForSending();&#xA;&#xA;      if (MyAppFileReadyToBeSent == &#x27;1&#x27;) {&#xA;        messageDao.sendMyAppFile(MyAppFile, filepath, filename); &#xA;      } else {&#xA;      &#xA;      }&#xA;    }&#xA;&#xA;    setState(() {&#xA;      sendableMyAppFileExists = 0;&#xA;    });&#xA;  }&#xA;  &#xA;  Future<string> prepareMyAppFileForSending() async {&#xA;    if (sendableMyAppFileExists == 1) {&#xA;      if (recordedMyAppFileFilterID == &#x27;1&#x27;) {&#xA;&#xA;        await runFFMPEGHighLow(&#x27;1&#x27;); &#xA;&#xA;        return &#x27;1&#x27;;&#xA;      }&#xA;&#xA;      if (recordedMyAppFileFilterID == &#x27;2&#x27;) {&#xA;&#xA;        await runFFMPEGHighLow(&#x27;2&#x27;); &#xA;&#xA;        return &#x27;1&#x27;;&#xA;      }&#xA;    }&#xA;&#xA;    return &#x27;0&#x27;;&#xA;  }&#xA;  &#xA;  Future<void> runFFMPEGHighLow(String filterID) async { &#xA;    if (filterID != &#x27;1&#x27; &amp;&amp; filterID != &#x27;2&#x27;) {&#xA;      return;&#xA;    }&#xA;&#xA;    if (sendableMyAppFileExists == 1) {&#xA;      if (filterID == &#x27;1&#x27;) {&#xA;&#xA;        await FFmpegKit.executeAsync(/*...parms...*/);&#xA;        setState(() {&#xA;          currentMyAppFileFilename = currentMyAppFileFilename &#x2B; &#x27;1.mp3&#x27;; &#xA;        });&#xA;&#xA;      }&#xA;&#xA;      if (filterID == &#x27;2&#x27;) {&#xA;&#xA;        await FFmpegKit.executeAsync(/*...parms...*/);&#xA;        setState(() {&#xA;          currentMyAppFileFilename = currentMyAppFileFilename &#x2B; &#x27;2.mp3&#x27;;&#xA;        });&#xA;&#xA;      }&#xA;    }&#xA;  }&#xA;  &#xA;//message_dao.dart&#xA;void sendMyAppFile(ChatData MyAppFile, String filepath, String filename) {&#xA;    saveMyAppFileToCloudStorage(filepath, filename).then((value) {&#xA;      if (value == true) {&#xA;        saveMyAppFileToRTDB(MyAppFile);&#xA;      }&#xA;    });&#xA;  }&#xA;  &#xA;Future<bool> saveMyAppFileToCloudStorage(String filepath, String filename) async {&#xA;    //filepath: /data/user/0/com.example.MyApp/app_flutter/MyApp/MyAppAudioFiles/MyAppFiles/2d7af6ae-6361-4be5-8209-8498dd17d77d1.mp3&#xA;    //filename: 2d7af6ae-6361-4be5-8209-8498dd17d77d1.mp3&#xA;&#xA;    _firebaseStoragePath = MyAppFileStorageDir &#x2B; filename;&#xA;    &#xA;    File file = File(filepath);&#xA;&#xA;    try {&#xA;      await _firebaseStorage&#xA;          .ref(_firebaseStoragePath)&#xA;          .putFile(file);&#xA;      return true;&#xA;    } catch (e) {&#xA;      print(&#x27;##MyAppFile## saveMyAppFileToCloudStorage Error: &#x27; &#x2B; e.toString()); //ERROR COMES FROM THIS LINE&#xA;      return false;&#xA;    }&#xA;    return true;&#xA;  }&#xA;</bool></void></string></void>

    &#xA;

  • Is there a way to use ffmpeg for RGB to true YUV (not YCbCr) conversion ?

    16 avril 2022, par haidahaida

    As 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 ?

    &#xA;&#xA;

    charts&#xA;Image source

    &#xA;

  • avcodec/mpegvideo_enc : Remove always-true check

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

    It is a remnant of the old way for user-supplied buffers ;
    it is always-true since 93016f5d1d280f9cb7856883af287fa66affc04c.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/mpegvideo_enc.c