
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (48)
-
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
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 -
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)
Sur d’autres sites (4835)
-
Opening Video with opencv3 and python on Amazon EC2
11 octobre 2016, par stmlI successfully set up python and opencv3 on an t2.micro instance by following these instructions : http://stackoverflow.com/a/38867965/1213715
The script which worked on my local machine no longer works. The problem seems to be with importing video. The start of my code now looks like this :
import numpy as np
import cv2
cap = cv2.VideoCapture('/home/ec2-user/test.mov')
if(cap.isOpened() == False):
print "Can't open video"
exit()This exits every time. I have tried different paths and different video formats (including .avi).
In other threads, I read that ffmpeg is essential to cv2 video functions, and successfully installed this using the instructions at https://forums.aws.amazon.com/thread.jspa?messageID=524523. I can now run ffmpeg from the command line - but it has not changed the cv2 output.
Do I need to link ffmpeg to cv2 somehow, or do I need to recompile entirely - and if so, what change should I make to the original installation instructions ?
Python version 2.7.12
Opencv version 3.1.0
-
How to transcode .mp4 files using ffmpeg celery rabbitMq in Amazon Linux ?
11 mars 2017, par Srinivas 25I want to transcode .mp4, .flv files by using ffmpeg, celery and rabbitMQ. With the help of these tools i can able to transcode in localhost, where in
my OS is ubuntu, but i am unable to do the same on AWS Linux for production
Here is the code i am using to integrate ffmpeg, rabbitMQ and celery to transcode on Amazon LinuxFFMPEG_PATH = '/usr/bin/ffmpeg'
CELERY_BROKER_URL = 'amqp://guest:guest@awsuser:5672//'
CELERY_ACCEPT_CONTENT = 'file'
CELERY_RESULT_BACKEND = 'rpc://'
CELERY_TASK_SERIALIZER = 'file'celery.py
from __future__ import absolute_import
import os
from celery import Celery
from afnity.settings import CELERY_BROKER_URL
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'afnity.settings')
app = Celery('taskapp',
broker=CELERY_BROKER_URL,
include=['taskapp.tasks'])
app.config_from_object('django.conf:settings', namespace='CELERY')
if __name__ == '__main__':
app.start()tasks.py
from .celery import app
@app.task
def add()
return(3+4d) -
Php - Get video duration from a file hosted on amazon S3 server
8 mai 2017, par Michael LeeI am developing back-end API with php to get the duration from a video file hosted on amazon S3. The API server is hosted on amazon EC2 and the video file is uploaded on amazon S3. The problem is when I request to API server, it has to response the information of the video file hosted on amazon S3 such as duration, file size, resolution etc. At least, it must response the video. I’ve followed codes by using ffmpeg such as below, but it’s not working.
<?php
$file = 'https://videoapptest-bucket.s3.amazonaws.com/video/10/44__55_f03876434e48d5fed7d6982b0cf578de_u_00000.ts';
$result = shell_exec('ffmpeg -i ' . escapeshellcmd($file) . ' 2>&1');
preg_match('/(?<=Duration: )(\d{2}:\d{2}:\d{2})\.\d{2}/', $result, $match);
print_r($match);
?>How can I get the video duration from a file hosted on amazon s3 with ffmpeg or another tool ?