Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (70)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

Sur d’autres sites (9147)

  • How do I get event emitter based code to wait in nodejs ?

    29 mars 2019, par DigitalDisaster

    I 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 Akerus

    I 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 Berdiev

    I 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>