
Recherche avancée
Autres articles (76)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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) (...)
-
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 (...)
Sur d’autres sites (9195)
-
FFMpeg-PHP, Digital Ocean, Centos 6 server installation and access
24 février 2016, par Luke Brandon FarrellI am having problems getting FFMpegPHP up and running on a Digital Ocean, Centos 6 server.
All I need to do is convert a sequence of images into a movie using PHP.
I have FTP access to my server so I can install files if needed, I also have command line access.
I have installed FFMpeg and FFMpeg-PHP onto the server but I am not sure how to execute it from PHP. This is what I have so far ->
http://socialexplosion.co.uk/phpffmpeg/
This is the output from the error-log :
[24.02.16 15:28:07] [131.231.236.97] Invalid FFMPEG Path `/var/www/html/phpffmpeg/ffmpeg\bin\ffmpeg.exe`!
[24.02.16 15:28:09] [131.231.236.97] ffmpeg-progress: FFMPEG progress log does not exist! FILE: `/var/www/html/phpffmpeg/logs/47fc097c.ffmpeg.log`I can’t seem to get it to work.
Any ideas ? Maybe I have installed it wrong ?
Thanks
-
Allowing downloads of partial video files from Django
18 janvier 2019, par DataVisI have a Django app that allows users to make/save ’clips’ of video files, that is keep timestamps of start and end times of video files to save in playlists. I would like users to be able to download clips (and playlists as well) they have saved.
I have done quite a bit of research on the topic and have gotten ffmpeg working from my terminal to save partial clips (though I’ve struggled to figure out pathnames for using subprocess.call with ffmpeg), and I have also gotten moviepy working via the terminal to save partial clips.
I’m struggling to figure out how to incorporate this into my Django app so that users can click a link and subsequently begin a download of a specific clip (or playlist). I believe I will want to use celery to avoid tying up the server but I’m not even to the point where I can offload a task as I can’t figure out how to :
- ’Clip’ the original, longer video file to make it shorter (do I need to make a local copy of a new file first ?).
- Send a response as a download to the user.
Here is my models.py :
class Match(models.Model):
game_id = models.IntegerField(primary_key=True,
validators=[MinValueValidator(1)],db_column="game_id")
wide = models.FileField(upload_to='games/2018/',blank=True,null=True)
class Playlist(models.Model):
name = models.CharField(default='',null=True,blank=True,max_length=200)
created_by = models.ForeignKey(User,related_name="playlists",on_delete=models.CASCADE)
created = models.DateTimeField(editable=False)
modified = models.DateTimeField()
def save(self, *args, **kwargs):
''' On save, update timestamps '''
if not self.id:
entries = Playlist.objects.order_by('-id')
try:
self.id = entries[0].id + 1
except IndexError:
# we don't have any PlaylistEntries yet, so we just start @ 0
self.id = 0
self.created = timezone.now()
self.modified = timezone.now()
return super(Playlist, self).save(*args, **kwargs)
class Clip(models.Model):
name = models.CharField(default='',null=True,blank=True,max_length=200)
game_id = models.ForeignKey(Match,related_name="clips",on_delete=models.CASCADE,
db_column="game_id",null=True,blank=True)
clipstart = models.IntegerField(null=True,blank=True)
clipend = models.IntegerField(null=True,blank=True)
playlist = models.ForeignKey(Playlist,related_name="clips",on_delete=models.CASCADE,
db_column="playlist",null=True,blank=True)
created_by = models.ForeignKey(User,related_name="clips",on_delete=models.CASCADE)
created = models.DateTimeField(editable=False)
modified = models.DateTimeField()
duration = models.IntegerField(null=True,blank=True)
def save(self, *args, **kwargs):
''' On save, update timestamps '''
if not self.id:
entries = Clip.objects.order_by('-id')
try:
self.id = entries[0].id + 1
except IndexError:
# we don't have any PlaylistEntries yet, so we just start @ 0
self.id = 0
self.created = timezone.now()
self.modified = timezone.now()
self.duration = int(self.clipend) - int(self.clipstart)
return super(Clip, self).save(*args, **kwargs)And views.py where I’m struggling (I’m not sure if I’m working with FileField properly etc) :
from moviepy.editor import *
def ClipDownload(request,pk,*args,**kwargs):
this_clip = models.Clip.objects.filter(pk=pk)
file_name = this_clip[0].game_id.wide
p = VideoFileClip(file_name,audio=False).subclip(this_clip.clipstart,this_clip.clipend)
response = HttpResponse(p, content_type='application/force-download')
response['Content-Disposition'] = 'attachment; filename=%s' % this_clip.name
response['Content-Length'] = os.path.getsize(file_name)
return responseThe current code is not working, I’m getting the proper Clip but I’m not able to make a subclip of the FileField as I’m getting an attribute error :
AttributeError: 'FieldFile' object has no attribute 'endswith'
I would be very appreciative if someone can point me in the right direction to get the file downloading so I can move on to trying to incorporate it into celery ?
-
How do I stream remote multiple webcams to multipul users
29 juin 2016, par Joe HillI need to capture multiple users webcam in the browser and then broadcast it to multiple users this must include a audio and video stream with low and high quality options. Ideally I would not like to use flash but having flash as a fallback is totally fine.
When the webcam is broadcast to the users this must work on as many platforms as possible.
I would like some solutions on how to accomplish this, thank you.