Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (99)

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

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (12822)

  • FFmpeg save .mp3 output into a variable

    6 mai 2021, par Toto Briac

    In my application I want to modify various mp3 and then mix them together. I know I could do it with a single command line in FFmpeg but It can end up very messy since I need to use various filter on each sample and I have five of them.
My idea is to edit each sample individually, save them into a variable and finally mix them. This is my code :

    


    import subprocess    

def create_samp():
    sample= subprocess.run(["ffmpeg", "-y", "-i", "https://freesound.org/data/previews/186/186942_2594536-hq.mp3", \
                           "-filter_complex", "adelay=15000|15000", "-codec:v", "copy", "-f", "mp3","-"], stdout=subprocess.PIPE)         
    return(sample)    

def record(samp):
    subprocess.run(["ffmpeg", "-y", "-i", "https://cdns-preview-b.dzcdn.net/stream/c-b0b684fe962f93dc43f1f7ea493683a1-3.mp3", \
                    "-i", samp.stdout, "-f", "-mp3", "copy", "output.mp3"])

samp = create_samp()
record(samp)


    


    My issue is that I have to encode the stdout. I've tried 'utf-8' but got this error :

    


    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 45: invalid start byte


    


    With `'utf-16' :

    


    UnicodeDecodeError: 'utf-16-le' codec can't decode bytes in position 239454-239455: illegal encoding


    


    Why is the way to fix this issue ? Is my approach the right one ?

    


    Thanks to @Rotem I succeed to do what I wanted to. But now I am facing an other issue, since I want to mix up to 5 sounds, I tried to implement it the lazy/easy way :

    


    import subprocess

def create_samp_2():
    sample= subprocess.run(["ffmpeg", "-i", "https://freesound.org/data/previews/186/186942_2594536-hq.mp3", \
                            "-af", "adelay=15000|15000", "-f", "mp3", "pipe:"], stdout=subprocess.PIPE).stdout
    return(sample)

def create_samp():

    sample= subprocess.run(["ffmpeg", "-i", "https://freesound.org/data/previews/370/370934_6399962-lq.ogg", \
                            "-af", "adelay=1000|1000", "-f", "mp3", "pipe:"], stdout=subprocess.PIPE).stdout
    return(sample)


def record(samp, samp_2):        
    process = subprocess.Popen(["ffmpeg", "-y", '-f', 'mp3', \
                                "-i", "https://cdns-preview-b.dzcdn.net/stream/c-b0b684fe962f93dc43f1f7ea493683a1-3.mp3", \
                                "-i", "pipe:", \
                                "-i", "pipe:", \
                                "-filter_complex", "amix=inputs=3:duration=longest", "output.mp3"], stdin=subprocess.PIPE)

    process.stdin.write(samp) 
    process.stdin.write(samp_2)        
    process.stdin.close()  
    process.wait()

samp = create_samp()
samp_2 = create_samp_2()
record(samp, samp_2)


    


    Surprisingly it works, my two sounds start at the right time, but the second sound is messed up. So it's not the right way to do it.

    


    Then I tried named pipes as suggested this way :

    


    "pipe1:"


    


    But I get this error :

    


    pipe1:: Protocol not found
Did you mean file:pipe1:?


    


    Reading named pipe wiki it is stated that I have to create them with mkfifo().

    


    So I tried :

    


    import os
pipe1 = "pipe1"

def create_pipe1():
    os.mkfifo(pipe1)

But now I have this error: pipe1:: Protocol not found
Did you mean file:pipe1:?


    


  • How to translate bgr data to CVPixelBufferRef ?or how to play just bgr data in iOS

    4 décembre 2016, par warlock

    I have got some RGB data used live555 & FFmpeg, but how can I play it as a video ?

    I Google a lot and found that avplayer maybe help. Others I searched link me to UIImage translate to rgb...or your search returned no matches.

    This is one I searched, but it is "Create ", not "Play ".

    possible to create a video file from RGB frames using AV Foundation

    I try to use AVsampleBufferDisplayLayer, but I don’t know how to translate.

    Anyone can help ?

  • vp9/x86 : save one register on 32bit idct32x32.

    16 décembre 2014, par Ronald S. Bultje
    vp9/x86 : save one register on 32bit idct32x32.
    

    Fixes build on win32.

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/x86/vp9itxfm.asm