Recherche avancée

Médias (0)

Mot : - Tags -/acrobat

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

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (17046)

  • Build failed in step 'Retrieving needed toolchain components' tarballs

    1er mars 2018, par VaFancy

    I tried to build crosstool in my raspberry pi, and the procedure I followed was from How to compile FFmpeg for Raspberry Pi (Raspbian). When I finished ct-ng build(which took a very long time), an error occurred. It shows that Build failed in step 'Retrieving needed toolchain components' tarballs called in step '{top-level}'

    Here is the error I copied from build.log.

    [ERROR]  
    [ERROR]  >>
    [ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
    [ERROR]  >>        called in step '(top-level)'
    [ERROR]  >>
    [ERROR]  >>  Error happened in: do_kernel_get[scripts/build/kernel/linux.sh@735]
    [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@576]
    [ERROR]  >>
    [ERROR]  >>  For more info on this error, look at the file: 'build.log'
    [ERROR]  >>  There is a list of known issues, some with workarounds, in:
    [ERROR]  >>      '/opt/cross/share/doc/crosstool-ng/ct-ng.1.19.0/B - Known issues.txt'
    [ERROR]

    How can I solve this ? Please help me, I’ve already wasted 2 days on it.

  • How do I limit resources for ffmpeg, called from a python-script, running in a docker container ?

    26 juillet 2019, par wotanii

    I deployed a service, that periodically does video encoding on my server ; And every time it does, all other services slow down significantly. The encoding is hidden under multiple layers of abstraction. Limiting any of those layers would be fine. (e.g. limiting the docker-container would work just as well as limiting the ffmpeg-sub process.)

    My Stack :

    1. VPS (ubuntu:zesty)
    2. docker-compose
    3. docker-container (ubuntu:zesty)
    4. python
    5. ffmpeg (via subprocess.check_call() in python)

    What I want to limit :

    • CPU : single core
    • RAM : max 2 GB
    • HDD : max 4 GB

    It would be possible to recompile ffmpeg if needed.

    What would be the place to put limits in this stack ?

  • OSError : [Errno 13] Permission denied when running python code called extract.py

    26 avril 2017, par aisunshinehui

    ffmpeg.py :

    def resize(videoName, resizedName):
       if not os.path.exists(videoName):
         print '%s does not exist!' % videoName
         return False
       # call ffmpeg and grab its stderr output
       p = subprocess.Popen([ffmpeg, "-i", videoName],stderr=subprocess.PIPE)
       out, err = p.communicate()
       # search resolution info
       if err.find('differs from') > -1:
         return False
       reso = re.findall(r'Video.*, ([0-9]+)x([0-9]+)', err)
       if len(reso) < 1:
          return False
       # call ffmpeg again to resize
       subprocess.call([ffmpeg, '-i', videoName, '-s', '160 x 120', resizedName])
       return check(resizedName)

    # check the video file is corrupted or not
    def check(videoName):
        if not os.path.exists(videoName):
           return False
        p = subprocess.Popen([ffmpeg, "-i", videoName], stderr=subprocess.PIPE)
        out, err = p.communicate()
        if err.find('Invalid') > -1:
           return False
        return True

    extract.py :

    def extract(videoName, outputBase):
       if not os.path.exists(videoName):
           print '%s does not exist!' % videoName
           return False
       if check_dup(outputBase):
           print '%s processed' % videoName
           return True
       resizedName = os.path.join(tmpDir, os.path.basename(videoName))
       if not ffmpeg.resize(videoName, resizedName):
           resizedName = videoName     # resize failed, just use the input video
       subprocess.call('%s %s | %s %s %s %s' % (dtBin, resizedName, fvBin, pcaList, codeBookList, outputBase), shell=True)
       return True

    def check_dup(outputBase):
       """
       Check if fv of all modalities have been extracted
       """
       featTypes = ['traj', 'hog', 'hof', 'mbhx', 'mbhy']
       featDims = [20, 48, 54, 48, 48]
       for i in range(len(featTypes)):
           featName = '%s.%s.fv.txt' % (outputBase, featTypes[i])
           if not os.path.isfile(featName) or not os.path.getsize(featName) > 0:
               return False
           # check if the length of feature can be fully divided by featDims
           f = open(featName)
           featLen = len(f.readline().rstrip().split())
           f.close()
           if featLen % (featDims[i] * 512) > 0:
               return False
       return True

    i run the extract.py in the terminal and error occurred as follows,then add sudo and run chmod 777 -R /usr/lib/python2.7 to change the permission but it doesn`t work !

    aisunshinehui@aisunshinehui : /program/dtfv/script$ sudo python extract_fv.py /home/aisunshinehui/program/dtfv/script/videolist/video.txt

    /home/aisunshinehui/program/dtfv/script/output/ 1
    [sudo] password for aisunshinehui:
       0 /home/aisunshinehui/program/dtfv/script/videolist
     Traceback (most recent call last):
         File "extract_fv.py", line 63, in <module>
           extract(videos[i], outputName)
         File "extract_fv.py", line 27, in extract
           if not ffmpeg.resize(videoName, resizedName):
         File "/home/aisunshinehui/program/dtfv/script/ffmpeg.py", line 17, in resize
           p = subprocess.Popen([ffmpeg, "-i", videoName], stderr=subprocess.PIPE)
         File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
           errread, errwrite)
         File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
           raise child_exception
       OSError: [Errno 13] Permission denied
    </module>

    help me !