Recherche avancée

Médias (91)

Autres articles (65)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • 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 (...)

  • 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 (...)

Sur d’autres sites (6460)

  • Using ffmpeg in bash

    20 août 2013, par Benjamin King

    I'm trying to make a bash script to transcode .wav files to mp3 (with lame V0 preset) within a directory. Here's what I have so far

    #!/bin/bash
    #
    for abc in *.wav; do
     name=${abc%.*}
     echo "$name"
     ffmpeg -i "$abc" -ac 2 -f wav - | lame -V 0 - "$name.mp3"
    done
    #

    Where the first do line cuts out the extension so I can use the file name later.

    I've tested the ffmpeg command on a single file but once I include it in the for loop I get the following error (for the last track) :

    10 Artist - track
    lame: excess arg Artist
    ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
     built on Apr  2 2013 17:00:59 with gcc 4.6.3
    10: No such file or directory

    I'm not sure why there is an excess argument for the lame line, or why ffmpeg is looking only at a file named "10". Is there something I'm missing ?

    Many thanks for any help

  • bash while loop and ffmpeg

    17 juin 2013, par Larry_b

    Sorry for this questions I imagine the answer is pretty straightforward however I have had a search and I haven't found anything that answers it.

    I have written the following :

    while read p                        # reads in each line of the text
    do                                  # file- folder_list.txt each iteration.
       echo "$p"                       # print out current line
       if [ -f  $p/frame_number1.jpg ] # checks if the image exists in the specific folder
       then
           echo "$p"                   #prints specific folder name
           sleep 1                     #pause for 1 second
           ffmpeg -f image2 -r 10 -i $p/frame_number%01d.jpg -r 30 $p/out.mp4  #create video
        fi                             # end if statement
    done code>

    The script is supposed to read a text file which contains the folder tree structure, then check if the folder contains the specified JPEG if it does then the code should create a video from the images contained within the specified folder.

    However what appears to be happening is the script skips whole folders that definitely contain images. I was wondering if the while loop is continuing to iterate whilst the video is being created or if something else is happening ?

    Any help would be greatly appreciated.

    Many thanks in advance

    Laurence

  • First character disappears when piping script with ffmpeg to bash

    3 octobre 2017, par kubi

    I often create bash scripts with bash and pipe the results to bash... When I do this :

    echo -e "ffmpeg -loglevel quiet -f lavfi -i nullsrc -t 1 -f null /dev/null\necho foo"|bash

    I get

    bash: line 2: cho: command not found

    Where did the ’e’ of ’echo’ go ? What does ffmpeg do there ? Other commands work fine.

    Note also :

    echo -e "ffmpeg -loglevel quiet -f lavfi -i nullsrc -t 1 -f null /dev/null\necho foo" > /tmp/foo.sh
    bash /tmp/foo.sh #works
    bash < /tmp/foo.sh #doesn't