Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (100)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les notifications de la ferme

    1er décembre 2010, par

    Afin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
    Les notifications de changement de statut
    Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
    À la demande d’un canal
    Passage au statut "publie"
    Passage au (...)

Sur d’autres sites (10820)

  • Error:No such property : targetPlatform for class : com.android.build.gradle.managed.NdkConfig

    30 juillet 2016, par Alder

    I am trying to build FFMPEG into my JNI code with gradle in Android Studio. I have build FFMPEG as a .so file, in order to adapt different platform, I build it for different ABI(arm64-v8a, armeabi-v7a, mip, etc).Then I need to determine the ABI of the current build in the build.gradle file.

    Refer Experimental Plugin User Guide, my build.gradle look like this :

    apply plugin: 'com.android.model.native'    
    model{
       repositories {
           prebuilt(PrebuiltLibraries){
               ffmpeg{
                   headers.srcDir "src/main/jni/build/${targetPlatform.getName()}/include"
                   binaries.withType(SharedLibraryBinary) {
                       sharedLibraryFile = file("src/main/jni/build/${targetPlatform.getName()}/libvflibrary.so")
                   }
               }
           }
       }
       android {
           compileSdkVersion = 24
           buildToolsVersion = "23.0.3"

           defaultConfig {
               minSdkVersion.apiLevel = 15
               targetSdkVersion.apiLevel = 24
               versionCode = 1
               versionName = "1.0"
           }

           ndk{
               //platformVersion = 21
               moduleName = "library-jni"
               stl = 'gnustl_static'
               toolchain = "clang"
               abiFilters.addAll(['armeabi', 'armeabi-v7a', 'arm64-v8a', 'mips'])
               cppFlags.addAll(['-std=c++11', '-D__STDC_CONSTANT_MACROS'])
               ldLibs.addAll(['log', 'android', 'z', 'EGL', 'GLESv2'])
           }

           sources {
               main {
                   jni {
                       source{
                           srcDirs 'src/main/jni'
                       }
                       dependencies {
                           library 'ffmpeg' linkage 'shared'
                       }
                   }
               }
           }
       }
    }

    I am getting an error :

    Error:No such property : targetPlatform for class :
    com.android.build.gradle.managed.NdkConfig.

    Does anyone have an idea on how I can solve this, please ?

  • How run subprocess in Python 3 on windows for convert video ?

    31 août 2016, par Diego F. Ruiz S.

    I have a little problem, I have trying for a lot time converted a video with FFMPEG in python 3 like this :

    The model,

    class Video(models.Model):
      name = models.CharField(max_length=200, null=False)
      state = models.CharField(max_length=30, null=False)
      user_email = models.CharField(max_length=30, null=False)
      uploadDate = models.DateTimeField(null=False)
      message = models.CharField(max_length=200, null=False)
      original_video = models.FileField(upload_to='video', null=True)
      converted = models.BooleanField(default=False)

    And the code of converted.

    video = Video.objects.filter(id=param_id).get()
    pathConverted = 'C:\\Users\\diego\\Documents\\GitHub\\convertido.mp4'
    cmd = ['ffmpeg', '-i ', video.original_video.path, ' -b 1500k -vcodec ibx264 -g 30', pathConverted]
    print('Ejecutando... ', ' '.join(cmd))
    try:
       proc = subprocess.run(cmd, shell=True, check=True)
       proc.subprocess.wait()
    except subprocess.CalledProcessError as e:
       raise RuntimeError("command '{}' return with error (code {}): {}".format(e.cmd, e.returncode, e.output))

    The error is this.

    raise RuntimeError("command '{}' return with error (code {}): {}".format(e.cmd, e.returncode, e.output)) RuntimeError: command '['ffmpeg', '-i ', 'C:\\Users\\diego\\Documents\\GitHub\\video1.avi', ' -b 1500k -vcodec libx264 -g 30', 'C:\\Users\\diego\\Documents\\GitHub\\convertido.mp4']' return with error (code 1): None

    And also I have tried this :

    video = Video.objects.filter(id=1).get()
    pathConverted = 'C:\\Users\\diego\\Documents\\GitHub\\convertido.mp4'
    cmd = ['ffmpeg', '-i ', video.original_video.path, ' -b 1500k -vcodec libx264 -g 30', pathConverted]
    print('Ejecutando... ', ' '.join(cmd))
    proc = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.STDOUT)
    proc.subprocess.wait()

    In this case the error is :

    FileNotFoundError: [WinError 2] No such file or directory

    But when I copy the path and paste this in CMD on windows for try this converted the video. It works fine.

    Then, I am confused, I don’t understand what is the error.

    Somebody can help me please ?

  • MVC - Audio Convert file from M4A to MP3

    17 octobre 2016, par Matheus Miranda

    In my application I upload an audio file type MP4 from a windows explorer and save it in data base SQL in field VARBINARY. It is OK. I would like to convert it to MP3 before insert in my DB, for these I am using a FFMPEG but i am not able to get success. Can anybody help me ?

    Below is the screenshot where we can see the file and type in my application.

    enter image description here

    Is possible to use a FFMPEG reading the file directly from MODEL ? Parameter : FileName ?

    What is the best way to convert a audio file as mentioned above via MVC program ?

    Thanks for any suggestion or help.

    Best Regards,