
Recherche avancée
Autres articles (68)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (6379)
-
Troubles setting up FFMPEG with Code::Blocks
14 juillet 2014, par David NorgrenI’m trying to compile this in Code::Blocks with MinGW :
extern "C" { // also tried without this
#include <libavcodec></libavcodec>avcodec.h>
}
int main()
{
AVCodec* codec;
avcodec_register_all();
return 0;
}The header file contains the AvCodec struct and void avcodec_register_all(void) ; but I still get undefined reference to `avcodec_register_all’. It doesn’t complain about the AvCodec pointer.
My project build options :
- Linker Settings->Link Libraries : C :\Libs\ffmpeg\lib\avcodec.lib
- Search Directories->Compiler : C :\Libs\ffmpeg\include
- Search Directories->Linker : C :\Libs\ffmpeg\lib
Any ideas why I get this error ?
-
How to deploy external library along with function source code to firebase ?
2 octobre 2017, par Yizhou YanI am new to the firebase. I am doing a project which requires using ffmpeg to process video.
What I know about ffmpeg is that it runs on cmd. If I want to use ffmpeg to process video on my local computer in node.js, I need to install two things :
I first need to download the ffmpeg source code from its website, and set the system path variable so that I can run ffmpeg cmd in any directory. By doing this, I am now able to run ffmpeg in cmd to process video.
Second, install the ffmpeg module via npm. By doing this, I am now able to write code in node.js(or javascript ?) and uses functions that ffmpeg module provided to process video.
Now I want to do it with firebase. what I know about the firebase is that I am only allowed to write functions in node.js(or javascript ?) and deploy the functions to firebase server which could be trigger by events.
I also know that if I run
npm install --save ffmpeg
. in the function folder, it installs the module and--save
builds the dependency for me. Here the question comes. Where should I put the ffmpeg source code file and deploy it along with the ffmpeg module and my js function source code to the firebase ? and do I need to configure the ffmpeg source file(like setting the system path variable) ? Thank you in advanced ! -
FFMPEG, change default audio track with code
2 août 2019, par GralexI have mkv video, and what just change default audio track without remux, encode/decode and other stuff. How it can be done with code ?
AVFormatContext *pFormatCtx;
av_register_all();
avcodec_register_all();
avformat_network_init();
pFormatCtx = avformat_alloc_context();
if (avformat_open_input(&pFormatCtx, [videoPath UTF8String], NULL, NULL) != 0) {
avformat_close_input(&pFormatCtx);
return;
}
if (avformat_find_stream_info(pFormatCtx, NULL) < 0) {
avformat_close_input(&pFormatCtx);
return;
}
for (int i = 0; i < pFormatCtx->nb_streams; i++) {
if (pFormatCtx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
// so we have audio track info
// what todo next?
}
}
avformat_close_input(&pFormatCtx);