
Recherche avancée
Autres articles (38)
-
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 (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (4495)
-
Memory leaks when opening RTMP stream with wrong url
3 novembre 2015, par n00bieI’m using libav for streaming to YouTube through RTMP. I have function openRtmpStream() for opening RTMP stream. It works well. But recently i noticed the situation, when RTMP url is wrong (or server is down). In this situation my code is trying to reconnect, and calls this function about 15 times per second. With htop i can see about 20 MB per second memory leak in this situation.
Maybe my code for closing context and streams is wrong ? Or any another idea what I’m doing wrong ? Thanks in advance !
Here’s my code :
bool openRtmpStream( const std::string& address )
{
if( ! m_httpContext ) {
m_httpContext = avformat_alloc_context( );
m_httpContext->oformat = av_guess_format( "flv", address.c_str( ), nullptr );
if( m_httpContext->oformat ) {
strcpy( m_httpContext->filename, address.c_str( ) );
auto codecID = AV_CODEC_ID_H264;
auto codec = avcodec_find_encoder( codecID );
if( codec ) {
m_httpVideoStream = avformat_new_stream( m_httpContext, codec );
// ... here's initalization of m_httpVideoStream->codec ...
int res = avcodec_open2( codecContext, codec, nullptr );
if( res >= 0 ) {
auto codecID = AV_CODEC_ID_MP3;
auto codec = avcodec_find_encoder( codecID );
if( codec ) {
m_httpAudioStream = avformat_new_stream( m_httpContext, codec );
// ... here's initalization of m_httpAudioStream->codec ...
res = avcodec_open2( codecContext, codec, nullptr );
if( res >= 0 ) {
m_httpStreamWriteStartTime = boost::chrono::high_resolution_clock::now( );
if( avio_open2( &m_httpContext->pb, m_httpContext->filename, AVIO_FLAG_WRITE, m_AVIOInterruptCB.get( ), nullptr ) >= 0 ) {
if( avformat_write_header( m_httpContext, nullptr ) >= 0 ) {
return true; // success
}
}
avcodec_close( m_httpAudioStream->codec );
}
}
avcodec_close( m_httpVideoStream->codec );
}
}
}
// failed to open stream, close context and streams
avio_close( m_httpContext->pb );
avformat_free_context( m_httpContext );
m_httpContext = nullptr;
m_httpVideoStream = nullptr;
m_httpAudioStream = nullptr;
}
return false;
} -
Revision 4383 : Deux petits bugs visuels ... Si pas de document => pas de logos de ...
6 novembre 2010, par kent1 — LogDeux petits bugs visuels ... Si pas de document => pas de logos de documents => on essaye avec le logo de l’article sinon une image normale => on la retaille bien avec la mini-icone si possible ... un caractère "[" qui trainait
-
Evolution #4753 : Styles du privé : listes d’objets (suite des boîtes et des formulaires)
30 avril 2021, par b bClasse & sobre, gogogo !
Les colonnes des tables ont des classes .importante et .secondaire.
À mon avis elle ne devraient plus avoir d’incidence en vue « normale », mais juste décider quelles colonnes afficher et masquer en vue réduite, dans les colonnes ou ailleurs.Très bonne idée, et +1 pour la classe mini.