Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (100)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (15036)

  • Revision 90108 : Notice PHP en moins si on édite un fieldset dans le constructeur de ...

    11 juin 2015, par marcimat@… — Log

    Notice PHP en moins si on édite un fieldset dans le constructeur de formulaire : lorsqu’il cache les saisies qu’il contient, le message précisant l’action ( « 2 champ(s) masqué(s) ... » ) est aussi une saisie ’explication’ incrustée, mais qui n’a aucun identifiant.

  • Audio extraction in xamarin from mp4 file [duplicate]

    17 mars 2020, par rom_totach

    I need to convert an mp4 (or any other video format) to mp3 or wav file. I am using C# Xamarin.Forms. Any library I used either doesn’t work for me, or isn’t compatible with android. I have tried using Xamarin.Android.FFMpeg and Xobe.FFMpeg. I repost this because it was marked as duplicate and I clearly stated that that solution isn’t working for me. This is the post that was flagged as duplicate : How can I extract the audio out of a video file ? (android) . Please, I tried it but it just gives me the "Downloading Video Converter" dialog with a progress bar when I try to run the code in the solution, Also, it doesn’t even extract the audio so after the user waits such a long time, it turned out as a waste of time. Thanks in advance ! :)

    EDIT 1 :

    This is the code I am using :

    private async Task<string> ExtractAudioAsync(string path, Action<string> logger = null,
           Action onProgress = null)
       {
           List<string> cmd = new List<string>();
           cmd.Add("-i");
           cmd.Add(path + ".mp4");
           cmd.Add("-vn");
           cmd.Add("-acodec");
           cmd.Add("copy");
           cmd.Add(path + ".mp3");
           string cmdParams = string.Join(' ', cmd);
           await FFMpeg.Xamarin.FFMpegLibrary.Run(Context, cmdParams);

           return path + ".mp3";
       }
    </string></string></string></string>

    There are no exceptions thrown. When the Run method is called it just shows on the application the following dialog :

    the dialog

    After that, it just closes the dialog and goes to the return line without even extracting the audio out of the video. Even if I run this code again it does the same thing, downloading it again.

    EDIT 2 :

    I tried adding the -report option but it just did the same thing and did not save any log file. Am I doing something wrong ?

  • FFmpeg doesn't work in Rails 3 app with Apache and Passenger in GoDaddy CentOS

    29 décembre 2011, par pablo89

    I try to upload a .mp4 video file, and it works ; I made a Bash script that calls ffmpeg in order to get the thumbs of the video. It works fine in localhost, but when I uploaded the project to a dedicated server in GoDaddy with CentOS it doesn't work, it doesn't create the thumbnails, and it shows no error. The Rails App is running under Apache with Passenger. I have tried everything, even I gave 0777 permissions to the action and to the Bash script, but nothing, it doesn't show any error, but it doesn't work.

    This is the action in Rails (as you can see, I use the commands system and exec) :

    def create
     if !params[:video][:video].nil?
       videoName = params[:video][:video].original_filename.gsub(/\s/,&#39;_&#39;)
       @video = Video.new({:title => params[:video][:title], :video => "/worshipvideos/#{videoName}"})
     else
       @video = Video.new({:title => params[:video][:title]})
     end

     if !params[:video][:video].nil?
       tmp = params[:video][:video].tempfile
       file = File.join("public/worshipvideos", videoName)
       FileUtils.cp tmp.path, file
       FileUtils.rm tmp
     end

     respond_to do |format|
       if @video.save
         if !params[:video][:video].nil?
           logger.debug "./createVideoPics.sh &#39;#{videoName}&#39;"
           fork do
             system("./createVideoPics.sh &#39;#{videoName}&#39;")
             #exec("./createVideoPics.sh &#39;#{videoName}&#39;")
           end

           @video.update_attribute("pic1", "worship_pics/#{videoName}_1.jpg")
           @video.update_attribute("pic2", "worship_pics/#{videoName}_2.jpg")
           @video.update_attribute("pic3", "worship_pics/#{videoName}_3.jpg")
         end

         format.html { redirect_to @video, notice: &#39;Video was successfully created.&#39; }
         format.json { render json: @video, status: :created, location: @video }
       else
         format.html { render action: "new" }
         format.json { render json: @video.errors, status: :unprocessable_entity }
       end
     end
    end

    This is the script in Bash :

    #!/bin/bash
    chmod 0777 "public/worshipvideos/$1"
    ffmpeg -i "public/worshipvideos/$1" -an -ss 00:00:20 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_1.jpg"
    ffmpeg -i "public/worshipvideos/$1" -an -ss 00:00:40 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_2.jpg"
    ffmpeg -i "public/worshipvideos/$1" -an -ss 00:01:00 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_3.jpg"
    echo "End of making thumbs"

    If I try to make the command in terminal ./createVideoPics.sh "abc.mp4" it works, it makes the thumbs ; it only doesn't work inside the Rails App.

    What do you think would be the problem ? thanks in advance