Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (99)

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

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (11162)

  • How to use FFMPEG commands

    26 septembre 2013, par Shashank Agarwal

    In android i am making an app in which it will record an video and crop the video from center for doing so i found FFMPEG over google. I followed http://dmitrydzz-hobby.blogspot.in/2012/04/how-to-build-ffmpeg-and-use-it-in.html

    It works fine but i want to know how to use this `ffmpeg -y -i /sdcard/videokit/short.mp4 -vf crop=100:100:0:0 -s 320x240 -r 15 -aspect 3:4 -ab 12288 -vcodec mpeg4 -b 2097152 -sample_fmt s16 /sdcard/videokit/out.mp4

    ` video cropping command and Where to write this command.

    I have tried this (for concatenation just to check about how to use ffmpeg command )

    public class MainActivity extends Activity {
    private static native int logFileInfo(String[] args);
    String pathOut = "/storage/sdcard/12.mp3";
    String pathInM = "/storage/sdcard/23.mp3";
    String pathIn = "/storage/sdcard/out.mp3";
    @Override
    public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_main);
       String[] args = {"ffmpeg",  "-i", "concat:", pathOut, "|",pathInM ,pathIn};
       logFileInfo(args);
       //logFileInfo("/storage/sdcard/12.mp3");
    }

    static
    {
       System.loadLibrary("mylib");
    }

    But i dont know what to write in mylib.c to execute this.somebody Please help

  • Renaming Carrierwave extension before saving it [on hold]

    2 septembre 2013, par Jan

    I am trying to get a mp3 version of a wav which gets watermarked by using ffmpeg.

    Spoken in steps :

    • upload wav (works)
    • watermark it (works also)
    • make a mp3 version (does not work)

    The upload and watermarking step is done correctly.

    My problem is, that ffmpeg evaluates the destination format by reading its file extension name (which is wav in my case). How can I rename the extension before it get's saved ?

    ffmpeg -i watermarked.wav -acodec libmp3lame -f mp3 watermarked.wav
                        HOW CAN I RENAME THIS BEFORE IT GET SAVED? ^^^

    The above snip (-f forcing the codec and format) does NOT it's job and

    def full_filename(for_file=file)
     super.chomp(File.extname(super)) + '.mp3'
    end

    is happening too late (after processing)

    Do I have to make a seperate (second) tempfile and remove the watermarked.wav ?
    Or do I have to make a "seperate process" and take ?
    And when yes, how ?

    I am trying this since weeks...

    many, many, many thanks in advance

  • Renaming carrierwave extension before process ends

    6 septembre 2013, par Jan

    I have an audiofile which gets uploaded via carrierwave. I wanna rename the current_file before it gets processed.

    When I do processing a version, normally I rewrite the file extension via

    def full_filename(for_file=file)
     super.chomp(File.extname(super)) + '.mp3'
    end

    but this will be executed after the version creation process.

    How can I make a version and renmame it before it gets saved.

    To be more concret :

    I am converting an WAV file to a MP3 by using ffmpeg.

    FFMPEG needs an inputfile (-i inputfile.wav) and and outputfilename which needs the mp3 fileextension to process an mp3. (output.mp3 in my case)

    How can I rename the extension before it get's saved ?

    ffmpeg -i inputfile.wav -acodec libmp3lame -f mp3 watermarked.mp3
            HOW CAN I RENAME THE EXTENSTION BEFORE IT GET SAVED? ^^^

    The above snip (-f forcing the codec and format) does NOT it's job and

    def full_filename(for_file=file)
     super.chomp(File.extname(super)) + '.mp3'
    end

    is happening too late (done after processing)

    How can I rename the temporary Carrierfile name ?