Recherche avancée

Médias (1)

Mot : - Tags -/portrait

Autres articles (59)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9565)

  • subprocess.check_output fails with CalledProcessError but error is empty string. Command works in terminal

    11 août 2022, par Leonardo the Vinchi

    I want to run the command ffprobe -i test.m4a -show_entries format=duration -v quiet -of csv="p=0". It works in the terminal and returns output code 0, but running it with subprocess, i.e.

    


    subprocess.check_output(['ffprobe', '-i', 'test.m4a', '-show_entries', 'format=duration', '-v', 'quiet', '-of', 'csv="p=0"'])


    


    raises a CalledProcessError - {Command} returned non-zero exit status 1.. I tried running this command in a try-except loop and printing the error details, but it just outputs as an empty byte string b''.

    


  • ffmpeg : don’t reconfigure terminal if we’re not taking input from stdin

    8 septembre 2016, par Rodger Combs
    ffmpeg : don’t reconfigure terminal if we’re not taking input from stdin
    
    • [DH] ffmpeg.c
    • [DH] ffmpeg_opt.c
  • Real time ffmpeg output from terminal in php

    8 novembre 2014, par user2978381

    I am using this code to get real time update from windows terminal. It doesn’t output anything in the browser but process the command and in the background and completes the conversion.

       set_time_limit(0);
       $ffmpegCommand  = 'C:\\ffmpeg\\bin\\ffmpeg';

       $handle = popen($ffmpegCommand." -i upload/1415292048.mp4 -ar 22050 -ab 32 -f flv -s 640x320 -vcodec libx264  -vsync 1  -bt 50k converted/video001.flv", "r");

       if (ob_get_level() == 0)
           ob_start();

       while(!feof($handle)) {

           $buffer = fread($handle, 4096);
           $buffer = trim(htmlspecialchars($buffer));
           echo "<pre>";

           echo $buffer ;
           echo str_pad('', 4096);
           echo "</pre>";

           ob_flush();
           flush();
           sleep(1);
       }

       pclose($handle);
       ob_end_flush();

    But when the same code I am using for youtube_dl it updates in the real time.

       header('Content-Encoding: none;');

       set_time_limit(0);

       $handle = popen("python -m youtube_dl -F http://vimeo.com/30261818", "r");

       if (ob_get_level() == 0)
           ob_start();

       while(!feof($handle)) {

           $buffer = fread($handle, 4096);
           $buffer = trim(htmlspecialchars($buffer));
           echo "<pre>";

           echo $buffer ;
           echo str_pad('', 4096);
           echo "</pre>";

           ob_flush();
           flush();
           sleep(1);
       }

       pclose($handle);
       ob_end_flush();

    So if I want to show output of ffmpeg in the browser what should I do ?