Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (30)

  • À propos des documents

    21 juin 2013, par

    Que faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
    Document bloqué en file d’attente ?
    Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications 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 (...)

Sur d’autres sites (5898)

  • py2app compiled script with ffmpeg not working (mac)

    18 avril 2020, par martijnlambada

    I'm currently experiencing a lot of difficulties getting ffmpeg-python to work when compiling my script with Py2App. The attached script works fine when run from the command line, as does the terminal version found in the application bundle. When double clicking the app though, it just gives me a popup with (the not very descriptive) "Error". I've tried all possible solutions found in related posts including compiling the script with the "—emulate-shell-environment" flag. So far no luck. 
Details : Python 2.7.16 | macOs 10.14.6 | Latest version of ffmpeg & py2app.

    



    Appreciate the help !

    



    Thanks, martijn

    



    import ffmpeg

stream = ffmpeg.input('input.mp4')
stream = ffmpeg.filter(stream,'scale', 800, 450)
stream = ffmpeg.output(stream, 'output2.mp4')
ffmpeg.run(stream)


    


  • Hide subprocess output and store it in a variable in Python [duplicate]

    6 juillet 2022, par Dev01

    I would like to call a FFmpeg command, which produces a very big output.

    


    I need to store the output in order to make a regex on it.

    


    On the first command (echo), nothing is printed in my terminal, but for the ffmpeg command, huge output is produced (which I want to store in a variable, I don't want to have the output in my terminal)

    


    So my code looks like this for example :

    


    import subprocess
output = subprocess.check_output("echo a lot of wooooords")
output = subprocess.check_output("ffmpeg -i audio.mp3 -f null -", shell=True)


    


    Is it possible to hide the output for this command ? Why does it show me an output ? Thank you

    


  • How can I run FFPROBE in a Python script without triggering the Windows Command window ?

    1er mars, par fnord12

    I am using ffmeg/ffprobe to get video durations (in an addon for Kodi). The code :

    


    result = subprocess.run(["ffprobe", "-hide_banner", "-v", "quiet", "-show_entries",
                                 "format=duration", "-of",
                                 "default=noprint_wrappers=1:nokey=1", filename], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)


    


    The above code and the file importing that code both have a .pyw extension (after first trying regular .py).

    


    This works fine but in Windows 11 it causes the black Windows Command window to briefly flash for each video, despite the -hide_banner flag and loglevel being set to quiet. In Linux Mint it runs without any such window popping up.

    


    Found the answer : subprocess.run just needed a final shell=True as the last argument.