Recherche avancée

Médias (91)

Autres articles (82)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • 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"

  • La gestion des forums

    3 novembre 2011, par

    Si les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
    Accès à l’interface de modération des messages
    Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
    S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)

Sur d’autres sites (13243)

  • ffmpeg hls video with piped audio stuttering after period of time

    31 mai 2023, par urico12

    I have an ffmpeg command generating an hls video stream with audio that is piped using pyaudio.

    &#xA;

    The ffmpeg command...

    &#xA;

    ffmpeg -f v4l2 -i /dev/video2 -f s16le -c:a pcm_s16le -ac 1 -ar 16000 -i pipe:0 -hls_time 6 &#xA;-hls_list_size 100 -hls_flags append_list&#x2B;delete_segments -strftime 1 -strftime_mkdir 1&#xA;-hls_segment_filename recordings/&#x27;%s.ts&#x27; -force_key_frames expr:&#x27;gte(t,n_forced*2)&#x27; -vcodec libx264 master.m3u8&#xA;

    &#xA;

    Run as a python subprocess with...

    &#xA;

    from subprocess import run, Popen, PIPE, STDOUT, DEVNULL&#xA;record_command = Popen(command, &#xA;                       shell=True, &#xA;                       stdin=PIPE, &#xA;                       stdout=DEVNULL, &#xA;                       stderr=STDOUT)&#xA;

    &#xA;

    And then I use pyaudio to pipe audio segments...

    &#xA;

    audio_stream = PyAudio().open(&#xA;               rate=16000,&#xA;               format=pyaudio.paInt16,&#xA;               channels=1,&#xA;               input=True,&#xA;               input_device_index=DEVICE_INDEX,&#xA;               frames_per_buffer=320,&#xA;               stream_callback=callback)&#xA;

    &#xA;

    Where my callback function is...

    &#xA;

    def callback(self, in_data, frame_count, time_info, status):&#xA;    data_arr = np.frombuffer(in_data, dtype=np.int16)&#xA;    if self.data_arr_full is None:&#xA;        self.data_arr_full = data_arr&#xA;    else:&#xA;        self.data_arr_full = np.concatenate((self.data_arr_full, data_arr))&#xA;    if len(self.data_arr_full) == 16000:&#xA;        frame_data = librosa.util.buf_to_float(self.data_arr_full, n_bytes=2, dtype=np.int16)&#xA;        # performing audio classification on frame_data&#xA;        ...&#xA;        record_command.stdin.write(self.data_arr_full.tobytes())&#xA;        self.data_arr_full = None&#xA;    self.frame = data_arr.tobytes()&#xA;    &#xA;    return (None, pyaudio.paContinue)&#xA;

    &#xA;

    This captures video from a camera device as hls and pipes audio segments in from a microphone device (after it has been run through an image classification algorithm). It works quite well for a period of time, but after running for a while the recorded video begins to stutter while the audio remains smooth. It may be important to note that I am running this from a jetson nano. I'm far from an expert in ffmpeg so any help is appreciated !

    &#xA;

  • Can not set period/timeout option for ffmepg

    14 novembre 2016, par newBike

    I tried to capture streaming via rtsp and limit the clip duration under 3 sec

    But the option doesn’t work. The ffmpeg won’t be terminated anymore.

    Is there any workaround to fix the problem.

    Because I have to run hundreds of similar commands in a batch with Python script.

    ffmpeg -loglevel verbose   -i rtsp://172.19.1.42/live.sdp -acodec copy -vcodec copy  c0_s1_h264_640x480_30_vbr_500_99_40000000.mp4 -timeout 3 -y

    $ ffmpeg -h ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg
    developers built on Nov 22 2013 11:59:59 with Apple LLVM version 5.0
    (clang-500.2.79) (based on LLVM 3.3svn)

    The detailed log at https://gist.github.com/poc7667/8234701

  • Can not set period/timeout option for ffmepg

    26 août 2019, par newBike

    I tried to capture streaming via rtsp and limit the clip duration under 3 sec

    But the option doesn’t work. The ffmpeg won’t be terminated anymore.

    Is there any workaround to fix the problem.

    Because I have to run hundreds of similar commands in a batch with Python script.

    ffmpeg -loglevel verbose   -i rtsp://172.19.1.42/live.sdp -acodec copy -vcodec copy  c0_s1_h264_640x480_30_vbr_500_99_40000000.mp4 -timeout 3 -y

    $ ffmpeg -h ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg
    developers built on Nov 22 2013 11:59:59 with Apple LLVM version 5.0
    (clang-500.2.79) (based on LLVM 3.3svn)

    The detailed log at https://gist.github.com/poc7667/8234701