Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (29)

  • 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

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (6200)

  • h264_parser : don’t stop on SPS_EXT in split

    31 octobre 2014, par John Stebbins
    h264_parser : don’t stop on SPS_EXT in split
    

    Add SPS_EXT, SEI, and subset SPS to codes that are skipped during split.
    These codes can come before the PPS and results in incomplete extradata.

    • [DBH] libavcodec/h264_parser.c
  • Python subprocess : capture output of ffmpeg and run regular expression against it

    31 décembre 2014, par Jesse Adam

    I have the following code

    import subprocess
    import re
    from itertools import *

    command = ['ffprobe', '-i', '/media/some_file.mp4']
    p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    text = p.stderr.read()
    retcode = p.wait()
    text = text.decode('utf-8')
    p = re.compile("Duration(.*)")

    num = 0 #for debugging
    for line in iter(text.splitlines()):
       print(str(num) + line) #for debugging
       m = p.match(str(line))
       if m != None:
           print(m.group(1))

    When I look at the output there is a line that says "Duration" on it, however it is not captured, print(m.group(1)) is never reached. If I change the text variable to a hardcoded string of "Duration blahblah" I get " blahblah", which is what I expect. It seems like the regex doesn’t recognize the text coming back from stderr. How can I get the text into a format that the regex will recognize and match on ?


    I have come up with the following solution, should it help anyone else attempting to capture duration from ffmpeg using python

    import subprocess
    import re

    command = ['ffprobe', '-i', '/media/some_file.mp4']
    p = subprocess.Popen(command, stderr=subprocess.PIPE)
    text = p.stderr.read()
    retcode = p.wait()
    text = text.decode('utf-8')
    p = re.compile(".*Duration:\s([0-9:\.]*),", re.MULTILINE|re.DOTALL)
    m = p.match(text)
    print(m.group(1))
  • kdenlive - Get stuck when stop capture

    9 janvier 2015, par Eduardo Ramos

    I am having problems with kdenlive to capture my webcam with ffmpeg. My environment :

    • Slackware 14.1 (current) ;
    • mlt-0.9.0-x86_64-2_SBo ;
    • ffmpeg-2.1.5-x86_64_custom-1_SBo ;
    • kdenlive-0.9.8-x86_64-1_SBo.

    My procedure :

    Go to ’Record Monitor’ tab, click on ’record’ button. The preview works very well. Some seconds later, I click on ’stop’ button, then it get stuck. That moment, my webcam remains active too.

    When I check my working folder /tmp/kdenlive, it appeared capture0000.mpg file. I can play normally with mplayer. So it seems kdenlive is working with capture and encode.

    My kdenlive capture configuration :

    • device : /dev/video0
    • Size : 160x120
    • Frame rate : 30/1
    • Alsa capture : checked

    • Encoding profile : Normal MPEG :

      f=mpeg acodec=mp2 ab=128k ar=48000 vcodec=mpeg2video minrate=0 vb=4000k