
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (41)
-
Personnaliser les catégories
21 juin 2013, parFormulaire 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, parLa 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, parMediaSPIP 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 ktraceI'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 ?






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








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








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 :


- 

- graphpaper.mp4 https://imgur.com/a/daHI7j0
- arrow.png https://imgur.com/a/wWwnnfq






-
Error while trying to get output from command [C++]
8 septembre 2021, par JilijouI 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>
#include <memory>
#include <stdexcept>
#include <array>
#include <cstdio>
#include 
#include <string>
#include <sstream>

using namespace std;

int main() {
 float duration_1, duration_2, full_duration;
 duration_1 = system("ffprobe -i goal1_25.mp4 -show_entries format=duration -v quiet -of csv=\"p=0\"");
 //duration_2 = system("ffprobe -i goal2_25.mp4 -show_entries format=duration -v quiet -of csv=\"p=0\"");
 const char* command_duration_2 = "ffprobe -i goal2_25.mp4 -show_entries format=duration -v quiet -of csv=\"p=0\"";
 std::string exec(commande_duration_2) {
 std::shared_ptr<file> pipe(popen(command_duration_2, "r"), pclose);
 if (!pipe) return "ERROR";
 char buffer[128];
 std::string result = "";
 while (!feof(pipe.get())) {
 if (fgets(buffer, 128, pipe.get()) != NULL) {
 duration_2 += buffer;
 }
 }
 return duration_2;
 }


 cout << duration_1 << " | " << duration_2;
 return 0;
}
</file></sstream></string></cstdio></array></stdexcept></memory></iostream>


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 !


-
Compile FFmpeg shared library for macOS and libavdevice.58.dylib
31 juillet 2020, par IgorI compiled FFmpeg 4.3.1 into shared libraries for macOS Catalina to implement a video playback in my app.


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.


brew install automake fdk-aac git lame libass libtool sdl shtool texi2html wget x264 nasm

./configure --prefix=/usr/local --enable-shared --samples=fate-suite

make