Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (96)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (11810)

  • Kivy Crashes when Loading Multiple Audio Files

    26 mars 2022, par Omid Ketabollahi

    I have a music folder and in it I have a script that loads all the files using SoundLoader and assigns them to a variable. I have 9 audio files that I load in the script but it seems like that kivy cannot handle loading many audio files ? When I run my main script I get this error and the program crashes :

    &#xA;

    Assertion &#x27;pa_atomic_load(&amp;(c)->_ref) >= 1&#x27; failed at pulse/context.c:1056, function pa_context_disconnect(). Aborting.&#xA;

    &#xA;

    I don't think that this is an issue with the audio files ( I may be wrong ) because I tried loading other files instead of the original ones that I used and I still got this error.

    &#xA;

    In case you are wondering, this is the code :

    &#xA;

    import os.path&#xA;from typing import Final&#xA;from constants import MUSIC_DIRECTORY&#xA;from kivy.core.audio import SoundLoader&#xA;&#xA;__all__ = (&#xA;    "A_DARK_TIME",&#xA;    "BLOOD_PUMPING",&#xA;    "BROKEN_VILLAGE",&#xA;    "DRUM_COMMERCIAL_B",&#xA;    "SUPER_SUSPENSE",&#xA;    "THE_HERO_WE_NEED",&#xA;    "TROUBLE_IS_BREWING",&#xA;    "VIKING_FEAST",&#xA;    "WARRIOR_GODS",&#xA;)&#xA;&#xA;&#xA;A_DARK_TIME: Final = SoundLoader.load(&#xA;    os.path.join(MUSIC_DIRECTORY, "A-Dark-Time-David-Fesliyan.mp3")&#xA;)&#xA;BLOOD_PUMPING: Final = SoundLoader.load(&#xA;    os.path.join(MUSIC_DIRECTORY, "Blood-Pumping-David-Fesliyan.mp3")&#xA;)&#xA;BROKEN_VILLAGE: Final = SoundLoader.load(&#xA;    os.path.join(MUSIC_DIRECTORY, "Broken-Village-David_Fesliyan.mp3")&#xA;)&#xA;DRUM_COMMERCIAL_B: Final = SoundLoader.load(&#xA;    os.path.join(MUSIC_DIRECTORY, "Drum-Commercial-B-David-Fesliyan.mp3")&#xA;)&#xA;SUPER_SUSPENSE: Final = SoundLoader.load(&#xA;    os.path.join(MUSIC_DIRECTORY, "Super-Suspense-David-Fesliyan.mp3")&#xA;)&#xA;THE_HERO_WE_NEED: Final = SoundLoader.load(&#xA;    os.path.join(MUSIC_DIRECTORY, "The-Hero-We-Need-Steve-Oxen.mp3")&#xA;)&#xA;TROUBLE_IS_BREWING: Final = SoundLoader.load(&#xA;    os.path.join(MUSIC_DIRECTORY, "Trouble-Is-Brewing-David-Fesliyan.mp3")&#xA;)&#xA;VIKING_FEAST: Final = SoundLoader.load(&#xA;    os.path.join(MUSIC_DIRECTORY, "Viking-Feast-David-Fesliyan.mp3")&#xA;)&#xA;WARRIOR_GODS: Final = SoundLoader.load(&#xA;    os.path.join(MUSIC_DIRECTORY, "Warrior-Gods-Steve-Oxen.mp3")&#xA;)&#xA;

    &#xA;

  • File Decryption in (AESMode.ctr) mode showing Exception Failed to decode data using encoding 'utf-8' in dart ?

    20 novembre 2020, par Jai

    While decoding the video file using aes-ctr mode am getting error like below,

    &#xA;

    Unhandled Exception: FileSystemException: Failed to decode data using encoding &#x27;utf-8&#x27;

    &#xA;

    Used ffmpeg for encrypting file :

    &#xA;

    ffmpeg -i samplevideo.mp4 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key 76a6c65c5ea762046bd749a2e632ccbb -encryption_kid a7e61c373e219033c21091fa607bf3b8 enc_v1_file.mp4

    &#xA;

    Used Dart to decode video file :

    &#xA;

    Future<string> decryptFile(filePath) async {&#xA;    // filePath - Local encrypted file path&#xA;    var encodedKey = &#x27;NzZhNmM2NWM1ZWE3NjIwNDZiZDc0OWEyZTYzMmNjYmI=&#x27;;&#xA;    var encodedIv = &#x27;YTdlNjFjMzczZTIxOTAzM2MyMTA5MWZhNjA3YmYzYjg=&#x27;;&#xA;    var encryptedBase64EncodedString = new File(filePath).readAsStringSync();&#xA;    var decoded = base64.decode(encryptedBase64EncodedString); // Error in this line&#xA;    final key1 = enc.Key.fromBase64(encodedKey);&#xA;    final iv = enc.IV.fromBase64(encodedIv);&#xA;    final encrypter = enc.Encrypter(enc.AES(key1, mode: enc.AESMode.ctr));&#xA;    final decrypted = encrypter.decryptBytes(enc.Encrypted(decoded), iv: iv);&#xA;    final filename = &#x27;${p.basenameWithoutExtension(filePath)}.mp4&#x27;;&#xA;    final directoryName = p.dirname(filePath);&#xA;    final newFilePath = p.join(directoryName, filename);&#xA;    var newFile = new File(newFilePath);&#xA;    await newFile.writeAsBytes(decrypted);&#xA;    return newFilePath;&#xA;}&#xA;</string>

    &#xA;

  • Adding Text to Video with ffmpeg in Flutter

    9 mars 2024, par Aiman

    I am trying to add text to a video using ffmpeg package but it returns an error i.e. Return Code 1&#xA;Here's my code.

    &#xA;

      final videoPath = _controller.file.path;&#xA;  final outputName = videoPath.hashCode.toString();&#xA;&#xA;  final output =&#xA;        File(&#x27;${(await getTemporaryDirectory()).path}/$outputName.mp4&#x27;);&#xA;&#xA;  String command =&#xA;        "-y -i $videoPath -filter_complex &#x27;[0]scale=540:-1[s];[s]drawtext=fontfile=/storage/emulated/0/Download/SuperDessert.ttf:text=&#x27;MY_TEXT&#x27;:fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2&#x27; ${output.path}";&#xA;&#xA;  final session = await FFmpegKit.execute(command);&#xA;&#xA;  final returnCode = await session.getReturnCode();&#xA;&#xA;  if (ReturnCode.isSuccess(returnCode)) {&#xA;    log("Success full text added");&#xA;  } else {&#xA;    log("Error adding text: ${await session.getFailStackTrace()}");&#xA;  }&#xA;

    &#xA;

    I have tried changing the output directory, changed fontfile to font

    &#xA;