
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 (74)
-
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" (...) -
MediaSPIP : Modification des droits de création d’objets et de publication définitive
11 novembre 2010, parPar défaut, MediaSPIP permet de créer 5 types d’objets.
Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...) -
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
Sur d’autres sites (6838)
-
Pydub dir error . dynamic file path dosent play sound but with specific file path the code works fine
20 avril 2021, par anshul rajhello developers idk whats wrong with this code it works fine when i give exact file path to the music file but if i pass it in dynamic way it doesnt work . actually my code is that user give a music file name it get downloaded then with the meta id it find the file in downloads dir then play it


def songplayer(self,meta):
 def playmmusic(name):
 from pydub.playback import play
 from pydub import AudioSegment
 AudioSegment.converter = "C:\\ffmpeg\\bin\\ffmpeg.exe"
 AudioSegment.ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg.exe"
 AudioSegment.ffprobe = "C:\\ffmpeg\\bin\\ffprobe.exe"
 sound = AudioSegment.from_file(name)
 play(sound)

 print(colored("Currently Playing : " + meta['title'],'yellow'))
 r=meta['id']
 tt='./downloads/'+r
 playmmusic(tt)



-
Pydub dir error . dynamic file path doesn't play sound but with specific file path the code works fine
20 avril 2021, par anshul rajI don't know what's wrong with this code - it works fine when I provide an exact file path to the music file, but if I pass it in a dynamic way, it doesn't work.


Actually my code is that user give a music file name it get downloaded then with the meta id it find the file in downloads dir then play it


def songplayer(self,meta):
 def playmmusic(name):
 from pydub.playback import play
 from pydub import AudioSegment
 AudioSegment.converter = "C:\\ffmpeg\\bin\\ffmpeg.exe"
 AudioSegment.ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg.exe"
 AudioSegment.ffprobe = "C:\\ffmpeg\\bin\\ffprobe.exe"
 sound = AudioSegment.from_file(name)
 play(sound)

 print(colored("Currently Playing : " + meta['title'],'yellow'))
 r=meta['id']
 tt='./downloads/'+r
 playmmusic(tt)



-
Docker : an error happened : ffmpeg exited with code 127
18 mai 2021, par developerpoliceAs I mentioned above, when I run the container, I get an error. When I run it normally, it works, there is no problem.


my container run code : docker run —rm -i -t -p 8080:4444 9fa71c8ca9ba


the error i got ;
an error happened : ffmpeg exited with code 127


APP.JS


https://pastebin.ubuntu.com/p/znCRWz2rgx/


Dockerfile
:

FROM node:10

COPY . /app
WORKDIR /app

RUN npm install
RUN npm install fluent-ffmpeg
RUN npm install os
RUN npm install express
RUN npm install --save @google-cloud/text-to-speech
RUN npm install --save @google-cloud/translate
RUN export GOOGLE_APPLICATION_CREDENTIALS="dogwood-cipher-307314-4074350f02b8.json"


CMD ["node", "app.js"]