Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (53)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

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

  • how to use guardianproject's android ffmpeg library ?

    21 octobre 2013, par Blaze Tama

    First, this is my first time "playing" with ffmpeg, so please bear with me.

    Generally, i dont understand ffmpeg even a little bit. So i did lot, lot of researches (and also trial & error) and i finally found this project and its library

    So i was successfully created the ffmpeg and sox binary file, and i put it in the raw folder at the library project (from the link i shared).

    Now, i want to use the library for my project, but i still cant do it. I tried to use some methods in the FfmpegController like combineAudioAndVideo and more but its not working (yet).

    I dont post the error here since i still do my trial&errors (and the error change regularly) but im getting tired now.

    EDIT

    This is what i did :

    private FfmpegController ffController;

       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_main);

           File file = new File(Uri.parse("android.resource://com.my.package/" + R.raw.test).getPath());
           try {
               ffController = new FfmpegController(this, file);
           } catch (FileNotFoundException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
           } catch (IOException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
           }

           MediaDesc desc = ffController.combineAudioAndVideo(R.raw.test, R.raw.musictest, "test.mp4", null);
       }

    The combineAudioAndVideo always error because wrong parameters. It needs MediaDesc but i dont know how to do it.

    I will be very happy if you can share your working code if you have done the ffmpeg processing with this library.