
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (82)
-
Le plugin : Gestion de la mutualisation
2 mars 2010, parLe 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, parLa 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, parSi 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 urico12I have an ffmpeg command generating an hls video stream with audio that is piped using pyaudio.


The ffmpeg command...


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



Run as a python subprocess with...


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



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


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



Where my callback function is...


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



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 !


-
Can not set period/timeout option for ffmepg
14 novembre 2016, par newBikeI 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 newBikeI 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