Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (104)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (11837)

  • ffmpeg+php Add Music to video

    19 septembre 2013, par user2792392

    Dear Sir i create this code for simple video convert from one to another.
    i want to add more feature like
    ffmpeg+php Add Music to video

    how to do it ??
    convert request to begin encoding the video, and status request that retrieves
    * the current encoding status so the progress bar can be updated.
    *
    * The $outfile variable should be changed to an input value, but is set this way
    * for now for testing purposes.
    *
    * @ver 0.1
    */
    require 'config.php' ;
    require 'functions.php' ;

    //<<-- CHECK FOR ERRORS -->>//
    $type       = _chkVal('type', '');
    $fkey       = _chkVal('fkey', '');
    $infile     = _chkVal('filename', '');
    $outfile    = 'testing.mp4';
    $params     = _chkVal('params', '');

    // Check Request Type
    $validTypes = array('convert', 'status');

    if( !in_array($type, $validTypes) )
       json_response(array('fkey' => $fkey, 'msg' => 'Invalid process type!'), true);

    // $fkey will always be 8 characters.
    // It's created with PHP's hash() function using 'crc32' algorithm in index.php
    if( strlen($fkey) != 8 )
       json_response(array_merge(array('fkey' => '', 'msg' => 'Invalid fkey given!')), true);

    // Filename should be at least 5 (1 character + 4 character extension. EX : i.mp4)
    if( $type == 'convert' && ( strlen($infile) < 5) )
       json_response(array('fkey' => $fkey, 'msg' => 'Invalid input filename given!'), true);

    // Filename should be at least 5 (1 character + 4 character extension. EX : i.mp4)
    if( $type == 'convert' && ( strlen($outfile) < 5) )
       json_response(array('fkey' => $fkey, 'msg' => 'Invalid output filename given!'), true);

    if( $type == 'convert' && (strlen($params) < 1) )
       json_response(array('fkey' => $fkey, 'msg' => 'Invalid parameters given!'), true);

    //<<-- END OF ERROR CHECK -->>//


    $ffmpegConvert = new ffmpegConvert($fkey);


    //<<-- PROCESS REQUEST -->>//

    // Start the video conversion
    if( $type == 'convert' )
    {
       $ffmpegConvert->exec( $infile, $outfile, $params, $fkey );
       // Add 2 second delay to give the server time to start writing the status log,
       // otherwise $ffmpegConvert->jsonStatus() will trigger an error...
       sleep(2);
       $ffmpegConvert->jsonStatus();
    }

    // Check on video conversion progress
    if( $_POST['type'] == 'status' )
    {
       $ffmpegConvert->jsonStatus();
    }

    //<<-- END OF PROCESS REQUEST -->>//

    // Shouldn't get to this, but if so, let's send a message for debugging reasons....
    json_response(array('msg' => 'Unhandled request type!'), true);
  • C# app - running FFMpeg from the command line is not working

    11 avril 2017, par Dan Kahn

    I’m trying to run FFMpeg from the Command Line in C#. Previously I was running it from "CMD.exe" and it was working, but that requires a local installation of ffmpeg with configuring my System environmental variables. So I wanted to run it directly from "ffmpeg.exe". I’m using the following code (all the paths are correct), and nothing happens :

    string programToRun = "C:\\Users\\dkahn\\Documents\\PlaybackTool\\PlaybackTool\\Desktop\\Source\\Player\\Player\\ffmpeg\\ffmpeg.exe";

    string directoryName = "C:\\Users\\dkahn\\Documents\\PlaybackTool\\PlaybackTool\\Desktop\\Source\\Player\\test\\test1-1.mp4";

    string command = "@ffmpeg -i test1-1.mp4 -r 1  -s 180x101 test1-1\\output_%04d.png";

    Process cmd = new Process();
    cmd.StartInfo.FileName = programToRun;
    cmd.StartInfo.RedirectStandardInput = true;
    cmd.StartInfo.RedirectStandardOutput = true;
    cmd.StartInfo.CreateNoWindow = true;
    cmd.StartInfo.UseShellExecute = false;
    cmd.StartInfo.WorkingDirectory = directoryName;
    cmd.Start();
    cmd.StandardInput.WriteLine(command);
    cmd.StandardInput.Flush();
    cmd.StandardInput.Close();
    cmd.WaitForExit();

    Does anybody have any insight ?

  • At least one output file must be specified

    11 mai 2015, par Desipicforu Blogspot

    I am using this command in ffmpeg

      ffmpeg -i test.flv -i /var/www/phpvibe/logo.gif -filter_complex "scale=1200:-1,overlay=0:0" -s 1280x720 -vcodec libx264 -s 640x360 -movflags test.mp4 2>&1

    But i am getting this

    string(42) "At least one output file must be specified"

    updated :-

    php code :-

    $output ='{ffmpeg-cmd} -i {input} -i /var/www/phpvibe/logo.gif -filter_complex "scale=1200:-1,overlay=0:0" -s 1280x720 -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags {output}.mp4 2>&1';

    Complete output :-

     array(33) {
     [0]=>
    string(83) "ffmpeg version git-2015-05-11-94c20de Copyright (c)  2000-2015 the FFmpeg developers"
    [1]=>
    string(51) "  built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)"
    [2]=>
    string(243) "  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"
    [3]=>
     string(40) "  libavutil      54. 23.101 / 54. 23.101"
    [4]=>
    string(40) "  libavcodec     56. 38.100 / 56. 38.100"
    [5]=>
    string(40) "  libavformat    56. 32.100 / 56. 32.100"
    [6]=>
    string(40) "  libavdevice    56.  4.100 / 56.  4.100"
    [7]=>
    string(40) "  libavfilter     5. 16.101 /  5. 16.101"
    [8]=>
    string(40) "  libswscale      3.  1.101 /  3.  1.101"
    [9]=>
    string(40) "  libswresample   1.  1.100 /  1.  1.100"
    [10]=>
    string(40) "  libpostproc    53.  3.100 / 53.  3.100"
    [11]=>
    string(47) "Trailing options were found on the commandline."
    [12]=>
    string(31) "Input #0, flv, from 'test.flv':"
    [13]=>
    string(11) "  Metadata:"
    [14]=>
    string(28) "    audiosize       : 150117"
    [15]=>
    string(26) "    canSeekToEnd    : true"
    [16]=>
    string(29) "    datasize        : 1015662"
    [17]=>
    string(26) "    hasAudio        : true"
    [18]=>
    string(27) "    hasCuePoints    : false"
    [19]=>
    string(26) "    hasKeyframes    : true"
    [20]=>
    string(26) "    hasMetadata     : true"
    [21]=>
    string(26) "    hasVideo        : true"
    [22]=>
    string(24) "    lasttimestamp   : 42"
    [23]=>
    string(72) "    metadatacreator : flvtool++ (Facebook, Motion project, dweatherford)"
    [24]=>
    string(25) "    totalframes     : 229"
    [25]=>
    string(28) "    videosize       : 856032"
    [26]=>
    string(59) "  Duration: 00:00:42.27, start: 0.066000, bitrate: 192 kb/s"
    [27]=>
    string(124) "    Stream #0:0: Video: h264 (High), yuv420p, 176x144 [SAR 12:11 DAR 4:3], 165 kb/s, 30.30 fps, 29.97 tbr, 1k tbn, 59.94 tbc"
    [28]=>
    string(64) "    Stream #0:1: Audio: aac (LC), 8000 Hz, stereo, fltp, 29 kb/s"
    [29]=>
    string(48) "Input #1, gif, from '/var/www/phpvibe/logo.gif':"
    [30]=>
    string(29) "  Duration: N/A, bitrate: N/A"
    [31]=>
    string(67) "    Stream #1:0: Video: gif, bgra, 90x55, 100 tbr, 100 tbn, 100 tbc"
    [32]=>
    string(42) "At least one output file must be specified"
    }
    int(1)