Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (63)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • 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

Sur d’autres sites (11273)

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

  • How do I formate spaces in terminal for FFMPEG metadata

    22 juillet 2020, par pbendevis

    I can't get FFMPEG to accept any spaces when I try to assign it to the metadata. Below is the command I am using in Terminal on MacOS. It gives me an error : [NULL @ 0x7fce76026600] Unable to find a suitable output format for &#x27;World&#x27; World: Invalid argument

    &#xA;

    ffmpeg -hide_banner \&#xA;-i Trolls.World.Tour.2020.Bluray-2160p.m2ts \&#xA;-ss 00:10:00 -t 00:1:00 \&#xA;-pix_fmt yuv420p10le \&#xA;-map_chapters 0 \&#xA;-metadata:s:t:0 filename="" -metadata:s:t:0 mimetype="image/jpeg" \&#xA;-metadata title=“Trolls World Tour” \&#xA;-map 0:0 -metadata:s:v:0 language=eng -metadata:s:v:0 title=“Trolls World Tour” \&#xA;-map 0:2 -metadata:s:a:0 language=eng -metadata:s:a:0 title=“Dolby TrueHD 7.1 Atmos” \&#xA;-map 0:6 -metadata:s:a:0 language=eng -metadata:s:a:1 title=“AC-3 2.0” \&#xA;-c:v libx265 -preset slow -crf 16 \&#xA;-x265-params keyint=60:bframes=3:vbv-bufsize=75000:vbv-maxrate=75000:hdr-opt=1:repeat-headers=1:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:master-display="G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,500)" \&#xA;-c:a copy \&#xA;Trolls.World.Tour.2020.2160p.BluRay.REMUX.HEVC.TrueHD.7.1.Atmos.mkv&#xA;

    &#xA;

    I have tried &#x27;title="Trolls World Tour"&#x27; title=Trolls" "World" "Tour to no luck.

    &#xA;

    Using title="Trolls\ World\ Tour" works but then the title includes the backslashes.

    &#xA;

    Any thoughts ?

    &#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.