Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (41)

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (9550)

  • How to rotate an image overlay in ffmpeg around the image center ?

    14 mars 2023, par ktrace

    I'm using ffmpeg to scale, rotate and overlay an image on a video. I'm able to rotate the image by the desired angle but the overlay ends up being moved both vertically and horizontally from the expected position.

    


    The commands I've tried and their corresponding outputs are shown below. Command 1 gives the expected output, 2 and 3 do not.

    


    How can I modify my commands in general, to rotate the overlay image around the image center, to get the expected output ?

    


    Command 1

    


    


    ffmpeg -i graphpaper.mp4 -i arrow.png -y -filter_complex [1:v]scale=w=364:h=370[overlay0] ;[overlay0]rotate=a=0:c=none:ow=rotw(0):oh=roth(0)[rotate0] ;[0:v][rotate0]overlay=x=419:y=168[output0] -map [output0] sample-overlay-on-graph-paper.mp4

    


    


    Command 2

    


    


    ffmpeg -i graphpaper.mp4 -i arrow.png -y -filter_complex [1:v]scale=w=364:h=370[overlay0] ;[overlay0]rotate=a=0.8017360589297406:c=none:ow=rotw(0.8017360589297406):oh=roth(0.8017360589297406)[rotate0] ;[0:v][rotate0]overlay=x=419:y=168[output0] -map [output0] sample-overlay-on-graph-paper.mp4

    


    


    Command 3

    


    


    ffmpeg -i graphpaper.mp4 -i arrow.png -y -filter_complex [1:v]scale=w=364:h=370[overlay0] ;[overlay0]rotate=a=5.493783719179012:c=none:ow=rotw(5.493783719179012):oh=roth(5.493783719179012)[rotate0] ;[0:v][rotate0]overlay=x=419:y=168[output0] -map [output0] sample-overlay-on-graph-paper.mp4

    


    


    Links to input files :

    


    


  • Error while trying to get output from command [C++]

    8 septembre 2021, par Jilijou

    I am trying to get the duration of a video using ffmpeg in C++ and I tried using a pipe to get the output from a command. I can't compile my code, getting this error :

    


    video_concat.cpp: In function 'int main()':
video_concat.cpp:17:41: error: expected ',' or ';' before '{' token
   std::string exec(commande_duration_2) {
                                         ^
video_concat.cpp:51:1: error: expected '}' at end of input
 }
 ^


    


    And this is my code :

    


    #include <iostream>&#xA;#include <memory>&#xA;#include <stdexcept>&#xA;#include <array>&#xA;#include <cstdio>&#xA;#include &#xA;#include <string>&#xA;#include <sstream>&#xA;&#xA;using namespace std;&#xA;&#xA;int main() {&#xA;  float duration_1, duration_2, full_duration;&#xA;  duration_1 = system("ffprobe -i goal1_25.mp4 -show_entries format=duration -v quiet -of csv=\"p=0\"");&#xA;  //duration_2 = system("ffprobe -i goal2_25.mp4 -show_entries format=duration -v quiet -of csv=\"p=0\"");&#xA;  const char* command_duration_2 = "ffprobe -i goal2_25.mp4 -show_entries format=duration -v quiet -of csv=\"p=0\"";&#xA;  std::string exec(commande_duration_2) {&#xA;    std::shared_ptr<file> pipe(popen(command_duration_2, "r"), pclose);&#xA;    if (!pipe) return "ERROR";&#xA;    char buffer[128];&#xA;    std::string result = "";&#xA;    while (!feof(pipe.get())) {&#xA;        if (fgets(buffer, 128, pipe.get()) != NULL) {&#xA;            duration_2 &#x2B;= buffer;&#xA;        }&#xA;    }&#xA;    return duration_2;&#xA;  }&#xA;&#xA;&#xA;  cout &lt;&lt; duration_1 &lt;&lt; " | " &lt;&lt; duration_2;&#xA;  return 0;&#xA;}&#xA;</file></sstream></string></cstdio></array></stdexcept></memory></iostream>

    &#xA;

    If I put between /.../ the pipe section, everything works fine but I don't get any result (Output : 0 | 0). Can anyone help me ? Thanks !

    &#xA;

  • Compile FFmpeg shared library for macOS and libavdevice.58.dylib

    31 juillet 2020, par Igor

    I compiled FFmpeg 4.3.1 into shared libraries for macOS Catalina to implement a video playback in my app.

    &#xA;

    However libavdevice.58.dylib is very small (70 KB instead of 2 MB) and doesn't include basic LibAV functions for a correct work. Other dylibs seems to be OK.

    &#xA;

    brew install automake fdk-aac git lame libass libtool sdl shtool texi2html wget x264 nasm&#xA;&#xA;./configure  --prefix=/usr/local --enable-shared --samples=fate-suite&#xA;&#xA;make&#xA;

    &#xA;