Recherche avancée

Médias (91)

Autres articles (104)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (11175)

  • FFMPEG : closing RTSP stream cleanly — av_read_frame crash on avformat_close_input

    15 octobre 2019, par braden

    I’m using KxMovie : https://github.com/kolyvan/kxmovie

    It appears to stop a stream and close the view controller one should use [pause] ;
    However, I’m trying to receive a stream from a version of gstreamer that has a memory leak if a stream isn’t closed properly (it’s just left hanging).

    So, just [pause]ing isn’t an option for me.

    I’m trying to use [closeFile] in the KxMovie decoder :

    -(void) closeFile
    {

    [self closeAudioStream];
    [self closeVideoStream];
    [self closeSubtitleStream];

    _videoStreams = nil;
    _audioStreams = nil;
    _subtitleStreams = nil;

        if (_formatCtx) {
            _formatCtx->interrupt_callback.opaque = NULL;
            _formatCtx->interrupt_callback.callback = NULL;
            avformat_close_input(&_formatCtx);
            _formatCtx = NULL;
        }
    }

    However, I usually get a EXC_BAD_ACCESS from av_read_frame after [closeFile] issues avformat_close_input.

    Can anyone give me some advice on how to cleanly shutdown an RTSP stream using ffmpeg ?

    Thanks !

  • FFMPEG : closing RTSP stream cleanly — av_read_frame crash on avformat_close_input

    29 novembre 2016, par braden

    I’m using KxMovie : https://github.com/kolyvan/kxmovie

    It appears to stop a stream and close the view controller one should use [pause] ;
    However, I’m trying to receive a stream from a version of gstreamer that has a memory leak if a stream isn’t closed properly (it’s just left hanging).

    So, just [pause]ing isn’t an option for me.

    I’m trying to use [closeFile] in the KxMovie decoder :

    -(void) closeFile
    {

    [self closeAudioStream];
    [self closeVideoStream];
    [self closeSubtitleStream];

    _videoStreams = nil;
    _audioStreams = nil;
    _subtitleStreams = nil;

        if (_formatCtx) {
            _formatCtx->interrupt_callback.opaque = NULL;
            _formatCtx->interrupt_callback.callback = NULL;
            avformat_close_input(&_formatCtx);
            _formatCtx = NULL;
        }
    }

    However, I usually get a EXC_BAD_ACCESS from av_read_frame after [closeFile] issues avformat_close_input.

    Can anyone give me some advice on how to cleanly shutdown an RTSP stream using ffmpeg ?

    Thanks !

  • stop ffmpeg gently (to allow it to finish writing mp4 file) when streaming from udp

    19 septembre 2023, par ierdna

    i'm trying to receive a udp stream on a server and write it to an mp4 file. this works fine :

    



      ffmpeg -i udp://127.0.0.1:12345 -codec copy out.mp4


    



    if i press CTRL+C (or send SIGINT to the process) the ffmpeg quits and i have a working mp4 file.

    



    however, if the data stops coming in on the udp port (e.g. after 10 minutes of streaming) and i try to stop ffmpeg it requires 2 interrupt signals at which point ffmpeg exits abruptly and results in an unplayable mp4 file.

    



    does anyone know how to prevent ffmpeg from hanging when there's no input data or to force it to write out the mp4 header ?

    



    i know i can specify a url option

    



     udp://127.0.0.1:12345?timeout=<microseconds>&#xA;</microseconds>

    &#xA;&#xA;

    however, i need to be able to ignore occasional (5-10 minute long) pauses during the process of recording and only quit at the end. &#xA;so even if i set timeout=60000000 it will cause my app to wait for 10 minutes when i want to stop the stream (e.g. if there's no data) and i need it to quit immediately when i send a SIGINT to it

    &#xA;