
Recherche avancée
Autres articles (85)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (11753)
-
How to convert the sample rate with ffmpeg-python
7 septembre 2022, par NoriI'm using ffmpeg-python. I would like to change the sample rate of the audio file.


In ffmpeg-, it seems that you can change the sample rate as follows.


ffmpeg -i" movie.mp3 "-y" movie.flac "-ar 44100



-ar
is sample rate.

How do I change the sample rate by ffmpeg-python ?


This is my source code that is currently being written.


stream = ffmpeg.input(input_file_path)
audio = stream.audio
stream = ffmpeg.output(audio, output_file_path)
ffmpeg.run(stream, capture_stdout=True, capture_stderr=True)



-
FFMPEG inside a C#/C++ multithreaded application [on hold]
24 décembre 2013, par oferbarI've inherited an application written mostly in C# that calls FFMPEG libraries to decode video frames, specifically avcodec_decode_video2().
The general flow of a frame is like this :
- A frame is allocated and filled inside a C# dedicated thread (a.k.a. 'player').
- A managed C++ object is called to decode the frame.
- The Decode() method is initializing the parameters for avcodec_decode_video2() and calling this function.
When I have 1-6 thread running in parallel and decoding frames I get no errors.
However, when I increase the number of threads (>6) the decoding function starts failing and the got_picture_ptr parameter is returned as zero (no picture was decoded).The FFMPEG log gave me a hint : "no picture ooo" = out of order frames.
I suspect that something fishy is going on with passing a managed memory block inside a frame to an the unmanaged code, maybe the pointer is moved ?
Anyway, any advice on where to look would be greatly appreciated. I've done quite a lot of digging into this, but so far without luck.
[Windows 7/64-bit, .NET 4.0.]
Thx !
Ofer
-
How to Buffer Audio Streams for an Android Internet Radio Application
16 février 2014, par burakkWe have a radio application that streams MP3 over HTTP using an instance of the MediaPlayer class. In devices running new Android versions (i.e, Note 3 running Android 4.3), the music plays for about half a second, and then waits (buffers ?) for up to 10 seconds, and plays again. I guess this unwanted behavior is due to the increased buffer size of the MediaPlayer in newer Android versions. Since there's no way to set the buffer size, there are few options left :
- Stream Proxy
- AudioTrack + MP3 Decoder
- OpenSL
I have read many posts about those, and concluded that the best way would be using AudioTrack with an MP3 decoder like FFMPEG. However, I am open to suggestions and any guidances since I do not have any knowledge about Android NDK, JNI and FFMPEG...