Recherche avancée

Médias (1)

Mot : - Tags -/punk

Autres articles (60)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (5294)

  • Using ffmpeg to restream youtube videos

    2 juin 2020, par ILoveCake

    I want to restream 3 youtube videos (each one is a live webcam) in this way : they would run one after the other, but each one runs for only 1 minute. All this in a loop. So my live stream would eventually look like this :
cam1, cam2, cam3, cam1, cam2, cam3, ...
I have tried to used youtube-dl and ffmpeg (these are my preferred command line tools) to download each stream, let it run for 1 minute and restream it. The problem is that I have to start ffmpeg each time. So when it stops and starts again, the live stream stops and starts again (after about 15 seconds). Here is my code (for bash) :

    



    The main script : (FILE is an array with the 3 URLs for the videos)

    



    for URL in "${FILE[@]}"
do
  timeout 1m /usr/local/bin/get_livestream.sh $URL
done



    



    and get_livestream.sh :

    



    youtube-dl -q -o - -- $1 | ffmpeg -re -loglevel warning -hide_banner \&#xA;  -i - -s 960x540 -c:v libx264 -b:v 2M -c:a copy \&#xA;  -strict -2 -flags &#x2B;global_header -bsf:a aac_adtstoasc -bufsize 2100k \&#xA;  -f flv rtmp://live.twitch.tv/app/<key>&#xA;</key>

    &#xA;

  • FFMPEG stream RTSP to RTMP (Youtube) add logo

    16 juin 2017, par Māris Purviņš

    To stream video from IP cam to Youtube I’m using code (through Ubunu) :
    ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp -i rtsp ://user:psw@192.168.0.100:554 -tune zerolatency -vcodec libx264 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv rtmp ://a.rtmp.youtube.com/live2/ -nostdin -nostats /dev/null 2>&1 &

    It is a bee project for school
    I have two cameras and two streams :
    https://www.youtube.com/watch?v=ws-VcLXo-hI

    Everything is ok, but... I would like to know :
    1. How to add png logo to this strem. I have tried -i /home/user/rvvg_logo_round.png -codec:v libx264 -preset ultrafast -filter_complex overlay and another methods but without a result.
    2. Sometimes there is some problem during night and video streaming stops. How to automatically check process status and restart stream.
    I have tried to create sh file as described in http://videos.cctvcamerapros.com/raspberry-pi/ip-camera-raspberry-pi-youtube-live-video-streaming-server.html and put in cron job, bet that is only to check one cam process. Is there some better idea ?

  • Stream to youtube using Hardware Encoding

    28 août 2021, par Renan F.

    I'm currently streaming to youtube using NVIDIA hardware encoding to reduce the load on the CPU, with this code :

    &#xA;

    ffmpeg -framerate 30 -f gdigrab -i desktop -f lavfi -i anullsrc -c:v h264_nvenc -f flv "rtmp://a.rtmp.youtube.com/live2/KEY"&#xA;

    &#xA;

    My screen resolution is 2560x1080, but this is the result i get in youtube :&#xA;enter image description here

    &#xA;

    There are huge empty spaces on both sides, and the resolution is not so good, even selecting "HD" on youtube.

    &#xA;

    I tried to specify in the last parameter before flv,&#xA;-s 2560x1080 but I could not see any difference.

    &#xA;

    Also would like to ask if someone knows what -qp 0 does, I could not find it in the documentation, it does appear here :

    &#xA;

    https://trac.ffmpeg.org/wiki/Capture/Desktop

    &#xA;

    Under hardware encoding.

    &#xA;

    Looking for any advice, taking in mind I'm trying to reduce the CPU usage and keep a normal/good resolution.

    &#xA;