
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (70)
-
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 (...) -
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 (...)
Sur d’autres sites (6503)
-
avformat/wavenc : Fix leak and segfault on reallocation error
22 février 2021, par Andreas Rheinhardtavformat/wavenc : Fix leak and segfault on reallocation error
Up until now, the wav muxer used a reallocation of the form ptr =
av_realloc(ptr, size) ; that leaks upon error. Furthermore, if a
failed reallocation happened when writing the trailer, a segfault
would occur due to avio_write(NULL, size) because the muxer only
prints an error message upon allocation error, but does not return
the error.Moreover setting the pointer to the buffer to NULL on error seems to
be done on purpose in order to record that an error has occured so that
outputting the peak values is no longer attempted. This behaviour has
been retained by simply disabling whether peak data should be written
if an error occurs.Finally, the reallocation is now done once per peak block and not once
per peak block per channel ; it is also done with av_fast_realloc and not
with a linear size increase.Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-
avformat_close_input memory leak ?
20 janvier 2021, par Keen JackdawI developed an app to push live stream with ffmpeg. When I checked the app with
leaks --atExit -- <the app="app"></the>
(I'm on mac), I found some memory leak with AVFormatContext.

The minimized code are provided below :


#include <iostream>

extern "C" {
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
#include <libavdevice></libavdevice>avdevice.h>
}

void foo() {
 avdevice_register_all();

 AVFormatContext *avInputFormatContext = avformat_alloc_context();
 AVInputFormat *avInputFormat = av_find_input_format("avfoundation");
 std::cout << "open input" << std::endl;
 int ret = avformat_open_input(&avInputFormatContext, "Capture screen 0", avInputFormat, nullptr);
 if (ret < 0) { std::cout << "open input failed: " << ret << std::endl; return;}

 avformat_close_input(&avInputFormatContext);

}

int main() {
 foo();
 return 0;
}

</iostream>


The output is


Process: ffmpegtest [87726]
Path: /Users/USER/*/ffmpegtest
Load Address: 0x10a752000
Identifier: ffmpegtest
Version: ???
Code Type: X86-64
Platform: macOS
Parent Process: leaks [87725]

Date/Time: 2021-01-20 15:44:57.533 +0800
Launch Time: 2021-01-20 15:44:55.760 +0800
OS Version: macOS 11.1 (20C69)
Report Version: 7
Analysis Tool: /Applications/Xcode.app/Contents/Developer/usr/bin/leaks
Analysis Tool Version: Xcode 12.3 (12C33)

Physical footprint: 9.9M
Physical footprint (peak): 10.6M
----

leaks Report Version: 4.0
Process 87726: 14143 nodes malloced for 2638 KB
Process 87726: 1 leak for 32 total leaked bytes.

 1 (32 bytes) ROOT LEAK: 0x7f8c61e1b040 [32] length: 16 "Capture screen 0"



Did I miss something ?


-
HLS FLAC stream creation with FFMPEG
8 janvier 2021, par Myles McDonnellI have created a HLS stream from a FLAC file with an output of FLAC using the following command :


ffmpeg -i 10-brass-in-pocket.flac -map 0:a -c:a:0 flac -f hls -hls_playlist_type vod -master_pl_name master.m3u8 -hls_time 15 -hls_segment_filename %03d.ts -var_stream_map "a:0" stream_%v.m3u8


I have published it here :


https://di5wym8npn4cm.cloudfront.net/stackoverflow/master.m3u8


Page with audio controls here :


https://di5wym8npn4cm.cloudfront.net/stackoverflow/index.html


I can see from the network tab in Safari that the segments of the track are being downloaded but they do not play. Safari is able to decode FLAC, if I link to the source file it plays.


Apples mediastreamvalidator tools returns the following :


--------------------------------------------------------------------------------
MUST fix issues
--------------------------------------------------------------------------------

Error: Illegal MIME type
--> Detail: MIME type: application/x-mpegURL
--> Source: https://di5wym8npn4cm.cloudfront.net/stackoverflow/master.m3u8

--> Detail: MIME type: application/x-mpegURL
--> Source: stream_0.m3u8

Error: Measured peak bitrate compared to master playlist declared value exceeds error tolerance
--> Detail: Measured: 1005.65 kb/s, Master playlist: 140.80 kb/s, Error: 614.24%
--> Source: https://di5wym8npn4cm.cloudfront.net/stackoverflow/master.m3u8
--> Compare: stream_0.m3u8



Why does this stream not play and what tools are available to debug these issues ?