Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (52)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (8182)

  • can i stream "webpage" from ffmpeg ?

    23 janvier 2017, par John Slovikara

    Hello everybody..

    just need to know if i can stream "webpage-html" via FFmpeg ,
    i have script in my server , i used it to stream live poll into facebook, just need to know if i can stream any html or web page.

    this is my stream code :

    ffmpeg \
    -re -y \
    -loop 1 \
    -f image2 \
    -i images/stream.jpg \
    -i /home/sounds/silence-loop.wav \
    -acodec libfdk_aac \
    -ac 1 \
    -ar 44100 \
    -b:a 128k \
    -vcodec libx264 \
    -pix_fmt yuv420p \
    -vf scale=640:480 \
    -r 30 \
    -g 60 \
    -f flv \
    "rtmp://rtmp-api.facebook.com:80/rtmp/1270000000015267?ds=1&s_l=1&a=ATh1XXXXXXXXXXXuX"
  • Compress video from Android before upload to server

    26 juillet 2016, par Rahul Patel

    I am working with compress video using FFmpeg library.

    selectedImagePath = getPath(selectedImage); // this is video path from gallery
    File dir = new File(Environment.getExternalStorageDirectory().getPath(), "MyAPP" + "/" + "Video");
                       if (!dir.exists()) {
                           dir.mkdirs();
                       }

    long time = System.currentTimeMillis();
    String ffmpegCode = "ffmpeg -y -i " + selectedImagePath + " -strict experimental -s 480x320 -r 25 -vcodec mpeg4 -b 900k -ab 48000 -ac 2 -ar 22050 " + dir + "/" + time + "out.mp4";

    using this code I can compress video, but if there is space between selected image path then this is not working.

    I found the below solution from this LINK.

    // Use this format to support files that contains spaces and special characters
    String[] complexCommand = {"ffmpeg","-y" ,"-i", selectedImagePath,"-strict","experimental","-s", "480x320","-r","25", "-vcodec", "mpeg4", "-b", "900k", "-ab","48000", "-ac", "2", "-ar", "22050", dir + "/" + time + "out.mp4"};

    Runtime.getRuntime().exec("chmod 744 "+dir + "/");

    Process p = Runtime.getRuntime().exec(complexCommand);

    and Logcat :

    07-26 18:59:24.609 29512-29535/com.examples.ffmpeg4android_demo I/OpenGLRenderer: Initialized EGL, version 1.4
    07-26 18:59:24.616 29512-30045/com.examples.ffmpeg4android_demo W/System.err: java.io.IOException: Error running exec(). Command: [ffmpeg, -y, -i, /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20160726-WA0001.mp4, -strict, experimental, -s, 480x320, -r, 25, -vcodec, mpeg4, -b, 900k, -ab, 48000, -ac, 2, -ar, 22050, /storage/emulated/0/MyAPP/Video/1469539764559out.mp4] Working Directory: null Environment: null
    07-26 18:59:24.622 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at java.lang.ProcessManager.exec(ProcessManager.java:211)
    07-26 18:59:24.622 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at java.lang.Runtime.exec(Runtime.java:174)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at java.lang.Runtime.exec(Runtime.java:129)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at com.examples.ffmpeg4android.SimpleExample$TranscdingBackground1.doInBackground(SimpleExample.java:577)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at com.examples.ffmpeg4android.SimpleExample$TranscdingBackground1.doInBackground(SimpleExample.java:531)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:295)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at java.lang.Thread.run(Thread.java:818)
    07-26 18:59:24.623 29512-30045/com.examples.ffmpeg4android_demo W/System.err: Caused by: java.io.IOException: Permission denied
    07-26 18:59:24.624 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at java.lang.ProcessManager.exec(Native Method)
    07-26 18:59:24.624 29512-30045/com.examples.ffmpeg4android_demo W/System.err:     at java.lang.ProcessManager.exec(ProcessManager.java:209)
    07-26 18:59:24.624 29512-30045/com.examples.ffmpeg4android_demo W/System.err:   ... 10 more

    I already given permission android.permission.WRITE_EXTERNAL_STORAGE

    how can I compress video before upload to server like whatsapp and facebook ? Is there any other solution ?

    Please guide me.

  • Android java.lang.UnsatisfiedLinkError : android error for .so libraries

    14 septembre 2017, par Burak iren

    so libraries to my project for ffmpeg camera but I have got some errors when I load the library.

    I’m getting error like that "java.lang.UnsatisfiedLinkError : android" .

    My .so files directory is src-main-jniLibs-armeabi - so files. When I loading the so file gettting error I can’t load the so file. I have tried many answer but still going this error.

    If you want other config files I can load here.

    Error log is here also

    09-14 17:40:33.739 19728-20196/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #6
                                                  Process: com.leadtimeapp.io.internal.debug, PID: 19728
                                                  java.lang.RuntimeException: An error occurred while executing doInBackground()
                                                      at android.os.AsyncTask$3.done(AsyncTask.java:309)
                                                      at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
                                                      at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
                                                      at java.util.concurrent.FutureTask.run(FutureTask.java:242)
                                                      at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
                                                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                      at java.lang.Thread.run(Thread.java:818)
                                                   Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.leadtimeapp.io.internal.debug-2/base.apk"],nativeLibraryDirectories=[/data/app/com.leadtimeapp.io.internal.debug-2/lib/arm64, /data/app/com.leadtimeapp.io.internal.debug-2/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libjniavformat.so"
                                                      at java.lang.Runtime.loadLibrary(Runtime.java:367)
                                                      at java.lang.System.loadLibrary(System.java:1076)
                                                      at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:711)
                                                      at com.googlecode.javacpp.Loader.load(Loader.java:586)
                                                      at com.googlecode.javacpp.Loader.load(Loader.java:540)
                                                      at com.googlecode.javacv.cpp.avformat.<clinit>(avformat.java:40)
                                                      at com.googlecode.javacv.cpp.avformat.av_register_all(Native Method)
                                                      at com.leadtimeapp.io.ffmpeg.NewFFmpegFrameRecorder.<clinit>(NewFFmpegFrameRecorder.java:302)
                                                      at com.leadtimeapp.io.ffmpeg.FFmpegRecorderActivity.initVideoRecorder(FFmpegRecorderActivity.java:464)
                                                      at com.leadtimeapp.io.ffmpeg.FFmpegRecorderActivity.access$1400(FFmpegRecorderActivity.java:66)
                                                      at com.leadtimeapp.io.ffmpeg.FFmpegRecorderActivity$2.doInBackground(FFmpegRecorderActivity.java:368)
                                                      at com.leadtimeapp.io.ffmpeg.FFmpegRecorderActivity$2.doInBackground(FFmpegRecorderActivity.java:360)
                                                      at android.os.AsyncTask$2.call(AsyncTask.java:295)
                                                      at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                      at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 
                                                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
                                                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
                                                      at java.lang.Thread.run(Thread.java:818) 
                                                   Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.leadtimeapp.io.internal.debug-2/base.apk"],nativeLibraryDirectories=[/data/app/com.leadtimeapp.io.internal.debug-2/lib/arm64, /data/app/com.leadtimeapp.io.internal.debug-2/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libavformat.so"
                                                      at java.lang.Runtime.loadLibrary(Runtime.java:367)
                                                      at java.lang.System.loadLibrary(System.java:1076)
                                                      at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:711)
                                                      at com.googlecode.javacpp.Loader.load(Loader.java:577)
                                                      at com.googlecode.javacpp.Loader.load(Loader.java:540) 
                                                      at com.googlecode.javacv.cpp.avformat.<clinit>(avformat.java:40) 
                                                      at com.googlecode.javacv.cpp.avformat.av_register_all(Native Method) 
                                                      at com.leadtimeapp.io.ffmpeg.NewFFmpegFrameRecorder.<clinit>(NewFFmpegFrameRecorder.java:302) 
                                                      at com.leadtimeapp.io.ffmpeg.FFmpegRecorderActivity.initVideoRecorder(FFmpegRecorderActivity.java:464) 
                                                      at com.leadtimeapp.io.ffmpeg.FFmpegRecorderActivity.access$1400(FFmpegRecorderActivity.java:66) 
                                                      at com.leadtimeapp.io.ffmpeg.FFmpegRecorderActivity$2.doInBackground(FFmpegRecorderActivity.java:368) 
                                                      at com.leadtimeapp.io.ffmpeg.FFmpegRecorderActivity$2.doInBackground(FFmpegRecorderActivity.java:360) 
                                                      at android.os.AsyncTask$2.call(AsyncTask.java:295) 
                                                      at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
                                                      at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 
                                                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
                                                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
                                                      at java.lang.Thread.run(Thread.java:818) 
    09-14 17:40:34.168 19728-19790/? E/NativeCrypto: ssl=0x7f643ae900
    cert_verify_callback x509_store_ctx=0x7f76e3e1a0 arg=0x0
    09-14 17:40:34.168 19728-19790/? E/NativeCrypto: ssl=0x7f643ae900
    cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
    </clinit></clinit></clinit></clinit>

    My gradle is

    apply plugin: 'com.android.application'
    apply plugin: 'io.fabric'
    apply plugin: 'com.github.triplet.play'
    apply plugin: 'project-report'

    def buildVersionCode = new Date().format("yyMMddHHmm",
    TimeZone.getTimeZone("Europe/Istanbul")).toInteger()
    def buildVersionName = "1.1.2"
    def SupportVersion = '25.3.1'
    def OkHttpVersion = '3.2.0'
    def RetrofitVersion = '2.0.2'
    def FacebookVersion = '4.+'
    def GSonVersion = '2.6.2'

    android {

    compileSdkVersion 25
    buildToolsVersion "25.0.3"

    playAccountConfigs {
       defaultAccountConfig {
           ...
       }
    }

    defaultConfig {
       applicationId "...."
       resValue "string", "app_name", "..."
       resValue "string", "face_app_id", "...."
       minSdkVersion 16
       playAccountConfig = playAccountConfigs.defaultAccountConfig
       //noinspection OldTargetApi
       targetSdkVersion 25
       versionCode buildVersionCode
       versionName buildVersionName
       multiDexEnabled true
       renderscriptTargetApi 19
       renderscriptSupportModeEnabled true


    }

    signingConfigs {
       ....
    }

    lintOptions {
       abortOnError false        // true by default
       checkAllWarnings false
       checkReleaseBuilds false
       ignoreWarnings true       // false by default
       quiet true                // false by default
    }

    sourceSets {
       main.jni.srcDirs = []
       main.jniLibs.srcDirs = ['libs']
    }

    buildTypes {
       release {
           minifyEnabled true
           debuggable false
           signingConfig signingConfigs.release
           proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

           applicationVariants.all { variant ->
               variant.outputs.each { output ->
                   output.outputFile = new File(output.outputFile.parent,
                           output.outputFile.name.replace("-release", "-release-" + buildVersionName + "-" + buildVersionCode)
                   )
               }
           }
       }

       debug {
           debuggable true
           zipAlignEnabled true
           applicationIdSuffix ".debug"
       }

       productFlavors {
           arm7 {
               // in the future, ndk.abiFilter might also work
               ndk {
                   abiFilter 'armeabi-v7a'
               }
           }
           arm8 {
               ndk {
                   abiFilters 'arm64-v8a'
               }
           }
           arm {
               ndk {
                   abiFilter 'armeabi'
               }
           }
           x86 {
               ndk {
                   abiFilter 'x86'
               }
           }
           x86_64 {
               ndk {
                   abiFilter 'x86_64'
               }
           }
           mips {
               ndk {
                   abiFilters 'mips', 'mips64'
               }
           }
           universal {
               ndk {
                   abiFilters 'mips', 'mips64', 'x86', 'x86_64'
               }
           }
       }
    }

    lintOptions {
       abortOnError false
       checkReleaseBuilds false
       checkAllWarnings true
       htmlReport true
       htmlOutput file("lint-report.html")
       checkReleaseBuilds true

       disable 'MissingTranslation'
       disable 'UnusedResources'
       disable 'IconLauncherShape'
       disable 'GoogleAppIndexingApiWarning'
       disable 'SelectableText'
       error 'CommitTransaction'
       error 'InconsistentArrays'
       error 'Registered'
       error 'ManifestOrder'
    }

    }

    play {
    track = 'alpha'
    }

    dependencies {
    compile fileTree(dir: 'libs', include: ['.jar', '.so'])
    compile files('libs/javacpp.jar')
    compile files('libs/javacv.jar')

    compile project(':camera')
    compile project(':VideoRecorder')

    compile("com.android.support:appcompat-v7:$SupportVersion") {
       exclude group: 'com.android.support', module: 'support-v4'
       exclude group: 'com.android.support', module: 'support-annotations'
    }
    compile("com.android.support:cardview-v7:$SupportVersion") {
       exclude group: 'com.android.support', module: 'support-annotations'
    }
    compile("com.android.support:design:$SupportVersion") {
       exclude group: 'com.android.support', module: 'support-core-ui'
       exclude group: 'com.android.support', module: 'appcompat-v7'
       exclude group: 'com.android.support', module: 'support-v4'
    }
    compile("com.android.support:support-v4:$SupportVersion") {
       exclude group: 'com.android.support', module: 'support-media-compat'
       exclude group: 'com.android.support', module: 'support-compat'
    }
    compile('com.android.support:multidex:1.0.1') {
       exclude group: 'com.android.support', module: 'support-vector-drawable'
    }

    compile(group: 'org.bytedeco', name: 'javacv-platform', version: '1.3') {
       exclude group: 'org.bytedeco.javacpp-presets'
    }
    compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.2.1-1.3'
    compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.2.1-1.3', classifier: 'android-arm'

    compile "com.google.code.gson:gson:$GSonVersion"
    compile "com.squareup.okhttp3:okhttp:$OkHttpVersion"
    compile "com.squareup.retrofit2:retrofit:$RetrofitVersion"
    compile "com.facebook.android:facebook-android-sdk:$FacebookVersion"


    compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
       transitive = true;
    }
    compile('com.twitter.sdk.android:twitter:2.3.0@aar') {
       transitive = true;
    }
    compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'de.hdodenhof:circleimageview:2.0.0'
    compile 'com.wdullaer:materialdatetimepicker:2.3.0'
    compile 'com.github.zhaokaiqiang.klog:library:1.4.0'
    compile 'com.github.filippudak.progresspieview:library:1.0.4'
    compile 'com.daimajia.swipelayout:library:1.2.0@aar'
    compile 'com.amazonaws:aws-android-sdk-s3:2.4.7'
    compile 'io.paperdb:paperdb:1.5'
    compile 'org.greenrobot:eventbus:3.0.0'
    compile 'com.jakewharton:butterknife:8.4.0'
    compile 'com.flipboard:bottomsheet-core:1.5.0'
    compile 'com.flipboard:bottomsheet-commons:1.5.0'
    compile 'com.yqritc:android-scalablevideoview:1.0.4'
    compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'
    compile 'com.google.android.gms:play-services-gcm:11.0.4'
    compile 'me.relex:circleindicator:1.1.8@aar'
    compile 'com.github.ihsanbal:scissors:1.1.3'
    compile 'org.zakariya.stickyheaders:stickyheaders:0.7.5'
    compile 'com.parse.bolts:bolts-android:1.4.0'
    compile 'com.parse:parse-android:1.15.8'
    compile 'com.getbase:floatingactionbutton:1.10.1'
    compile 'com.github.wooplr:Spotlight:1.2.3'
    compile 'com.adjust.sdk:adjust-android:4.7.0'
    compile 'com.google.android.gms:play-services-analytics:11.0.4'
    compile 'com.makeramen:roundedimageview:2.3.0'
    compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
    compile 'com.github.castorflex.verticalviewpager:library:19.0.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
    compile 'jp.wasabeef:blurry:2.1.1'
    compile 'com.writingminds:FFmpegAndroid:0.3.2'

    }