
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (99)
-
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Taille des images et des logos définissables
9 février 2011, parDans 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 (...)
Sur d’autres sites (4853)
-
FFMPEG in Bash : Why ffmpeg doesn't convert the video automatically ? [duplicate]
4 janvier 2021, par XyanophatI'm doing a car live stream video system. I try to convert the video from .avi to .mp4.


So I use inotify-tools to detect if a new file updated. Then I encounter a problem. When 4 video update at a same time. Ffmpeg only convert one video. It doesn't convert others video when the first was converted.


There is the bash code below :


#!/bin/bash
TARGET=/home/test/update
PROCESSED=/home/test/convert

inotifywait -m -e create -e moved_to --format "%f" $TARGET \
 | while read FILENAME
 do
 ddate=${FILENAME:0:8}
 dtime=${FILENAME:8:6}
 camera=${FILENAME:77:1}
 echo Detected $FILENAME, moving and compressing...
 nFILENAME="KLE-5592_"${ddate}"_"${dtime}"_CH"${camera}"$
 ffmpeg -i $TARGET/$FILENAME -vcodec libx264 -crf 40 $PROCESSED/$nFILENAME 
 done



Thanks for help !


-
Cmake error with ffmpeg and PkgConfig : cannot find -lpkgcfg_lib_LIBAV_stdc++
16 septembre 2021, par yagI 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 
#include 
#include 

extern "C"
{
#include <libavutil></libavutil>frame.h>
#include <libavutil></libavutil>mem.h>
#include <libavcodec></libavcodec>avcodec.h>
}

int main(int argc, char **argv)
{
 printf("xsplay\n");
 return 0;
}



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


cmake_minimum_required(VERSION 3.10)

project(xsplay)

find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET
 libavdevice
 libavfilter
 libavformat
 libavcodec
 libswresample
 libswscale
 libavutil
)

add_executable(${PROJECT_NAME}
 main.cpp
)

target_link_libraries(${PROJECT_NAME}
 PkgConfig::LIBAV
)



Please help me solve the problem, thanks !


-
Package not found - add libav to PKG_CONFIG_PATH environment variable
19 mars 2019, par Brayton LarsonI 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&apos;
to the PKG_CONFIG_PATH environment variable
No package &apos;libavcodec&apos; found
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containinglibavformat.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 containinglibswscale.pc&apos;
to the PKG_CONFIG_PATH environment variable
No package &apos;libswscale&apos; found
Package libavutil was not found in the pkg-config search path.
Perhaps you should add the directory containinglibavutil.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 containinglibavcodec.pc&apos;
to the PKG_CONFIG_PATH environment variable
No package &apos;libavcodec&apos; found
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containinglibavformat.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 containinglibswscale.pc&apos;
to the PKG_CONFIG_PATH environment variable
No package &apos;libswscale&apos; found
Package libavutil was not found in the pkg-config search path.
Perhaps you should add the directory containinglibavutil.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.