Recherche avancée

Médias (91)

Autres articles (47)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (5344)

  • FFMPEG eats all the memory

    19 mai 2021, par Abhinandan Chakraborty

    Probably one of the most cliche question but here is the problem : So I have a Ubuntu Server running as an isolated machine only to handle FFMPEG jobs. It has 4 vCPU, 4GB RAM, 80GB storage. I am currently using this script to convert a video into HLS playlist : https://gist.github.com/maitrungduc1410/9c640c61a7871390843af00ae1d8758e This works fine for all video including 4K recorded from iPhone. However, I am trying to add watermark so I changed the line 106 of this script

    


    from :

    


    cmd+=" ${static_params} -vf scale=w=${widthParam}:h=${heightParam}"


    


    to :

    


    cmd+=" ${static_params} -filter_complex [1]colorchannelmixer=aa=0.5,scale=iw*0.1:-1[wm];[0][wm]overlay=W-w-5:H-h-5[out];[out]scale=w=${widthParam}:h=${heightParam}[final] -map [final]"


    


    Now this works flawlessly in videos from Youtube or other sources but as soon as I am trying to use 4K videos from iPhone, the RAM usage grows from 250MB to 3.8GB in less than minute and crashes the entire process. So I looked out for some similar question :

    


      

    1. FFmpeg Concat Filter High Memory Usage
    2. 


    3. https://github.com/jitsi/jibri/issues/269
    4. 


    5. https://superuser.com/questions/1509906/reduce-ffmpeg-memory-usage-when-joining-videos
    6. 


    7. ffmpeg amerge Error while filtering : Cannot allocate memory
    8. 


    


    I understand that FFMPEG requires high amount of memory consumption but I am unsure what's the exact way to process video without holding the stream in the memory but instead release any memory allocation in real-time. Even if we decide to work without watermark, It still hangs around 1.8GB RAM for processing 5 seconds 4K video and this create a risk of what if our user upload rather longer video than it will eventually crash down the server. I have thought about ulimit but this does seem like restricting FFMPEG instead of writing an improved command. Let me know how I can tackle this problem. Thanks

    


  • RTSP to RTMP in iOS as Transcoding

    15 mars 2019, par Naman Sheth

    I am getting live feed from some IP camera as an RTSP url and then i want to convert it to RTMP.

    Here is two aspects that we have to implement

    1. What we convert from RTSP to RTMP is transcoding.
    2. I have my iPad/iPhone Camera that user can switch and add live feed to RTMP url at this point I want to stop RTSP feed. i.e. Encoding

    This all scenario want to do with FFMPEG

    I have searched on this url but not able to figure out in iOS

    ffmpeg -i "[your rtsp link]" -f flv -r -s -an "[Your rtmp link]"

    RTSP to RTMP streaming

    Thanks in Advance !

  • ffmpeg-X264 encode —BGRA to AVFrame(ffmpeg) and viceversa ? for IOS

    6 avril 2012, par Asta ni enohpi

    Am working Video Processing in IOS(iphone/ipod/ipad) Using Objective c. i am using AVFoundation Framework to Capture Video . i want to Encode/decode those video frame using ffmpeg-libx264. i have compiled ffmpeg-x264 lib for ios. i got kCVPixelFormatType_32BGRA from AVFoundation.

    my problem is
    1.How to convert kCVPixelFormatType_32BGRA to AVFrame for enode using avcodec_encode_video ?

    2.How to convert AVFrame to kCVPixelFormatType_32BGRA @ decode side from avcodec_decode_video2 ?

    Please help me to start above process or give path for working tutorial .Thanks in advance.