Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (63)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (11102)

  • VB.NET : How to maintain main form control during loops in other sub ?

    5 février 2015, par Zed Machine

    I have a program with only one form.
    By pressing a button it starts a ffmpeg conversion.

    In the main form, in textboxes, ffmpeg stats are outputted. This is possible by taking StandardError output from ffmpeg.

    Public Sub Console()
           Dim Process As New Process

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

           Dim ffmpeg_stats_output As System.IO.StreamReader = Process.StandardError

           Do While Process.HasExited = False
           [update all main form textboxes by taking input string from ffmpeg and elaborate it]
           Loop
    End Sub

    The problem is that while this loop is executed the textboxes and progress bar are updated but the main form cannot be modified. There is in fact no control at all by user. So if I want to make a button to stop/pause ffmpeg in main form this cannot be pressed as anything else on the main form.

    there is a way to maintain loops inside other Sub without loose control of main form while they’re running ?

    I tried to fix it by calling another dialog form with textboxes and progress bar. But even this form loose completely control until the process is finished.

    To send pause/stop conversion to ffmpeg (that runs without a window) is it correct use :

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    SendKeys.Send("q")
    SendKeys.Send("^s")
    End Sub

    or must be specified that this key is sent to the current running Process ?

  • How can I get the volume of sound of a video in Python using moviepy ?

    24 janvier 2015, par evil_inside

    I want to get the volume of sound of a video so I use the following :

    import numpy as np # for numerical operations
    from moviepy.editor import VideoFileClip, concatenate

    clip = VideoFileClip("soccer_game.mp4")
    cut = lambda i: clip.audio.subclip(i,i+1).to_soundarray(fps=22000)
    volume = lambda array: np.sqrt(((1.0*array)**2).mean())
    volumes = [volume(cut(i)) for i in range(0,int(clip.audio.duration-2))]

    But I get these errors :

    Exception AttributeError: "VideoFileClip instance has no attribute 'reader'" in <bound method="method" of="of" instance="instance" at="at" 0x084c3198="0x084c3198">> ignored

    WindowsError: [Error 5] Access is denied
    </bound>

    I am using IPython notebook and Python 2.7.
    I assume something doesn’t have the appropriate permissions. I have changed run this program as an administrator for ffmpeg.exe, ffplay.exe, ffprobe.exe.

  • mpegvideo_enc : Draw edges on input for non-multiple of 16 resolutions

    16 février 2013, par Michael Niedermayer
    mpegvideo_enc : Draw edges on input for non-multiple of 16 resolutions
    

    This improves motion estimation and avoids using uninitialized data
    for resolutions that aren’t a multiple of 16.

    Prior to d2a25c40, the edges used to be initialized so that encoding
    was deterministic, but after that commit it started using uninitialized
    data (for non multiple of 16 resolutions).

    CC : libav-stable@libav.org
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/mpegvideo_enc.c