Recherche avancée

Médias (91)

Autres articles (19)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (5557)

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

  • Discord.js Music Bot ffmpeg not found ?

    13 octobre 2020, par cccmdm

    I just started learning javascript with node.js and I am attempting to create a music bot, I've set up the command handler and everything, however, I keep getting this error when I try to run the play command

    &#xA;&#xA;

    &#xA;

    Error : FFmpeg/avconv not found !&#xA; at Function.getInfo (C :\Users\johnd\OneDrive\Desktop\discordBot\node_modules\prism-media\src\core\FFmpeg.js:130:11)&#xA; at Function.create (C :\Users\johnd\OneDrive\Desktop\discordBot\node_modules\prism-media\src\core\FFmpeg.js:143:38)&#xA; at new FFmpeg (C :\Users\johnd\OneDrive\Desktop\discordBot\node_modules\prism-media\src\core\FFmpeg.js:44:27)&#xA; at AudioPlayer.playUnknown (C :\Users\johnd\OneDrive\Desktop\discordBot\node_modules\discord.js\src\client\voice\player\BasePlayer.js:47:20)&#xA; at VoiceConnection.play (C :\Users\johnd\OneDrive\Desktop\discordBot\node_modules\discord.js\src\client\voice\util\PlayInterface.js:71:28)&#xA; at C :\Users\johnd\OneDrive\Desktop\discordBot\commands\play.js:7:39&#xA; at processTicksAndRejections (internal/process/task_queues.js:97:5)

    &#xA;

    &#xA;&#xA;

    I'll post my play function below

    &#xA;&#xA;

    async function playMusic(vc,songId) {&#xA;    const stream = await ytdl(songId,{type: &#x27;opus&#x27;,filter : &#x27;audioonly&#x27;});&#xA;    vc.join().then(connection => {&#xA;        const dispatcher = connection.play(stream,{volume: 1});&#xA;        dispatcher.on(&#x27;end&#x27;, end => {&#xA;            console.log("Song ended!");&#xA;            vc.leave();&#xA;        }).catch(err => console.log(err));&#xA;    }).catch(err => console.log(err));&#xA;}&#xA;

    &#xA;&#xA;

    My proof of installation : https://imgur.com/a/EFM1G6s

    &#xA;&#xA;

    Update 1 : I'm still looking for others with this specific problem and can't find anything.

    &#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 ?