Recherche avancée

Médias (1)

Mot : - Tags -/portrait

Autres articles (107)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (11007)

  • Terminal output text into pandas dataframe without creating external file

    23 février 2018, par helmo

    I am using ffmpeg’s extract_mvs file to generate some text information. I would use a command like this in the terminal :

    /extract_mvs input.mp4 > output.txt

    I would like to use this command with Popen or other subprocess in python such that instead of output.txt, the data is passed straight to a pandas data frame without actually generating the text file.

    The idea is to automate this multiple times, so, I am trying to avoid many .txt files from being generated and thus having to open() them one by one.

    I thought of something like this :

    import subprocess
    cmd = ['./extract_mvs', 'input.mp4']
    a = subprocess.Popen(cmd, stdout=subprocess.PIPE)
    df = pd.read_csv(a.communicate()[0], sep=',')

    But then I get an error : OSError: Expected file path name or file-like object, got <class> type</class>

    Can it be fixed and extended so as to read straight from subprocess to pandas ?

  • grep on a running terminal buffer

    25 décembre 2013, par killer

    I did ffmpeg -i file.mp4 -y file.mp3 2>&1 | grep "time=" , but it seems that grep shows output only on completion of ffmpeg command, so how could i grep here ,I will later need to save this value of time in a variable every second

  • Capturing terminal output into pandas dataframe without creating external text file

    4 septembre 2024, par tavalendo

    I am using ffmpeg's extract_mvs file to generate some text information. I would use a command like this in the terminal :

    &#xA;&#xA;

    /extract_mvs input.mp4 > output.txt&#xA;

    &#xA;&#xA;

    I would like to use this command with Popen or other subprocess in python such that instead of output.txt, the data is passed straight to a pandas data frame without actually generating the text file.

    &#xA;&#xA;

    The idea is to automate this multiple times, so, I am trying to avoid many .txt files from being generated and thus having to open() them one by one.

    &#xA;&#xA;

    I thought of something like this :

    &#xA;&#xA;

    import subprocess&#xA;cmd = [&#x27;./extract_mvs&#x27;, &#x27;input.mp4&#x27;]&#xA;a = subprocess.Popen(cmd, stdout=subprocess.PIPE)&#xA;df = pd.read_csv(a.communicate()[0], sep=&#x27;,&#x27;)&#xA;

    &#xA;&#xA;

    But then I get an error : OSError: Expected file path name or file-like object, got <class> type</class>

    &#xA;&#xA;

    Can it be fixed and extended so as to read straight from subprocess to pandas ?

    &#xA;