Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (16)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (3948)

  • FFMpeg + Beanstalk : How to pass the processes to it or achieve the same result without using Beanstalk

    6 avril 2017, par Ilia Rostovtsev

    My problem is that FFMpeg and Mencoder are extremely resourceful and running even one process of it makes HTTPd slow down but multiple processes of (FFMPEG /Mencoder) just hang it (HTTPd) completely. I would like my conversions to be processed with Beanstalk, for example.

    My concrete question is : How to transfer my current jobs to Beanstalk ?

    I have a simple PHP code that triggers conversion :

    RunInBackground('convert.php', array($upload, $video_id), $log_path);

    Now what would Beanstalk correct code would look like so these processes would NOT start all at the same time if multiple videos are uploaded ?

    If you believe that for my needs is better to use something else but Beanstalk and you know how to implement it, I would be still happy to see it !

    Thanks in advance,
    Ilia

  • Specifying FFMPEG in the requirements section of 'buildozer.spec' causing [libavformat/network.o] Error 1

    18 juillet 2022, par GJ78

    My question relates to how to mitigate an ffmpeg requirement listed in a buildozer.spec that is causing compile errors using buildozer.

    



    GOAL :

    



    Using buildozer to ensure FFMPEG can be embedded within a small Kivy app so i can utilise youtube_dl functionality on my android phone.

    



    THE ISSUE :
Specifying FFMPEG in the requirements section of 'buildozer.spec' causes the following error message :
    
common.mak:60 : recipe for target 'libavformat/network.o' failed
    
make : [libavformat/network.o] Error 1
    
make : Waiting for unfinished jobs...

    



    What have I done to resolve myself :
    
1. Ensured LOG LEVEL 2 is specified.

    



      

    1. Upgraded cython from Version 21 to 27. Then downgraded to 25, then 21 then 20 to see if this resolved anything. It didn't.

    2. 


    3. In BUILDOZER.SPEC, switched between Android NDK crystax-ndk-10.3.2 and android-ndk-r16b. (Note have reverted back to Crystax 10.3.2) in my NDK PATH.

    4. 


    5. In BUILDOZER.SPEC, changed android.api from 19 to 15 (just to see if this has any positive effects).

    6. 


    7. executed : rm -Rf .buildozer between each compiling attempt.

    8. 


    9. Part extract of Buildozer.log :

      



      In file included from libavformat/dump.c:37:0 :
      
libavformat/avformat.h:893:21 : note : declared here
      
 AVCodecContext codec ;
 ^
      
CC libavformat/format.o
      
CC libavformat/golomb_tab.o
      
CC libavformat/h264dec.o
      
CC libavformat/hevc.o
      
CC libavformat/http.o
      
CC libavformat/httpauth.o
      
CC libavformat/id3v1.o
      
CC libavformat/id3v2.o
      
CC libavformat/img2.o
      
CC libavformat/isom.o
      
CC libavformat/log2_tab.o
      
CC libavformat/m4vdec.o
      
CC libavformat/metadata.o
CC libavformat/mov_chan.o
      
CC libavformat/mov.o
      
CC libavformat/movenc.o
      
CC libavformat/movenccenc.o
      
CC libavformat/movenchint.o
      
CC libavformat/mpegvideodec.o
      
CC libavformat/mux.o
      
CC libavformat/network.o
      
In file included from libavformat/network.h:29:0,
      
 from libavformat/network.c:22 :
      
libavformat/os_support.h:67:32 : error : expected declaration specifiers or '...' before '(' token
      
 # define lseek(f,p,w) lseek64((f), (p), (w))
      
 ^
libavformat/os_support.h:67:37 : error : expected declaration specifiers or '...' before '(' token
      
 # define lseek(f,p,w) lseek64((f), (p), (w))
      
 ^
libavformat/os_support.h:67:42 : error : expected declaration specifiers or '...' before '(' token
      
 # define lseek(f,p,w) lseek64((f), (p), (w))
      
 ^
common.mak:60 : recipe for target 'libavformat/network.o' failed
      
make :
      [libavformat/network.o] Error 1
      
