Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (65)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (12690)

  • Revision 70385 : Mail des nouveautés en HTML aussi

    4 mars 2013, par cedric@… — Log

    Mail des nouveautés en HTML aussi

  • 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)
  • Is it possible to print this pattern with python ?

    6 février 2024, par Eranga Harasgama

    Is it possible to print this pattern with python ?

    


    [s0][s1][s01]
[s01][s2][s012]
[s012][s3]x[s0123]
[s0123][s4]x[s01234]


    


    This is for a ffmpeg filter_complex.
So, basically it searches for number of images in a directory and construct below command for me to use for a different purpose.
So far I have managed to get the below output :

    


    ffmpeg -loop 1 -t 5 -i 3.png -loop 1 -t 5 -i 5.png -loop 1 -t 5 -i 4.png -loop 1 -t 5 -i 6.png -loop 1 -t 5 -i 1.png -loop 1 -t 5 -i 2.png -filter_complex "[0]scale=816:1456[s0];[1]scale=816:1456[s1];[2]scale=816:1456[s2];[3]scale=816:1456[s3];[4]scale=816:1456[s4];[5]scale=816:1456[s5];


    


    But I'm stuck at obtaining the above pattern.

    


    PS :

    


    In my project the pattern will be used to create something like below :

    


    "[s0][s1]xfade=transition=pixelize:duration=0.2:offset=4[s01];[s01][s2]xfade=transition=pixelize:duration=0.2:offset=8[s012];[s012][s3]xfade=transition=pixelize:duration=0.2:offset=12[s0123];[s0123][s4]xfade=transition=pixelize:duration=0.2:offset=16[s01234];[s01234][s5]xfade=transition=pixelize:duration=0.2:offset=20,format=yuv420p" out.mp4


    


    I tried using an array in for loop, but it does not provide the expected output.

    


    def print_pattern(num_lines):
    for i in range(num_lines):
        for j in range(i + 1):
            print(j, end='')
        print(' and', i + 1, 'and', end=' ')
        for j in range(i + 1):
            print(j, end='')
        for k in range(i + 1):
            print(k + j + 1, end='')
        print()

num_lines = 4  # Change this variable to control the number of lines
print_pattern(num_lines)


    


    This is the output.

    


    0 and 1 and 01
01 and 2 and 0123
012 and 3 and 012345
0123 and 4 and 01234567