
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 (103)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (9330)
-
How to run a python code via Django templates ?
18 novembre 2018, par Iskender BerdievI want to execute code below when the is submitted (project on Django) :
from os import system, listdir, remove
link = 'https://www.youtube.com/watch?v=ME9yO1KEVoo'
def download(): ## Downloading a video from YouTube using youtube-dl
system("youtube-dl -o download {}".format(link))
def convert(): ## Converting downloaded video to mp3 format via ffmpeg.exe(same directory)
listOfFiles = listdir('.')
for i in listOfFiles:
if i.startswith("download"):
name = i
system("ffmpeg -i {} download.mp3".format(name))
def main():
download()
convert()
main()I have tried to put this code into views.py :
class download(TemplateView):
def main(request):
if request.method == 'POST':
link = 'https://www.youtube.com/watch?v=ME9yO1KEVoo'
system("youtube-dl -o download {}".format(link))
listOfFiles = listdir('.')
for i in listOfFiles:
if i.startswith("download"):
name = i
system("ffmpeg -i {} download.mp3".format(name))
return redirect ('loader/wait.html')urls.py :
path('wait/', views.download.as_view(), name='wait')
and the html form which is submitted to run views.download.as_view() :
<form action="{% url " method="POST">{% csrf_token %}
<input type="submit" value="Yes" />
</form> -
FFmpeg error code 254
17 septembre 2013, par AkerusI try to get file informations via ffprobe in a java-application.
I am using the following command :
/usr/bin/ffprobe -v quiet -print_format json -show_format -show_streams TESTVIDEOPATH
Running that command in bash, it works like a charm : It returns the JSON-String and error code is "0".
Running that command in Java results in error code "254" and result is :\n\n
When I modify the command, so that ffprobe accepts a stream as input :
/usr/bin/ffprobe -v quiet -i - -print_format json -show_format -show_streams
it works in both bash and Java.
In Java the following is used :
ProcessBuilder processBuilder = new ProcessBuilder(command.split(" "));
this.process = processBuilder.start();
this.process.waitFor();
int exitCode = this.process.exitValue();
this.outputOfProcess = this.process.getInputStream();Can anyone tell me what the error code 254 means ? I couldn't find anything about it.
Edit : ffmpeg version 0.10.7-6:0.10.7-0jon1 quantal is used
-
How do I get event emitter based code to wait in nodejs ?
29 mars 2019, par DigitalDisasterI may be asking the question wrong because I don’t have a lot of experience with this. Basically, I have this code :
videoshow(images, videoOptions)
.audio('song.mp3')
.save('video.mp4')
.on('start', function (command) {
console.log('ffmpeg process started:', command)
})
.on('error', function (err, stdout, stderr) {
console.error('Error:', err)
console.error('ffmpeg stderr:', stderr)
})
.on('end', function (output) {
console.error('Video created in:', output)
})from this library
It runs async as far as I understand, but I can’t get it to wait even when I add await before it.
I want the block of code to stop until the
end
has finished and the image has been converted to a vide. I don’t see any examples, and I’m not sure what I’m doing wrong.