
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (22)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (7467)
-
Kivy Crashes when Loading Multiple Audio Files
26 mars 2022, par Omid KetabollahiI have a music folder and in it I have a script that loads all the files using
SoundLoader
and assigns them to a variable. I have 9 audio files that I load in the script but it seems like that kivy cannot handle loading many audio files ? When I run my main script I get this error and the program crashes :

Assertion 'pa_atomic_load(&(c)->_ref) >= 1' failed at pulse/context.c:1056, function pa_context_disconnect(). Aborting.



I don't think that this is an issue with the audio files ( I may be wrong ) because I tried loading other files instead of the original ones that I used and I still got this error.


In case you are wondering, this is the code :


import os.path
from typing import Final
from constants import MUSIC_DIRECTORY
from kivy.core.audio import SoundLoader

__all__ = (
 "A_DARK_TIME",
 "BLOOD_PUMPING",
 "BROKEN_VILLAGE",
 "DRUM_COMMERCIAL_B",
 "SUPER_SUSPENSE",
 "THE_HERO_WE_NEED",
 "TROUBLE_IS_BREWING",
 "VIKING_FEAST",
 "WARRIOR_GODS",
)


A_DARK_TIME: Final = SoundLoader.load(
 os.path.join(MUSIC_DIRECTORY, "A-Dark-Time-David-Fesliyan.mp3")
)
BLOOD_PUMPING: Final = SoundLoader.load(
 os.path.join(MUSIC_DIRECTORY, "Blood-Pumping-David-Fesliyan.mp3")
)
BROKEN_VILLAGE: Final = SoundLoader.load(
 os.path.join(MUSIC_DIRECTORY, "Broken-Village-David_Fesliyan.mp3")
)
DRUM_COMMERCIAL_B: Final = SoundLoader.load(
 os.path.join(MUSIC_DIRECTORY, "Drum-Commercial-B-David-Fesliyan.mp3")
)
SUPER_SUSPENSE: Final = SoundLoader.load(
 os.path.join(MUSIC_DIRECTORY, "Super-Suspense-David-Fesliyan.mp3")
)
THE_HERO_WE_NEED: Final = SoundLoader.load(
 os.path.join(MUSIC_DIRECTORY, "The-Hero-We-Need-Steve-Oxen.mp3")
)
TROUBLE_IS_BREWING: Final = SoundLoader.load(
 os.path.join(MUSIC_DIRECTORY, "Trouble-Is-Brewing-David-Fesliyan.mp3")
)
VIKING_FEAST: Final = SoundLoader.load(
 os.path.join(MUSIC_DIRECTORY, "Viking-Feast-David-Fesliyan.mp3")
)
WARRIOR_GODS: Final = SoundLoader.load(
 os.path.join(MUSIC_DIRECTORY, "Warrior-Gods-Steve-Oxen.mp3")
)



-
File Decryption in (AESMode.ctr) mode showing Exception Failed to decode data using encoding 'utf-8' in dart ?
20 novembre 2020, par JaiWhile decoding the video file using
aes-ctr
mode am getting error like below,

Unhandled Exception: FileSystemException: Failed to decode data using encoding 'utf-8'


Used ffmpeg for encrypting file :


ffmpeg -i samplevideo.mp4 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key 76a6c65c5ea762046bd749a2e632ccbb -encryption_kid a7e61c373e219033c21091fa607bf3b8 enc_v1_file.mp4


Used Dart to decode video file :


Future<string> decryptFile(filePath) async {
 // filePath - Local encrypted file path
 var encodedKey = 'NzZhNmM2NWM1ZWE3NjIwNDZiZDc0OWEyZTYzMmNjYmI=';
 var encodedIv = 'YTdlNjFjMzczZTIxOTAzM2MyMTA5MWZhNjA3YmYzYjg=';
 var encryptedBase64EncodedString = new File(filePath).readAsStringSync();
 var decoded = base64.decode(encryptedBase64EncodedString); // Error in this line
 final key1 = enc.Key.fromBase64(encodedKey);
 final iv = enc.IV.fromBase64(encodedIv);
 final encrypter = enc.Encrypter(enc.AES(key1, mode: enc.AESMode.ctr));
 final decrypted = encrypter.decryptBytes(enc.Encrypted(decoded), iv: iv);
 final filename = '${p.basenameWithoutExtension(filePath)}.mp4';
 final directoryName = p.dirname(filePath);
 final newFilePath = p.join(directoryName, filename);
 var newFile = new File(newFilePath);
 await newFile.writeAsBytes(decrypted);
 return newFilePath;
}
</string>


-
Adding Text to Video with ffmpeg in Flutter
9 mars 2024, par AimanI am trying to add text to a video using ffmpeg package but it returns an error i.e. Return Code 1
Here's my code.


final videoPath = _controller.file.path;
 final outputName = videoPath.hashCode.toString();

 final output =
 File('${(await getTemporaryDirectory()).path}/$outputName.mp4');

 String command =
 "-y -i $videoPath -filter_complex '[0]scale=540:-1[s];[s]drawtext=fontfile=/storage/emulated/0/Download/SuperDessert.ttf:text='MY_TEXT':fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2' ${output.path}";

 final session = await FFmpegKit.execute(command);

 final returnCode = await session.getReturnCode();

 if (ReturnCode.isSuccess(returnCode)) {
 log("Success full text added");
 } else {
 log("Error adding text: ${await session.getFailStackTrace()}");
 }



I have tried changing the output directory, changed
fontfile
tofont