Recherche avancée

Médias (91)

Autres articles (97)

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

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

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

Sur d’autres sites (16704)

  • Streaming audio over websockets and process it with ffmpeg, Invalid frame size error

    12 avril 2024, par Nimrod Sadeh

    I am building an application in Python that processes audio data on a streaming connection with WebSockets. To work with it, I need to process it with ffmpeg on the server before passing it to some ML algorithms.

    


    I have the following ffmpeg code setup to process each byte sequence that comes over WebSockets :

    


    async def ffmpeg_read(bpayload: bytes, sampling_rate: int = 16000) -> np.array:
    ar = f"{sampling_rate}"
    ac = "1"
    format_for_conversion = "f32le"
    ffmpeg_command = [
        "ffmpeg",
        "-i", "pipe:0",
        "-ac", ac,
        "-acodec", f"pcm_{format_for_conversion}",
        "-ar", ar,
        "-f", format_for_conversion,
        "pipe:1"]
    try:
        process = await asyncio.create_subprocess_exec(
            *ffmpeg_command,
            stdin=asyncio.subprocess.PIPE,
            stdout=asyncio.subprocess.PIPE)

        process.stdin.write(bpayload)
        await process.stdin.drain() 
        process.stdin.close()

        out_bytes = await process.stdout.read(8000)  # Read asynchronously
        audio = np.frombuffer(out_bytes, np.float32)

        if audio.shape[0] == 0:
            raise ValueError("Malformed soundfile")
        return audio

    except FileNotFoundError:
        raise ValueError(
            "ffmpeg was not found but is required to load audio files from filename")


    


    In every test, this works for exactly one message and prints the desired output to the screen, but the second one gets the following :

    


    [mp3 @ 0x1208051e0] Invalid frame size (352): Could not seek to 363.
[in#0 @ 0x600002214200] Error opening input: Invalid argument
Error opening input file pipe:0.


    


    How do I fix this ?

    


  • ffmpeg - create from .png - [on hold]

    9 janvier 2016, par John

    I am new user to R studio.
    I want to create a video from a serie of .png files.
    I have checked the post about doing so but using the code provided result in error. I get the " unexpected token " error with command like :
    ffmpeg -r 1/5 ...etc
    says " unexpected token 1 " ; ..then a bunch of other unexpected token...
    What is wrong with the command line ? Do I need to install a package to use this ffmpeg ? If so, using the command " install.ffmpeg or install.package() didn’t work.
    Any help on this ? thanks !

  • Is it possible to use Emgu CV 3.0 to open a live stream with rstp protocol with ffmpeg h264

    1er février 2017, par Rezell Isidro

    Is it possible to use this code in capturing a video stream from an ip camera ?

    Capture cap = new Capture("rtsp://192.168.42.1:554/live");
    imageBox1.Image = cap.QueryFrame();

    because my image box is displaying nothing but when i tried viewing it to VLC Media Player the ip address worked. Please help.

    I also tried it with VLCPlugin v2 instead of using imageBox and the ip address still work..

    I also tried it with iSpy and it worked under ffmpeg(h264), maybe the problem is there ? I’m using Visual Studio Ultimate 2010, Emgu CV 3.x. and I’m using Please help. Been working on this for long now.