Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (43)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (5345)

  • Fix compile error on arm4/arm5 platform

    23 septembre 2014, par Bernd Kuhls
    Fix compile error on arm4/arm5 platform
    

    Since these commits
    http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=adf8227cf4e7b4fccb2ad88e1e09b6dc00dd00ed
    http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=db7f1c7c5a1d37e7f4da64a79a97bea1c4b6e9f8

    compilation on arm4/arm5 fails :

    libavcodec/libavcodec.so : undefined reference to
    `ff_startcode_find_candidate_armv6’

    Because libavcodec/arm/Makefile contains
    ARMV6-OBJS-$(CONFIG_STARTCODE) += arm/startcode_armv6.o
    function ff_startcode_find_candidate_armv6 is not included for older ARM
    archs. The bug was found during automatic buildroot builds :

    http://autobuild.buildroot.net/results/ec7/ec71e4f16ee9106747dff5f15999cbd17903e76f//build-end.log
    Quote from configure summary :
    ARCH arm (armv4t)
    big-endian no
    runtime cpu detection yes
    ARMv5TE enabled no
    ARMv6 enabled no
    ARMv6T2 enabled no

    http://autobuild.buildroot.net/results/be7/be72eb182eaccf0064a32c9dfc2ac1c0d6555506/build-end.log
    ARCH arm (armv5te)
    big-endian no
    runtime cpu detection yes
    ARMv5TE enabled yes
    ARMv6 enabled no
    ARMv6T2 enabled no

    This patch provides the necessary #if clauses as discussed with Michael :
    https://ffmpeg.org/pipermail/ffmpeg-devel/2014-September/163329.html

    Signed-off-by : Bernd Kuhls <bernd.kuhls@t-online.de>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/arm/h264dsp_init_arm.c
    • [DH] libavcodec/arm/vc1dsp_init_arm.c
  • Executing ffmpeg command using Popen

    21 septembre 2014, par dragonator

    I have a strange problem trying to execute ffmpeg command using Popen.
    I have the following piece of code, which I use for executing an external commands in Python :

    from subprocess import Popen, PIPE
    from datetime import datetime


    class Executor(object):

       @classmethod
       def execute(cls, command):
           """
           Executing a given command and
           writing into a log file in cases where errors arise.
           """
           p = Popen(command, stdin=PIPE, stdout=PIPE, stderr=PIPE)
           output, err = p.communicate()
           if p.returncode:
               with open("failed_commands.log", 'a') as log:
                   now = datetime.now()
                   log.write('{}/{}/{} , {}:{}:{}\n\n'.format(now.day, now.month,
                                                              now.year, now.hour,
                                                              now.minute,
                                                              now.second))

                   log.write("COMMAND:\n{}\n\n".format(" ".join(command)))
                   log.write("OUTPUT:\n{}\n\n".format(output.decode("utf-8")))
                   log.write("ERRORS:\n{}\n".format(err.decode("utf-8")))
                   log.write('-'*40)
                   log.write('\n')

               return ''

           if not output:
               output += ' '

           return output

    I’ve tested it with others commands, but when I try to execute ffmpeg command - it fails.
    I’m trying to convert some audio format to mp3 format.
    Here is an example of my command :

    ffmpeg -i "/path/old_song.m4a" "/path/new_song.mp3"

    ...simple as that.When I run it in terminal it works fine, but when I try to execute it using the above function it fails.
    Here is the exact error :

    ----------------------------------------
    21/9/2014 , 19:48:50

    COMMAND:
    ffmpeg -i "/path/old_song.m4a" "/path/new_song.mp3"

    OUTPUT:


    ERRORS:
    ffmpeg version 2.2.3 Copyright (c) 2000-2014 the FFmpeg developers
     built on Jun  9 2014 08:01:43 with gcc 4.9.0 (GCC) 20140521 (prerelease)
     configuration: --prefix=/usr --disable-debug --disable-static --enable-avisynth --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
     libavutil      52. 66.100 / 52. 66.100
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.100 / 55. 33.100
     libavdevice    55. 10.100 / 55. 10.100
     libavfilter     4.  2.100 /  4.  2.100
     libavresample   1.  2.  0 /  1.  2.  0
     libswscale      2.  5.102 /  2.  5.102
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    "/path/old_song.m4a": No such file or directory
    Conversion failed!

    ----------------------------------------

    ...and as you can think of - the file exists.

    I think there is something in passing the command to Popen.communicate but I don’t know exactly.

    Kind regards,

    Teodor D.
    PS : I’m passing the command to Executor.execute as Python list.

    PSS : Calling the Executor.execute :

    def process_conversion(self):
       for song in self.files_to_convert:
           current_format = song.rsplit('.', 1)[-1]

           old_file = '"{}{}{}"'.format(self.target_dir, os.sep, song)
           new_file = '"{}{}{}"'.format(self.target_dir, os.sep,
                                        song.replace(current_format, 'mp3'))

           command = ["ffmpeg", "-i", old_file, new_file]
           Executor.execute(command)
  • mlpdec : support TrueHD streams with an Atmos substream

    21 septembre 2014, par Hendrik Leppkes
    mlpdec : support TrueHD streams with an Atmos substream
    

    The fourth substream is being discarded, since its not raw audio data,
    but an encoded Atmos stream which needs a specialized decoder.

    Fixes decoding of the true hd stream from Transformers\ -\ Age\ of\ Extinction\ 2014\ 1080P-003.mkv

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/mlp.h
    • [DH] libavcodec/mlpdec.c