
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (64)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, 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 (...)
Sur d’autres sites (15424)
-
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;
} -
How to intergrate FFMPEG NDK library in android project to decode the audio files ?
19 août 2014, par saranyaHow to decode the audio files using FFMPEG NDK library ?
Below is the code i used to decode the mp3 file after merging two mp3 files.
tryString tempPath = Environment.getExternalStorageDirectory()+"/"+mvalue+".mp3";
File fileTemp = new File(tempPath);
ffmpeg = new FfmpegController(fileTemp,outFile);
Clip clipMixOut = new Clip(outFile.getCanonicalPath());
try {
ffmpeg.convertToMPEG(clipMixOut,mCodecPath, new ShellUtils.ShellCallback() {
@Override
public void shellOut(String shellLine) {
// TODO Auto-generated method stub
System.out.println("fc>" + shellLine);
}
@Override
public void processComplete(int exitValue) {
// TODO Auto-generated method stub
System.err.println("concat non-zero exit: " + exitValue);
}
});
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (IOException e) {
Log.e(TAG+":::", "IOException running ffmpeg" + e.getMessage());
} -
How to use pipe in ffmpeg within c#
14 août 2018, par Andrew SimpsonI have 100 jpegs.
I use ffmpeg to encode to a video file which is written to a hard drive.
Is there a way to pipe it directly to a byte/stream ?
I am using C# and I am using the process class to initate ffmpeg.
Thanks