
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (94)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (10275)
-
Adding FFmpeg library as dependency in Visual studio project to get rid of LNK2019 error
13 mars 2019, par MSD PaulWhile compiling a project on Microsoft visual studio (to generate dll), I am getting the following linking errors (LNK2019)
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol av_strerror referenced in function "private : void __cdecl DecoderFFmpeg::printErrorMsg(int)" (?printErrorMsg@DecoderFFmpeg@@AEAAXH@Z)
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol av_get_channel_layout_nb_channels referenced in function "private : int __cdecl DecoderFFmpeg::initSwrContext(void)"several other functions like av_dict_set, av_dict_free, avcodec_decode2 which is related to the ffmpeg libraries. Can anyone please tell me how to properly add "ffmpeg" as dependenciesto this project and link it properly ?
-
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 !


-
Android ffmpeg usage - I want reduce the output apk file size - Iam Using only for image to webp conversion
3 juin 2022, par Fazl FaisalFFMPEG - Android Only using for jpg to webp conversion. But the apk file size is very big.
I want know where rules want to change for reducing the APK file size. Please Help


List<string> commandList = new LinkedList<>();
 commandList.add("-i");
 commandList.add(imageFilePath);
 commandList.add("-vcodec");
 commandList.add("webp");
 commandList.add("-loop");
 commandList.add("0");
 commandList.add("-pix_fmt");
 commandList.add("yuv420p");
 commandList.add(outputPath);

 String[] cropCommand = commandList.toArray(new String[commandList.size()]);

 FFmpegSession session = FFmpegKit.execute(cropCommand);

 if (ReturnCode.isSuccess(session.getReturnCode())) {

 fp.ToastDebug("Success");

 } else if (ReturnCode.isCancel(session.getReturnCode())) {

 fp.ToastDebug("CANCEL");

 } else {

 fp.AlertDebug("ffmpeg: "+ String.format("Command failed with state %s and rc %s.%s", session.getState(), session.getReturnCode(), session.getFailStackTrace()));
 fp.Log("ffmpeg: "+ String.format("Command failed with state %s and rc %s.%s", session.getState(), session.getReturnCode(), session.getFailStackTrace()));

 }
</string>