Recherche avancée

Médias (91)

Autres articles (43)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (6683)

  • ffmpeg : Invalid segment filename template 'stream05d.ts'

    14 juin 2015, par Wildan Muhlis

    I have tried to use http live streaming with ffmpeg windows build (http://ffmpeg.zeranoe.com/builds/)

    Here’s the command

    ffmpeg.exe -v 9 -loglevel 99 -re -i tes.avi -an ^
    -c:v libx264 -b:v 128k -preset medium ^
    -flags -global_header -map 0 -f segment -segment_time 4 ^
    -segment_list test.m3u8 -segment_format mpegts stream%^05d.ts

    but an error message raised,

    [segment @ 045f5840] Codec for stream 0 does not use global headers but container format requires global headers
    [segment @ 045f5840] Selected stream id:0 type:video
    [mpegts @ 062f2540] Invalid segment filename template 'stream05d.ts'
    [AVIOContext @ 04a90e00] Statistics: 0 seeks, 0 writeouts
    Output #0, segment, to 'stream05d.ts':
     Metadata:
       encoder         : Lavf55.2.100
       Stream #0:0, 0, 1/90000: Video: h264, yuv420p, 720x400 [SAR 1:1 DAR 9:5], 10
    01/24000, q=-1--1, 128 kb/s, 90k tbn, 23.98 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 -> libx264)
    Could not write header for output file #0 (incorrect codec parameters ?): Invali
    d argument
    [AVIOContext @ 0215a3e0] Statistics: 3028576 bytes read, 88 seeks

    What’s this error message mean and how to solve it ?

  • Run FFMPEG in an Async Subprocess then Kill after condition complete ?

    16 janvier 2021, par Robert

    I am struggling to get this correct. I have a sample piece of code here :

    


    import asyncio
import signal
import os
from subprocess import PIPE, Popen


async def recScreen():
    cmd = 'ffmpeg -f gdigrab -framerate 30 -i desktop output.mkv'
    process = Popen(cmd)
    await asyncio.sleep(15)
    print("Done sleep")
    process.terminate()
    return 0

loop = asyncio.get_event_loop()
loop.run_until_complete(recScreen())
loop.close()



    


    The whole idea is that, after a condition is met (e.g. sleeping after 15 seconds), we can tell ffmpeg to gracefully stop recording and close.

    


    However, I have yet to find a method that does that. In this example, and most examples using process.terminate() and process.kill(), the process ends abruptly without letting ffmpeg do a clean exit. Attempting to add await to process throws an error since it cannot be awaited.

    


    Using a sample piece like :

    


        process = await asyncio.create_subprocess_shell(
        command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE
    )


    


    and then

    


    await process.terminate()


    


    Throws a NotImplementedError.

    


    I am confused and not sure how I should go about. Does anyone have a solution ?

    


  • React Native | FFMPEG on iOS | Adding PNG image overlay "watermark" on a video, JPEG is working, but PNG is not working

    17 mai 2023, par niembro64

    Struggled for five hours so wanted to show people using react-native ffmpeg libraries how to do this.

    


    You need to disable PNG compression in your build settings on XCode.

    


    Follow the description here, I was using a different library but this still worked for me.

    


    disable both of these (set to no)

    


    Struggled for five hours so wanted to show people using react-native ffmpeg libraries how to do this.

    


    You need to disable PNG compression in your build settings on XCode.