Recherche avancée

Médias (91)

Autres articles (42)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • 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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (6775)

  • Ffmpeg does not properly convert videos when run as daemon

    20 janvier 2019, par DGoiko

    I’m using ffmpeg to convert and split videos from a Python process. When I run it from console as a normal user everything works as expected, however, if I run it as a daemon it produces the same amount of files but with silence in almost the whole file.

    This is the line I execute from python :

    def convert_to_ffmpeg(file, ffmpeg_folder, chunk_length):
       res = -1
       try:
           file_name = os.path.join(ffmpeg_folder, ntpath.basename(file) + ".flac")
           res = os.system("ffmpeg -i " + file + " -f segment -segment_time "+str(chunk_length)+" " + file_name + " -y  >/dev/null 2>&1")
       except Exception as e:
           raise MyException(code=210005, detalails=file, cause=e)
       if not res == 0:
           raise MyException(code=210004, detalails=str(res) + " - " + file)
       return file_name

    When I run it from a normal console it works as expected : it splits the video in chunks of "self._chunk_length" seconds.

    However, if I run the program using python-daemon with this code :

    if daemon_run:
       pid_file = check_unclean_exit(config['pidfile'], log)

       context = daemon.DaemonContext(
           working_directory=approot,
           umask=0o002,
           pidfile=pid_file,
       )
       context.signal_map = {
           signal.SIGTERM: programa_cleanup,
           signal.SIGHUP: 'terminate',
           # signal.SIGUSR1: reload_program_config,
       }

       with context:
           convert_to_ffmpeg("/foo/testfile.mkv", "/foo/ffmpeg", 40)

    It produces EXACTLY the same chunks, however, most of the content of the chunks is just silence. It splits in the proper point, but doesn’t fill the contents of the audio output properly. Of course, no exception is thrown, as ffmpeg always returns 0

    I did even install a completly fresh Debian 9 into a virtual machine to discard problems with ffmpeg and my old-good computer’s setup.

    Of course this is a simplified example. The real thing is a multithread application which watches a directory for files to convert.

  • Undefined symbols av_register_all()

    8 mai 2018, par JaSHin

    Good day,

    I am beginner in Objective-C and Xcode IDE. I am trying use ffmpeg in my iOS application. I cloned https://github.com/kewlbear/FFmpeg-iOS-build-script and build for arm64 and x86_64.

    When I wanted to build app it crashed with

    Ld /Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Products/Debug-iphonesimulator/CPP3.app/CPP3 normal x86_64
    cd /Volumes/sedy/xcode/CPP3
    export IPHONEOS_DEPLOYMENT_TARGET=9.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -L/Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Products/Debug-iphonesimulator -L/Volumes/sedy/xcode/CPP3/CPP3/ffmpeg/lib -F/Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Products/Debug-iphonesimulator -filelist /Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Intermediates/CPP3.build/Debug-iphonesimulator/CPP3.build/Objects-normal/x86_64/CPP3.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.1 -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lswresample -lswscale -framework AVFoundation -liconv -lbz2 -Xlinker -dependency_info -Xlinker /Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Intermediates/CPP3.build/Debug-iphonesimulator/CPP3.build/Objects-normal/x86_64/CPP3_dependency_info.dat -o /Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Products/Debug-iphonesimulator/CPP3.app/CPP3

    Undefined symbols for architecture x86_64:
     "av_register_all()", referenced from:
         Decoder::Decoder() in ViewController.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    There is zipped project on OneDrive http://1drv.ms/1KkPAia because it is a best way to explain my problem.

    Please help me and explain, what this problem arose.

    Thanks very much.

  • Anomalie #3210 : flux rss sur les forums

    26 juin 2014, par jluc -

    Si j’en crois http://zone.spip.org/trac/spip-zone/changeset/83493 le dernier point est normal.
    C’était il y a longtemps donc je ne suis plus certain des premiers mais peut être bien qu’il faut fermer ce signalement.