
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (76)
-
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 (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (10748)
-
openCV image Stitching wide angle 160 degrees
4 janvier 2020, par a.masriI’m trying to Stitching image wide angle 160.5 degree but the result is not a good
i’m using OpenCV 4 and ffmpeg to get frames from video
ffmpeg command to get 15 frame per sec :
ffmpeg -i first.mp4 -vf fps=15 preview%05d.jpg
OpenCV Stitching code
import cv2
import numpy as np
images = []
for i in range(70):
name = ('preview%05d.jpg' % (i+1))
print(name)
images.append(cv2.imread(name , cv2.IMREAD_COLOR))
print("start ")
stitcher = cv2.Stitcher_create()
ret, pano = stitcher.stitch(images)
if ret == cv2.STITCHER_OK:
cv2.imshow('panorama', pano)
cv2.waitKey()
cv2.destroyAllWindows()
else:
print(cv2.STITCHER_ERR_NEED_MORE_IMGS)
print(cv2.STITCHER_ERR_HOMOGRAPHY_EST_FAIL)
print(cv2.STITCHER_ERR_CAMERA_PARAMS_ADJUST_FAIL)
print(ret)
print('Error during stiching')actual result :
expected result :
-
Sync a video stream at two separate receivers
2 septembre 2019, par QuasarI want to use two separate receivers which both are receiving the same video stream. One of the receivers does some processing tasks and pass the results to the other receiver (using web-socket or a RESTFUL API) so that the second receiver displays the results and play the video(the frames and result values should be synchronized in the second receiver). The actual issue is how to synchronize these receivers over the IP network.
Note that it is highly preferred that each one can read the stream by its own and I want to prevent resending the stream to the other receiver. A possible solution can be extracting timestamp in both receivers but I am not sure if it is possible. Can anyone help me how I can find a good solution for this ? Thanks in advance. -
Question about coding design of interface and receivers
14 décembre 2018, par the_real_oneI am trying to create an interface for an FFmpeg conversion scheme where :
- New() should return whatever implements it
- (receiver *interface) Convert() is the only method that should be implemented and the underlying details hidden (source files from : URL, File, etc.)
How would I accomplish the above problem and design the code in such a way that you have various New() methods returning an FFmpegConverer that enforces the implementation of the Convert() method but with the underlying details behind each New() being different ? Or is that just a bad design to begin with ?
My code may be less relevant than my problem statement but this is what I have so far which does not pass any go sanity checks :
// FfmpegConverter is the interface for setting the public facing local
// video files
type FfmpegConverter interface {
Convert() error
}
// localVideo holds the file information for a downloaded video
type localVideo struct {
inputAudioFile * os.File
inputVideoFile * os.File
outputVideoFile * os.File
}
// New initializes a new FfmpegConverter
func New(inputVideoFilePath string, inputAudioFilePath string, outputVideoFilePath string)(ffmpegConverter FfmpegConverter, err error) {
ffmpegConverter = & localVideo {}
// Set input video file
ffmpegConverter.inputVideoFile, err = os.Open(inputVideoFilePath)
if err != nil {
return
}
if err = ffmpegConverter.inputVideoFile.Close();
err != nil {
return
}
// Set input audio file
ffmpegConverter.inputAudioFile, err = os.Open(inputAudioFilePath)
if err != nil {
return
}
if err = ffmpegConverter.inputAudioFile.Close();
err != nil {
return
}
// Set output video file
ffmpegConverter.outputVideoFile, err = os.Create(outputVideoFilePath)
if err != nil {
return
}
if err = ffmpegConverter.outputVideoFile.Close();
err != nil {
return
}
return
}
// Convert will convert the input video and input audio files to an combined
// output video file
func(l * localVideo) Convert()(err error) {
// Do stuff with the internal struct
// ...
}