Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (65)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (9467)

  • rtsp to youtube streaming not working in windows

    22 juillet 2020, par Martin Haryoko

    ffmpeg run in windows, i use this code for streaming RTSP to youtube streaming :

    


    ffmpeg -f lavfi -t 12:00:00 -rtsp_transport tcp -i rtsp://admin:martin123@103.76.204.2:554/Streaming/Channels/101 -tune zerolatency -g 2 -c:v copy -t 12:00:00 -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/zgzx-7sff-32xz-bbup-a25c


    


    but i got this error :

    


    C:\inetpub\wwwroot\ffmpeg\ffmpeg\bin>ffmpeg -f lavfi -t 12:00:00 -rtsp_transport tcp -i rtsp://admin:martin123@103.76.204.xxx:554/Streaming/Channels/101 -tune zerolatency -g 2 -c:v copy -t 12:00:00 -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/zgzx-7sff-32xz-bbup-a25c
ffmpeg version git-2020-07-20-43a08d9 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.3.1 (GCC) 20200621
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 55.100 / 56. 55.100
  libavcodec     58. 96.100 / 58. 96.100
  libavformat    58. 48.100 / 58. 48.100
  libavdevice    58. 11.101 / 58. 11.101
  libavfilter     7. 87.100 /  7. 87.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
