Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (20)

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

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

Sur d’autres sites (6097)

  • How to download live stream that consists out of separate .ts and .aac segments ?

    10 juin 2020, par Jan

    There is a m3u8 file with only the containing links to video segments and a different one with only the audio segments. Because it is a live streaming I have to start downloading both video and audio streams at the same time.
When just writing "ffmpeg input output" for video and the same command for audio in the following line, the program is trying to download the video file "until the end" before starting the audio stream — which does naturally not work since the live stream is indefinite.

    


  • FFmpeg drawtext and live coordinates with sendcmd/zmq

    9 mai 2019, par DavidK

    I’d like to use a marker on a live video source which has external live data to set x,y coordinates. sendcmd can read the text file but it won’t update it, so later updates are not executed. Is it possible only with zmq ? And if so, can I use zmq as a single filter (with drawtext), not with filter complex ?

    I have a python that exports live coordinates in the appropriate format to a cmd.txt file. I use unix time for the coordinates and I also copy the input timestamps from the live loopback device so they have almost the same time. There’s a small delay so I have compensated the exported timestamps with +1.5s. This means the marker is moving for this extra period (while timestamps in cmd.txt are a bit ahead of the live source), but it won’t update any more. I assume that FFmpeg reads this cmd.txt and won’t update it any more but my python is writing it continuously.

    Example line of the cmd.txt :

    1557402120.3119707 drawtext reinit 'x=752:y=480';

    This is the actual ffmpeg pipe :

    ffmpeg -fflags nobuffer -vaapi_device /dev/dri/renderD128 -f v4l2 -i /dev/video0 -vf "sendcmd=f=cmd.txt,drawtext=fontfile=font.ttf:fontsize=30:fontcolor=white:r=25:text='o',format=nv12,hwupload" -copyts -c:v h264_vaapi -qp 24 -y 0.mp4

    Source is a loopback device with unix time as input timestamp.

  • http-flv live broadcast with flv.js error

    29 mars 2019, par Forest Yang

    When I try nginx + nginx-http-flv-module + flv.js to play video from camera, error happened, but play with VLC works fine.

    log in nginx :

    flv live: app args MUST be specified, client: 192.168.89.1, server: myserver, request: "GET /live.html HTTP/1.1", host: "192.168.89.134:8080"

    Some key configurations,

    nginx.conf :

    http{
      ...
      server{
      ...
       location /live {
               flv_live on;
               chunked_transfer_encoding  on; #open 'Transfer-Encoding: chunked' response
               add_header 'Access-Control-Allow-Origin' '*'; #add additional HTTP header
               add_header 'Access-Control-Allow-Credentials' 'true'; #add additional HTTP header
           }

       }
    }

    rtmp {
       server {
           listen 1935;
           server_name 192.168.89.134;

           application myapp {
               live on;
               gop_cache on;
             }
       }
    }

    ffmpeg command :

    ffmpeg -f avfoundation -s 1280x720 -r 30  -i 0 -f flv rtmp://192.168.89.134:1935/myapp/test

    VLC network url :

    http://192.168.89.134:8080/live?port=1935&app=myapp&stream=test

    HTML with flv.js :

    if (flvjs.isSupported()) {
               var videoElement = document.getElementById('videoElement');
               var flvPlayer = flvjs.createPlayer({
                   type: 'flv',
                   'isLive': true,
                   url: 'http://192.168.89.134:8080/live?port=1935&app=myapp&stream=test'
               });
               flvPlayer.attachMediaElement(videoElement);
               flvPlayer.load();
               flvPlayer.play();
           }

    Can anyone tell me why based your experience ? thank you.