Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (51)

  • 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

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (6345)

  • What is the "Error initializing filter 'drawtext' with args..." error in using of ffmpeg at c# process class ?

    7 novembre 2016, par parsa

    I used this below code for create a resolution of a video and write text on it.

       var proc = new System.Diagnostics.Process();
       strin OrginalResolution="nhd";
       proc.EnableRaisingEvents = false;
       proc.StartInfo.FileName = ffmpegPath;
       proc.StartInfo.Arguments = "-i \"" + fileIn +
                                  "\" -f mp4 -s " + OrginalResolution + " -vf drawtext=fontfile=/OtherProjects/ConvertProj/ff‌​mpeg/OpenSans-Reg‌​ular.ttf:text=Parsa" \"" + fileOut.Split('.')[0] +
                                  ".mp4";
       proc.StartInfo.UseShellExecute = false;
       proc.StartInfo.CreateNoWindow = false;
       proc.StartInfo.RedirectStandardOutput = true;
       proc.StartInfo.RedirectStandardError = true;

       proc.Start();
       proc.WaitForExit();
       string sdsd = proc.StandardError.ReadToEnd();
       proc.Close();

    I faced with this problem(some string output of StandardError is in below) :

    Fontconfig error: Cannot load default config file\r\n[Parsed_drawtext_0      
    @0000000002fd8c20] Cannot find a valid font for the family
    Sans\r\n[AVFilterGraph @ 0000000000511660] Error initializing
    filter'drawtext' with args
    'fontfile=/OtherProjects/ConvertProj/ffmpeg/OpenSans-
    Regular.ttf:text=parsa'\r\nError opening
    filters!\r\n

    In cmd the same argument value of process works fine.
    I read that this issue related to how to using quotation mark at using
    of text property of drawtext in ffmpeg.but I can’t find any
    solution for solving this issue.
    Can anyone help me ?

    Can anyone help me still ?Is this a bug ?
    I used any solutions for escape from : in my code,but can’t solve this problem.
    It can’t find font.I delete other filters of drawtext to findout that any of filters don’t mistake, but still error exists yet.

    expansion=none property of drawtext doesn’t influence on this case, for escape :.

  • Add better class names to icons to avoid css conflicts on bar-ui demo

    25 août 2016, par sjardim
    Add better class names to icons to avoid css conflicts on bar-ui demo
    

    Changes for the . Add “sm2-icon-“ on the icons so their styles won’t
    conflict with other CSS on the page, like the “.menu” class on Zurb’s
    Foundation 6

  • Didn't find class "org.bytedeco.javacpp.avutil" in JAVACV version 1.2 on Android

    26 juillet 2016, par Eloy Palao

    I read a lot of answers but i can’t resolve my bug. The error is :

    java.lang.NoClassDefFoundError: java.lang.ClassNotFoundException: org.bytedeco.javacpp.avutil
                                                                          at org.bytedeco.javacpp.Loader.load(Loader.java:469)
                                                                          at org.bytedeco.javacpp.Loader.load(Loader.java:409)
                                                                          at org.bytedeco.javacpp.avcodec$AVPacket.<clinit>(avcodec.java:1559)
                                                                          at org.bytedeco.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:149)
                                                                          at org.bytedeco.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:126)
    </init></init></clinit>

    To configure JAVACV, I only put some lines in the gradle, but i don’t know if i have to do something more to configure it. I read about jniLibs folder, but this grade lines do not generate any folders. Also I read about compileSDKVersion 22 but I did it and do not resolve the problem.

    Please I need help, because I read a lot of post and bugs but any of them resolve me the problem.

       apply plugin: 'com.android.application'

    android {
       compileSdkVersion 23
       buildToolsVersion '23.0.3'

       defaultConfig {
           applicationId "com.eloyfranapps.daym"
           minSdkVersion 15
           targetSdkVersion 23
           versionCode 1
           versionName "1.0"
       }
       buildTypes {
           release {
               minifyEnabled false
               proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
           }
       }

       packagingOptions {
           exclude 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.properties'
           exclude 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.xml'
           exclude 'META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.properties'
           exclude 'META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.xml'
       }
    }

    configurations {
       all*.exclude group: 'org.bytedeco', module: 'javacpp-presets'
    }

    dependencies {
       compile fileTree(include: ['*.jar'], dir: 'libs')
       testCompile 'junit:junit:4.12'
       compile 'com.android.support:appcompat-v7:23.0.0'
       compile 'com.android.support:design:23.0.0'
       compile 'it.neokree:MaterialTabs:0.11'
       compile group: 'org.bytedeco', name: 'javacv', version: '1.2'
       compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.1.0-1.2', classifier: 'android-arm'
       compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.1.0-1.2', classifier: 'android-x86'
       compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.0.2-1.2', classifier: 'android-arm'
       compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.0.2-1.2', classifier: 'android-x86'
    }

    and the error is in the first line "new FFmpegFrameRecorder(outputPath, 1080, 1080) ;" of my code :

    FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(outputPath, 1080, 1080);

               recorder.setVideoQuality(12.5);
               recorder.setVideoCodec(13);
               recorder.setFormat("mp4");
               recorder.setFrameRate(fps);
               recorder.start();
               AndroidFrameConverter an = new AndroidFrameConverter();
               for (int i = 0; i &lt; charFrames.size(); i++) {
                   Frame frame = an.convert(charFrames.get(i));
                   recorder.record(frame);
               }
               recorder.stop();