Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (59)

  • 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

  • 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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (10324)

  • Python moviepy, CompositeVideoClip is Slow and Wierd

    4 mars 2023, par Dan

    I want to add a .mov transparent overlay on top of a .mp4 video, and for that I am using movipy and CompositeVideoClip, but it's too slow.

    


    The speed is 40 it/s when only the video is rendering but when it comes to the overlay it is only 5 it/s. To speed it up I have used use_bgclip=True and now I get 90 it/s but when the overlay comes I still get 5 it/s, and when I use use_bgclip=True there are 2 'bugs' that appears :

    


      

    1. The video freezes after the overlay is done playing.
    2. 


    3. The audio of the video is lost and the overlay sound is the only one left
    4. 


    


    For the two 'bugs', I found a good enough solution, but I want to speed up the process when the overlay comes, because 5 it/s it's way too slow. I have tried to use codec="h264_nvenc" or higher crf but the speed is the same.

    


    Is there a way to speed this up ? (I don't care if I need to use other libraries)

    


    import moviepy.editor as mp
video = mp.VideoFileClip("video.mp4")

overlay = mp.VideoFileClip("overlay.mov", has_mask=True)
overlay = overlay.set_start(5) # start the overlay 5 seconds after the video starts

compose = mp.CompositeVideoClip([video, overlay], use_bgclip=True, size=video.size)
compose = compose.set_duration(video.duration) # fix bug 1
compose = compose.set_audio(video.audio) # fix bug 2 (but I lost the audio from the overlay)

compose.write_videofile("cf15.mp4", codec="libx264", preset="veryfast", ffmpeg_params=["-crf", "15"])

compose.close()
video.close()


    


  • How to pause ffmpeg than runs without window ?

    5 février 2015, par Zed Machine

    I’m working on a video converter and I wanted to be able to stop or pause ffmpeg by pressing a button. Googleing I have found a way but it’s not working. basically I Start ffmpeg on a background worker in this way :

    Private Sub bw_DoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs)

           Dim Proc As New Process

           Proc.StartInfo.UseShellExecute = False
           Proc.StartInfo.RedirectStandardError = True
           Proc.StartInfo.RedirectStandardOutput = True
           Proc.StartInfo.FileName = current_ffmpeg_path
           Proc.StartInfo.Arguments = input_params
           Proc.StartInfo.CreateNoWindow = True
           Proc.Start()

    [do things...]

    then inside a loop I place an if to pause ffmpeg :

    If (pause = 1 Or pause = 2) Then
           AppActivate(Proc.Id)
           SendKeys.SendWait("^(s)")
           SetForegroundWindow(Me)
           pause = 0
       End If

    but it’s not working.. maybe cause of AppActivate that need a window to work while instead ffmpeg is running without it. There is another way ? maybe not with sendkeys ?

  • How to get FFMPEG conversion progress to progressbar in a C# WPF application ?

    19 mars 2018, par adrifcastr

    So I’m using the code below to convert a specified file, by running ffmpeg, and I need the progress to be visible in a progressbar, so I#d need to get it to display the cmd output to my textbox in realtime and from there get it to being displayed by the progressbar, any help ?

    private void convertbutton_Click(object sender, RoutedEventArgs e)
       {
           string resdir = AppDomain.CurrentDomain.BaseDirectory + "\\res";
           Extract("ADC", AppDomain.CurrentDomain.BaseDirectory + "\\res", "res", "ffmpeg.exe");

           string ffdir = AppDomain.CurrentDomain.BaseDirectory + "\\res\\ffmpeg.exe";
           string arg =  @"-y -activation_bytes ";
           string arg1 = @" -i ";
           string arg2 = @" -ab 80k -vn ";
           string abytes = bytebox.Text;
           string arguments = arg + abytes + arg1 + openFileDialog1.FileName + arg2 + saveFileDialog1.FileName;

           Process ffm = new Process();
           ffm.StartInfo.FileName = ffdir;
           ffm.StartInfo.Arguments = arguments;
           ffm.StartInfo.CreateNoWindow = true;
           ffm.StartInfo.RedirectStandardOutput = true;
           ffm.StartInfo.RedirectStandardError = true;
           ffm.StartInfo.UseShellExecute = false;
           ffm.StartInfo.WorkingDirectory = Directory.GetCurrentDirectory();
           ffm.Start();

           ffm.WaitForExit();
           ffm.Close();

           Directory.Delete(resdir, true);
       }

    FFMPEG Output regulary looks like this :

    size=    4824kB time=00:08:13.63 bitrate=  80.1kbits/s speed=  33x