Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (69)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (11798)

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

    



    /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>

    &#xA;&#xA;

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

    &#xA;

  • Debian ffmpeg working in terminal but not in php

    30 octobre 2013, par user2938660

    I reinstalled ffmpeg on debian and php exec doesn't work for me anymore when called from php. I'm using :

    if ($success_msg)
    {
       $tmp_parts = explode(&#39;.&#39;, $file[&#39;name&#39;]);
       $ext = array_pop($tmp_parts);
       $ext = strtolower($ext);
       if($ext == "avi" &amp;&amp; $convert_avi == true)
       {
           $convert_source = _VIDEOS_DIR_PATH.$new_name;
           $conv_name = substr(md5($file[&#39;name&#39;].rand(1,888)), 2, 10).".mp4";
           //$conv_name2 = substr(md5($file[&#39;name&#39;].rand(1,888)), 2, 10).".mp4";
           $converted_file  = _VIDEOS_DIR_PATH.$conv_name;
           //$fastarted_file  = _VIDEOS_DIR_PATH.$conv_name2;
           $ffmpeg_command = &#39;ffmpeg -i &#39;.$convert_source.&#39; -r 20 -g 40 -acodec libfaac -ar 44100 -ab 96k -vcodec libx264 -sameq &#39;.$converted_file;
           //$faststart_command = "qt-faststart ".$converted_file." ".$fastarted_file;
           shell_exec($ffmpeg_command);
           unlink($convert_source);
           //shell_exec($faststart_command);
           $sql = "UPDATE pm_temp SET url = &#39;".$conv_name."&#39; WHERE url = &#39;".$new_name."&#39; LIMIT 1";
           $result = @mysql_query($sql);
    }
    echo $success_msg;

    this code to convert videos and ffmpeg output is :

    root@1tb:~# ffmpeg -version
    ffmpeg version git-2013-10-28-f1f0b01
    built on Oct 29 2013 02:05:45 with gcc 4.4.5 (Debian 4.4.5-8)
    configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
    libavutil      52. 48.100 / 52. 48.100
    libavcodec     55. 39.100 / 55. 39.100
    libavformat    55. 19.104 / 55. 19.104
    libavdevice    55.  5.100 / 55.  5.100
    libavfilter     3. 90.100 /  3. 90.100
    libswscale      2.  5.101 /  2.  5.101
    libswresample   0. 17.104 /  0. 17.104
    libpostproc    52.  3.100 / 52.  3.100
    root@1tb:~#

    in terminal it works fine just via php not im sure this is server problem and exec is enabled.

  • How do I use ffprobe in Terminal ?

    9 avril 2020, par Westicle

    When I use ffmpeg I use it like this :

    &#xA;&#xA;

    ./ffmpeg -ss 00:30:00 -i inputvideo.mp4 -t 00:00:20 -c:v copy -c:a copy outputvideo.mp4&#xA;

    &#xA;&#xA;

    So how to I use ffprobe ? I've tried this but I can't get it to work :

    &#xA;&#xA;

    ./ffmpeg ffprobe -v error -show_frames inputvideo.mp4&#xA;

    &#xA;