
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (31)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (9959)
-
How to link FFmpeg libraries with CMake in windows
4 juillet 2021, par ldall03I'm new to CMake and not very familiar with how linking/compiling works. I am on windows 10 using MinGW in CLion. As the title says I want to use FFmpeg libraries in my c++ code. I downloaded the source code from : https://ffmpeg.org/download.html (Download Source Code button). I unzipped it and put the libavcodec library in my project. Here is my project structure :


project
 \-- cmake-build-debug
 \-- src
 \-- vendor
 \-- libavcodec
 \-- main.cpp
 \--CMakeLists.txt



Here is my main.cpp file :


extern "C" {
#include "libavcodec/avcodec.h"
}

#include <iostream>

int main(int argc, char *argv[]) {
 std::cout << "Hello World\n";
 return 0;
}

</iostream>


And my CMakeLists.txt file :


cmake_minimum_required(VERSION 3.19)
project(VidShare)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_PREFIX_PATH "C:/Qt/6.1.1/mingw81_64/lib/cmake")

find_package(Qt6Widgets REQUIRED)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

add_executable(VidShare main.cpp)
include_directories(src src/vendor)
target_link_libraries(VidShare Qt6::Widgets Qt6::Core Qt6::Gui)



Ignore the Qt stuff it works fine.


And well when I build I get this error message :


fatal error: libavutil/avconfig.h: No such file or directory
 #include "libavutil/avconfig.h"



I've seen that I had to run a configure script in the FFmpeg main file but I'm on windows so I can't really do that. I don't know if I have to use other kinds of libraries or if I downloaded the wrong thing... I am really at lost here. There is probably a better or more convenient way of doing what I want but I could not find many resources on it... Help would be appreciated :)


-
How to use pathinfo in php ?
10 juin 2019, par flashI am working on a php code as shown below on which Line#A prints the following array (shown below php code). My code doesn’t seems to go inside switch statement. I am not sure why.
I added
print_r($parts)
at Line A in order to print the value of $parts.php code :
<?php
if (!empty($_POST['id']))
{
for($i=0; $i / Line A
switch ($parts['extension'])
{
echo "Hello World"; // Line B
case 'mp4' :
$filePath = $src_dir . DS . $f;
system('ffmpeg -i ' . $filePath . ' -map 0:2 -ac 1 ' . $destination_dir . DS . $parts['filename'] . '.mp3', $result);
}
}
}
}
?>Output (Line#A) :
Array
(
[dirname] => .
[basename] => hello.mp4
[extension] => mp4
[filename] => hello
)I have used
echo "Hello World"
at Line B but for some reasons, its not getting printed and throwing500 internal server error
on console.Problem Statement :
I am wondering what changes I should make in the php code so that it goes inside switch statement.
-
FFMPEG - How to get a blur effect, without altering the color white ?
17 août 2016, par HugoI need a picture, with blur effect background. I found the code works, but, the white color of the photos is lost ( only happens with white color)...
Step1 : ffmpeg -i eyes.jpg -s 640x360 -qscale 1 bg.jpg Step2 : ffmpeg -i bg.jpg -filter_complex "[0:v]crop=640:360:0:0,boxblur=20[fg] ;[0:v][fg]overlay=0:0[v]" -map "[v]" -qscale 1 bg.jpg -y Step3 : ffmpeg -i bg.jpg -i eyes.jpg -filter_complex "overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/2" -qscale 1 result.jpg
Original photo :
see original photoResult (white color is lost)
see result photoPlease I need help (The white color should remain).
Thank you very much,
Greetings,
Hugo