make : * Waiting for unfinished jobs....

    10. 


    11. Part extract of Buildozer.spec

      



      (str) Title of your application

      



      title = myapplication

      



      (str) Package name

      



      package.name = myapp

      



      (str) Package domain (needed for android/ios packaging)

      



      package.domain = org.test

      



      (str) Source code where the main.py live

      



      source.dir = .

      



      (list) Source files to include (let empty to include all the files)

      



      source.include_exts = py,png,jpg,kv,atlas

      



      (list) List of inclusions using pattern matching

      



      source.include_patterns = assets/,images/.png

      



      (list) Source files to exclude (let empty to not exclude anything)

      



      source.exclude_exts = spec

      



      (list) List of directory to exclude (let empty to not exclude anything)

      



      source.exclude_dirs = tests, bin

      



      (list) List of exclusions using pattern matching

      



      source.exclude_patterns = license,images//.jpg

      



      (str) Application versioning (method 1)

      



      version = 0.1

      



      (str) Application versioning (method 2)

      



      version.regex = version = '"['"]

      



      version.filename = %(source.dir)s/main.py

      



      (list) Application requirements

      



      comma seperated e.g. requirements = sqlite3,kivy

      



      requirements = ffmpeg,python2,hostpython2,kivy,youtube-dl

      



      (str) Custom source folders for requirements

      



      Sets custom source for any requirements with recipes

      



      requirements.source.kivy = ../../kivy

      



      (list) Garden requirements

      



      garden_requirements =

      



      (str) Presplash of the application

      



      presplash.filename = %(source.dir)s/data/presplash.png

      



      (str) Icon of the application

      



      icon.filename = %(source.dir)s/data/icon.png

      



      (str) Supported orientation (one of landscape, portrait or all)

      



      orientation = portrait

      



      (list) List of service to declare

      



      services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

      



      OSX Specific

      



      author = © Copyright Info

      



      change the major version of python used by the app

      



      osx.python_version = 3

      



      Kivy version to use

      



      osx.kivy_version = 1.9.1

      



      Android specific

      



      (bool) Indicate if the application should be fullscreen or not

      



      fullscreen = 0

      



      (string) Presplash background color (for new android toolchain)

      



      Supported formats are : #RRGGBB #AARRGGBB or one of the following names :

      



      red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,

      



      darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,

      



      olive, purple, silver, teal.

      



      android.presplash_color = #FFFFFF

      



      (list) Permissions

      



      android.permissions = INTERNET

      



      (int) Android API to use

      



      android.api = 19

      



      (int) Minimum API required

      



      android.minapi = 9

      



      (int) Android SDK version to use

      



      android.sdk = 20

      



      (str) Android NDK version to use

      



      android.ndk = 10.3.2

      



      (bool) Use —private data storage (True) or —dir public storage (False)

      



      android.private_storage = True

      



      (str) Android NDK directory (if empty, it will be automatically downloaded.)

      



      android.ndk_path = /home/gjones/Downloads/crystax-ndk-10.3.2

      



      (str) Android SDK directory (if empty, it will be automatically downloaded.)

      



      android.sdk_path =

      



      (str) ANT directory (if empty, it will be automatically downloaded.)

      



      android.ant_path =

    12. 


    13. Lastly, when I remove ffmpeg from requirements in buildozer.spec, the .APK compiles successfully and i can deploy it on to my phone with the KIVY GUI. Obviously, ffmpeg functionality is not present.

    14. 


    



    Current Environment Specs :

    



      

    1. Running Linux Mint 17.2 as a Virtual Box VM
    2. 


    3. Buildozer Version : 0.35dev
    4. 


    5. Cython Version : 0.25
    6. 


    



    Any advice would be greatly appreciated.

    



    Lastly, if there is no obvious solution via buildozer, do i need to compile ffmpeg for Android separately and somehow include this somewhere in the buildozer spec file to prevent this error message ?

    



    Thanks in advance.

    


  • FFmpeg Build ERROR (/usr/bin/ln : failed to create symbolic link 'libavutil.so' : No such file or)

    11 février 2018, par BW-Eagle

    I’m not expert on building c-files.
    I want to use custom ffmpeg in my anndroid app.
    But I have the below problem when building ffmpeg package with MinGW and NDK-R14b

    After running bash command, after a while finally it reaches this error :

    /usr/bin/ln: failed to create symbolic link 'libavutil.so': No such file     or directory
    make: *** [libavutil/libavutil.so] Error 1
    make: *** Waiting for unfinished jobs....

    I know that the problem must be about to LINKER but I can’t fix it.

    Any help would be appreciated.