Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (30)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (5898)

  • FFMPEG : extracting jpegs at 1 fps rate with "-r 1" or "vf fps=fps=1" causes first three frames to be wrong [closed]

    11 avril 2013, par Stefan

    I need to use ffmpeg to extract video stills from a video, one picture per second, starting with second 0. I created a 4min test video with a running timecode (25fps, starting with 00:00:00 running to 03:59:24) If I use either

    ffmpeg -i input.mp4 -f image2 -r 1 still-%d.jpeg

    or

    ffmpeg -i input.mp4 -f image2 -vf fps="fps=1" still-%d.jpeg

    I fail because the first three images do not display expected time codes 00:00:00, 00:01:00, 00:02:00, but 00:00:00, 00:00:01, 00:00:13, and all subsequent images show having frame 13 in their timecode (and not :00). This causes my video preview to be off by 1-2 seconds.

    I had to resort to invoke ffmpeg for each frame, using -ss 0..240 and -vframes 1 to extract exactly one frame at the exact time. This works perfectly, all output files show the timecode of the first frame of that second.

    This method is considerably slower, however, and I'd rather not use it.

    Is there something I missed with the -r option or fps filter ? I tried specifying fps=fps=1:round=zero, but I got an error saying that the key "round" was not found.

    Thank you in advance !

  • ffmpeg. I correct that to insert the logo

    12 mai 2012, par user1390921
    private void btnStart_Click(object sender, EventArgs e)
    {
    this.btnStart.Enabled = false;
    this.progressBar1.Value = 0;

    string srcFile = Path.Combine(this.txtSource.Text, this.lstFiles.SelectedItem.ToString());
    MessageBox.Show(srcFile);
    string dstFile = Path.Combine(this.txtOutput.Text,
    Path.GetFileNameWithoutExtension(this.lstFiles.SelectedItem.ToString())) + "." + this.cboOutputFormat.SelectedItem;
    MessageBox.Show(dstFile);
    string imafile = Path.Combine("movie= "+this.openFileDialog1.SafeFileName);
    MessageBox.Show(imafile);


               string videoRateOption = string.Empty;
    if (this.cboVideoRate.SelectedIndex != 0)
    {
    videoRateOption = " -b:v " + this.cboVideoRate.SelectedItem.ToString().Split(' ')[0] + "k ";
    MessageBox.Show(videoRateOption);
    }

    string videoSizeOption = string.Empty;
    if (this.lstVideoSize.SelectedIndex != 0)
    {
    videoSizeOption = " -s " + this.lstVideoSize.SelectedItem.ToString().Split(' ')[0] + " ";
    }


               this.Text = "Converting...";
    ThreadPool.QueueUserWorkItem((object state) =>
    {
    ConvertFile(srcFile, imafile, dstFile, videoRateOption, videoSizeOption);
    });
    }


    string strFFMPEGOut;
    ProcessStartInfo psiProcInfo = new ProcessStartInfo();
    TimeSpan estimatedTime = TimeSpan.MaxValue;

    StreamReader srFFMPEG;

                   string ste = ""movie=watermarklogo.png [wm];[in][wm] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]"";
    string strFFMPEGCmd = " -i "" + srcFile + "" -ar 44100 " + videoRateOption + videoSizeOption +"-vf"+ ste + "-y ""
    + dstFile + """;

    psiProcInfo.FileName = Application.StartupPath + ((IntPtr.Size == 8) ? "\x64" : "\x86") + "\ffmpeg.exe";
    psiProcInfo.Arguments = strFFMPEGCmd;
    psiProcInfo.UseShellExecute = false;
                   psiProcInfo.WindowStyle = ProcessWindowStyle.Hidden;
    psiProcInfo.UseShellExecute = false;
    psiProcInfo.RedirectStandardError = true;
    psiProcInfo.ErrorDialog = true;
    psiProcInfo.RedirectStandardOutput = true;
    psiProcInfo.CreateNoWindow = true;

    prcFFMPEG.StartInfo = psiProcInfo;

    prcFFMPEG.Start();

    There is no response that I push the start button.
    There is no response that I push the start button that I tried to fix the code that I
    inserted the logo in the movie with Ffmpeg.
    Is that be okay if I don't choose the path of logo File. and Is there any something wrong that I did.

  • Unable to find a suitable output format for "ffmpeg" [duplicate]

    25 mars 2020, par deva

    I’m trying to convert video to mp3 using ffmpeg library. when i execute the commands its fail and logs says :
    Unable to find a suitable output format for "ffmpeg".

    There is my code :

       try {

    String[] cmd = new String[]{"ffmpeg", "-i", selectedVideo.get(i),"-y", dstto};

           if (cmd.length!=0){
               fFmpeg.execute(cmd, new ExecuteBinaryResponseHandler(){

                   @Override

                   public  void onSuccess(String s){

                       Toast.makeText(getApplicationContext(),"success"+ s, Toast.LENGTH_SHORT).show();

                   }



                   @Override

                   public  void onFailure(String s){

                       Toast.makeText(getApplicationContext(),"fail"+ s, Toast.LENGTH_SHORT).show();

                       log.setText(s);

                   }

               });

           }

       } catch (FFmpegCommandAlreadyRunningException e) {

           e.printStackTrace();

       } ```