Recherche avancée

Médias (91)

Autres articles (75)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP 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 (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (24293)

  • Launch a new window when a process is over. PyQt

    15 mai 2017, par salvaestudio

    I’m doing my first video encoding program.
    My problem is that I can not get a popup window out when the process of button 3 is finished (when ffmpeg is over)
    I use a main window that works fine. I have another window ready : "winok" but I can not get it out.
    I also do not know how to verify the return value of button 3 (which will be what ffmpeg does) and display error or success message.

    import sys
    from PyQt4.QtCore import *
    from PyQt4.QtGui import *
    import subprocess
    import shlex


    fileinput = ''
    fileoutput = ''


    comando = '\
    ffmpeg \
    -f lavfi \
    -i color=c=black:s=1920x1080:r=25:d=1 \
    -f lavfi \
    -i "aevalsrc=0:c=stereo:d=1" \
    -i {} -filter_complex \
    "[0:v] trim=start_frame=1:end_frame=3 [blackstart]; \
    [0:v] trim=start_frame=1:end_frame=5 [blackend]; \
    [1:a] atrim=duration=0.12 [audiostart]; \
    [1:a] atrim=duration=0.2 [audioend]; \
    [blackstart] [audiostart] [2:v] [2:a] [blackend] [audioend] concat=n=3:v=1:a=1[v][a]" \
    -map "[v]" \
    -map "[a]" \
    -c:v qtrle \
    -c:a pcm_s24le \
    -ar 48000 \
    -timecode 00:02:00:00 {}'


    def window():

      win = QDialog()

      b1 = QPushButton(win)
      b1.setText("Select file")
      b1.move(50,20)
      b1.clicked.connect(b1_clicked)

      b2 = QPushButton(win)
      b2.setText("Output file")
      b2.move(50,50)
      b2.clicked.connect(b2_clicked)

      b3 = QPushButton(win)
      b3.setText("Encode!")
      b3.move(50,80)
      b3.clicked.connect(b3_clicked)

      win.setGeometry(100,100,200,200)
      win.setWindowTitle("Encoder")
      win.show()
      sys.exit(app.exec_())

    def b1_clicked():
      global fileinput
      fileinput = QFileDialog.getOpenFileName(None, "Selecciona archivo a convertir", "/home/salva", "video files (*.avi *.mkv *.mp4 *.mov *.mpg);; All files (*)")
      print (fileinput)


    def b2_clicked():
      global fileoutput
      fileoutput = QFileDialog.getSaveFileName(None, "Archivo de salida", "/home/salva", "video files (*.avi *.mkv *.mp4 *.mov *.mpg);; All files (*)")
      print (fileoutput)


    def b3_clicked():
      global comando
      subprocess.call(shlex.split(comando.format(fileinput, fileoutput + '.mov')))
      exit()

    def winok():

       win = QDialog()

       b10 = QPushButton(win)
       b10.setText("Do another job?")
       b10.move(50,20)
       b10.clicked.connect(b10_clicked)

       b11 = QPushButton(win)
       b11.setText("Exit")
       b11.move(50,50)
       b11.clicked.connect(b11_clicked)

       win.setGeometry(100,100,300,100)
       win.setWindowTitle("Work completed. Oh Yeah!")
       win.show()
       sys.exit(app.exec_())

    def b10_clicked():
       print ('Volviendo a codificar...')

    def b11_clicked():
       exit()

    if __name__ == '__main__':
       app = QApplication(sys.argv)
       window()
  • vorbisenc : Apply and output correct length window and mdct

    14 juin 2017, par Tyler Jones
    vorbisenc : Apply and output correct length window and mdct
    

    Usage of blocksize, window, mode, and mdct indexes are switched from
    default 0 to a default of 1 to better align with specs. A flag of 0
    should correspond with short windows, a flag of 1 with long.

    Signed-off-by : Tyler Jones <tdjones879@gmail.com>
    Reviewed-by : Rostislav Pehlivanov <atomnuker@gmail.com>

    • [DH] libavcodec/vorbisenc.c
  • Play just audio (without launching a window)

    6 août 2017, par Paradise on E

    Is there a way to hide ffplay window on Windows ? I want to play audio files (some of them have video streem as well), but I don’t want a window to appear. Is there any way to hide window completelly ?

    I took a look at their documentationa and I didn’t find a way to do it. I also searched on the internet and didn’t find anything useful. Everyone are asking "Why in the world do you want to hide window..." and similar questions instead of actually posting an answer on how to do it.

    I believe ffplay doesn’t have native way to hide window. So, what are the most easiest alternative ? One of the alternatives would be to download ffplay source code, modify it and recompile it, but it is definitelly not an easy and quick way.

    Is there any way I can launch a process without showing window. It would be great if there is some way to achieve it when ffplay is launched from Node.js (becuase I am using Node.js’s module child_process to play audio files). So, how can I hide ffplay’s window ?

    My current code is following :

    var cp = require('child_process');
    var proc = cp.spawn('ffplay', [
     '-no_banner',
     '-loglevel', 'panic',
     playlist.splice(Math.random() * playlist.length | 0, 1)[0]
    ]);

    Question

    How to hide ffplay’s window ? If it is possible using ffplay native arguemnts (which I didn’t find in ther documentation) then what arguments to use ? If there is no native way, then is it possible to do it using Node.js’s module child_process ? If not, is there any other way I can hide ffplay’s window ? Again, I must note that some of files I play have video stream as well. So, is there any way to hide ffplay’s window ?

    Thanks in advance.