Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (66)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

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

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

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

  • Processing video using ffmpeg and saving the output to MongoDB

    10 juillet 2013, par kheya

    I have user uploaded video saved in a folder (can be in any of 5/6 formats)
    I have 2 needs.

    • Extract 3 frame images (that I will show to user for possible thumbnail
    • Convert the video to one or more other formats (flv + WebM)

    I am planning to use FFMPEG command line tool.

    How do I write the output from FFMPEG to MongoDB gridFS ?

    Is it even possible or I have to write the files to folder first & then save to gridFS ?

    Thanks

  • ffmpeg encoding plays very fast. Audio.mp4 and Video.mp4 work, but both together don't

    25 février 2013, par Peter.O

    In both steps 3 and 4 below, the .mp4 plays normally. However, although I've used what seems to be the same settings in the last step (audio + video), that step does not work. The video plays more than 10 times too fast... also the audio does not play.

    The ffmpeg messages for step 5 show that it has included audio.

    Output #0, mp3, to '/tmp/test.mp4':
       Stream #0.0: Video: libx264, yuv420p, 720x480, q=2-31, 90k tbn, 23.98 tbc
       Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, s16, 128 kb/s

    Subsequently running ffmpeg -i shows no trace of the audio, but it does report on the video... What have I missed, to get it muxed properly ?...

    #!/bin/bash

    # 1. create Audio
    wine avs2pipe.exe audio "$src_avs" >"$temp_pcm"

    # 2. create Video
    wine avs2yuv.exe "$src_avs" - |
     x264 --stdin y4m --output "$temp_h264" - 2>/dev/null

    # 3. This works.  (audio only)
    # encode `audio.mp4
    ffmpeg -acodec pcm_s16le -f u16le -ac 2 -ar 48000 -i "$temp_pcm" \
          -acodec libmp3lame -f mp3 -ar 48000 -ab 128k  -y "$audio_mp4"

    # 4. This works.  (video only)
    # encode `video.mp4
    ffmpeg -i "$temp_h264" \
          -vcodec copy -y "$video_mp4"

    # 5. This DOES NOT work!  It plays very fast.
    # encode `final.mp4'
    ffmpeg -acodec pcm_s16le  -f u16le  -ac 2 -ar 48000  -i "$temp_pcm" \
          -i "$temp_h264" \
          -acodec libmp3lame -f mp3 -ar 48000 -ab 128k \
          -vcodec copy \
          -y "$final_mp4"