Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (40)

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (5017)

  • Execute command by php exec() with xampp in ubuntu {not working}

    27 juin 2020, par Mohamed Ali

    I executed this command
nohup ffmpeg -i input.mp4 -vcodec h264 -preset:v ultrafast -b:v 1000k -acodec mp3 output.mp4 2>output.txt &
in ubuntu by Terminal and it worked properly but when I tried to execute it by php exec($myCommand) it didn't work and show this message

    


    Error message :
enter image description here

    


    I tried to solve it by change name of this file libstdc++.so.6 to libstdc++.so.6.old in this directory /opt/lampp/lib after that when I execute my command it show this message
ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates

    


  • Android ffmpeg : Use image for Watermark from drawable or assets folder

    17 septembre 2019, par Pratik Butani

    How to use image for watermark from drawable folder or assets folder in Android.

    I found many examples with command but all the examples are working with static image path of internal storage.

    I have done following code to make video with watermark.

       try {
           FFmpeg ffmpeg = FFmpeg.getInstance(mContext);
           // to execute "ffmpeg -version" command you just need to pass "-version"

           String mSelectedPath = PathUtils.getPathFromUri(mContext, selectedUri);
           String mFileName = PathUtils.getFileName(mSelectedPath);
           final String mDestinationPath = "/storage/emulated/0/" + mFileName;

           String[] array = new String[]{"-i", mSelectedPath , "-i", "/storage/emulated/0/logo.png", "-filter_complex", "[0:v][1:v]overlay=main_w-overlay_w-10:10", "-codec:a", "copy", mDestinationPath};

           ffmpeg.execute(array, new ExecuteBinaryResponseHandler() {

               @Override
               public void onStart() {
                   Log.d(TAG, "onStart: ");
                   Toast.makeText(mContext, "Preparing video...", Toast.LENGTH_SHORT).show();
               }

               @Override
               public void onProgress(String message) {
                   Log.d(TAG, "onProgress: " + message);
                   Toast.makeText(mContext, "Processing for compression...", Toast.LENGTH_SHORT).show();
               }

               @Override
               public void onFailure(String message) {
                   Log.d(TAG, "onFailure: " + message);
                   Toast.makeText(mContext, "Failed to upload, Try Again.", Toast.LENGTH_SHORT).show();
               }

               @Override
               public void onSuccess(String message) {
                   Log.d(TAG, "onSuccess: " + message);
                   Toast.makeText(mContext, "Uploading started", Toast.LENGTH_SHORT).show();
                   mFinalUploadUri = PathUtils.getUriFromPath(mContext, new File(mDestinationPath));
                   uploadVideo();
               }

               @Override
               public void onFinish() {
                   Log.d(TAG, "onFinish: ");

               }
           });
       } catch (FFmpegCommandAlreadyRunningException e) {
           // Handle if FFmpeg is already running
           e.printStackTrace();
       }

    Anyone know how to use image for watermark from drawable or assets folder ? Can anyone help ?

  • ffmpeg. I correct that to insert the logo [closed]

    13 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 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.