
Recherche avancée
Autres articles (85)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
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 (11753)
-
Pipe opencv images to ffmpeg using python
16 avril 2022, par jlarschHow can I pipe openCV images to ffmpeg (running ffmpeg as a subprocess) ?
(I am using spyder/anaconda)



I am reading frames from a video file and do some processing on each frame.



import cv2 
cap = cv2.VideoCapture(self.avi_path)
img = cap.read()
gray = cv2.cvtColor(img[1], cv2.COLOR_BGR2GRAY)
bgDiv=gray/vidMed #background division




then, to pipe the processed frame to ffmpeg, I found this command in a related question :



sys.stdout.write( bgDiv.tostring() )




next, I am trying to run ffmpeg as a subprocess :



cmd='ffmpeg.exe -f rawvideo -pix_fmt gray -s 2048x2048 -r 30 -i - -an -f avi -r 30 foo.avi'
sp.call(cmd,shell=True)




(this also from the mentioned post)
However, this fills my IPython console with cryptic hieroglyphs and then crashes it. any advice ?



ultimately, I would like to pipe out 4 streams and have ffmpeg encode those 4 streams in parallel.


-
Pipe opencv images to ffmpeg using python
9 décembre 2015, par jlarschHow can I pipe openCV images to ffmpeg (running ffmpeg as a subprocess) ?
(I am using spyder/anaconda)I am reading frames from a video file and do some processing on each frame.
import cv2
cap = cv2.VideoCapture(self.avi_path)
img = cap.read()
gray = cv2.cvtColor(img[1], cv2.COLOR_BGR2GRAY)
bgDiv=gray/vidMed #background divisionthen, to pipe the processed frame to ffmpeg, I found this command in a related question :
sys.stdout.write( bgDiv.tostring() )
next, I am trying to run ffmpeg as a subprocess :
cmd='ffmpeg.exe -f rawvideo -pix_fmt gray -s 2048x2048 -r 30 -i - -an -f avi -r 30 foo.avi'
sp.call(cmd,shell=True)(this also from the mentioned post)
However, this fills my IPython console with cryptic hieroglyphs and then crashes it. any advice ?ultimately, I would like to pipe out 4 streams and have ffmpeg encode those 4 streams in parallel.
-
Unable to extract images properly from a 'YUV' raw file using ffmpeg
22 août 2016, par Prajwal_7I have a YUV file, I need to extract all the frames from the video file. The problem is the pixel depth of frames are 11 bit/pixel.
But most of the pixel format options are either 16 bit or 12 bit. I am looking for gray scale format with 11 bit/pixel.
Currently I run the command line :
ffmpeg -video_size 448x512 -r 25 -pixel_format gray -i MR.yuv outp
ut-%d.pngchecked for gray, gray16be, for both the output frame captured is distorted. Is there any method to extract frames at 11bit/pixel depth ?[Customised]