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 (5504)

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

    


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


    


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

    


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

    


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

    


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

    


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

    


    Under hardware encoding.

    


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

    


  • Video streaming to YouTube using JavaScript and Java

    28 septembre 2020, par user1597121

    I'm trying to stream live video from a user's browser to YouTube Live. I already have the following working :

    


      

    1. Capture video from the webcam using navigator.mediaDevices.getUserMedia
    2. 


    3. Send video data to the server via WebSocket by periodically invoking this function :
    4. 


    


    function getFrame(video)
{
    var canvas = document.createElement('canvas');
    canvas.width = video.videoWidth;
    canvas.height = video.videoHeight;
    canvas.getContext('2d').drawImage(video, 0, 0);

    return canvas.toDataURL('image/png', 1);
}


    


      

    1. Creating a live broadcast and stream on YouTube via their API and receiving the RTMP info where they expect the video stream to be sent.
    2. 


    


    This is where I seem to be stuck. I'm not sure how to send the video data from my Java server to YouTube's RTMP endpoint. I've looked into using Red5 or ffmpeg, but haven't been able to find an example where the data is continually being sent via WebSocket. Rather, there's always some "stream" that is being redirected to YouTube, coming in on a dedicated port, or perhaps from a pre-recorded video file.

    


    I have very limited knowledge of how video streaming works, so that's presumably making things more difficult than they should be. I'd really appreciate some help with getting this figured out. Thank you !

    


  • FFmpeg youtube streaming crash

    27 septembre 2020, par UkaszYTPolak

    I'm using vps with Ubuntu 18.04.1 LTS

    


    And i want to create stream 24/7 on youtube.

    


    Script :

    


    #! /bin/bash
 
VBR="1500k"
FPS="29"
QUAL="ultrafast"
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"
YOUTUBE_KEY="xxxx-xxxx-xxxx-xxxx-xxxx"
VIDEO_SOURCE="undefajnd.mp4"
AUDIO_SOURCE="marynaura.mp3"
AUDIO_ENCODER="aac"
 
ffmpeg \
 -stream_loop -1 \
 -re \
 -r $FPS \
 -i "$VIDEO_SOURCE" \
 -thread_queue_size 512 \
 -i "$AUDIO_SOURCE" \
 -c:v libx264 -tune stillimage -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS *2)) -b:v $VBR \
 -c:a $AUDIO_ENCODER -threads 6 -ar 44100 -b:a 128k -bufsize 512k -pix_fmt yuv420p \
 -f flv \
 -flvflags no_duration_filesize  $YOUTUBE_URL/$YOUTUBE_KEY


    


    Stream is in loop,but "Crash" on video end
Video - from terminal

    


    sorry for my English D :