
Recherche avancée
Autres articles (65)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (9179)
-
EM : ajouter la prise en charge de l’extension epub dans SPIP
19 octobre 2011Ajouter le format epub afin de pouvoir le mettre en ligne même si dans l’immédiat on ne sait pas encore le traiter (plugin annexe à faire) ...
CF pour le format : http://fr.wikipedia.org/wiki/EPUB_%...
-
FFMPEG Compilation and Video Thumbnail Issues [on hold]
2 janvier 2016, par P. PaulI have compiled FFMPEg on a Linux, Centos machine according to the guide in here https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu , and the auto video thumbnail creation command in here https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video
The problems are...
1- When I use
ffmpeg
orffmpeg -version
command to check if ffmpeg has been installed I get the error message, "Command not found". But when I check for ffmpeg directory "~/ffmpeg_sources
" is found and the machine says, "is a directory".2- Also, I did a test and upload video to the site to see if the video’s thumbnail will be automatically generated, but it didn’t show any thumbnail.
Any help would be greatly appreciated.
Thanks in advance !
-
closing goroutine spawned by fiber endpoint
30 mai 2023, par NitinI have a program that is rtsp cameras to hls format using ffmpeg for streaming.
creating goroutines for each rtsp link as ffmpeg runs in background


Streams are added by following code.


func StreamProcess(data <-chan StreamData, ctx context.Context) {
for v := range data {
 ctx, _ := context.WithCancel(ctx)
 go func() {
 if !getStreams(v.camera_id) {
 var stream StreamState
 stream.camera_id = v.camera_id
 stream.state = true
 go Stream(v, ctx)
 wg.Wait()
 } else {
 return
 }
 }()
} 



}


Streaming function which runs ffmpeg command.


func Stream(meta StreamData, ctx context.Context) error {
 log.Println("Started Streaming")
 ffmpegCmd := exec.Command("ffmpeg", "-i", meta.rtsp, "-pix_fmt", "yuv420p", "-c:v", "libx264", "-preset", "ultrafast", "-b:v", "600k", "-c:a", "aac", "-b:a", "160k", "-f", "rtsp", fmt.Sprintf("rtsp://localhost:8554/%s", meta.camera_id))
 output, _ := ffmpegCmd.CombinedOutput()

 log.Println(string(output))

 for {
 select {
 case <-ctx.Done():
 log.Println("killing process")
 ffmpegCmd.Process.Kill()
 return nil
 }
 }}



my Goal is to stop each os.exec process (ffmpeg command) or at least close all goroutines that are under ffmpeg commands without closing fiber server.


** help required new to golang **