Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (111)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (9984)

  • Is it possible to use the ffmpeg that imageio automatically installs, and if so, how ?

    21 décembre 2016, par Gloin

    I am running macOS Sierra.

    The module moviepy has imageio as one of its dependencies, and the first time you run it, it installs ffmpeg, which it uses to read and write video files.
    I am now trying to use ffprobe without imageio, but still in python, however it cannot find it. It gives the error

    FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

    Running ffmpeg or ffprobe from the terminal gives the error

    -bash: ffprobe: command not found

    FFmpeg obviously is somewhere on my mac, as moviepy/imageio uses it, but only that can find it.

    This is the code I am trying to run :

    # 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

    which cannot find ffprobe.

    Is there a way to use the installed version ffmpeg/ffprobe from python or the terminal, or do I have to install ffmpeg from ffmpeg.org ?

    EDIT : @LordNeckBeard
    In /Users/mynae/Library
    I have added the following to .bash_profile using this tutorial :

    PATH="/Users/myname/Library/Application Support/imageio/ffmpeg:${PATH}"
    export PATH

    /Users/myname/Library/Application Support/imageio/ contains a single folder called ffmpeg, which contains a single file called ffmpeg.osx. If I run ffmpeg.osx I get the message :

    Killed: 9

    I’ve never changed PATH before, and neither of these work. I still get the same errors as before. Have I done this correctly ? If so, is there anything else that might be wrong ?

  • avconv/ffmpg generating frames in php

    6 mars 2014, par fsulser

    I'm trying to generate some frames (at the moment) on my localhost server with this code :

    $cmd = 'avconv -i "../videos/medium.mp4" -vsync 1 -r 10 -f image2 -an -y -qscale 20 -s 120*90 -ss 00:00:05 -t 00:00:10 "out_%05d.jpg" 2>&1';

    passthru($cmd, $out);

    I get the following message :

    avconv version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, ............
    Press ctrl-c to stop encoding [image2 @ 0x646120] Could not open file : out_00001.jpg av_interleaved_write_frame() : Input/output error failed1

    The problem is if I run this command in my terminal it works. Does anyone know whats the problem ? Is it due to permisson or something else ?

  • Mingw-w64 builded FFmpeg doesn't show any usage information

    26 octobre 2013, par user1240328

    First I wanted to modificate ffplay according to my requirments. Then I noticed that original ffplay from my build can't play some video files, but it didn't write any message to console. Then I noticed that ffmpeg also don't write any usage message when I run it without params. But it works. If I run it from terminal it's like running asynchronously ! The terminal just shows next row. I mean it asks for a next command. But the ffmpeg process is visible in task manager and it writes the output video file what I had requested !

    I created following souce file. I have modified the Makefile. So it have built the exe-file works just the same way. I have no idea how it can be.

    #include
    #include "cmdutils.h"

    const char program_name[] = "hello";
    const int program_birth_year = 2013;

    void show_help_default(const char *opt, const char *arg)
    {
       printf("zxcvbnm\n");
    }

    int main(int argc, char **argv)
    {
       printf("1234567890\n");
       return 0;
    }

    I want to prevent this behavior.

    I want to make printf working in traditional manner.

    How I build FFmpeg :

    PKG_CONFIG_PATH=/home/developer/workspace/MinGW32fs/lib/pkgconfig/ \
    SDL_CONFIG=/home/developer/workspace/MinGW32fs/bin/sdl-config \
    ./configure \
     --prefix=/home/developer/workspace/MinGW32fs \
     --extra-ldflags="-L/home/developer/workspace/MinGW32fs/lib" \
     --extra-cflags="-I/home/developer/workspace/MinGW32fs/include" \
     --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32-  \
     --pkg-config=pkg-config   --enable-libtheora --enable-libvorbis --enable-libvpx \
     --enable-outdev=sdl --enable-shared --disable-static \
     --disable-doc --disable-manpages --disable-podpages

    make