
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (67)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (7666)
-
Voice Declaration of Music File
6 septembre 2015, par linuxfreebirdI am struggling so hard with this bash script. I want my mp3 file to have a voice synthesis play at the beginning stating the name of the mp3 file before the music starts playing. I feel like there must be something out there that already does this, but I have not found one. I want the script to just take one argument str_url and it takes care of all of these steps automatically.
str_title=$(youtube-dl -c --simulate --get-title $str_url) # get video name as string
str_title=$(echo "$str_title" | sed 's|/||g') # remove '/' characters to stop directory creation
youtube-dl -c -o "$str_title.%(ext)s" $str_url # generate audio mp4 file
avconv -i "$str_title"".mp4" -vn -f wav "$str_title"".wav" # convert mp4 to wav
rm "$str_title"".mp4" # delete mp4
espeak --stdout > "espeak.wav" "$str_title" #convert text to speech sound wav file
normalize-audio "$str_title"".wav"
normalize-audio "espeak.wav"
ffmpeg -i "espeak.wav" -i "$str_title"".wav" \
-filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" \
-map "[v]" -map "[a]" "espeak - ""$str_title"".wav"
ffmpeg -i "espeak - ""$str_title"".wav" -codec:a libmp3lame -qscale:a 2 "espeak - ""$str_title"".mp3"I am having trouble recombining the wav files back into a mp3 file that my car can play. I tried using mp3wrap, but my car did not recognize the audio file. My car only recognizes basic mp3 files which I had to use sound convert to convert them to mp3. The current version of my script generates the following error :
Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
Stream specifier ':0' in filtergraph description [0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a] matches no streams.I am using ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers.
What should I do next ? Is there linux program that already does this ?
Thank you for your time and consideration. -
Issues with Discord JS Music Bot
5 décembre 2020, par ThresioI am in the process of creating a Discord bot with JS, giving it management, auto role, etc. I just got to the music section of it and I can't quite figure out whats wrong.



I believe I have installed FFmpeg correctly, as I have access to it from within the terminal. I have also used npm to bring ytdl-core and opusscript into my program.



What this should do is make the bot join the chat, then play the Youtube link. Currently, I am not error checking the second argument as I just wanted to get it working initially. I have implemented several different instances of .toString() and String() however it always gives the same error listed below.



. The program still throws this error :



TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object

C:\Users\Thresio's PC\Desktop\Discord Bot\node_modules\opusscript\build\opusscript_native_wasm.js:8
var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var
key;for(key in Module){if(Module.hasOwnProperty(key))
{moduleOverrides[key]=Module[key]}}Module["arguments"]=
[];Module["thisProgram"]="./this.program";Module["quit"]=function(status,toThrow) {throw
toThrow};Module["preRun"]=[];Module["postRun"]=[];var ENVIRONMENT_IS_WEB=false;var 
ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_HAS_NODE=false;var 
ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof 
importScripts==="function";ENVIRONMENT_HAS_NODE=typeof process==="object"&&typeof 
process.versions==="object"&&typeof 
process.versions.node==="string";ENVIRONMENT_IS_NODE=ENVIRONMENT_HAS_NODE&&!ENVIRONMENT_IS_WEB&&!ENVIRONM
ENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var
scriptDirectory="";function locateFile(path){i
abort(TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type 
string. Received type object). Build with -s ASSERTIONS=1 for more info. 




Here is my code for calling play :



case 'play':

 function play(connection, message){
 var server = servers[message.guild.id];

 server.dispatcher = connection.playStream(ytdl(server.queue[0], {filter: 'audioonly'}));

 server.queue.shift();

 server.dispatcher.on('end', function(){
 if(server.queue[0]){
 play(connection, message);
 }else {
 connection.disconnect();
 }
 })
 }

 if(!args[1]){
 message.channel.send('You need to provide a link!');
 return;
 }

 if(!message.member.voiceChannel){
 message.channel.send('You must be in a voice channel to play music!');
 return;
 }

 if(!servers[message.guild.id]) servers[message.guild.id] = {
 queue: []
 }

 var server = servers[message.guild.id];

 server.queue.push(args[1]);

 if(!message.guild.voiceConnection) message.member.voiceChannel.join().then(function(connection){
 play(connection, message);
 })
 break;




If anyone could assist with this, I would be very grateful.



EDIT : I unfortunately never figured out my main issue, but I have now found code that works (unlike mine :/).
For anyone else having this issue, I suggest using the code found here.
Works like a charm !


-
Anomalie #3910 : URL mal formaté dans le mail pour "Mot de passe oublié"
7 mars 2017, par Vincent LegeardOk squelettes-dist/formulaires/oublie.php a été patché entre la version 3.1.3 et 3.1.4
$ diff -pu spip-3.1.3/squelettes-dist/formulaires/oubli.php spip-3.1.4/squelettes-dist/formulaires/oubli.php
— - /home/www/default/spip/squelettes-dist/formulaires/oubli.php 2016-09-30 23:38:54.000000000 +0200 +++ spip/squelettes-dist/formulaires/oubli.php 2017-03-06 10:30:18.000000000 +0100 @@ -35,7 +35,7 @@ function message_oubli($email, $param) $msg = recuperer_fond( "modeles/mail_oubli", array(’url_reset’ => url_absolue(generer_url_public(’spip_pass’, "$param=$cookie"),$GLOBALS[’meta’][’adresse_site’]) + ’url_reset’ => url_absolue(generer_url_public(’spip_pass’, "$param=$cookie"), $GLOBALS[’meta’][’adresse_site’] . ’/’) ) ) ; include_spip("inc/notifications") ;