Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (38)

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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (4150)

  • convert animated gif to video on linux server while preserving frame rate

    12 juin 2015, par pmedia

    how do I convert an animated gif to a video (e.g. h264@mp4) programmatically on a linux server ?

    I need this to process user generated content which should be output as several defined video formats ; therefore its possible, that users may want to process animated gif files. I already have a set of working php scripts to transcode videofiles to specific formats (like vpx@webm and h264@mp4, scaled to specific resolutions) using avconv, but herefore I need video input.

    Usual ways seem to be to extract the frames of the gif and then encode it, like

    convert file.gif file%03d.png
    avconv -i file%03d.png file.mp4

    But this discards the frame rate, determined by the pause-informations within the gif-file. Its possible to define a framerate to avconv with -r, but

    • this does not respect the pause between frames, as they can differ (like 1st frame 100ms pause, 2nd frame 250ms pause, 3rd frame 100ms pause, ...)
    • as the input comes from users, it may even vary, as some gifs may have 5fps and others 30fps

    I noticed that avconv is able to process gifs by itself and therefore may respect the correct pauses, but when I do (like similarily described in How to convert GIF to Mp4 is it possible ?)

    avconv -i file.gif -r 30 file.mp4

    avconv will only take the first frame of the gif, while it detects the file at least as video :

    Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0.0: Video: gif, pal8, 640x480, 25 tbn

    (example gif ’file.gif’ has 15 frames, each with 100ms pause => 1.5s duration, looping)

    • What am I missing ? Whats going wrong ?
    • Are there probably better tools for this use case ?
    • What are big sites like e.g. 9gag using to transcode uploaded gifs to video ?
  • FFMPEG is not working centos linux server

    18 mars 2015, par User

    I am using FFMPEG for video thumbnails creation,

    I have downloaded FFMPEG (ffmpeg-2.4.2.tar.bz2) and installed in server.

    located in

    /usr/bin/ffmpeg

    and used in this below code :

    if($extension === 'mp4' OR $extension == 'MP4' )
    {
    $video = $timestamp.$imagename;
    $videoname=substr($imagename,0, -4).$timestamp;
    $image = "sites/default/files/content_images/{$videoname}-thumb.jpg";

    var_dump($video);

    $cmd="/usr/bin/ffmpeg -i /opt/lampp/htdocs/mydashboard/sites/default/files/content_videos/".$video." -ss 00:00:14.435 -f image2 -vframes 1 /opt/lampp/htdocs/mydashboard/sites/default/files/content_images/$videoname-thumb.jpg";

    $cmdstr = $cmd;
    $locale = 'en_IN.UTF-8';
    setlocale(LC_ALL, $locale);
    putenv('LC_ALL='.$locale);
    echo exec($cmd);

    but this command not working as i expect..

    $cmd="/usr/bin/ffmpeg -i /opt/lampp/htdocs/mydashboard/sites/default/files/content_videos/".$video." -ss 00:00:14.435 -f image2 -vframes 1 /opt/lampp/htdocs/mydashboard/sites/default/files/content_images/$videoname-thumb.jpg";

    issue was video thumbnail is not created,when we upload videos.

    any help great appreciation

  • How to use FFMPEG in linux environment only for video thumbnails creation ?

    16 mars 2015, par User

    I am using FFMPEG for video thumbnails creation,

    I have downloaded FFMPEG (ffmpeg-2.4.2.tar.bz2).

    wrote code for that

    if($extension === 'mp4' OR $extension == 'MP4' )
    {
    $video = $timestamp.$imagename;
    $videoname=substr($imagename,0, -4).$timestamp;
    $image = "sites/default/files/content_images/{$videoname}-thumb.jpg";

    var_dump($video);

    $cmd="/usr/local/bin/ffmpeg -i /opt/lampp/htdocs/mydashboard/sites/default/files/content_videos/".$video." -ss 00:00:14.435 -f image2 -vframes 1 /opt/lampp/htdocs/mydashboard/sites/default/files/content_images/$videoname-thumb.jpg";

    $cmdstr = $cmd;
    $locale = 'en_IN.UTF-8';
    setlocale(LC_ALL, $locale);
    putenv('LC_ALL='.$locale);
    echo exec($cmd);

    Placed ffmpeg files in usr/local/bin folder.

    but video thumbnails are not created.

    can any one tel me how to use ffmpeg in linux server.