[lavfi @ 000001a7dc40e380] No such filter: 'rtsp://admin:martinxxx'
rtsp://admin:martin123@103.76.204.xxx:554/Streaming/Channels/101: Invalid argument


    


    can u help me ?

    


  • Youtube stream of looping JPG stops randomly

    6 juillet 2021, par timw99

    Hi I'm fairly new at ffmpeg.

    


    I'm currently trying to get a low FPS Youtube stream working over RTMP using a JPG on loop which content gets changed using a NodeJS script periodically. I'm using the following command to stream (variable 3 is my stream key) :

    


    ffmpeg -re -loop 1 -pix_fmt bgr24 -framerate 5 -i img/now.jpg -re -stream_loop -1 -i output.mp3 -f flv -vcodec libx264 -profile:v main -g 60 -keyint_min 30 -b:v 400k -minrate 400k -maxrate 400k -preset ultrafast -tune zerolatency -bufsize 2000k rtmp://a.rtmp.youtube.com/live2/$3


    


    There's multiple things wrong here. The bitrate doesn't actually stay at 400k/s. It just goes to around 200-1000k and then just starts decreasing until the stream stops (usually at around 200-300k bitrate). It still seems like data is being sent (bitrate and current FPS are still updated (though they're very low) and speed goes parabolic. The frame counter itself just stops and Youtube doesn't continue streaming. See example :

    


    frame=  515 fps=5.0 q=12.0 size=    5803kB time=00:01:42.84 bitrate= 462.3kbits/
frame=  518 fps=5.0 q=11.0 size=    5824kB time=00:01:43.41 bitrate= 461.3kbits/
frame=  519 fps=5.0 q=11.0 size=    5838kB time=00:01:43.92 bitrate= 460.2kbits/
frame=  519 fps=5.0 q=11.0 size=    5838kB time=00:01:44.42 bitrate= 457.9kbits/
frame=  519 fps=4.9 q=11.0 size=    5838kB time=00:01:44.92 bitrate= 455.8kbits/
frame=  519 fps=4.9 q=11.0 size=    5838kB time=00:01:45.43 bitrate= 453.6kbits/
frame=  519 fps=4.9 q=11.0 size=    5838kB time=00:01:45.93 bitrate= 451.4kbits/
frame=  519 fps=4.9 q=11.0 size=    5838kB time=00:01:46.44 bitrate= 449.3kbits/
frame=  519 fps=4.8 q=11.0 size=    5838kB time=00:01:46.94 bitrate= 447.2kbits/
frame=  519 fps=4.8 q=11.0 size=    5838kB time=00:01:47.44 bitrate= 445.1kbits/
frame=  519 fps=4.8 q=11.0 size=    5838kB time=00:01:47.95 bitrate= 443.0kbits/
frame=  519 fps=4.8 q=11.0 size=    5838kB time=00:01:48.45 bitrate= 440.9kbits/
frame=  519 fps=4.8 q=11.0 size=    5838kB time=00:01:48.96 bitrate= 438.9kbits/
frame=  519 fps=4.7 q=11.0 size=    5838kB time=00:01:49.46 bitrate= 436.9kbits/
frame=  519 fps=4.7 q=11.0 size=    5838kB time=00:01:49.96 bitrate= 434.9kbits/
frame=  519 fps=4.7 q=11.0 size=    5838kB time=00:01:50.44 bitrate= 433.0kbits/
frame=  519 fps=4.7 q=11.0 size=    5838kB time=00:01:50.95 bitrate= 431.0kbits/
frame=  519 fps=4.7 q=11.0 size=    5838kB time=00:01:51.45 bitrate= 429.1kbits/
frame=  519 fps=4.6 q=11.0 size=    5838kB time=00:01:51.96 bitrate= 427.1kbits/
frame=  519 fps=4.6 q=11.0 size=    5838kB time=00:01:52.46 bitrate= 425.2kbits/
frame=  519 fps=4.6 q=11.0 size=    5838kB time=00:01:52.99 bitrate= 423.2kbits/


    


    I'm using a Digital Ocean VPS to run it, but the same happens on my own desktop which definitely has the hardware for a simple stream like this. Could it have something to do with me replacing the JPG content while trying to stream it ? I get this error every once in a while, but it seems like it fixes itself judging by the info :

    


    [mjpeg @ 0x562824d1fb40] overread 8
[mjpeg @ 0x562824d1fb40] EOI missing, emulating


    


    I can provide more information if it's needed. Thanks in advance.

    


  • Getting artifacts when trying to read video stream from YouTube

    23 février 2012, par givi

    I'm trying to read the video frames from the RTSP stream that I get from YouTube. Here is the link for my test video :

    rtsp ://v8.cache5.c.youtube.com/CiILENy73wIaGQkJlrXMiAG8BxMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp

    If I'm reading frames from the local file - everything is fine, but when read them from a stream I get nothing but lots of artifacts. I've googled around and found out that there might be a problem with UDP packets and switching to TCP may help but I really can't find where it is possible to change this.

    Here is the function for reading a frame :

    bool nextFrame(AVFormatContext *pFormatCtx, AVCodecContext *pCodecCtx, int videoStream, AVFrame *pFrame) {  AVPacket packet;
       int frameFinished = 0;

       while( !frameFinished && av_read_frame(pFormatCtx, &packet) >= 0 ) {
           // Is this a packet from the video stream?
           if( packet.stream_index == videoStream ) {
               // Decode video frame
               avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet);
           }

           // Free the packet that was allocated by av_read_frame
           av_free_packet(&packet);    
          }    
          return frameFinished!=0;  
    }

    I'm also getting lots of error messages in my log :

    [h263 @ 0x7804c00] warning: first frame is no keyframe
    [h263 @ 0x7804c00] illegal ac vlc code at 6x1
    [h263 @ 0x7804c00] Error at MB: 18
    [h263 @ 0x7804c00] concealing 99 DC, 99 AC, 99 MV errors
    [h263 @ 0x7804c00] I cbpy damaged at 10 4
    [h263 @ 0x7804c00] Error at MB: 58
    [h263 @ 0x7804c00] concealing 99 DC, 99 AC, 99 MV errors
    [h263 @ 0x7804c00] I cbpy damaged at 6 6
    [h263 @ 0x7804c00] Error at MB: 78
    [h263 @ 0x7804c00] concealing 76 DC, 76 AC, 76 MV errors
    [h263 @ 0x7804c00] I cbpy damaged at 5 5
    [h263 @ 0x7804c00] Error at MB: 65
    [h263 @ 0x7804c00] concealing 88 DC, 88 AC, 88 MV errors
    [h263 @ 0x7804c00] illegal ac vlc code at 7x5
    [h263 @ 0x7804c00] Error at MB: 67
    [h263 @ 0x7804c00] concealing 86 DC, 86 AC, 86 MV errors

    ...and so on

    edit : this is 99.9% a UDP-TCP problem. I've found this link :

    rtsp ://195.200.199.8/mpeg4/media.amp

    This is some test camera available online. It streams with artifacts. However if it has get parameter 'tcp' and if I use this

    rtsp ://195.200.199.8/mpeg4/media.amp ?tcp

    everything works without artifacts.

    So to correct my question : is there any way to force YouTube or ffmpeg to use TCP ?