
Recherche avancée
Autres articles (18)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)
Sur d’autres sites (5532)
-
Moviepy : subclip fails when iterating through CSV
5 mai 2016, par user3316291I am trying to randomize the order of video clips based on timing from a CSV file and then reassemble the randomized clips into a single video. However, I am receiving an error in the loop that iterates through each clip timing to create the subclip.
Here is what my CSV looks like :
00:00:32.18,00:00:52.10,1
00:00:52.11,00:00:56.09,2
00:00:56.10,00:00:58.15,3
00:00:58.16,00:01:05.16,4
00:01:05.17,00:01:16.04,5column 1 is clip onset
column 2 is clip offset
column 3 is scene number that I use to randomizeHere is my code :
import os
import csv
import numpy as np
from moviepy.editor import *
f = open('SceneCuts.csv')
csv_f = csv.reader(f)
scenes = []
ons = []
offs = []
for row in csv_f:
ons.append(row[0])
offs.append(row[1])
scenes.append(row[2])
r_scene = scenes
np.random.seed(1000)
np.random.shuffle(r_scene)
r_scene = map(int, r_scene)
clip = VideoFileClip("FullVideo.m4v")
temp = []
for row in r_scene:
print(row)
temp.append(clip.subclip(ons[row-1], offs[row-1]))
catclip = concatenate_videoclips(temp)
catclip_resize = catclip.resize((1024,576))
catclip_resize.write_videofile("RandomVideo.mp4")Here is the output, error occurs at line 29 (temp.append)
File "/Users/Dustin/anaconda/lib/python2.7/site-packages/moviepy/video/io/ffmpeg_reader.py", line 87, in initialize
self.proc = sp.Popen(cmd, **popen_params)
File "/Users/Dustin/anaconda/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/Users/Dustin/anaconda/lib/python2.7/subprocess.py", line 1316, in _execute_child
data = _eintr_retry_call(os.read, errpipe_read, 1048576)
File "/Users/Dustin/anaconda/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
return func(*args)
OSError: [Errno 22] Invalid argumentBased on my research, it appears to be something regarding child processes and subprocess.Popen, but I can’t figure it out. Thanks !
EDIT to add new information :
I have been running the above script in Spyder (anaconda) and receiving the above errors. However, when I run from a terminal or sublime (cmd+b), the code "works". It runs and I do not get the above error, however, the resulting video file is a mess. There are multiple conflicting audio tracks that shouldn’t be there. I am not sure what is going on in Spyder, but I’d love to know. Also, I still need to fix the audio problem. -
ffmper with vlc - too heavy screen grabbing, resulting injumpy file, frame loss
15 mai 2016, par OGPI’m using ’vlc/ffmpeg’ package to grab the screen and convert it to H.264 file.
The problem arises when the host is heavily loaded. I need to maintain correct time stamps and use the 5 fps (relatively low frame rate). Yet sometimes the resulting file jumps few seconds forward, apparently due to frame loss.
I can deal with the frame loss, it’s OK, but I need to duplicate lost frames to maintain correct timing.My configuration file :
vlc.exe screen :// -I dummy —verbose=2 —one-instance :screen-fps=5 :screen-caching=10000 :sout=#transcodevenc=x264preset=ultrafast,tune=zerolatency,vcodec=h264,fps=5,vb=3000,width=1024,height=576,acodec=none:filedst="C :\tmp\output.mp4"
What should I add/config to preserve proper time stamps and clip duration ?
Many thanks for your help.
-
avfilter/f_metadata : add pts_time to print output
9 mai 2016, par Tobias Rappavfilter/f_metadata : add pts_time to print output
This allows e.g. to correlate signalstats metadata to time position
without having to find out the filter chain timebase first.Signed-off-by : Tobias Rapp <t.rapp@noa-archive.com>
Reviewed-by : Paul B Mahol <onemda@gmail.com>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>