Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (80)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • 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

Sur d’autres sites (12203)

  • python imageio.get_reader() returns odd exception

    17 août 2020, par tristan_jia
    import imageio

reader = imageio.get_reader("./t.mp4")


    


    As shown above, with python 3.6.10, it returns :

    


    >>> reader = imageio.get_reader("../")&#xA;Traceback (most recent call last):&#xA;  File "<stdin>", line 1, in <module>&#xA;  File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/functions.py", line 129, in get_reader&#xA;    return format.get_reader(request)&#xA;  File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 168, in get_reader&#xA;    return self.Reader(self, request)&#xA;  File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 217, in __init__&#xA;    self._open(**self.request.kwargs.copy())&#xA;  File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 357, in _open&#xA;    self._initialize()&#xA;  File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 430, in _initialize&#xA;    shell=ISWIN)&#xA;  File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__&#xA;    restore_signals, start_new_session)&#xA;  File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child&#xA;    raise child_exception_type(errno_num, err_msg, err_filename)&#xA;OSError: [Errno 8] Exec format error: &#x27;/home/tristan_jia/.imageio/ffmpeg/ffmpeg-linux64-v3.3.1&#x27;&#xA;&#xA;</module></stdin>

    &#xA;

    I searched everywhere but haven't seen any similar questions. The script runs on Opensuse Leap 15.1, is it related to the system I use ?

    &#xA;

  • Invoking ffmpeg from Java correctly

    10 mars 2015, par Srinivas Suresh

    I would like to call on ffmpeg to split a video into frames, I used

    Process p=Runtime.getRuntime().exec("ffmpeg -i /home/video.mp4 -t 100 -filter:v \"fps=fps=60\" /home/%d.jpeg");
    p.waitFor();

    But I don’t get the desired result. Nothing happens to the video. How do invoke ffmpeg from java correctly

    EDIT

    Additionally when I invoke ffmpeg without any arguments that have quotes in them it works fine.

    Why is this getting voted down ??

  • Compile FFmpeg with libfdk_aac

    26 mars 2024, par Toydor

    I been reading on how to convert mp3 to m4a, and found that I must compile FFmpeg if I'll use the AAC encoder, libfdk_aac.

    &#xA;&#xA;

    But reading FFmpeg guide on how to compile FFmpeg with libfdk_aac makes no sense for a beginner like me.

    &#xA;&#xA;

    To use libfdk_aac the encoding guide says :

    &#xA;&#xA;

    &#xA;

    Requires ffmpeg to be configured with —enable-libfdk_aac&#xA; —enable-nonfree.

    &#xA;

    &#xA;&#xA;

    Where do I put those flags ?

    &#xA;&#xA;

    Do I put it here somewhere ? :

    &#xA;&#xA;

    cd ~/ffmpeg_sources&#xA;git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git&#xA;cd fdk-aac&#xA;autoreconf -fiv&#xA;./configure --prefix="$HOME/ffmpeg_build" --disable-shared&#xA;make&#xA;make install&#xA;make distclean&#xA;

    &#xA;&#xA;

    Or maybe here somewhere ?

    &#xA;&#xA;

    cd ~/ffmpeg_sources&#xA;git clone --depth 1 git://source.ffmpeg.org/ffmpeg&#xA;cd ffmpeg&#xA;PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"&#xA;export PKG_CONFIG_PATH&#xA;./configure --prefix="$HOME/ffmpeg_build" \&#xA;  --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" \&#xA;  --bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-libass --enable-libfdk-aac \&#xA;  --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx \&#xA;  --enable-libx264 --enable-nonfree --enable-x11grab&#xA;make&#xA;make install&#xA;make distclean&#xA;hash -r&#xA;

    &#xA;&#xA;

    If I'm reading the compile guide right I guess that these two chunks of code is what I need to compile FFmpeg.

    &#xA;&#xA;

    I'm using Ubuntu server 12.4

    &#xA;&#xA;

    UPDATE

    &#xA;&#xA;

    After upgrading my system to Ubuntu 16.04 I had to install ffmpeg again. &#xA;I still needed libfdk-aac. Fortunately there's a good step-by-step guide at http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu on how to compile ffmpeg.

    &#xA;&#xA;

    I thought I would share how to compile if just interested in compiling ffmpeg with libfdk-aac and libmp3lame.

    &#xA;&#xA;

    If you haven't already a bin in home directory :

    &#xA;&#xA;

    mkdir ~/bin &#xA;

    &#xA;&#xA;

    Install dependencies. Didn't need the non-server packages :

    &#xA;&#xA;

    sudo apt-get update&#xA;sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libtheora-dev libtool libvorbis-dev pkg-config texinfo zlib1g-dev &#xA;

    &#xA;&#xA;

    Then install the encoders. Had to install yasm as well, otherwise I got errors when compiling.

    &#xA;&#xA;

    sudo apt-get install libfdk-aac-dev&#xA;sudo apt-get install libmp3lame-dev&#xA;sudo apt-get install yasm&#xA;

    &#xA;&#xA;

    Then compile ffmpeg with needed flags

    &#xA;&#xA;

    cd ~/ffmpeg_sources&#xA;wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2&#xA;tar xjvf ffmpeg-snapshot.tar.bz2&#xA;cd ffmpeg&#xA;PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \&#xA;--prefix="$HOME/ffmpeg_build" \&#xA;--pkg-config-flags="--static" \&#xA;--extra-cflags="-I$HOME/ffmpeg_build/include" \&#xA;--extra-ldflags="-L$HOME/ffmpeg_build/lib" \&#xA;--bindir="$HOME/bin" \&#xA;--enable-libass \&#xA;--enable-libfdk-aac \&#xA;--enable-libfreetype \&#xA;--enable-libtheora \&#xA;--enable-libvorbis \&#xA;--enable-libmp3lame \&#xA;--enable-nonfree \&#xA;--enable-gpl&#xA;PATH="$HOME/bin:$PATH" make&#xA;make install&#xA;make distclean&#xA;hash -r&#xA;

    &#xA;