Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (31)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (6443)

  • Running FFMPEG from Shell Script /bin/sh

    19 octobre 2015, par Chris James Champeau

    I am trying to setup a Shell Script to work within an automator watch folder...

    Everything works with the exception of the Run Shell Scrip portion...

    Essentially when a file shows up in the watch folder, it runs the shell scrip which calls FFMPEG and then will move the file to an archive folder for safe keeping. However right now automator is telling me everything worked but now file is being created.

    I have the Shell set to /bin/sh and Pass input set to as arguments

    Here is my script :

    for f in "$@"
    do
    name=$(basename "$f")
    dir=$(dirname "$f")
    ffmpeg -i "$f" -b 250k -strict experimental -deinterlace -vcodec h264 -acodec aac "$dir/mp4/${name%.*}.mp4"
    echo "$dir/mp4/${name%.*}.mp4"
    done

    it does echo the correct filename, but does not actually run ffmpeg

    I have tried adding -exec before it like I have seen in some scripts but still nothing...

  • exit status 127 when running ffmpeg from golang

    18 mai 2023, par Eran

    Hi I am using the following docker image :

    


    FROM golang:alpine3.18


    


    With ffmpeg : (probably here I am missing something)

    


    RUN apk add --no-cache ffmpeg


    


    However when trying to execute the following :

    


    cmd := "ffmpeg -i Untitled.mp4 -vf \"fps=5,scale=320:-1:flags=lanczos\" -c:v pam -f image2pipe - | convert -delay 5 - -loop 0 -layers optimize test.gif"
_, err := exec.Command("bash", "-c", cmd).Output()
if err != nil {
    fmt.Println(fmt.Sprintf("Failed to execute command: %s", err))
}


    


    I get this error :

    


      Failed to execute command: exit status 127


    


  • Running FFmpeg from AWS

    11 mai 2019, par Jay

    This code works perfectly from my local machine.

    import subprocess

    p = subprocess.call('ffmpeg -r 1 -loop 1 -i "ep1.png" -i "ep1.mp3" -acodec copy -r 1 -shortest -vf scale=1280:720 ep1.flv',shell=True)

    I would like to run it from AWS

    Lambda code

    import boto3

    import subprocess

    s3 = boto3.client('s3')


    def lambda_handler(event, context):

       ep1PNG = s3.get_object(Bucket='my-buc',Key='ep1.PNG')
       ep1MP3 = s3.get_object(Bucket='my-buc',Key='ep1.mp3')

       p = subprocess.call(
       '/opt/ffmpeg/ffmpeg -r 1 -loop 1 -i ep1PNG -i ep1MP3 -acodec copy -r 1 -shortest -vf scale=1280:720 /tmp/ep1.flv', shell=True)


       # TODO implement
       return {
           'statusCode': 200,

       }

    Questions

    Are these correct inside subprocess.call() ?

    /opt/ffmpeg/ffmpeg  #<-----Is this correct ?
    ep1PNG           #<-----Is this correct ?
    ep1MP3          #<-----Is this correct ?
    /tmp/ep1.flv   #<----- Not Sending Output to S3 Bucket

    Please comment if I’m heading in the right direction been trying this for about a week now

    ffmpeg is uploaded as a layer