Recherche avancée

Médias (91)

Autres articles (40)

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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (3536)

  • ffmpeg No such filter : 'palettegen' in linux

    19 octobre 2020, par royise

    1.

    &#xA;&#xA;

    my system &#xA;uname -a&#xA;Linux localhost.localdomain 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux&#xA;

    &#xA;&#xA;

    2.ffmpeg is download from&#xA;http://johnvansickle.com/ffmpeg/

    &#xA;&#xA;

    3.I had download the ffmpeg-release-64bit-static.tar.xz ,unpackage this file, and run : ./ffmpeg&#xA;then ffmpeg has installed. I check it by using : ffmpeg -version
    &#xA;no problems.

    &#xA;&#xA;

    I run those command in my system is no problem :

    &#xA;&#xA;

    cd /home/web/tomcat-6.0.29/zhouletest/ffmpeg-3.1.1-64bit-static &#xA;&#xA;./ffmpeg -y -ss 10 -t 3 -i /home/web/tomcat-6.0.29/zhouletest/videos/6.mp4 -vf fps=10,scale=177:-1:flags=lanczos,palettegen /home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png &#xA;&#xA;./ffmpeg -y -ss 10 -t 3 -i /home/web/tomcat-6.0.29/zhouletest/videos/6.mp4 -i /home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png -filter_complex "fps=10,scale=177:-1:flags=lanczos[x];[x][1:v]paletteuse" /home/web/tomcat-6.0.29/zhouletest/gif_images/6.gif&#xA;

    &#xA;&#xA;

    but when I invoke this command in java, errors happend, why ?

    &#xA;&#xA;

    String cmd1 = "/home/web/tomcat-6.0.29/zhouletest/ffmpeg -y -ss 10 -t 3 -i /home/web/tomcat-6.0.29/zhouletest/videos/6.mp4 -vf fps=10,scale=177:-1:flags=lanczos,palettegen /home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png";&#xA;String cmd2 = "/home/web/tomcat-6.0.29/zhouletest/ffmpeg-3.1.1-64bit-static/ffmpeg -y -ss 10 -t 3 -i /home/web/tomcat-6.0.29/zhouletest/videos/6.mp4 -i /home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png -filter_complex \"fps=10,scale=177:-1:flags=lanczos[x];[x][1:v]paletteuse\" /home/web/tomcat-6.0.29/zhouletest/gif_images/6.gif";&#xA;&#xA;String result1 = executeCommand(cmd1);&#xA;String result2 = executeCommand(cmd2);&#xA;&#xA;private static String executeCommand(String command) {&#xA;    StringBuffer output = new StringBuffer();&#xA;    Process p;&#xA;    try {&#xA;        p = Runtime.getRuntime().exec(command);&#xA;        p.waitFor();&#xA;        BufferedReader reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));&#xA;&#xA;        String line = "";&#xA;        while ((line = reader.readLine())!= null) {&#xA;            output.append(line &#x2B; "\n");&#xA;        }&#xA;&#xA;    } catch (Exception e) {&#xA;        e.printStackTrace();&#xA;    }&#xA;    return output.toString();&#xA;}&#xA;

    &#xA;&#xA;

    errors :

    &#xA;&#xA;

    &#xA;

    result1 :
    result2:ffmpeg version 3.1.1-static&#xA; http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg&#xA; developers
    built with gcc 5.4.0 (Debian 5.4.0-4) 20160609
    &#xA; configuration : —enable-gpl —enable-version3 —enable-static&#xA; —disable-debug —enable-libmp3lame —enable-libx264 —enable-libx265 —enable-libwebp —enable-libspeex —enable-libvorbis —enable-libvpx —enable-libfreetype —enable-fontconfig —enable-libxvid —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libtheora —enable-libvo-amrwbenc —enable-gray —enable-libopenjpeg —enable-libopus —enable-libass —enable-gnutls —enable-libvidstab —enable-libsoxr —enable-frei0r —enable-libfribidi —disable-indev=sndio —disable-outdev=sndio —enable-librtmp —enable-libmfx —enable-libzimg —cc=gcc
    libavutil 55. 28.100 / 55. 28.100
    libavcodec 57.&#xA; 48.101 / 57. 48.101
    libavformat 57. 41.100 / 57. 41.100
    libavdevice 57. 0.101 / 57. 0.101
    libavfilter
    &#xA; 6. 47.100 / 6. 47.100
    libswscale 4. 1.100 / 4. 1.100
    libswresample 2. 1.100 / 2. 1.100
    libpostproc
    &#xA; 54. 0.100 / 54. 0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/web/tomcat-6.0.29/zhouletest/videos/6.mp4' :
    Metadata :&#xA;
    &#xA; major_brand : isom
    &#xA; minor_version : 512
    &#xA; compatible_brands : isomiso2avc1mp41
    &#xA; encoder : Lavf56.40.101
    Duration : 00:04:36.64, start : -3.338000, bitrate : 1089 kb/s
    &#xA; Stream #0:0(und) : Video : h264 (Main) (avc1 / 0x31637661), yuv420p, 480x360, 997 kb/s, 15 fps, 15 tbr, 16k tbn, 30 tbc (default)
    &#xA; Metadata :
    &#xA; handler_name : VideoHandler
    &#xA; Stream #0:1(und) : Audio : aac (Main) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 88 kb/s (default)
    &#xA; Metadata :
    &#xA; handler_name : SoundHandler
    Input #1, png_pipe, from '/home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png' :&#xA;
    Duration : N/A, bitrate : N/A
    &#xA; Stream #1:0 : Video : png, rgba(pc), 16x16 [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
    [AVFilterGraph @ 0x45c5260] No such filter :&#xA; '"fps'
    Error initializing complex filters.
    Invalid&#xA; argument

    &#xA;

    &#xA;

  • ffmpeg No such filter : 'palettegen' in linux

    29 juillet 2016, par royise

    1.

    my system
    uname -a
    Linux localhost.localdomain 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux

    2.ffmpeg is download from
    http://johnvansickle.com/ffmpeg/

    3.I had download the ffmpeg-release-64bit-static.tar.xz ,unpackage this file, and run : ./ffmpeg
    then ffmpeg has installed. I check it by using : ffmpeg -version
    no problems.

    I run those command in my system is no problem :

    cd /home/web/tomcat-6.0.29/zhouletest/ffmpeg-3.1.1-64bit-static

    ./ffmpeg -y -ss 10 -t 3 -i /home/web/tomcat-6.0.29/zhouletest/videos/6.mp4 -vf fps=10,scale=177:-1:flags=lanczos,palettegen /home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png

    ./ffmpeg -y -ss 10 -t 3 -i /home/web/tomcat-6.0.29/zhouletest/videos/6.mp4 -i /home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png -filter_complex "fps=10,scale=177:-1:flags=lanczos[x];[x][1:v]paletteuse" /home/web/tomcat-6.0.29/zhouletest/gif_images/6.gif

    but when I invoke this command in java, errors happend, why ?

    String cmd1 = "/home/web/tomcat-6.0.29/zhouletest/ffmpeg -y -ss 10 -t 3 -i /home/web/tomcat-6.0.29/zhouletest/videos/6.mp4 -vf fps=10,scale=177:-1:flags=lanczos,palettegen /home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png";
    String cmd2 = "/home/web/tomcat-6.0.29/zhouletest/ffmpeg-3.1.1-64bit-static/ffmpeg -y -ss 10 -t 3 -i /home/web/tomcat-6.0.29/zhouletest/videos/6.mp4 -i /home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png -filter_complex \"fps=10,scale=177:-1:flags=lanczos[x];[x][1:v]paletteuse\" /home/web/tomcat-6.0.29/zhouletest/gif_images/6.gif";

    String result1 = executeCommand(cmd1);
    String result2 = executeCommand(cmd2);

    private static String executeCommand(String command) {
       StringBuffer output = new StringBuffer();
       Process p;
       try {
           p = Runtime.getRuntime().exec(command);
           p.waitFor();
           BufferedReader reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));

           String line = "";
           while ((line = reader.readLine())!= null) {
               output.append(line + "\n");
           }

       } catch (Exception e) {
           e.printStackTrace();
       }
       return output.toString();
    }

    errors :

    result1 :
    result2:ffmpeg version 3.1.1-static
    http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg
    developers
    built with gcc 5.4.0 (Debian 5.4.0-4) 20160609
    configuration : —enable-gpl —enable-version3 —enable-static
    —disable-debug —enable-libmp3lame —enable-libx264 —enable-libx265 —enable-libwebp —enable-libspeex —enable-libvorbis —enable-libvpx —enable-libfreetype —enable-fontconfig —enable-libxvid —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libtheora —enable-libvo-amrwbenc —enable-gray —enable-libopenjpeg —enable-libopus —enable-libass —enable-gnutls —enable-libvidstab —enable-libsoxr —enable-frei0r —enable-libfribidi —disable-indev=sndio —disable-outdev=sndio —enable-librtmp —enable-libmfx —enable-libzimg —cc=gcc
    libavutil 55. 28.100 / 55. 28.100
    libavcodec 57.
    48.101 / 57. 48.101
    libavformat 57. 41.100 / 57. 41.100
    libavdevice 57. 0.101 / 57. 0.101
    libavfilter
    6. 47.100 / 6. 47.100
    libswscale 4. 1.100 / 4. 1.100
    libswresample 2. 1.100 / 2. 1.100
    libpostproc
    54. 0.100 / 54. 0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/home/web/tomcat-6.0.29/zhouletest/videos/6.mp4’ :
    Metadata :

    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    encoder : Lavf56.40.101
    Duration : 00:04:36.64, start : -3.338000, bitrate : 1089 kb/s
    Stream #0:0(und) : Video : h264 (Main) (avc1 / 0x31637661), yuv420p, 480x360, 997 kb/s, 15 fps, 15 tbr, 16k tbn, 30 tbc (default)
    Metadata :
    handler_name : VideoHandler
    Stream #0:1(und) : Audio : aac (Main) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 88 kb/s (default)
    Metadata :
    handler_name : SoundHandler
    Input #1, png_pipe, from ’/home/web/tomcat-6.0.29/zhouletest/gif_images/palettegens/6.png’ :

    Duration : N/A, bitrate : N/A
    Stream #1:0 : Video : png, rgba(pc), 16x16 [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
    [AVFilterGraph @ 0x45c5260] No such filter :
    ’"fps’
    Error initializing complex filters.
    Invalid
    argument

  • How do I properly link ffmpeg using CMake in my Flutter plugin on Linux ?

    7 avril 2022, par GroovinChip

    I've written a Flutter plugin for Linux that uses ffmpeg and I'm having trouble building my example app that uses the plugin. I keep getting errors that there are no matching calls to several ffmpeg functions, which I can actually click into and see. Why is this happening and what can I do to fix it ?

    &#xA;

    Here is my plugin's CMakeLists.txt :

    &#xA;

    cmake_minimum_required(VERSION 3.10)&#xA;set(PROJECT_NAME "thumblr_linux")&#xA;project(${PROJECT_NAME} LANGUAGES CXX)&#xA;&#xA;# This value is used when generating builds using this plugin, so it must&#xA;# not be changed&#xA;set(PLUGIN_NAME "thumblr_linux_plugin")&#xA;&#xA;add_subdirectory(FFmpeg)&#xA;&#xA;add_library(${PLUGIN_NAME} SHARED&#xA;  "thumblr_linux_plugin.cc"&#xA;)&#xA;apply_standard_settings(${PLUGIN_NAME})&#xA;set_target_properties(${PLUGIN_NAME} PROPERTIES&#xA;  CXX_VISIBILITY_PRESET hidden)&#xA;target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)&#xA;target_include_directories(${PLUGIN_NAME} INTERFACE&#xA;  "${CMAKE_CURRENT_SOURCE_DIR}/include")&#xA;target_link_libraries(${PLUGIN_NAME} PRIVATE flutter)&#xA;target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK FFmpgeg)&#xA;&#xA;# List of absolute paths to libraries that should be bundled with the plugin&#xA;set(thumblr_linux_bundled_libraries&#xA;  ""&#xA;  PARENT_SCOPE&#xA;)&#xA;

    &#xA;

    and here is my FFmpeg/CMakeLists.txt :

    &#xA;

    cmake_minimum_required(VERSION 3.14)&#xA;project(FFmpeg)&#xA;&#xA;find_package(PkgConfig REQUIRED)&#xA;pkg_check_modules(AVCODEC     REQUIRED IMPORTED_TARGET libavcodec)&#xA;pkg_check_modules(AVFORMAT    REQUIRED IMPORTED_TARGET libavformat)&#xA;pkg_check_modules(AVFILTER    REQUIRED IMPORTED_TARGET libavfilter)&#xA;pkg_check_modules(AVDEVICE    REQUIRED IMPORTED_TARGET libavdevice)&#xA;pkg_check_modules(AVUTIL      REQUIRED IMPORTED_TARGET libavutil)&#xA;pkg_check_modules(SWRESAMPLE  REQUIRED IMPORTED_TARGET libswresample)&#xA;pkg_check_modules(SWSCALE     REQUIRED IMPORTED_TARGET libswscale)&#xA;&#xA;add_library(FFmpeg INTERFACE IMPORTED GLOBAL)&#xA;&#xA;target_link_libraries(FFmpeg INTERFACE&#xA;    PkgConfig::AVCODEC&#xA;    PkgConfig::AVFORMAT&#xA;    PkgConfig::AVFILTER&#xA;    PkgConfig::AVDEVICE&#xA;    PkgConfig::AVUTIL&#xA;    PkgConfig::SWRESAMPLE&#xA;    PkgConfig::SWSCALE&#xA;)&#xA;

    &#xA;

    and here are the error messages I get when building :

    &#xA;

    /home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:80:9: error: no matching function for call to &#x27;avformat_open_input&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:84:9: error: no matching function for call to &#x27;avformat_find_stream_info&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:88:5: error: no matching function for call to &#x27;av_dump_format&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:102:61: error: assigning to &#x27;AVCodecContext *&#x27; from incompatible type &#x27;AVCodecParameters *&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:111:9: error: use of undeclared identifier &#x27;avcodec_open&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:119:14: error: use of undeclared identifier &#x27;avcodec_alloc_frame&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:122:17: error: use of undeclared identifier &#x27;avcodec_alloc_frame&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:127:16: error: no matching function for call to &#x27;atk_image_get_image_size&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:133:5: error: use of undeclared identifier &#x27;av_image_fill_arrays&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:144:9: error: use of undeclared identifier &#x27;avcodec_decode_video&#x27;&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:179:15: error: unused variable &#x27;ret&#x27; [-Werror,-Wunused-variable]&#xA;/home/parallels/flutter_projects/thumblr/thumblr_linux/example/linux/flutter/ephemeral/.plugin_symlinks/thumblr_linux/linux/thumblr_linux_plugin.cc:211:5: error: no matching function for call to &#x27;avformat_close_input&#x27;&#xA;

    &#xA;

    the C++ code for the plugin itself can be found here : https://github.com/GroovinChip/thumblr/blob/main/thumblr_linux/linux/thumblr_linux_plugin.cc

    &#xA;