Recherche avancée

Médias (91)

Autres articles (78)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (6578)

  • Anomalie #2804 : Formulaire "Modifier le document" et site en iso-8859-1

    16 mars 2013, par guytarr °

    Etant donné le grand nombre de bugs avec isotruc, je me demande si on ne rendrait pas service aux gens en indiquant clairement de passer en utf-8 avant de monter en version et qu’on ne supporte plus isotruc en SPIP3

  • FileNotFoundError on aws Lambda when concatenating videos with ffmpeg

    2 juillet 2021, par Shibu Menon

    Goal :

    



      

    • Concat 2 videos (both are in an s3 bucket) via aws Lambda using ffmpeg
    • 


    • Upload the resultant output.mp4 to another S3 bucket
    • 


    • Python 3+
    • 


    



    I've already created a layer containing a static ffmpeg

    



    The Error :

    



    {
  "errorMessage": "[Errno 2] No such file or directory: '/tmp/output.mp4'",
  "errorType": "FileNotFoundError",
  "stackTrace": [
    [
      "/var/task/lambda_function.py",
      19,
      "lambda_handler",
      "s3.Object(bucketLowRes, mp4OutputFileName).put(Body=open(new_file_key, 'rb'))"
    ]
  ]
}


    



    My Lambda function :

    



    import json
import os
import subprocess
import boto3

s3 = boto3.resource('s3')
bucketLowRes = s3.Bucket("bucket-conc-lowres")

def lambda_handler(event, context):
    # TODO implement

    mp4OutputFileName = 'output.mp4'

    new_file_key = os.path.abspath(os.path.join(os.sep, 'tmp', mp4OutputFileName))
    subprocess.call( ['/opt/ffmpeg', '-i', 'concat:s3://bucket-word-clips/00th76kqwfs915hbixycb77y9v3riwsj30.mp4|s3://bucket-word-clips/00uoakp6jyafbu13ycvl6w2i9tj42eux30.mp4', new_file_key ] )

    s3.Object(bucketLowRes, mp4OutputFileName).put(Body=open(new_file_key, 'rb'))

    return {
        'statusCode': 200,
        'body': json.dumps('Hello from Lambda!')
    }


    



    Question :

    



      

    • FileNotFoundError : Where is the output mp4 file of my ffmpeg concat being saved ??
    • 


    • And if it is being saved to /tmp/output.mp4 , then why the FileNotFoundError ??
    • 


    



    thanks

    


  • How to merge videos by avconv ?

    31 août 2013, par Alex

    I have several chunks in folder.

    0001.mp4
    0002.mp4
    0003.mp4
    ...
    0112.mp4

    I would like to join them into full video.mp4

    I tried to use

    avconv -i "concat:`ls -l /root/chunk/ | awk 'BEGIN {ORS="|"} { print $9 }'`" \
    -c:v copy -c:a copy /root/test/2.mp4

    but I have error

    concat:|0000.mp4|0001.mp4|0002.mp4|0003.mp4|0004.mp4|0005.mp4|0006.mp4|\
    0007.mp4|0008.mp4|0009.mp4|0010.mp4|0011.mp4|0012.mp4|0013.mp4|0015.mp4|\
    0016.mp4|0017.mp4|0018.mp4|0019.mp4|: No such file or directory

    After I tried

     avconv -i  "concat:/root/chunk/0000.mp4|/root/chunk/0001.mp4|/root/chunk/0002.mp4" \
     -c:v copy -c:a copy /root/test/2.mp4

    but only one input file was catched to output.

    How to merge all chunks from folder into full video ?

    I don't want to use ffmpeg or other. Avconv only.