Recherche avancée

Médias (91)

Autres articles (64)

  • La gestion des forums

    3 novembre 2011, par

    Si les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
    Accès à l’interface de modération des messages
    Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
    S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (4249)

  • Incompatible Pointer Type Error, sws_scale, ffmpeg

    28 septembre 2011, par James Felix Black

    My code is very straightforward ; it consumes YUV420P data, resizes it, and produces a PNG or JPEG image (OS X Lion, Apple's gcc 4.2.1). It works fine ; I'm using ffmpeg (HEAD, as of mumble days ago), but when running in -pedantic-errors mode (which I like to do from time to time) :

    zc_libav.c:30: error: passing argument 2 of ‘sws_scale’ from incompatible pointer type

    Ouch ! Well, what's my code look like ?

    sws_scale(sws_ctx,
             in_pic->data,
             in_pic->linesize,
             0,
             in->y,
             out_pic->data,
             out_pic->linesize);

    (You can assume for the sake of argument that the in_pic and out_pic AVPicture structures have been properly initialized, as the code works).

    Well, what're the offending data types ?

    from libswscale/swscale.h :

    int sws_scale(struct SwsContext *c, const uint8_t* const srcSlice[], …

    from libavcodec/avcodec.h

    typedef struct AVPicture {
     uint8_t *data[4];
     int linesize[4];       ///< number of bytes per line
    } AVPicture;

    As I noted above, when I change -pedantic-errors to -pedantic, I get the same complaint, but the code compiles and runs correctly. For my own neurotic sanity, is there any way to get the advantages of -pedantic-errors and, you know, compile this code ?

  • Running ffmpeg command on save_post

    1er juillet 2015, par Shadab Khan

    I am trying to run ffmpeg command on save_post wordpress function but cant figure it out why it isnt working, already gave 2-3 days,

    When we click save post ffmpeg should start and convert the video file in mp3 and thumbnail

    this is the code i have

    function run_ffmpeg()  {
    $video = 'demo.mp4';
    $audio = 'demo-audio.mp3';
    $thumbnail = 'demo-thumb.jpg';
    shell_exec("ffmpeg -i $video -deinterlace -an -ss 1 -t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg $thumbnail 2>&1 $audio");
    }
    add_action('save_post', 'run_ffmpeg');
  • Configuring ffmpeg as an rtmp server

    31 mai 2015, par Simon Dainty

    I’ve struggled for the past couple of days on this, without success, and I’d really like to get something working sooner than later - so I’d appreciate any feedback I can get.

    Anyway, I want to configure ffmpeg as an rtmp server that I can stream to (from anything that supports rtmp publishing - though, for experimentation, I’ll be using Open Broadcast Software). Right now I’ll just be happy to dump whatever is live streamed to a file, but in future I’ll be doing something more creative with it.

    So, with that in mind, could some kind soul please furnish me with an example commandline for ffmpeg that will accomodate me ?

    Thanks !