
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (46)
-
Configurer la prise en compte des langues
15 novembre 2010, parAccé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 (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (3639)
-
Evolution #4727 : Des pictos / icônes symboliques pour tout le monde
15 avril 2021, par cedric -Ah mais du coup pointé dans la discussion sur les icones de l’espace privé https://remixicon.com/ semble un très bon package car
- très complet : 1086 icones toutes déclinées dans une version line et une version fill + 99 sans déclinaison (les icones d’editeur genre h1, h2, sort, text-direction...)
- totalement open source, sous licence Apache
- catégorisées : on peut facilement faire un sprite par catégorie et par style (fill/line)
- optimisées pour la lisibilité et pixel perfect
- le sprite complet de 2271 icones fait 877ko ce qui donne un ratio de 395 octets par icone ce qui en fait un pack bien efficace (derrière Bytesize et OpenIconic mais devant tous les autres, notamment les gros packs)
- complètement indépendant
J’avoue que j’ai un faible pour ce jeu d’icones
-
How to add "ffmpeg" to the Cloud Run environment or to Dockerfile ?
16 janvier 2021, par awabsI am triying to a logo to video that is uploaded to cloud storage using ffmpeg library, I deployed this code as cloud function is runs only with small size videos, so I decided to move to cloud run, but here I have to build container myself so I used this command instead


gcloud builds submit --pack image=europe-west1-docker.pkg.dev/video-sharing-a1mfa/video-sharing-repo/my-image,env=GOOGLE_FUNCTION_TARGET=addLogo



and it builds the image and I just had to create a service in the Cloud Run and it is running, but unfortunately when I trigger this function I get this error


Error: spawn ffmpeg ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:470:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)



Which I am not sure of but I guess is that ffmpeg in not installed in contanier (where it comes preinstalled in the gcloud functions env). Any idea how to install it or what the docker file configuration might be ?


here is my code :


const { Storage } = require('@google-cloud/storage');
const projectId = 'video-sharing-a1mfa';
let gcs = new Storage({
 projectId
});

const os = require('os');
const path = require('path');
const spawn = require('child-process-promise').spawn;


exports.addLogo = async (req, res) => {

const event = JSON.parse(req.body);
const bucket = event.bucket;
const contentType = event.contentType;
const filePath = event.name;

console.log('File change detected, function execution started');
if (path.basename(filePath).startsWith('resized-')) {
 console.log('We already renamed that file!');
 return;
}
const destBucket = gcs.bucket(bucket);
const tmpFilePath = path.join(os.tmpdir(), path.basename(filePath));
const metadata = { contentType: contentType };
const tmpLogoPath = path.join(os.tmpdir(), 'watermark.png');
await destBucket.file('watermark.png').download({
 destination: tmpLogoPath
})

const newPath = path.join(os.tmpdir(), 'output.mp4')

await destBucket.file(filePath).download({
 destination: tmpFilePath
});
console.log('file downloaded to temp');

console.log('adding watermark');

var str = "overlay=10:10"

await spawn('ffmpeg', ['-i', tmpFilePath, '-i', tmpLogoPath, '-filter_complex', str, newPath]);


console.log('watermark added');

return destBucket.upload(newPath, {
 destination: path.dirname(filePath) + '/resized-' + path.basename(filePath),
 metadata: metadata
});;
};



-
Command build failed ndk
1er janvier 2021, par ALI RAZAI want to integrate ffmpeg lib in my android app . So i am using ndk ,but i am stuck on this issue,I dont know why the error is appearing ,Thanks in advance ;


It is the gradle code that i am using in my app and also the ffmpeg-android-maker path is provided


plugins {
id 'com.android.application'





android 
compileSdkVersion 30
buildToolsVersion "30.0.3"


defaultConfig {
 applicationId "com.reactive.myapplication"
 minSdkVersion 16
 targetSdkVersion 30
 versionCode 1
 versionName "1.0"

 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
 externalNativeBuild {
 cmake {
 cppFlags ""
 }
 }
}
flavorDimensions "market"
productFlavors {
 google {
 dimension "market"
 ndk {
 // Since the App Bundle is used, there is no problem in packaging all these ABIs
 abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
 }
 }
 amazon {
 dimension "market"
 applicationIdSuffix ".amzn"
 ndk {
 // Amazon Appstore doesn't support multiple APKs for non-Amazon devices.
 // There is no point in x86 support here, as the majority of devices with the
 // Amazon Appstore are ARM-based. And it seems to be a common practice for other
 // apps in this market.
 abiFilters 'armeabi-v7a'
 }
 }
 huawei {
 dimension "market"
 applicationIdSuffix ".huawei"
 ndk {
 // Huawei App Gallery supports App Bundle format
 abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
 }
 }
}
sourceSets {
 main {
 // let gradle pack the shared library into the apk
 jniLibs.srcDirs = ['../ffmpeg-android-maker/output/lib']
 }
}

bundle {
 language {
 enableSplit = true
 }
 density {
 enableSplit = true
 }
 abi {
 enableSplit = true
 }
}

buildTypes {
 release {
 minifyEnabled false
 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
 }
}
externalNativeBuild {
 cmake {
 path "src/main/cpp/CMakeLists.txt"
 version "3.10.2"
 }
}
compileOptions {
 sourceCompatibility JavaVersion.VERSION_1_8

 targetCompatibility JavaVersion.VERSION_1_8
}





dependencies


implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'







And this is error i am facing :
Build command failed.
Error while executing process /home/ali/Android/Sdk/cmake/3.10.2.4988404/bin/ninja with arguments -C /home/ali/AndroidStudioProjects/FfmpegApp/app/.cxx/cmake/amazonDebug/armeabi-v7a native-lib
ninja : Entering directory `/home/ali/AndroidStudioProjects/FfmpegApp/app/.cxx/cmake/amazonDebug/armeabi-v7a'


ninja : error : '/home/ali/AndroidStudioProjects/FfmpegApp/app/src/main/ffmpeg-android-maker/output/lib/armeabi-v7a/libavutil.so', needed by '/home/ali/AndroidStudioProjects/FfmpegApp/app/build/intermediates/cmake/amazonDebug/obj/armeabi-v7a/libnative-lib.so', missing and no known rule to make it