Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (99)

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

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (11403)

  • "An attempt was made to load a program with an incorrect format"

    31 janvier 2014, par user2922938

    I work in visual studio 2008, when run the program this error is shown :

    $exception "Could not load file or assembly 'AForge.Video.FFMPEG,
    Version=2.2.5.0, Culture=neutral, PublicKeyToken=03563089b1be05dd' or one of its dependencies. An attempt was made to load a program with an incorrect format."

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using AForge.Video.FFMPEG;

    namespace WindowsFormsApplication9
    {
       public partial class Form1 : Form
       {        
           public Form1()
           {
               InitializeComponent();
           }

           private void button1_Click(object sender, EventArgs e)
           {
               VideoFileReader video = new VideoFileReader();
           }
       }
    }

    What is wrong with my program ?

  • Android java.lang.UnsatisfiedLinkError - couldn't find "libffmpeg.so"

    13 octobre 2016, par Achin

    i have build this project with eclipse https://github.com/youtube/yt-watchme and it is running fine , but when i try to build this project in android studio i am error in my Ffmpeg class ,i have copy all the file from my running demo which i made in eclipse to my android studio project directory , i will post my directory structure and build.gradle , please anyone guide me ? please see the below

    Process: com.google.android.apps.watchme, PID: 6330
       java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.google.android.apps.watchme-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libffmpeg.so"
               at java.lang.Runtime.loadLibrary(Runtime.java:366)
               at java.lang.System.loadLibrary(System.java:988)
               at com.google.android.apps.watchme.Ffmpeg.<clinit>(Ffmpeg.java:22)
               at com.google.android.apps.watchme.VideoStreamingConnection.open(VideoStreamingConnection.java:71)
               at com.google.android.apps.watchme.StreamerService.startStreaming(StreamerService.java:73)
               at com.google.android.apps.watchme.StreamerActivity.startStreaming(StreamerActivity.java:161)
               at com.google.android.apps.watchme.StreamerActivity.access$200(StreamerActivity.java:39)
               at com.google.android.apps.watchme.StreamerActivity$1.onServiceConnected(StreamerActivity.java:55)
               at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1208)
               at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1225)
               at android.os.Handler.handleCallback(Handler.java:739)
               at android.os.Handler.dispatchMessage(Handler.java:95)
               at android.os.Looper.loop(Looper.java:135)
               at android.app.ActivityThread.main(ActivityThread.java:5343)
               at java.lang.reflect.Method.invoke(Native Method)
               at java.lang.reflect.Method.invoke(Method.java:372)
               at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
               at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
    </clinit>

    enter image description here

    and in JNI function

    enter image description here

  • when i record video with javacv it comes "java.lang.NoClassDefFoundError : org.bytedeco.javacpp.avutil"

    9 avril 2020, par Pradeep Simba

    I make a video recorder android app with javacv.&#xA;But, when i run this app this error occurs "java.lang.NoClassDefFoundError : org.bytedeco.javacpp.avutil".

    &#xA;&#xA;

    How can I solve this error ?

    &#xA;&#xA;

    gradle.build file

    &#xA;&#xA;

      android {&#xA;   ..............&#xA;    packagingOptions {&#xA;        exclude &#x27;META-INF/services/javax.annotation.processing.Processor&#x27;&#xA;        pickFirst  &#x27;META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.properties&#x27;&#xA;        pickFirst  &#x27;META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.xml&#x27;&#xA;        pickFirst  &#x27;META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.properties&#x27;&#xA;        pickFirst  &#x27;META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.xml&#x27;&#xA;    }&#xA;}&#xA;&#xA;dependencies {&#xA;&#xA;implementation group: &#x27;org.bytedeco&#x27;, name: &#x27;javacv&#x27;, version: &#x27;1.1&#x27;&#xA;implementation group: &#x27;org.bytedeco.javacpp-presets&#x27;, name: &#x27;opencv&#x27;, version: &#x27;3.0.0-1.1&#x27;, classifier: &#x27;android-arm&#x27;&#xA;implementation group: &#x27;org.bytedeco.javacpp-presets&#x27;, name: &#x27;ffmpeg&#x27;, version: &#x27;2.8.1-1.1&#x27;, classifier: &#x27;android-arm&#x27;&#xA;implementation group: &#x27;org.bytedeco.javacpp-presets&#x27;, name: &#x27;opencv&#x27;, version: &#x27;3.0.0-1.1&#x27;, classifier: &#x27;android-x86&#x27;&#xA;implementation group: &#x27;org.bytedeco.javacpp-presets&#x27;, name: &#x27;ffmpeg&#x27;, version: &#x27;2.8.1-1.1&#x27;, classifier: &#x27;android-x86&#x27;&#xA;&#xA;}&#xA;

    &#xA;&#xA;

    My demo code VideoService which will invoke in MainActivity

    &#xA;&#xA;

    package com.fs.fs.api;&#xA;&#xA;import com.fs.fs.App;&#xA;import com.fs.fs.utils.DateUtils;&#xA;import com.fs.fs.utils.FileUtils;&#xA;&#xA;import org.bytedeco.javacpp.avcodec;&#xA;import org.bytedeco.javacv.FFmpegFrameRecorder;&#xA;import org.bytedeco.javacv.FrameRecorder;&#xA;&#xA;import java.util.Date;&#xA;&#xA;/**&#xA; * Created by wyx on 2017/1/11.&#xA; */&#xA;public class VideoService {&#xA;    private FFmpegFrameRecorder mFrameRecorder;&#xA;    private String path;&#xA;&#xA;    private VideoService() {&#xA;    }&#xA;&#xA;    private static class SingletonHolder {&#xA;        private static final VideoService INSTANCE = new VideoService();&#xA;    }&#xA;&#xA;    public static VideoService getInstance() {&#xA;        return SingletonHolder.INSTANCE;&#xA;    }&#xA;&#xA;    public void startRecordVideo() {&#xA;        String fileName = String.format("%s.%s", DateUtils.date2String(new Date(), "yyyyMMdd_HHmmss"), "mp4");&#xA;        path = FileUtils.getExternalFullPath(App.getInstance(), fileName);&#xA;        mFrameRecorder = new FFmpegFrameRecorder(path, 640, 480, 1);&#xA;        mFrameRecorder.setVideoCodec(avcodec.AV_CODEC_ID_H264);&#xA;        mFrameRecorder.setVideoOption("tune", "zerolatency");&#xA;        mFrameRecorder.setVideoOption("preset", "ultrafast");&#xA;        mFrameRecorder.setVideoOption("crf", "28");&#xA;        mFrameRecorder.setVideoBitrate(300 * 1000);&#xA;        mFrameRecorder.setFormat("mp4");&#xA;&#xA;        mFrameRecorder.setFrameRate(30);&#xA;        mFrameRecorder.setAudioOption("crf", "0");&#xA;        mFrameRecorder.setSampleRate(48 * 1000);&#xA;        mFrameRecorder.setAudioBitrate(960 * 1000);&#xA;        mFrameRecorder.setAudioCodec(avcodec.AV_CODEC_ID_AAC);&#xA;        try {&#xA;            mFrameRecorder.start();&#xA;        } catch (FrameRecorder.Exception e) {&#xA;            e.printStackTrace();&#xA;        }&#xA;    }&#xA;&#xA;    public void stop() {&#xA;        if (mFrameRecorder != null) {&#xA;            try {&#xA;                mFrameRecorder.stop();&#xA;                mFrameRecorder.release();&#xA;            } catch (FrameRecorder.Exception e) {&#xA;                e.printStackTrace();&#xA;            }&#xA;            mFrameRecorder = null;&#xA;        }&#xA;    }&#xA;&#xA;}&#xA;

    &#xA;&#xA;

    MainActivity

    &#xA;&#xA;

    package com.fs.fs.activity;&#xA;&#xA;import android.app.Activity;&#xA;import android.os.Bundle;&#xA;&#xA;import com.fs.fs.R;&#xA;import com.fs.fs.api.VideoService;&#xA;&#xA;import static java.lang.Thread.sleep;&#xA;&#xA;&#xA;public class MainActivity extends Activity {&#xA;&#xA;    @Override&#xA;    protected void onCreate(Bundle savedInstanceState) {&#xA;        super.onCreate(savedInstanceState);&#xA;        setContentView(R.layout.activity_main);&#xA;&#xA;&#xA;        VideoService.getInstance().startRecordVideo();&#xA;        try {&#xA;            sleep(10 * 1000);&#xA;        } catch (InterruptedException e) {&#xA;            e.printStackTrace();&#xA;        }&#xA;        VideoService.getInstance().stop();&#xA;    }&#xA;}&#xA;

    &#xA;&#xA;

    Error

    &#xA;&#xA;

        E/AndroidRuntime: FATAL EXCEPTION: main&#xA;    Process: com.example.usb, PID: 660&#xA;    java.lang.NoClassDefFoundError: org.bytedeco.javacpp.avutil&#xA;                      at org.bytedeco.javacpp.Loader.load(Loader.java:590)&#xA;                      at org.bytedeco.javacpp.Loader.load(Loader.java:530)&#xA;                      at org.bytedeco.javacpp.avcodec$AVPacket.<clinit>(avcodec.java:1694)&#xA;                      at org.bytedeco.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:149)&#xA;                      at com.fs.fs.api.VideoService.startRecordVideo(VideoService.java:34)&#xA;                      at com.fs.fs.activity.MainActivity.onCreate(MainActivity.java:75)&#xA;                      at android.app.Activity.performCreate(Activity.java:5304)&#xA;                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)&#xA;                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2245)&#xA;                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2331)&#xA;                      at android.app.ActivityThread.access$1000(ActivityThread.java:143)&#xA;                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)&#xA;                      at android.os.Handler.dispatchMessage(Handler.java:102)&#xA;                      at android.os.Looper.loop(Looper.java:136)&#xA;                      at android.app.ActivityThread.main(ActivityThread.java:5291)&#xA;                      at java.lang.reflect.Method.invokeNative(Native Method)&#xA;                      at java.lang.reflect.Method.invoke(Method.java:515)&#xA;                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)&#xA;                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)&#xA;                      at dalvik.system.NativeStart.main(Native Method)&#xA;                   Caused by: java.lang.ClassNotFoundException: org.bytedeco.javacpp.avutil&#xA;                      at java.lang.Class.classForName(Native Method)&#xA;                      at java.lang.Class.forName(Class.java:251)&#xA;                      at org.bytedeco.javacpp.Loader.load(Loader.java:585)&#xA;                      at org.bytedeco.javacpp.Loader.load(Loader.java:530)&#xA0;&#xA;                      at org.bytedeco.javacpp.avcodec$AVPacket.<clinit>(avcodec.java:1694)&#xA0;&#xA;                      at org.bytedeco.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:149)&#xA0;&#xA;                      at com.fs.fs.api.VideoService.startRecordVideo(VideoService.java:34)&#xA0;&#xA;                      at com.fs.fs.activity.MainActivity.onCreate(MainActivity.java:75)&#xA0;&#xA;                      at android.app.Activity.performCreate(Activity.java:5304)&#xA0;&#xA;                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)&#xA0;&#xA;                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2245)&#xA0;&#xA;                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2331)&#xA0;&#xA;                      at android.app.ActivityThread.access$1000(ActivityThread.java:143)&#xA0;&#xA;                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)&#xA0;&#xA;                      at android.os.Handler.dispatchMessage(Handler.java:102)&#xA0;&#xA;                      at android.os.Looper.loop(Looper.java:136)&#xA0;&#xA;                      at android.app.ActivityThread.main(ActivityThread.java:5291)&#xA0;&#xA;                      at java.lang.reflect.Method.invokeNative(Native Method)&#xA0;&#xA;                      at java.lang.reflect.Method.invoke(Method.java:515)&#xA0;&#xA;                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)&#xA0;&#xA;                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)&#xA0;&#xA;                      at dalvik.system.NativeStart.main(Native Method)&#xA0;&#xA;                   Caused by: java.lang.NoClassDefFoundError: org/bytedeco/javacpp/avutil&#xA;                      at java.lang.Class.classForName(Native Method)&#xA0;&#xA;                      at java.lang.Class.forName(Class.java:251)&#xA0;&#xA;                      at org.bytedeco.javacpp.Loader.load(Loader.java:585)&#xA0;&#xA;                      at org.bytedeco.javacpp.Loader.load(Loader.java:530)&#xA0;&#xA;                      at org.bytedeco.javacpp.avcodec$AVPacket.<clinit>(avcodec.java:1694)&#xA0;&#xA;                      at org.bytedeco.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:149)&#xA0;&#xA;                      at com.fs.fs.api.VideoService.startRecordVideo(VideoService.java:34)&#xA0;&#xA;                      at com.fs.fs.activity.MainActivity.onCreate(MainActivity.java:75)&#xA0;&#xA;                      at android.app.Activity.performCreate(Activity.java:5304)&#xA0;&#xA;                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)&#xA0;&#xA;                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2245)&#xA0;&#xA;                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2331)&#xA0;&#xA;                      at android.app.ActivityThread.access$1000(ActivityThread.java:143)&#xA0;&#xA;                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)&#xA0;&#xA;                      at android.os.Handler.dispatchMessage(Handler.java:102)&#xA0;&#xA;                      at android.os.Looper.loop(Looper.java:136)&#xA0;&#xA;                      at android.app.ActivityThread.main(ActivityThread.java:5291)&#xA0;&#xA;                      at java.lang.reflect.Method.invokeNative(Native Method)&#xA0;&#xA;                      at java.lang.reflect.Method.invoke(Method.java:515)&#xA0;&#xA;                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)&#xA0;&#xA;                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)&#xA0;&#xA;                      at dalvik.system.NativeStart.main(Native Method)&#xA0;&#xA;                   Caused by: java.lang.ClassNotFoundException: Didn&#x27;t find class "org.bytedeco.javacpp.avutil" on path: DexPathList[[zip file "/data/app/com.fs.fs-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.fs.fs-2, /vendor/lib, /system/lib, /data/datalib]]&#xA;                      at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)&#xA;                      at java.lang.ClassLoader.loadClass(ClassLoader.java:497)&#xA;                      at java.lang.ClassLoader.loadClass(ClassLoader.java:457)&#xA;                      at java.lang.Class.classForName(Native Method)&#xA0;&#xA;                      at java.lang.Class.forName(Class.java:251)&#xA0;&#xA;                      at org.bytedeco.javacpp.Loader.load(Loader.java:585)&#xA0;&#xA;                      at org.bytedeco.javacpp.Loader.load(Loader.java:530)&#xA0;&#xA;                      at org.bytedeco.javacpp.avcodec$AVPacket.<clinit>(avcodec.java:1694)&#xA0;&#xA;                      at org.bytedeco.javacv.FFmpegFrameRecorder.<init>(FFmpegFrameRecorder.java:149)&#xA0;&#xA;                      at com.fs.fs.api.VideoService.startRecordVideo(VideoService.java:34)&#xA0;&#xA;                      at com.fs.fs.activity.MainActivity.onCreate(MainActivity.java:75)&#xA0;&#xA;                      at android.app.Activity.performCreate(Activity.java:5304)&#xA0;&#xA;                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)&#xA0;&#xA;                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2245)&#xA0;&#xA;                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2331)&#xA0;&#xA;                      at android.app.ActivityThread.access$1000(ActivityThread.java:143)&#xA0;&#xA;                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)&#xA0;&#xA;                      at android.os.Handler.dispatchMessage(Handler.java:102)&#xA0;&#xA;                      at android.os.Looper.loop(Looper.java:136)&#xA0;&#xA;                      at android.app.ActivityThread.main(ActivityThread.java:5291)&#xA0;&#xA;                      at java.lang.reflect.Method.invokeNative(Native Method)&#xA0;&#xA;                      at java.lang.reflect.Method.invoke(Method.java:515)&#xA0;&#xA;                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)&#xA0;&#xA;                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)&#xA0;&#xA;                      at dalvik.system.NativeStart.main(Native Method)&#xA0;&#xA;</init></clinit></init></clinit></init></clinit></init></clinit>

    &#xA;&#xA;

    How can i solve this error ?

    &#xA;&#xA;

    Why error occurs ?

    &#xA;