Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Autres articles (93)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 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, par

    Multilang 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.

  • HTML5 audio and video support

    13 avril 2011, par

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

  • avcodec/mpeg12dec : Remove write-only assignments

    8 juillet 2024, par Andreas Rheinhardt
    avcodec/mpeg12dec : Remove write-only assignments
    

    This decoder unquantizes while parsing blocks
    and does not use dct_unquantize_mpeg1_intra
    (which uses *_dc_scale) at all.

    repeat_field was unused since
    e0a3d744a0d5a9a25fb85c9bba17e3b07d3ba29b.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/mpeg12dec.c
  • avformat/mxfenc : Write color metadata to MXF

    6 août 2020, par Harry Mallon
    avformat/mxfenc : Write color metadata to MXF
    

    Writes color_primaries, color_trc and color_space to mxf
    headers. ULs are from https://registry.smpte-ra.org/ site.

    Signed-off-by : Harry Mallon <harry.mallon@codex.online>

    • [DH] libavformat/mxfenc.c
  • How to write to fifo in while loop and read in continuous process

    18 avril 2019, par Russ_ell

    I’m running 3 multiprocess while loops that each write to seperate fifo’s , that are read by a continuously running ffmpeg process. This runs for the first loop of each process then stops.

    The code below is one of the write loops ( the other two are pretty much the same ), and the read process.

    def dubv():
       while True:
         print('loop')
         file, dur = getFile('vocal')
         fx = (
             AudioEffectsChain()
             .delay()
         )
         songvfx = fx(file)
         with open('/tmp/pipe2.fifo', 'wb') as p1:
             print('open s fifo')
             p1.write(songvfx.T.tobytes())
             p1.close()
             print('close s fifo')
         del songvfx

    def mixer():
       command4 = [
           'ffmpeg',
           '-nostdin',
           '-re',
           '-y',
           '-thread_queue_size', '4096',
           '-ac', '2',
           '-ar', '44100',
           '-f', 'f32le',
           '-i', '/tmp/pipe1.fifo',
           '-thread_queue_size', '4096',
           '-ac', '2',
           '-ar', '44100',
           '-f', 'f32le',
           '-i', '/tmp/pipe2.fifo',
           '-thread_queue_size', '4096',
           '-ac', '2',
           '-ar', '44100',
           '-f', 'f32le',
           '-i', '/tmp/pipe3.fifo',
           '-filter_complex', '[0][1][2]amix=inputs=3:dropout_transition=3[map]',
           '-map', '[map]',
           '-c:a', 'libmp3lame',
           '-b:a', '320k',
           '-f', 'mp3',
           'icecast://source:hackme@localhost:8000/test'
       ]
       o = open('/tmp/pipe1.fifo', 'rb')
       o2 = open('/tmp/pipe2.fifo', 'rb')
       o3 = open('/tmp/pipe3.fifo', 'rb')
       mix = sp.Popen(command4, stdin=DEVNULL, bufsize=4096)
       mix.wait()

    I’d like the write process to write to fifo2 , then loop and continue writing to fifo2 , to be read in the mixer process continuously.

    EDIT :

    I think the problem is coming from the reader closing as the loop runs once , then runs round the loop , open the fifo but never prints ’close s fifo’ again , so i presume it cant write to the file ?

    EDIT 2 :

    I have resolved this by moving the fifo close out of the loop. My writer is now

    def dubv():
     with open('/tmp/pipe2.fifo', 'wb') as p2:
       while True:
         print('loop')
         file, dur = getFile('vocal')
         fx = (
             AudioEffectsChain()
             .delay()
         )
         songvfx = fx(file)
         p2.write(songvfx.T.tobytes())
         del songvfx
         time.sleep(2)
     p2.close()
     print('close s fifo')

    and the reader doesn’t open the fifo files as ffmpeg seems to deal with this.

    def mixer():
     command4 = [
         'ffmpeg',
         '-re',
         '-y',
         '-thread_queue_size', '4096',
         '-ac', '2',
         '-ar', '44100',
         '-f', 'f32le',
         '-i', '/tmp/pipe1.fifo',
         '-thread_queue_size', '4096',
         '-ac', '2',
         '-ar', '44100',
         '-f', 'f32le',
         '-i', '/tmp/pipe2.fifo',
         '-thread_queue_size', '4096',
         '-ac', '2',
         '-ar', '44100',
         '-f', 'f32le',
         '-i', '/tmp/pipe3.fifo',
         '-filter_complex', '[0][1][2]amix=inputs=3:dropout_transition=3[map]',
         '-map', '[map]',
         '-c:a', 'libmp3lame',
         '-b:a', '320k',
         '-f', 'mp3',
         'icecast://source:hackme@localhost:8000/test'
     ]
     mix = sp.Popen(command4, stdin=DEVNULL, bufsize=4096)
     mix.wait()

    If anybody see a ’better’ solution please comment.

    Thank you