Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (78)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (5322)

  • Php - Get video duration from a file hosted on amazon S3 server

    8 mai 2017, par Michael Lee

    I 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 ?

  • How to transcode .mp4 files using ffmpeg celery rabbitMq in Amazon Linux ?

    11 mars 2017, par Srinivas 25

    I 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 Linux

    FFMPEG_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)
  • Opening Video with opencv3 and python on Amazon EC2

    11 octobre 2016, par stml

    I 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