
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (102)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.
Sur d’autres sites (10021)
-
Revision bea691b5c9 : Merge "Add dynamic range comment to hadamard_8x8()"
12 juin 2015, par Jingning HanMerge "Add dynamic range comment to hadamard_8x8()"
-
FFmpeg crop portrait video 1:1 from the top based on dynamic value
8 avril 2022, par huggerI am replacing my video editing component with FFmpeg. So far it has been smooth until getting to this point where I need to crop my vertical (portrait) video to 1080x1080 with a dynamic value.


Essentially, I built a custom component to do the cropping, where I can pan a square box over the video. the Y value for the pan is where I wish to cut the top part of the video.


Here is the code I have tried, which works but is not cropping to my desired specs note :
offsetDiff
is the space I wish to remove from the top (pan px value) :

cropSelected() {
 const diff =
 this.props.videoHeight / (this.state.aspectRatio * deviceWidth);
 const offsetDiff = this.state.offsetTopTranslate * diff;

 var path =
 this.props.type === 'photo'
 ? RNFS.DocumentDirectoryPath + '/after.png'
 : RNFS.DocumentDirectoryPath + '/after.mp4';

 var filterPath =
 this.props.type === 'photo'
 ? RNFS.DocumentDirectoryPath + '/afterFilter.png'
 : RNFS.DocumentDirectoryPath + '/afterFilter.mp4';

 FFmpegKit.execute(
 `-y -i ${path} -vf "crop=iw:1080:0:${offsetDiff}, scale=1080:1080" -qscale 0 ${filterPath}`,
 ).then(async session => {
 const returnCode = await session.getReturnCode();
 if (ReturnCode.isSuccess(returnCode)) {
 // SUCCESS
 this.setState({
 mediaSource:
 this.props.type === 'video'
 ? `file://${filterPath}?${new Date().getTime()}`
 : filterPath,
 isOpen: !this.state.isOpen,
 ffMPEGinProgress: null,
 aspectRatio: 1080 / 1080,
 });
 } else if (ReturnCode.isCancel(returnCode)) {
 // CANCEL
 } else {
 // ERROR
 alert('error');
 }
 });
 }



Basically here I am trying to tell FFmpeg to keep the width (1080), make the height 1080, ignore X value, crop dynamic amount from the top.


Here is what my cropper component looks like to get an idea.




I appreciate any help I can get here folks, cheers !


-
avcodec/mpegaudio_tablegen : more dynamic table creation speedups
28 novembre 2015, par Ganesh Ajjanagaddeavcodec/mpegaudio_tablegen : more dynamic table creation speedups
This further speeds up runtime initialization, with identical generated tables.
Sample benchmark (x86-64, Haswell, GNU/Linux) :
old :
34441423 decicycles in mpegaudio_tableinit, 8192 runs, 0 skipsnew :
10776291 decicycles in mpegaudio_tableinit, 8192 runs, 0 skipsMost low hanging fruit is taken care of here. For some idea, note that
83,064 array elements totalling 233,722 bytes need to be initialized.
Thus, with this patch, we average 12.9 cycles per element or 4.6
cycles per byte.Reviewed-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com>