Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (46)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7478)

  • audioCodec doesn't recognize 'aac' or 'libfdk-aac'

    24 août 2015, par Mayur Tanna

    I want to convert mp3 to aac using ffmpeg and stream it to s3 in my node application. My code is as below. Now when I try to use audioCodec as ’aac’ or ’libfdk-aac’. It throws the error. Note that ffmpeg is compiled with ’libfdk-aac’ and working fine from command line.

    Any inputs/fixes ?

    var proc = new ffmpeg({source:uploadedFiles[0].fd})
    .audioCodec('aac') // .audioCodec('libfdk-aac')
    .audioChannels(1);

    proc.on('error', function(err) {
    console.log('An error occurred: ' + err.message);
    })
    .on('end', function() {
       console.log('audio uploaded successfully!');
    }).pipe(upload(opts));

    Thanks.

  • Redirect shell output for ruby script

    2 juin 2015, par rs41

    I have simple ruby script :

    #! /usr/bin/env ruby
    require 'fileutils'

    FileUtils.rm "output.mkv" if File.exists?("outp    ut.mkv")
    pid = Process.spawn("ffmpeg -i wrong_file.mp4 -c:v libx264 -preset veryslow -qp 0 output.mkv", STDOUT => "output.txt", STDERR => "error.txt")

    puts "pid : #{pid}"
    Process.wait(pid)

    But, STDOUT and STDERR outputs into error.txt, why ?

    It looks, that ffmpeg have another exit codes ?(in usual case 0 for stdout, and 1 for stdin)

    Note : I don’t want to use native shell redirect like ’> output.txt 2> error.txt’ because i want to get pid of ffmpeg process, not shell process and kill it in future.

  • exec() does not return to PHP process

    24 avril 2013, par Ivo Renkema

    I am running FFMPEG from PHP with the EXEC command. I am working on a XAMP stack.

    $command = 'ffmpeg -y -i input output 2>logfile';
    exec ($command);
    // after FFMPEG handling...

    As you can see, I am redirecting FFMPEG's output to a log file.

    This works fine from smaller video files (up to approximately 10 MB).

    My problem is that for larger video files, any PHP commands after the exec() will not get executed. Note however, that the FFMPEG process works just fine. The log file shows that FFMPEG terminates OK, and the resulting output file is also good.

    My max_execution_time is set to 10800, which should be plenty (and then some). Anyway, as I understand from max_time_limit :

    The set_time_limit() function and the configuration directive
    max_execution_time only affect the execution time of the script
    itself. Any time spent on activity that happens outside the execution
    of the script such as system calls using system() ... is not included
    when determining the maximum time that the script has been running.

    Update : error logs state : Premature end of script

    What is going on ?