Recherche avancée

Médias (91)

Autres articles (103)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (12609)

  • FFmpeg os.system commands not working but work in Terminal

    28 janvier 2020, par Oscar Dolloway

    I’ve downloaded ffmpeg through the website and ran some commands through the terminal to confirm its install.

    when running the command ’ffmpeg’ in the Terminal it returns

    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg
    developers
    built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)

    if i type into Python

    import os
    os.system ('ffmpeg')

    it returns

    os.system ('ffmpeg')
    sh: ffmpeg: command not found
    Out[25]: 32512

    any ideas ?

    Solution :

    ffmpeg = '/bin/ffmpeg' #path to the binary file

    os.system(ffmpeg)

    Output :

    os.system (ffmpeg)
    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
    built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
  • ffmpeg.so in PHP exec converting and no return

    13 juin 2015, par Tom

    I have seen many threads, but none working ones, so this is my issue :

    I have server installed ffmpeg (ffmpeg-php version 0.7.0, PHP Version 5.4.41) Linux CentOS 6 64bit :

    Using PHP :

    exec('/usr/lib64/php/modules/ffmpeg.so -i test.mp4 testdone.avi',$out,$ret);

    or

    exec('/usr/lib64/php/modules/ffmpeg.so -i /var/www/html/test.mp4 /var/www/html/testdone.avi',$out,$ret);

    or

    exec('/usr/lib64/php/modules/ffmpeg.so -i /var/www/html/test.mp4 /var/www/html/testdone.avi'.' 2>&1',$out,$ret);  

    the ffmpeg is actually found, but always returns : array(0) { } int(11) and with 2>&1 returns array(0) { } int(139) and does not return anything else like testdone.avi in the directory or -version (in the directory). Directories /var/www/html/ are set to 777.

    Thank you, should I hire someone to fix this or am I missing something in PHP.

  • How to improve the animation quality with ffmpeg ?

    17 janvier 2017, par Loïc Poncin

    With ffmpeg I was able to get animation as an MP4 file and then I converted it into a GIF file.

    # Animation
    ani = animation.ArtistAnimation(fig, film, interval=100, blit=True, repeat_delay=100)
    ani.save('animation.mp4', writer="ffmpeg", fps=30)

    os.system("ffmpeg -i C:\my_path\\animation.mp4 C:\my_path\\animation.gif")

    My problem is that the quality is not really good.

    In my google drive (https://drive.google.com/open?id=0B7P95aWmH4DUbzJCaVZQM3Y0Y1U) you can find 3 files showing the animation : 1 PNG image (good quality), 1 MP4 file (normal quality), 1 GIF file (bad quality).

    How can I keep a good quality during the process ?