Recherche avancée

Médias (91)

Autres articles (29)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (4292)

  • Python, FFMPEG : Redirecting output of FFMPEG subprocess call to a string

    31 décembre 2019, par user1452030

    I’ve managed to run an FFMPEG command using the subprocess module as shown below :

    output = subprocess.check_output(command, shell=True)

    This works fine, but it prints the verbose FFMPEG output to console. The program I’m writing is supposed to run for hundreds/thousands of files in a batch and I don’t want detailed outputs for every file processed, unless the user chooses to do so. Can I redirect the console outputs and errors to strings, so that I can decide when I should and shouldn’t print them ?

    This might be lame, but I tried the following snippet :

    outputBuffer = BytesIO()
    output = subprocess.check_output(command, shell=True, stdout=outputBuffer)

    But it gave me the following error :

    ValueError: stdout argument not allowed, it will be overridden.

    I saw other examples where the POpen interface was used, but given that I’m not communicating with the external command as it is running, and that I need to run this for a large number of items, I’d prefer something simpler, if possible.

    Thanks in advance !

    Note : I’ve found lots of questions in this broad topic, but I couldn’t find anything perfectly relevant to my situation.

  • how to redirect adb screenrecord output to pc(windows/linux) storage

    30 novembre 2018, par asullaherc

    In linux, I use following code to cast android screen to pc, it work well

    adb shell "screenrecord --time-limit 1 --output-format=h264 -; screenrecord --time-limit 180 --output-format=h264 -" | ffplay -

    so I think exist way to redirect screenrecord output to pc storage, so I try following code

    adb shell "screenrecord --time-limit 1 --output-format=h264 -; screenrecord --time-limit 180 --output-format=h264 -" >> /tmp/t.mp4

    but the output video file cannot be opened by vlc and google-chrome, how to fix it ?

    ffplay is belongs ffmpeg, so I guess exist similar cli in ffmpeg to output input video streaming into video file

  • 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