Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (24)

  • 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

  • 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 (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (6564)

  • PHP-FFMpeg Installation and Basic Usage on windows issue

    7 mai 2017, par Miky

    following the README I installed PHP FFmpeg through Composer and I downloaded binaries from https://ffmpeg.zeranoe.com/builds/
    now I’m trying to run the "Basic Usage" example :

    <?php
    require("vendor/autoload.php");
    $ffmpeg = FFMpeg\FFMpeg::create();
    $video = $ffmpeg->open('video.mpg');
    $video
       ->filters()
       ->resize(new FFMpeg\Coordinate\Dimension(320, 240))
       ->synchronize();
    $video
       ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10))
       ->save('frame.jpg');
    $video
       ->save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4')
       ->save(new FFMpeg\Format\Video\WMV(), 'export-wmv.wmv')
       ->save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');
    ?>

    but i receive "Executable not found" errors because I didn’t understand where to put them

    I also tried specifying binaries ffmpeg.exe and ffprobe.exe with :

    $ffmpeg = FFMpeg\FFMpeg::create(array(
       'ffmpeg.binaries'  => '/pathtobin/ffmpeg',
       'ffprobe.binaries' => '/pathtobin/ffprobe',
       'timeout'          => 3600, // The timeout for the underlying process
       'ffmpeg.threads'   => 12   // The number of threads that FFMpeg should use
    ), $logger);

    but still same error... am I making a mountain out of a molehill ? any help is appreciated... Thanks

    EDIT 1

    I added ffmpeg\bin folder to system path and I can run executables from cmd from anywhere, but now I’m getting this error : "Executable not found, proposed : avprobe, ffprobe"...
    instead, if I give binary paths explicitly, I get 'ffprobe failed to execute command "C:/FFmpeg/bin/ffprobe.exe" "-help" "-loglevel" "quiet"'

    what am I doing wrong ?

    EDIT 2

    web server config

    • Windows 10 Pro
    • IIS 10
    • PHP 7.0.9

    site root ---> C:\inetpub\wwwroot\site\
    content :

    - index.php

    - input.mp4

    - vendor/ (PHP-FFMpeg library folder)

    FFmpeg binaries ---> C:\inetpub\wwwroot\FFmpeg\
    content :

    - ffmpeg.exe

    - ffplay.exe

    - ffprobe.exe

    index.php

    <?php
    ini_set('display_errors', 'On'); error_reporting(E_ALL);
    require("vendor/autoload.php");
    $ffmpeg = FFMpeg\FFMpeg::create(array(
       'ffmpeg.binaries'  => 'C:/inetpub/wwwroot/FFmpeg/ffmpeg.exe',
       'ffprobe.binaries' => 'C:/inetpub/wwwroot/FFmpeg/ffprobe.exe',
       'timeout'          => 3600, // The timeout for the underlying process
       'ffmpeg.threads'   => 12,   // The number of threads that FFMpeg should use
    ));
    $video = $ffmpeg->open('input.mp4');
    ?>

    result

    Fatal error: Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException: ffprobe failed to execute command "C:/inetpub/wwwroot/FFmpeg/ffprobe.exe" "-help" "-loglevel" "quiet" in C:\inetpub\wwwroot\site\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php:100 Stack trace: #0 C:\inetpub\wwwroot\site\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php(72): Alchemy\BinaryDriver\ProcessRunner->doExecutionFailure('"C:/inetpub/www...') #1 C:\inetpub\wwwroot\site\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php(209): Alchemy\BinaryDriver\ProcessRunner->run(Object(Symfony\Component\Process\Process), Object(SplObjectStorage), false) #2 C:\inetpub\wwwroot\site\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\AbstractBinary.php(137): Alchemy\BinaryDriver\AbstractBinary->run(Object(Symfony\Component\Process\Process), false, NULL) #3 C:\inetpub\wwwroot\site\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe\OptionsTester.php(61): Alchemy\Binary in C:\inetpub\wwwroot\site\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe\OptionsTester.php on line 63
  • Matplotlib can not save animation

    1er avril 2020, par Justin Furuness

    I have a matplotlib animation and it will not save. If I do not save it, it runs totally fine and without error. When I try to save it errors with a message that is not helpful. I have googled this error and checked everything, but I cannot seem to find an answer to this problem. I have installed ffmpeg. Am I doing something wrong that is obvious ? I am running on ubuntu 19.10 with matplotlib 3.2.1 if that matters.

    



    The code to save the animation is below :

    



        def run_animation(self, total_rounds):
        anim = animation.FuncAnimation(self.fig, self.animate,
                                       init_func=self.init,
                                       frames=total_rounds * 100,
                                       interval=40,
                                       blit=True)
#        Writer = animation.writers['ffmpeg']
#        writer = Writer(fps=15, metadata=dict(artist='Me'), bitrate=1800)
        anim.save('animation.mp4')


    



    The error traceback :

    



    2020-04-01 02:20:58,279-INFO: MovieWriter._run: running command: ffmpeg -f rawvideo -vcodec rawvideo -s 1200x500 -pix_fmt rgba -r 25.0 -loglevel error -i pipe: -vcodec h264 -pix_fmt yuv420p -y animation.mp4
Traceback (most recent call last):
  File "/home/anon/.local/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2785, in _wait_cursor_for_draw_cm
    self.set_cursor(cursors.WAIT)
  File "/home/anon/.local/lib/python3.7/site-packages/matplotlib/backends/backend_gtk3.py", line 468, in set_cursor
    self.canvas.get_property("window").set_cursor(cursord[cursor])
AttributeError: 'NoneType' object has no attribute 'set_cursor'


    



    Thanks a million for your help

    


  • Continously read file in Ruby and save into pipe

    7 juillet 2016, par stiller_leser

    I am trying to continously read a file and save the output into a IO.pipe. The motivation being that ffmpeg which has been spawned before and given the r-end of the pipe as STDIN will then convert the video.
    This is what I have so far :

       r,w = IO.pipe
       ffmpeg_args = ' -i pipe:0 "test.mp4"'
       pid = Process.spawn('ffmpeg'+ffmpeg_args, {STDIN => r, STDERR => STDOUT})
       Process.detach pid
       File.open(@options['filename'], 'rb') do |file|
         while line = file.gets
           w.write line.read
         end
       end

    I had success with declaring the input file directly as STDIN for the process, but this lead to an early termination of ffmpeg since it had reached the end of the file. With the code above ffmpeg complains about invalid data.

    Is there any way this could be achieved ?