Recherche avancée

Médias (91)

Autres articles (72)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7378)

  • FFMPEG with Gradle Experimental Android plugin

    12 avril 2016, par Spartan

    I extracted ffmpeg in ndk’s source folder then compiled it there only for that I followed this :http://www.roman10.net/2013/08/18/how-to-build-ffmpeg-with-ndk-r9/

    So I successfully(generated android folder with arm/lib and arm/include files).

    After that I created one Android.mk file in $NDK/sources/ffmpeg/android/arm and one Android.mk in my android project(src/main/jni folder).

    My src/main/jni/Android.mk is like this :

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

    LOCAL_MODULE    := tutorial01
    LOCAL_SRC_FILES := tutorial01.c
    LOCAL_LDLIBS := -llog -ljnigraphics -lz
    LOCAL_SHARED_LIBRARIES := libavformat libavcodec libswscale libavutil

    include $(BUILD_SHARED_LIBRARY)
    $(call import-module,ffmpeg-3.0.1/android/arm)

    Now I stuck here and trying to put these details in build.gradle files like showing in this documentation :
    http://tools.android.com/tech-docs/new-build-system/gradle-experimental

    for example :

    model {

       repositories {

           libs(PrebuiltLibraries) {

               prebuilt {

                   headers.srcDir "path/to/headers"

                   binaries.withType(SharedLibraryBinary) {

                       sharedLibraryFile = file("lib/${targetPlatform.getName()}/prebuilt.so")

                   }

               }

           }

       }

       android.sources {
           main {
               jniLibs {
                   dependencies {
                       library "prebuilt"
                   }
               }
           }
       }
    }

    But not able transform exact Android.mk(src/main/jni) to this and apart from it I have one more Android.mk in my android/arm folder so how I can call this makefile or should I put that details also in my build.gradle like above.

    I tried like this and using ndk-build command successfully generated jniLibs with .so files but I am getting libavcodec/avcodec.h : No such file or directory while building project.

    android.sources {
       main {
           jni {
               source {
                   srcDirs = ['src/main/myJni']
               }

           }

       }

       main {
           jniLibs {
               source {
                   srcDirs = ['src/main/libs']
               }
           }
       }

    }
  • iPhone video conversion to Android supported format using FFMPEG

    21 janvier 2016, par Muhammad Umar

    I have an iPhone video created as follow

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'vid.mp4':
     Metadata:
       major_brand     : qt  
       minor_version   : 0
       compatible_brands: qt  
       creation_time   : 2016-01-20 09:21:08
       make            : Apple
       make-eng        : Apple
       encoder         : 8.2
       encoder-eng     : 8.2
       date            : 2016-01-20T14:20:57+0500
       date-eng        : 2016-01-20T14:20:57+0500
       model           : iPhone 5
       model-eng       : iPhone 5
     Duration: 00:00:10.80, start: 0.000000, bitrate: 765 kb/s
       Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 62 kb/s (default)
       Metadata:
         creation_time   : 2016-01-20 09:21:08
         handler_name    : Core Media Data Handler
       Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 320x320, 696 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2016-01-20 09:21:08
         handler_name    : Core Media Data Handler
         encoder         : H.264

    I want to convert it into Android support format so that all iPhone and maximum androids can read it.

    However if i convert to mpeg4 format using

    ffmpeg -i vid.mp4 -s 320x320 -vcodec mpeg4 -acodec aac -strict -2 -ac 2 -ar 44100 -ab 128k output.mp4

    it really degrades the quality

    How can i set the ffmpeg to create atleast as close as possible quality which runs on both android and iPhone

  • how to upload a video to google driver use paperclip or carriwave

    14 janvier 2016, par bách trần nguyên

    i want to upload video to google driver.
    code models
    video model

    class Video < ActiveRecord::Base
     has_attached_file :video,
      :storage => :google_drive,
      :google_drive_credentials => {:client_id => AppConfig.gg_drive.client_id,
                                 :client_secret => AppConfig.gg_drive.client_secret,
                                 :refresh_token => AppConfig.gg_drive.refresh_token,
                                 :scope => AppConfig.gg_drive.scope,
                                 :access_token => Token.cache_access_token_google_drive
                                 },
     :styles => {
       :medium => {
         :geometry => "640x480",
         :format => 'mp4'
       },
       :thumb => { :geometry => "160x120", :format => 'jpeg', :time => 10}
     },# hello 123
     :processors => [:transcoder],
     :google_drive_options => {
       :path => proc { |style| "#{style}_#{id}_#{image.original_filename}" },
       :public_folder_id => '0B0VNyOkzIwUZZFFGeVhycFk0dnc'
     }
    end

    in Gemfile

    gem 'google-api-client'
    gem 'paperclip'
    gem 'paperclip-googledrive'
    gem 'paperclip-av-transcoder'
    gem "paperclip-ffmpeg"

    in controller

    def create
       if params[:videos]
         params[:videos].each { |video| Video.create(video: video) }
       end
    end

    when i run , this display error

    [AV] Running command : if command -v avprobe 2>/dev/null ; then echo "true" ; else echo "false" ; fi
    [AV] Running command : if command -v ffmpeg 2>/dev/null ; then echo "true" ; else echo "false" ; fi
    Av::UnableToDetect in AlbumsController#create
    Unable to detect any supported library

    pls. how to fix this errors