Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (81)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • 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 (5889)

  • libavformat/segment.c : Add strftime expansion for segment filename templates

    28 décembre 2014, par Pedro E. M. Brito
    libavformat/segment.c : Add strftime expansion for segment filename templates
    

    Allows expansion of the filename template with strftime() with the option
    - strftime 1 (disabled by default). This allows segments to be named by time of
    creation, adding some flexibility.

    Fixes Ticket 4104 (add strftime to segment muxer)

    Signed-off-by : Pedro E. M. Brito <pedroembrito@gmail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/segment.c
  • Switching between multiple m3u8 playlist

    25 janvier 2018, par formatkaka

    In a live stream setup, I have 2 cameras and each one sends RTMP stream to one different application which is on my Nginx-RTMP server. On the browser I am using Videojs Hls plugin.

    Now my question is how can I load these two streams one after another in the same hlsplayer player instance. For example, I want to load the first 15 seconds in my first source and the next 15 seconds from my second source in the same player. Since the .ts files are named incrementally and if I have 5sec chunks of .ts files in each .m3u8 file, I want to load the first 3 .ts files to be loaded from the first source(.m3u8 file) and the next 3 from another source(.m3u8 file). How can I achieve that ?

    Can I generate some kind of master M3U8 file which has the list of these other .M3U8 files or can I develop a plugin in videojs to load the appropriate ts files directly ?

    source1.m3u8
    1.ts
    2.ts
    3.ts

    source2.m3u8
    1.ts
    2.ts
    3.ts

    I want to load 1.ts from source1.m3u8 and 2.ts from source2.m3u8 but with no delay or lag.

  • 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.&#xA;My idea is to edit each sample individually, save them into a variable and finally mix them. This is my code :

    &#xA;

    import subprocess    &#xA;&#xA;def create_samp():&#xA;    sample= subprocess.run(["ffmpeg", "-y", "-i", "https://freesound.org/data/previews/186/186942_2594536-hq.mp3", \&#xA;                           "-filter_complex", "adelay=15000|15000", "-codec:v", "copy", "-f", "mp3","-"], stdout=subprocess.PIPE)         &#xA;    return(sample)    &#xA;&#xA;def record(samp):&#xA;    subprocess.run(["ffmpeg", "-y", "-i", "https://cdns-preview-b.dzcdn.net/stream/c-b0b684fe962f93dc43f1f7ea493683a1-3.mp3", \&#xA;                    "-i", samp.stdout, "-f", "-mp3", "copy", "output.mp3"])&#xA;&#xA;samp = create_samp()&#xA;record(samp)&#xA;

    &#xA;

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

    &#xA;

    UnicodeDecodeError: &#x27;utf-8&#x27; codec can&#x27;t decode byte 0xff in position 45: invalid start byte&#xA;

    &#xA;

    With `'utf-16' :

    &#xA;

    UnicodeDecodeError: &#x27;utf-16-le&#x27; codec can&#x27;t decode bytes in position 239454-239455: illegal encoding&#xA;

    &#xA;

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

    &#xA;

    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 :

    &#xA;

    import subprocess&#xA;&#xA;def create_samp_2():&#xA;    sample= subprocess.run(["ffmpeg", "-i", "https://freesound.org/data/previews/186/186942_2594536-hq.mp3", \&#xA;                            "-af", "adelay=15000|15000", "-f", "mp3", "pipe:"], stdout=subprocess.PIPE).stdout&#xA;    return(sample)&#xA;&#xA;def create_samp():&#xA;&#xA;    sample= subprocess.run(["ffmpeg", "-i", "https://freesound.org/data/previews/370/370934_6399962-lq.ogg", \&#xA;                            "-af", "adelay=1000|1000", "-f", "mp3", "pipe:"], stdout=subprocess.PIPE).stdout&#xA;    return(sample)&#xA;&#xA;&#xA;def record(samp, samp_2):        &#xA;    process = subprocess.Popen(["ffmpeg", "-y", &#x27;-f&#x27;, &#x27;mp3&#x27;, \&#xA;                                "-i", "https://cdns-preview-b.dzcdn.net/stream/c-b0b684fe962f93dc43f1f7ea493683a1-3.mp3", \&#xA;                                "-i", "pipe:", \&#xA;                                "-i", "pipe:", \&#xA;                                "-filter_complex", "amix=inputs=3:duration=longest", "output.mp3"], stdin=subprocess.PIPE)&#xA;&#xA;    process.stdin.write(samp) &#xA;    process.stdin.write(samp_2)        &#xA;    process.stdin.close()  &#xA;    process.wait()&#xA;&#xA;samp = create_samp()&#xA;samp_2 = create_samp_2()&#xA;record(samp, samp_2)&#xA;

    &#xA;

    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.

    &#xA;

    Then I tried named pipes as suggested this way :

    &#xA;

    "pipe1:"&#xA;

    &#xA;

    But I get this error :

    &#xA;

    pipe1:: Protocol not found&#xA;Did you mean file:pipe1:?&#xA;

    &#xA;

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

    &#xA;

    So I tried :

    &#xA;

    import os&#xA;pipe1 = "pipe1"&#xA;&#xA;def create_pipe1():&#xA;    os.mkfifo(pipe1)&#xA;&#xA;But now I have this error: pipe1:: Protocol not found&#xA;Did you mean file:pipe1:?&#xA;

    &#xA;