Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (18)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

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

Sur d’autres sites (5718)

  • Youtube-DL file download live progress

    7 février 2015, par roshkattu

    I am using the YoutubeDL library in a project. My environment is based on WINDOWS with XAMPP as the webserver boundle (apache,php,mysql,etc). I am using the youtube-dl.exe file to download the video and then use ffmpeg.exe to convert the video to an MP3 audio file.

    At the moment, I have an issue related to programming : I want to show live a progressbar while the video is downloaded with the youtube-dl.exe file. This exe creates a log file, that is updated while the video is downloaded. So my approach on this was to create a PHP file, that opens, parses the log file and get’s the progress percent, and sends it as a json encoded value to an AJAX function that is called every 100MS. Indeed, if the video is too large, there will be a very high ammount of data while polling the PHP file to get the progress state. And sometimes, the browser either crashes or freezes because of this ajax polling.

    My question is : is there any better approach to do this with PHP/AJAX ? Rathar than poll the file every 100MS, or 50MS ?

  • Generating Gif from Mp4 directly - ffmpeg

    20 janvier 2016, par senty

    I am trying to generate a gif from an mp4 video file. I want to scale it and crop it while generating.

    I achieved that (cropping & scaling) from mp4 to mp4 with the below line , (so I can extract pngs with ffmpeg and use Imagick to make animated gif), but I believe there is a better way of achieving purely with ffmpeg.

    ffmpeg -i in.mp4 -filter:v "scale=300:ih*300/iw, crop=200:500:50:80" -c:a copy out.mp4

    My question is how to achieve the same this code is doing, but for directly generating gif from mp4.


    Then I started tweaking with mp4 to gif conversion, but when palette comes in, I couldn’t fully understand what’s going on.

    I found this answer and I made it work, however I couldn’t understand how to adapt scaling & cropping.

    $ ffmpeg -y -ss 30 -t 3 -i in.mp4 \
    -vf fps=10,scale=320:-1:flags=lanczos,palettegen palette.png

    $ ffmpeg -ss 30 -t 3 -i in.flv -i palette.png -filter_complex \ "fps=10,scale=320:-1:flags=lanczos[x];[x][1:v]paletteuse" out.gif

    I partially understand what this bit does -y -ss 30 -t 3 -i in.mp4 (getting the first 30 seconds and generating a 3 second gif out of it). But for the next lines, I am completely lost what it is actually doing.

    It’d be amazing if someone can explain what each command does, or refer a link explaining this topic.

  • How do I write a simple script which calls ffmpeg and records an audio stream ?

    29 janvier 2016, par user2192778

    I would like to write a script which calls ffmpeg and begins recording an internet radio stream.

    This command is simple :
    ffmpeg -i http://myaudiostream.com output.mp3

    I understand how to make a .bat file, I just don’t know specifically how to code these instructions.

    Can I have some help ?
    I haven’t written a script before, though I understand how it works. I don’t know any of the syntax.