Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (59)

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

  • 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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (9276)

  • Ffmpeg is installed, but I get the exception : You do not have ffmpeg installed on your machine

    13 janvier 2023, par Tin Kommen

    I've searched for hours for a solution, but I haven't found one yet. Maybe someone here knows what is going wrong.

    


    I'm trying to make a Bar Chart Race in Python. Although I have downloaded and installed Ffmpeg,
I keep on getting multiple errors :

    


        MovieWriter ffmpeg unavailable; using Pillow instead.
    Traceback (most recent call last):
      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 251, in saving
        yield self
      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 1161, in save
        writer.grab_frame(**savefig_kwargs)
      File "/Users/____/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 549, in grab_frame
        renderer = self.fig.canvas.get_renderer()
    AttributeError: 'FigureCanvasBase' object has no attribute 'get_renderer'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/bar_chart_race/_make_chart.py", line 435, in make_animation
        ret_val = anim.save(self.filename, fps=self.fps, writer=self.writer)
      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 1161, in save
        writer.grab_frame(**savefig_kwargs)
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line         100, in __exit__
        self.gen.throw(type, value, traceback)
      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-                        packages/matplotlib/animation.py", line 253, in saving
        self.finish()
              File "/Users/____/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 554, in finish
        self._frames[0].save(
            IndexError: list index out of range

    During handling of the above exception, another exception occurred:

    Exception: You do not have ffmpeg installed on your machine. Download
    ffmpeg from here: https://www.ffmpeg.org/download.html.
    Matplotlib's original error message below:
    list index out of range


    


    I've tried installing ffmpeg with conda, pip and homebrew. When I check the version, i get the following :

    


        ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
      built with clang version 9.0.1
      configuration: --prefix=/Users/___/opt/miniconda3 --cc=x86_64-apple-darwin13.4.0-clang --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-gpl --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-libx264 --enable-pic --enable-pthreads --enable-shared --enable-static --enable-version3 --enable-zlib --enable-libmp3lame
      libavutil      56. 31.100 / 56. 31.100
      libavcodec     58. 54.100 / 58. 54.100
      libavformat    58. 29.100 / 58. 29.100
      libavdevice    58.  8.100 / 58.  8.100
      libavfilter     7. 57.100 /  7. 57.100
      libavresample   4.  0.  0 /  4.  0.  0
      libswscale      5.  5.100 /  5.  5.100
      libswresample   3.  5.100 /  3.  5.100
      libpostproc    55.  5.100 / 55.  5.100


    


    Here is the code :

    


        import numpy as np
    import pandas as pd
    import bar_chart_race as bcr
    import os



    df = pd.read_csv('/Users/____/Documents/data/dummy_data.csv', delimiter=';', encoding="utf-8-sig")
    bcr.bar_chart_race(
        df=df,
        filename='test_win2.mov',
        orientation='h',
        sort='desc',
        n_bars=8,
        fixed_order=False,
        fixed_max=False,
        steps_per_period=50,
        interpolate_period=False,
        label_bars=True,
        bar_size=.95,
        period_label={'x': .99, 'y': .25, 'ha': 'right', 'va': 'center'},
        period_summary_func=lambda v, r: {'x': .99, 'y': .18,
                                  's': f'Totaal: {v.nlargest(8).sum():,.0f}',
                                  'ha': 'right', 'size': 8, 'family': 'Courier New'},
        perpendicular_bar_func='median',
        figsize=(3.5, 3),
        period_length=100,
        dpi=300,
        cmap='dark12',
        title='Title?',
        title_size='',
        bar_label_size=4,
        tick_label_size=4,
        shared_fontdict={'family': 'Helvetica', 'color': '.1'},
        scale='linear',
        writer=None,
        fig=None,
        bar_kwargs={'alpha': .3},
        filter_column_colors=False)


    


  • Converting MP4 from input folder, moving them to new output, resizing with FFMPEG

    13 mai 2016, par John

    I would like to know how to do the following :

    There are 2 folders on my desktop. One is called input, the other output.

    • 1 : Input folder contains a number of MP4 video files.
    • 2 : I execute a .SH script (OSX) and all MP4 video files in the
      folder will be resized to 2 other sizes for HLS.
    • 3 : The original video in the folder, the highest version, will be
      also moved to the output folder after the other 2 versions were
      rescaled and created by FFMPEG in the output folder.

    After this, we will use the Apple segmentation tool to segment all 3 versions, and automatically deleting the 3 MP4 video’s left in the output folder.

    I am not experienced with programming, hence I can use some help on this.

    As far as I came with some code :

    #!/bin/bash
    Cd ~/username/Desktop/input
    for name in *.mp4; do
     ffmpeg -i "$name" -vf scale=854:480 "../output/${name%.*}_middle.mp4"
     ffmpeg -i "$name" -vf scale=426:240 "../output/${name%.*}_low.mp4"
     mv "$name" "../output/${name%.*}_high.mp4"

    Thanks heaps in advance,

    John

  • Compiling FFMPEG on CentOS DigitalOcean

    29 juillet 2015, par coder_uk

    I set up a DigitalOcean instance running CentOS 6.5 and successfully followed the guide to compile FFMPEG (https://trac.ffmpeg.org/wiki/CompilationGuide/Centos). Hurrah !

    But of course I realised that by default, DigitalOcean creates a root user and so ffmpeg now lives in /root/bin/ffmpeg. Which isn’t ideal because when I want to exec the ffmpeg bin from nginx, I would have to run nginx as root for it to have permission.

    Questions ...

    1) Long-shot, but presumably if I change the owner of the ffmpeg binary to nginx, it still won’t work, because nginx won’t be able to access the /root folder it is in. Correct ?

    2) I could run nginx as root (’user root’). But this seems like a very bad idea. Correct ?

    3) Which leaves me with the option of creating a new user, and then compiling ffmpeg into its home folder. But : which user ? EC2 creates ’ec2-user’, so should I make my own equivalent for DO ? But then won’t I have to run nginx as that user, else I’ll run into the same problem ?

    Or should I compile ffmpeg into the ’nginx’ home folder, if indeed it has one ? Is that how it is supposed to be done ?

    Since compiling ffmpeg takes ages, I don’t want to keep doing it, and the static files all seem very out of date. Thanks