
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (65)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
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) (...)
-
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 (...)
Sur d’autres sites (7451)
-
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. -
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 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>