Recherche avancée

Médias (91)

Autres articles (105)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (5361)

  • Cmake error with ffmpeg and PkgConfig : cannot find -lpkgcfg_lib_LIBAV_stdc++

    16 septembre 2021, par yag

    I want to create my C++ project using ffmpeg and cmake on Ubuntu 18.04, but comes up with errors :

    


    -- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for modules 'libavdevice;libavfilter;libavformat;libavcodec;libswresample;libswscale;libavutil'
--   Found libavdevice, version 59.0.100
--   Found libavfilter, version 8.1.103
--   Found libavformat, version 59.4.101
--   Found libavcodec, version 59.4.101
--   Found libswresample, version 4.0.100
--   Found libswscale, version 6.0.100
--   Found libavutil, version 57.3.100
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yg/Documents/xsplay/build
Scanning dependencies of target xsplay
[ 50%] Building CXX object CMakeFiles/xsplay.dir/src/ffplay.cpp.o
[100%] Linking CXX executable xsplay
/usr/bin/ld: cannot find -lpkgcfg_lib_LIBAV_stdc++-NOTFOUND
/usr/bin/ld: cannot find -lpkgcfg_lib_LIBAV_gcc_s-NOTFOUND
/usr/bin/ld: cannot find -lpkgcfg_lib_LIBAV_gcc-NOTFOUND
collect2: error: ld returned 1 exit status
CMakeFiles/xsplay.dir/build.make:233: recipe for target 'xsplay' failed
make[2]: *** [xsplay] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xsplay.dir/all' failed
make[1]: *** [CMakeFiles/xsplay.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2


    


    FFmpeg version is 4.4, built from source code.

    


    PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --pkg-config-flags="--static" \
  --extra-cflags="-I$HOME/ffmpeg_build/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --extra-libs="-lpthread" \
  --cxx="g++" \
  --ld="g++" \
  --bindir="$HOME/bin" \
  --disable-ffplay \
  --enable-gpl \
  --enable-gnutls \
  --enable-libaom \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-nonfree && \
PATH="$HOME/bin:$PATH" make && \
make install && \
hash -r


    


    I removed unnecessary code to simplify the project, below is main.cpp

    


    #include &#xA;#include &#xA;#include &#xA;&#xA;extern "C"&#xA;{&#xA;#include <libavutil></libavutil>frame.h>&#xA;#include <libavutil></libavutil>mem.h>&#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;}&#xA;&#xA;int main(int argc, char **argv)&#xA;{&#xA;    printf("xsplay\n");&#xA;    return 0;&#xA;}&#xA;

    &#xA;

    CMakeLists.txt is modified from https://stackoverflow.com/a/61427931/8609327, I only changed cmake version to 3.10.

    &#xA;

    cmake_minimum_required(VERSION 3.10)&#xA;&#xA;project(xsplay)&#xA;&#xA;find_package(PkgConfig REQUIRED)&#xA;pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET&#xA;    libavdevice&#xA;    libavfilter&#xA;    libavformat&#xA;    libavcodec&#xA;    libswresample&#xA;    libswscale&#xA;    libavutil&#xA;)&#xA;&#xA;add_executable(${PROJECT_NAME}&#xA;    main.cpp&#xA;)&#xA;&#xA;target_link_libraries(${PROJECT_NAME}&#xA;    PkgConfig::LIBAV&#xA;)&#xA;

    &#xA;

    Please help me solve the problem, thanks !

    &#xA;

  • Package not found - add libav to PKG_CONFIG_PATH environment variable

    19 mars 2019, par Brayton Larson

    I am attempting to build the Parrot SDK and when running the command it continuously fails due to multiple libav package variants not being found. Below is the error message.

    user@TheMysteriousMachine : /WORKING_DIRECTORY$ ./build.sh -p arsdk-native -t build-sdk -j
        [I] Starting task 'build-sdk'
        [I] In '/home/user/WORKING_DIRECTORY' :   ALCHEMY_TARGET_CONFIG_DIR="/home/user/WORKING_DIRECTORY/products/arsdk  /native/config" ALCHEMY_TARGET_OUT="/home/user/WORKING_DIRECTORY/out/arsdk-native" ALCHEMY_TARGET_PRODUCT="arsdk" ALCHEMY_TARGET_PRODUCT_VARIANT="native" ALCHEMY_TARGET_SCAN_ADD_DIRS=" /home/user/WORKING_DIRECTORY/packages" ALCHEMY_TARGET_SCAN_PRUNE_DIRS=" /home/user/WORKING_DIRECTORY" ALCHEMY_USE_COLORS="1" ALCHEMY_WORKSPACE_DIR="/home/user/WORKING_DIRECTORY" PARROT_BUILD_PROP_GROUP="drones" PARROT_BUILD_PROP_PRODUCT="arsdk" PARROT_BUILD_PROP_PROJECT="arsdk" PARROT_BUILD_PROP_UID="arsdk-native-20190316-1404-0.0.0" PARROT_BUILD_PROP_VARIANT="native" PARROT_BUILD_PROP_VERSION="0.0.0" /home/user/WORKING_DIRECTORY/build/alchemy/scripts/alchemake -j 8 all
        ----------------------------------------------------------------------
        + ALCHEMY_WORKSPACE_DIR = /home/user /WORKING_DIRECTORY
        + TARGET_PRODUCT = arsdk
        + TARGET_PRODUCT_VARIANT = native
        + TARGET_OS = linux
        + TARGET_OS_FLAVOUR = native
        + TARGET_LIBC = native
        + TARGET_ARCH = x64
        + TARGET_CPU = 
        + TARGET_OUT = /home/user/WORKING_DIRECTORY/out/arsdk-native
        + TARGET_CONFIG_DIR = /home/user/WORKING_DIRECTORY /products/arsdk/native/config
        + TARGET_CC_PATH = /usr/bin/cc
        + TARGET_CC_VERSION = 7
        ----------------------------------------------------------------------
        Scanning /home/user/WORKING_DIRECTORY/packages for makefiles...
        Found 44 makefiles
        Prebuilt module ncurses marked as overriden
        Prebuilt module ncurses marked as overriden
        Package libavcodec was not found in the pkg-config search path.
        Perhaps you should add the directory containing 
    libavcodec.pc&amp;apos;
       to the PKG_CONFIG_PATH environment variable
       No package &amp;apos;libavcodec&amp;apos; found
       Package libavformat was not found in the pkg-config search path.
       Perhaps you should add the directory containing

    libavformat.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavformat' found
    Package libswscale was not found in the pkg-config search path.
    Perhaps you should add the directory containing

    libswscale.pc&amp;apos;
       to the PKG_CONFIG_PATH environment variable
       No package &amp;apos;libswscale&amp;apos; found
       Package libavutil was not found in the pkg-config search path.
       Perhaps you should add the directory containing

    libavutil.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavutil' found
    Package libavcodec was not found in the pkg-config search path.
    Perhaps you should add the directory containing

    libavcodec.pc&amp;apos;
       to the PKG_CONFIG_PATH environment variable
       No package &amp;apos;libavcodec&amp;apos; found
       Package libavformat was not found in the pkg-config search path.
       Perhaps you should add the directory containing

    libavformat.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavformat' found
    Package libswscale was not found in the pkg-config search path.
    Perhaps you should add the directory containing

    libswscale.pc&amp;apos;
       to the PKG_CONFIG_PATH environment variable
       No package &amp;apos;libswscale&amp;apos; found
       Package libavutil was not found in the pkg-config search path.
       Perhaps you should add the directory containing

    libavutil.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavutil' found
    Found 96 modules
    Computing modules dependencies...
    Checking modules dependencies...
    /home/user/WORKING_DIRECTORY/build/alchemy/main.mk:360 : *** /home/user /WORKING_DIRECTORY/packages/libARDiscovery : module 'libARDiscovery' depends on unknown module 'avahi'. Stop.
    [E] Task 'build-sdk' failed (Command failed (returncode=2))

    As I understand it libav has been replaced by ffmpeg but the build should still be able to reference the packages as libav. I’ve tried adding different paths to PKG_CONFIG_PATH using `export PKG_CONFIG_PATH=...’ but with no success. It is possible I’m not adding the correct path, I used ’dpkg -L ffmpeg’ to locate the package. The output of that is :

    user@TheMysteriousMachine : $ dpkg -L ffmpeg
        /.
        /etc
        /etc/ffserver.conf
        /usr
        /usr/bin
        /usr/bin/ffmpeg
        /usr/bin/ffplay
        /usr/bin/ffprobe
        /usr/bin/ffserver
        /usr/bin/qt-faststart
        /usr/share
        /usr/share/doc
        /usr/share/doc/ffmpeg
        /usr/share/doc/ffmpeg/RELEASE_NOTES
        /usr/share/doc/ffmpeg/copyright
        /usr/share/ffmpeg
        /usr/share/ffmpeg/libvpx-1080p.ffpreset
        /usr/share/ffmpeg/libvpx-1080p50_60.ffpreset
        /usr/share/ffmpeg/libvpx-360p.ffpreset
        /usr/share/ffmpeg/libvpx-720p.ffpreset
        /usr/share/ffmpeg/libvpx-720p50_60.ffpreset
        /usr/share/lintian
        /usr/share/lintian/overrides
        /usr/share/lintian/overrides/ffmpeg
        /usr/share/man
        /usr/share/man/man1
        /usr/share/man/man1/ffmpeg-all.1.gz
        /usr/share/man/man1/ffmpeg-bitstream-filters.1.gz
        /usr/share/man/man1/ffmpeg-codecs.1.gz
        /usr/share/man/man1/ffmpeg-devices.1.gz
        /usr/share/man/man1/ffmpeg-filters.1.gz
        /usr/share/man/man1/ffmpeg-formats.1.gz
        /usr/share/man/man1/ffmpeg-protocols.1.gz
        /usr/share/man/man1/ffmpeg-resampler.1.gz
        /usr/share/man/man1/ffmpeg-scaler.1.gz
        /usr/share/man/man1/ffmpeg-utils.1.gz
        /usr/share/man/man1/ffmpeg.1.gz
        /usr/share/man/man1/ffplay-all.1.gz
        /usr/share/man/man1/ffplay.1.gz
        /usr/share/man/man1/ffprobe-all.1.gz
        /usr/share/man/man1/ffprobe.1.gz
        /usr/share/man/man1/ffserver-all.1.gz
        /usr/share/man/man1/ffserver.1.gz
        /usr/share/man/man1/qt-faststart.1.gz
        /usr/share/doc/ffmpeg/changelog.Debian.gz
        

    ...of which I can assume the useful part is ’/usr/bin’ which i added to my PKG_CONFIG_PATH and still the same error when building. I am running Ubuntu 18.04 LTS. I’m at a loss and have been grinding at this for the past 2 days, any help would be GREATLY appreciated. Thank you and I’m happy to provide more needed information. As a small request, I am pretty new to Linux so if you could include as many details in command line operations as possible it would help alot.

  • Cutting whatsapp shared videos using FFMPEG

    2 août 2015, par Bhuvnesh Varma

    I am using hiteshsondhi88/ffmpeg-android library to time or cut videos.I have added below dependency.

    compile 'com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.2.5'

    I am using below command

    execFFmpegCommand("-i " + path + " -ss " + startMs / 1000 + " -to " + endMs / 1000 + " -strict -2 -async 1 " + dest.getAbsolutePath());

    to cut or trim videos.

    private void execFFmpegCommand(final String command) {
           try {
               ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
                   @Override
                   public void onFailure(String s) {
                       Log.e("Preview", "FAILED with output : " + s);
                   }

                   @Override
                   public void onSuccess(String s) {
                       Log.e("Preview", "SUCCESS with output : " + s);
                   }

                   @Override
                   public void onProgress(String s) {
                       Log.e("Preview", "Started command : ffmpeg " + command);
                       Log.e("Preview", "progress : " + s);
                   }

                   @Override
                   public void onStart() {
                       Log.e("Preview", "Started command : ffmpeg " + command);

                   }

                   @Override
                   public void onFinish() {
                       Log.e("Preview", "Finished command : ffmpeg " + command);



                   }
               });
           } catch (FFmpegCommandAlreadyRunningException e) {
               // do nothing for now
           }
       }

    Its working for most videos but for some videos its NOT working especially for videos that are shared from whatssapp.It gives below error..I am using Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_MOVIES ) for storage of videos.

    FAILED with output : WARNING: linker: files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
       ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
       built on Oct  7 2014 15:11:41 with gcc 4.8 (GCC)
       configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/x86 --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
       libavutil      54.  7.100 / 54.  7.100
       libavcodec     56.  1.100 / 56.  1.100
       libavformat    56.  4.101 / 56.  4.101
       libavdevice    56.  0.100 / 56.  0.100
       libavfilter     5.  1.100 /  5.  1.100
       libswscale      3.  0.100 /  3.  0.100
       libswresample   1.  1.100 /  1.  1.100
       libpostproc    53.  0.100 / 53.  0.100
       /storage/emulated/0/1: No such file or directory