
Recherche avancée
Autres articles (78)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (9571)
-
ffmpeg binary for android not working
29 juillet 2014, par Abdul QadirI’ve copied the ffmpeg binary provided here in the
res/raw
folder into my project’s assets folder. Whenever I need to run ffmpeg commands, I copy the binary intodata/data/my-package-name/
and run the following command to check if everything works.Process process = Runtime.getRuntime().exec(ffmpegBinaryFilePath + " -version");
I get the output by logging the stream by
process.getInputStream()
. Everything works as expected. But the binary provided in the project is old (version 0.11.1) and I also need to enable lame library to work with mp3 extension. So I decided to build my own binary. I’ve build using this script and also another script showed here. When I place the build binary into my project’s assets folder. I get no output when I run the code above i.e. the log is empty. I’ve also tried building with this script but it doesn’t create any binary i.e. there is nobin
folder when compilation is finished.I’ve made ndk related changes to these scripts i.e. changed NDK, PLATFORM and PREBUILT variables (I have ndk10 64bit) and changed
--enable-shared --disable-static
to--disable-shared --enable-static
. Also cleared any references to other libraries in the--extra-cflags
and--extra-ldflags
. Do I need to make any more changes ? Any help would be appreciated !!EDIT :
here’s the log file of my latest build
http://justpaste.it/gfeb -
Revision b683eecf6d : Test upscaling as well as downscaling Fixes a bug in vp9_set_internal_size() th
21 février 2013, par John KoleszarChanged Paths : Modify /test/resize_test.cc Modify /vp9/encoder/vp9_onyx_if.c Test upscaling as well as downscaling Fixes a bug in vp9_set_internal_size() that prevented returning to the unscaled state. Updated the ResizeInternalTest to scale both down and up. Added a check that all frames are (...)
-
FFMPEG crop a portrait image square with pan and zoom scale in mind
30 septembre 2022, par huggerI am making a photo crop component for my mobile app.


If an image is selected from the image picker and it is above 4:5 ratio, using FFMPEG I need to crop this image 1:1 using the dynamic X/Y values along with the scale value from pinching (1.00 - 10).


I trying to use these values with the FFMPEG crop/scale filter, but no matter what I try I cant seem to get the crop to work as expected... It is not matching up from the UI pan / zoom.


My FFMPEG command looks like this, along with some other relevant variable code :


let zoom = this._scale.__getValue(); //set dynamically by the user; ranges from 0.1 to 10
let translateY = this._translateX.__getValue(); //amount from left side
let translateX = this._translateY.__getValue(); // amount from top

//trying to first crop the width and height / the zoom for the zoom scaling..?
//then I am using translate X/Y to get my coordinates (not matching up)
//I tried to use translateXY * zoom to get the scaling factor but it still did not work...
//the image needs to be square, chain scale filter to make this happen after the original crop?)
FFmpegKit.execute(
 `-y -i ${this.state.mediaSource} -vf "crop=iw/${zoom}:ih/${zoom}:${translateX}:${translateY}, scale=iw:iw:0:0" -qscale 0 -frames:v 1 ${filterPathPostCrop}`
).then(async (session) => {
 const returnCode = await session.getReturnCode();
 if (ReturnCode.isSuccess(returnCode)) {
 this.setState({
 mediaSource: filterPathPostCrop,
 videoSourcePreview: `${filterPathPostCrop}?${new Date().getTime()}`,
 ffMPEGinProgress: null,
 aspectRatio: 1080 / 1080,
 videoTime: 0,
 isPlayingVideo: false,
 isCropping: false,
 filterOutputIsAlt: !this.state.filterOutputIsAlt,
 wasCropped: true,
 });
 } else if (ReturnCode.isCancel(returnCode)) {
 // CANCEL
 } else {
 // ERROR
 alert('error');
 }
});



I appreciate any guidance I can get with this, I feel like I am close I just cant seem to get this calculation working...