Recherche avancée

Médias (91)

Autres articles (14)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • 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 (...)

Sur d’autres sites (4698)

  • swresample/resample : optimize exact_rational=on:linear_interp=on case

    24 novembre 2016, par Muhammad Faiz
    swresample/resample : optimize exact_rational=on:linear_interp=on case
    

    separate dsp.resample to dsp.resample_common and dsp.resample_linear
    and choose to call faster resample_common even when linear_interp=on
    when c->frac and c->dst_incr_mod are both zero

    speed up resampling when exact_rational and linear_interp are both
    enabled because exact_rational force c->frac and c->dst_incr_mod to
    be zero when soft compensation does not happen

    benchmark on exact_rational=on:linear_interp=on
    old new
    real 8.432s 5.097s
    user 7.679s 4.989s
    sys 0.125s 0.107s

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] libswresample/arm/resample_init.c
    • [DH] libswresample/resample.c
    • [DH] libswresample/resample.h
    • [DH] libswresample/resample_dsp.c
    • [DH] libswresample/x86/resample_init.c
  • avcodec/me_cmp : remove ff_me_cmp_init_static()

    3 février 2018, par Muhammad Faiz
    avcodec/me_cmp : remove ff_me_cmp_init_static()
    

    Precalculate and constify ff_square_tab.

    Reviewed-by : James Almer <jamrial@gmail.com>
    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] libavcodec/me_cmp.c
    • [DH] libavcodec/me_cmp.h
    • [DH] libavcodec/mpegvideo_enc.c
    • [DH] libavcodec/mpegvideoencdsp.c
    • [DH] libavcodec/snowenc.c
    • [DH] libavcodec/utils.c
  • 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.

    &#xA;&#xA;

    GOAL :

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;&#xA;

      &#xA;
    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. &#xA;

    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. &#xA;

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

    6. &#xA;

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

    8. &#xA;

    9. Part extract of Buildozer.log :

      &#xA;&#xA;

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

    10. &#xA;

    11. Part extract of Buildozer.spec

      &#xA;&#xA;

      (str) Title of your application

      &#xA;&#xA;

      title = myapplication

      &#xA;&#xA;

      (str) Package name

      &#xA;&#xA;

      package.name = myapp

      &#xA;&#xA;

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

      &#xA;&#xA;

      package.domain = org.test

      &#xA;&#xA;

      (str) Source code where the main.py live

      &#xA;&#xA;

      source.dir = .

      &#xA;&#xA;

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

      &#xA;&#xA;

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

      &#xA;&#xA;

      (list) List of inclusions using pattern matching

      &#xA;&#xA;

      source.include_patterns = assets/,images/.png

      &#xA;&#xA;

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

      &#xA;&#xA;

      source.exclude_exts = spec

      &#xA;&#xA;

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

      &#xA;&#xA;

      source.exclude_dirs = tests, bin

      &#xA;&#xA;

      (list) List of exclusions using pattern matching

      &#xA;&#xA;

      source.exclude_patterns = license,images//.jpg

      &#xA;&#xA;

      (str) Application versioning (method 1)

      &#xA;&#xA;

      version = 0.1

      &#xA;&#xA;

      (str) Application versioning (method 2)

      &#xA;&#xA;

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

      &#xA;&#xA;

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

      &#xA;&#xA;

      (list) Application requirements

      &#xA;&#xA;

      comma seperated e.g. requirements = sqlite3,kivy

      &#xA;&#xA;

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

      &#xA;&#xA;

      (str) Custom source folders for requirements

      &#xA;&#xA;

      Sets custom source for any requirements with recipes

      &#xA;&#xA;

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

      &#xA;&#xA;

      (list) Garden requirements

      &#xA;&#xA;

      garden_requirements =

      &#xA;&#xA;

      (str) Presplash of the application

      &#xA;&#xA;

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

      &#xA;&#xA;

      (str) Icon of the application

      &#xA;&#xA;

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

      &#xA;&#xA;

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

      &#xA;&#xA;

      orientation = portrait

      &#xA;&#xA;

      (list) List of service to declare

      &#xA;&#xA;

      services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

      &#xA;&#xA;

      OSX Specific

      &#xA;&#xA;

      author = © Copyright Info

      &#xA;&#xA;

      change the major version of python used by the app

      &#xA;&#xA;

      osx.python_version = 3

      &#xA;&#xA;

      Kivy version to use

      &#xA;&#xA;

      osx.kivy_version = 1.9.1

      &#xA;&#xA;

      Android specific

      &#xA;&#xA;

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

      &#xA;&#xA;

      fullscreen = 0

      &#xA;&#xA;

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

      &#xA;&#xA;

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

      &#xA;&#xA;

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

      &#xA;&#xA;

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

      &#xA;&#xA;

      olive, purple, silver, teal.

      &#xA;&#xA;

      android.presplash_color = #FFFFFF

      &#xA;&#xA;

      (list) Permissions

      &#xA;&#xA;

      android.permissions = INTERNET

      &#xA;&#xA;

      (int) Android API to use

      &#xA;&#xA;

      android.api = 19

      &#xA;&#xA;

      (int) Minimum API required

      &#xA;&#xA;

      android.minapi = 9

      &#xA;&#xA;

      (int) Android SDK version to use

      &#xA;&#xA;

      android.sdk = 20

      &#xA;&#xA;

      (str) Android NDK version to use

      &#xA;&#xA;

      android.ndk = 10.3.2

      &#xA;&#xA;

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

      &#xA;&#xA;

      android.private_storage = True

      &#xA;&#xA;

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

      &#xA;&#xA;

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

      &#xA;&#xA;

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

      &#xA;&#xA;

      android.sdk_path =

      &#xA;&#xA;

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

      &#xA;&#xA;

      android.ant_path =

    12. &#xA;

    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. &#xA;

    &#xA;&#xA;

    Current Environment Specs :

    &#xA;&#xA;

      &#xA;
    1. Running Linux Mint 17.2 as a Virtual Box VM
    2. &#xA;

    3. Buildozer Version : 0.35dev
    4. &#xA;

    5. Cython Version : 0.25
    6. &#xA;

    &#xA;&#xA;

    Any advice would be greatly appreciated.

    &#xA;&#xA;

    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 ?

    &#xA;&#xA;

    Thanks in advance.

    &#xA;