Recherche avancée

Médias (91)

Autres articles (40)

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (3966)

  • Recommendations about FFmpeg filters to enhance video quality or fixes

    2 juin 2021, par Mapg

    I am developing a web application using FFmpeg, and I would like to know your recommendations about what filters (to be implemented as presets) my users could use to enhance the video image quality and fix the common video problems.

    


    I have in mind for example to use the "Automatic Levels" filter (using "pp=al"), "Audio Level Normalization", some "Denoise" filter, and "Deinterlacing" filter.

    


    But as you can see I only have in mind 4 filters while FFmpeg has a lot of them.

    


    What filters could I add to a Set of Presets for my users ? Something useful. Like a Set of Swiss Army Knife tools.

    


    I am looking forward to hearing your recommendations.

    


    Any other tool or fix is good too, even using other software in the shell. No problem.

    


    Thank you very much in advance !!

    


    Mapg

    


  • Android ffmpeg needs android.permission.ACCESS_COARSE_LOCATION for compression

    20 septembre 2018, par htafoya

    I’m using FFmpegAndroid library (based on C) on a project in order to compress encode some videos.

    The library requires the use of android.permission.ACCESS_COARSE_LOCATION permission.

    If I remove it the compression fails, but I get no additional detail on where the lib requires the permission.

    The shell command is :

    [/data/user/0/app_package/files/ffmpeg, -y, -i, /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VIdidi.mp4, -async, 1, -c:v, libx264, -profile:v, high, -preset, ultrafast, -b:v, 1400k, -maxrate, 1400k, -r, 30, -vf, scale=-1:960, /storage/emulated/0/appname/out.mp4]

    Do anyone knows on what this is used ? As I don’t want my users to be asked for a permission without clear understanding on the usage.

  • How can I get Python to find ffprobe ?

    4 novembre 2018, par tburrows13

    I have ffmpeg and ffprobe installed on my mac (macOS Sierra), and I have added their path to PATH. I can run them from terminal.

    I am trying to use ffprobe to get the width and height of a video file using the following code :

    import subprocess
    import shlex
    import json


    # function to find the resolution of the input video file
    def findVideoResolution(pathToInputVideo):
       cmd = "ffprobe -v quiet -print_format json -show_streams"
       args = shlex.split(cmd)
       args.append(pathToInputVideo)
       # run the ffprobe process, decode stdout into utf-8 & convert to JSON
       ffprobeOutput = subprocess.check_output(args).decode('utf-8')
       ffprobeOutput = json.loads(ffprobeOutput)

       # find height and width
       height = ffprobeOutput['streams'][0]['height']
       width = ffprobeOutput['streams'][0]['width']

       return height, width

    h, w = findVideoResolution("/Users/tomburrows/Documents/qfpics/user1/order1/movie.mov")
    print(h, w)

    I am sorry I cannot provide a MCVE, as I didn’t write this code, and I don’t really know how it works.

    It gives the following error :

    Traceback (most recent call last):
     File "/Users/tomburrows/Dropbox/Moviepy Tests/get_dimensions.py", line 21, in <module>
       h, w = findVideoResolution("/Users/tomburrows/Documents/qfpics/user1/order1/movie.mov")
     File "/Users/tomburrows/Dropbox/Moviepy Tests/get_dimensions.py", line 12, in findVideoResolution
       ffprobeOutput = subprocess.check_output(args).decode('utf-8')
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 626, in check_output
       **kwargs).stdout
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 693, in run
       with Popen(*popenargs, **kwargs) as process:
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 947, in __init__
       restore_signals, start_new_session)
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1551, in _execute_child
       raise child_exception_type(errno_num, err_msg)
    FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'
    </module>

    If python is not reading from the PATH file, how can I specify where ffprobe is ?

    Edit :
    It appears the python path is not aligned with my shell path.
    Using os.environ["PATH"]+=":/the_path/of/ffprobe/dir" at the beginning of each program allows me to use ffprobe, but why might my python path not be the same as my shell path ?