Recherche avancée

Médias (0)

Mot : - Tags -/géolocalisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (38)

  • 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

  • MediaSPIP en mode privé (Intranet)

    17 septembre 2013, par

    À partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
    Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
    Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (2610)

  • How to link .so library on Android

    9 juin 2014, par Sayaki

    I’m trying to use FFMpeg with Android. First of all I have tryed to build FFMpeg on my Mac but I cant do that. I checked many solution on Internet but none working. Becouse of that I try to build FFMpeg on Ubuntu 12.04. I try a lot of solutions bu finally I found this example and I succeed build it. Then I get headers files and .so files. Then I copy all of them on my mac and try to use it in my project. I copy this files to my project. Now my project tree looks like this :

    picture

    Here is my Android.mk file :

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)
    LOCAL_MODULE := avformat
    LOCAL_SRC_FILES := libavformat.so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include/libavformat
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)

    LOCAL_MODULE    := ndksetup
    LOCAL_SRC_FILES := native.c
    LOCAL_LDLIBS := -llog
    LOCAL_C_INCLUDES := $(LOCAL_PATH)/include

    include $(BUILD_SHARED_LIBRARY)

    Here is my Application.mk file :

    APP_MODULES := ndksetup
    APP_PLATFORM := android-8
    LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libavformat.so

    Here is my natice.c file :

    #include
    #include
    #include <android></android>log.h>
    #include "include/libavcodec/avcodec.h"
    #include "include/libavformat/avformat.h"

    #define DEBUG_TAG "NDKSetupActivity"

    void Java_com_example_ndksetup_MainActivity_printLog(JNIEnv *env, jobject this,
           jstring logString) {
       av_register_all();
       jboolean isCopy;
       const char * szLogString = (*env)->GetStringUTFChars(env, logString,
               &amp;isCopy);

       __android_log_print(ANDROID_LOG_DEBUG, DEBUG_TAG, "NDK: %s", szLogString);

       (*env)->ReleaseStringUTFChars(env, logString, szLogString);
    }

    jint Java_com_example_ndksetup_MainActivity_fibonacci(JNIEnv * env,
           jobject this, jint value) {
       if (value &lt;= 1)
           return value;
       return Java_com_example_ndksetup_MainActivity_fibonacci(env, this,
               value - 1)
               + Java_com_example_ndksetup_MainActivity_fibonacci(env, this,
                       value - 2);
    }

    I get error

    [armeabi] SharedLibrary  : libndksetup.so
    /Applications/adt-bundle-mac-x86_64-20140321/sdk/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/michal/Desktop/NDKSetup/obj/local/armeabi/objs/ndksetup/native.o: in function Java_com_example_ndksetup_MainActivity_printLog:/Users/michal/Desktop/NDKSetup/jni/native.c:11: error: undefined reference to 'av_register_all'
    collect2: ld returned 1 exit status
    make: *** [/Users/michal/Desktop/NDKSetup/obj/local/armeabi/libndksetup.so] Error 1

    And I really dont know how to deal with it. Can you tell me what Im dooing wrong and how can I fix it ? Or maybe there is another way to use .so library in Android

  • FFMPEG not creating thumbnails and converting videos

    10 juin 2014, par KartikA

    This is what I coded after reading many blogs and about FFMPEG

    $ffmpeg = "C:\\FFMPEG\\bin\\ffmpeg";
    $video_file_path = $_FILES["file"]["name"];
    $converted_video_path = "converted_videos/" . $video_file_path;
    $image = $name .".jpg";
    $imagepath="thumbnail/" . $image;
    echo "<br />";
    echo $video_file_path; echo "<br />";echo "<br />";
    echo $converted_video_path; echo "<br />";echo "<br />";
    echo $image; echo "<br />";echo "<br />";
    echo $imagepath;
    $size = "120x90";  
    $getFromSecond = 6;

    $cmd_thumbnail_create = ("$ffmpeg -i  C:\\xampp\\htdocs\\Media Barron\\assets\\uploaded_videos\\$video_file_path   -an -ss $getFromSecond -s $size C:\\xampp\\htdocs\\Media Barron\\assets\\thumbnail\\$image");

    $cmd_video_conversion = exec("$ffmpeg -i $video_file_path -qscale 4 -vcodec libx264 -f mp4 $converted_video_path.mp4");

    shell_exec($cmd_thumbnail_create);
    shell_exec($cmd_video_conversion);

    PS : I had double quotes on the addresses earlier and also tired "\uploaded_videos\video_file_path", "uploaded_videos\video_file_path", Single quotes, "\C :\xampp\htdocs\Media Barron\assets\uploaded_videos\$video_file_path\"

    This is the New script I have tried recently

     &lt;?php
     $ffmpeg = "C:\\FFMPEG\\bin\\ffmpeg";                                
     $video_file_path = $_FILES["file"]["name"];              
     $ffmpegVideoLocation = "C:\\xampp\\htdoc\\Media  Barron\\uploaded_videos\\".$video_file_path;
     $converted_video_path = "C:\\xampp\\htdoc\\Media Barron\\converted_videos\\" . $video_file_path;
     $image = $name .".jpg";
     $imagepath="thumbnail\\" . $image;
    echo "<br />";
    echo $video_file_path; echo "<br />";echo "<br />";
    echo $ffmpegVideoLocation; echo "<br />";echo "<br />";
    echo $converted_video_path; echo "<br />";echo "<br />";
    echo $image; echo "<br />";echo "<br />";
    echo $imagepath;
    $size = "120x90";  
    $getFromSecond = 6;


    $cmd_thumbnail_create = ("$ffmpeg -i $ffmpegVideoLocation  -an -ss $getFromSecond -s $size  $converted_video_path.jpg");
    $cmd_video_conversion = exec("$ffmpeg -i $ffmpegVideoLocation -qscale 4 -vcodec libx264 -f mp4 $converted_video_path.mp4");

      shell_exec($cmd_video_conversion);

    shell_exec($cmd_thumbnail_create);

    enter image description here

  • FFMPEG conversion error from MKV to MP4 using libfdk_aac codec

    23 août 2014, par Charlie Brown

    The purpose of doing this is because my "Smart" samsung TV doesn’t play MKV files.

    This thread mentions that there is no need for video conversion, just changing the container might suffice. After reading multiple threads on how to change the container of MKV to MP4, I downloaded and compiled the FFMPEG with libfdk_aac support from here. I tried converting a sample MKV file using this command :

    ffmpeg -i "C:\VideoTest\Sample1.mkv" -c:v copy -c:a libfdk_aac -b:a 384k "C:\VideoTest\Sample2.mp4"

    but getting the following errors (copied from command prompt) :

    [hevc @ 0000000000308ae0] Could not find ref with POC 113
    [hevc @ 0000000000308ae0] Could not find ref with POC 111
    [hevc @ 0000000000308ae0] Could not find ref with POC 109
    [hevc @ 0000000000308ae0] Could not find ref with POC 107
    Input #0, matroska,webm, from 'C:\VideoTest\Sample-1.mk
    v':
     Metadata:
       encoder         : libebml v1.3.0 + libmatroska v1.4.1
       creation_time   : 2014-07-16 08:54:02
     Duration: 00:00:58.68, start: 0.042000, bitrate: 3520 kb/s
       Chapter #0.0: start 0.000000, end 58.717000
       Metadata:
         title           : Chapter 4
       Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x816, SAR 1:1 DAR 40:17, 2
    4 fps, 24 tbr, 1k tbn, 1k tbc (default)
       Metadata:
         _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
    Jun  9 2014 15:16:27
         _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
    t on Jun  9 2014 15:16:27
         _STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
         _STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         BPS             : 2733260
         BPS-eng         : 2733260
         DURATION        : 00:00:58.667000000
         DURATION-eng    : 00:00:58.667000000
         NUMBER_OF_FRAMES: 1408
         NUMBER_OF_FRAMES-eng: 1408
         NUMBER_OF_BYTES : 20044023
         NUMBER_OF_BYTES-eng: 20044023
       Stream #0:1: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s (default)

       Metadata:
         _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
    Jun  9 2014 15:16:27
         _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
    t on Jun  9 2014 15:16:27
         _STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
         _STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         BPS             : 767986
         BPS-eng         : 767986
         DURATION        : 00:00:58.625000000
         DURATION-eng    : 00:00:58.625000000
         NUMBER_OF_FRAMES: 5496
         NUMBER_OF_FRAMES-eng: 5496
         NUMBER_OF_BYTES : 5627904
         NUMBER_OF_BYTES-eng: 5627904
       Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080 (default)
       Metadata:
         _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
    Jun  9 2014 15:16:27
         _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
    t on Jun  9 2014 15:16:27
         _STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
         _STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         BPS             : 17485
         BPS-eng         : 17485
         DURATION        : 00:00:56.750000000
         DURATION-eng    : 00:00:56.750000000
         NUMBER_OF_FRAMES: 40
         NUMBER_OF_FRAMES-eng: 40
         NUMBER_OF_BYTES : 124036
         NUMBER_OF_BYTES-eng: 124036
    Output #0, mp4, to 'C:\VideoTest\Sample.mp4':
     Metadata:
       encoder         : Lavf56.1.100
       Chapter #0.0: start 0.000000, end 58.675000
       Metadata:
         title           : Chapter 4
       Stream #0:0: Video: hevc ([35][0][0][0] / 0x0023), yuv420p, 1920x816 [SAR 1:
    1 DAR 40:17], q=2-31, 24 fps, 16k tbn, 1k tbc (default)
       Metadata:
         _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
    Jun  9 2014 15:16:27
         _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
    t on Jun  9 2014 15:16:27
         _STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
         _STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         BPS             : 2733260
         BPS-eng         : 2733260
         DURATION        : 00:00:58.667000000
         DURATION-eng    : 00:00:58.667000000
         NUMBER_OF_FRAMES: 1408
         NUMBER_OF_FRAMES-eng: 1408
         NUMBER_OF_BYTES : 20044023
         NUMBER_OF_BYTES-eng: 20044023
       Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 48000 Hz, 5.1
    , s16, 128 kb/s (default)
       Metadata:
         _STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
    Jun  9 2014 15:16:27
         _STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
    t on Jun  9 2014 15:16:27
         _STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
         _STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         BPS             : 767986
         BPS-eng         : 767986
         DURATION        : 00:00:58.625000000
         DURATION-eng    : 00:00:58.625000000
         NUMBER_OF_FRAMES: 5496
         NUMBER_OF_FRAMES-eng: 5496
         NUMBER_OF_BYTES : 5627904
         NUMBER_OF_BYTES-eng: 5627904
         encoder         : Lavc56.0.101 libfdk_aac
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (dts (dca) -> aac (libfdk_aac))
    Press [q] to stop, [?] for help
    [mp4 @ 0000000003be0500] Invalid DTS: 656 PTS: -672 in output stream 0:0
    av_interleaved_write_frame(): Invalid argument
    [libfdk_aac @ 00000000042fa640] Trying to remove 1024 samples, but the queue is
    empty
    [mp4 @ 0000000003be0500] Encoder did not produce proper pts, making some up.
    [libfdk_aac @ 00000000042fa640] Trying to remove 1024 samples, but the queue is
    empty
    frame=    2 fps=0.0 q=-1.0 Lsize=      96kB time=00:00:00.04 bitrate=18415.0kbit
    s/s
    video:95kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing ov
    erhead: 0.570364%
    Conversion failed!

    Also tried using this command :

    ffmpeg -i input.wav -c:a libfdk_aac -b:a 128k output.mp4

    But this screws up the video quality and I start seeing some bad pixelated patches during the playback.

    Any help would be appreciated.

    Just an FYI : I got this far by reading blogs and posts. I have 0 knowledge about video conversion.