Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (70)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque 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, par

    Accé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, par

    La 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 Rheinhardt
    avformat/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>

    • [DH] libavformat/wavenc.c
  • avformat_close_input memory leak ?

    20 janvier 2021, par Keen Jackdaw

    I 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.

    &#xA;

    The minimized code are provided below :

    &#xA;

    #include <iostream>&#xA;&#xA;extern "C" {&#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;#include <libavformat></libavformat>avformat.h>&#xA;#include <libavdevice></libavdevice>avdevice.h>&#xA;}&#xA;&#xA;void foo() {&#xA;    avdevice_register_all();&#xA;&#xA;    AVFormatContext *avInputFormatContext = avformat_alloc_context();&#xA;    AVInputFormat *avInputFormat = av_find_input_format("avfoundation");&#xA;    std::cout &lt;&lt; "open input" &lt;&lt; std::endl;&#xA;    int ret = avformat_open_input(&amp;avInputFormatContext, "Capture screen 0", avInputFormat, nullptr);&#xA;    if (ret &lt; 0) { std::cout &lt;&lt; "open input failed: " &lt;&lt; ret &lt;&lt; std::endl; return;}&#xA;&#xA;    avformat_close_input(&amp;avInputFormatContext);&#xA;&#xA;}&#xA;&#xA;int main() {&#xA;    foo();&#xA;    return 0;&#xA;}&#xA;&#xA;</iostream>

    &#xA;

    The output is

    &#xA;

    Process:         ffmpegtest [87726]&#xA;Path:            /Users/USER/*/ffmpegtest&#xA;Load Address:    0x10a752000&#xA;Identifier:      ffmpegtest&#xA;Version:         ???&#xA;Code Type:       X86-64&#xA;Platform:        macOS&#xA;Parent Process:  leaks [87725]&#xA;&#xA;Date/Time:       2021-01-20 15:44:57.533 &#x2B;0800&#xA;Launch Time:     2021-01-20 15:44:55.760 &#x2B;0800&#xA;OS Version:      macOS 11.1 (20C69)&#xA;Report Version:  7&#xA;Analysis Tool:   /Applications/Xcode.app/Contents/Developer/usr/bin/leaks&#xA;Analysis Tool Version:  Xcode 12.3 (12C33)&#xA;&#xA;Physical footprint:         9.9M&#xA;Physical footprint (peak):  10.6M&#xA;----&#xA;&#xA;leaks Report Version: 4.0&#xA;Process 87726: 14143 nodes malloced for 2638 KB&#xA;Process 87726: 1 leak for 32 total leaked bytes.&#xA;&#xA;    1 (32 bytes) ROOT LEAK: 0x7f8c61e1b040 [32]  length: 16  "Capture screen 0"&#xA;

    &#xA;

    Did I miss something ?

    &#xA;

  • HLS FLAC stream creation with FFMPEG

    8 janvier 2021, par Myles McDonnell

    I have created a HLS stream from a FLAC file with an output of FLAC using the following command :

    &#xA;

    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

    &#xA;

    I have published it here :

    &#xA;

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

    &#xA;

    Page with audio controls here :

    &#xA;

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

    &#xA;

    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.

    &#xA;

    Apples mediastreamvalidator tools returns the following :

    &#xA;

    --------------------------------------------------------------------------------&#xA;MUST fix issues&#xA;--------------------------------------------------------------------------------&#xA;&#xA;Error: Illegal MIME type&#xA;--> Detail:  MIME type: application/x-mpegURL&#xA;--> Source:  https://di5wym8npn4cm.cloudfront.net/stackoverflow/master.m3u8&#xA;&#xA;--> Detail:  MIME type: application/x-mpegURL&#xA;--> Source:  stream_0.m3u8&#xA;&#xA;Error: Measured peak bitrate compared to master playlist declared value exceeds error tolerance&#xA;--> Detail:  Measured: 1005.65 kb/s, Master playlist: 140.80 kb/s, Error: 614.24%&#xA;--> Source:  https://di5wym8npn4cm.cloudfront.net/stackoverflow/master.m3u8&#xA;--> Compare: stream_0.m3u8&#xA;

    &#xA;

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

    &#xA;