Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (108)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (9894)

  • kmsgrab : Use GetFB2 if available

    5 juillet 2020, par Mark Thompson
    kmsgrab : Use GetFB2 if available
    

    The most useful feature here is the ability to automatically extract the
    framebuffer format and modifiers. It also makes support for multi-plane
    framebuffers possible, though none are added to the format table in this
    patch.

    This requires libdrm 2.4.101 (from April 2020) to build, so it includes a
    configure check to allow compatibility with existing distributions. Even
    with libdrm support, it still won't do anything at runtime if you are
    running Linux < 5.7 (before June 2020).

    • [DH] configure
    • [DH] libavdevice/kmsgrab.c
  • FFMPEG Transcode VP8 to H264 from rtp stream

    5 août 2020, par Akil

    I have a rtp stream, the server is receiving audio and video on 2 separate ports, the video is in VP8 and the audio is in Opus.

    &#xA;

    My ultimate goal is to convert the RTP stream to RTMP to stream to Youtube Live, but Youtube Live supports only H264 https://developers.google.com/youtube/v3/live/guides/ingestion-protocol-comparison so first i'm looking to transcode my RTP stream to H264.

    &#xA;

    I've run the below command

    &#xA;

    ffmpeg -analyzeduration 300M -probesize 300M -protocol_whitelist file,udp,rtp -i test.sdp -c:v libx264  -pix_fmt yuv420p -r 25 -c:a aac -f flv youtube_rtmp_url&#xA;

    &#xA;

    My sdp file

    &#xA;

    v=0&#xA;o=- 0 0 IN IP4 127.0.0.1&#xA;s=RTP Video&#xA;c=IN IP4 127.0.0.1&#xA;t=0 0&#xA;a=tool:libavformat 55.2.100&#xA;m=audio 50000 RTP/AVP 111&#xA;a=rtpmap:111 OPUS/48000&#xA;m=video 50002 RTP/AVP 100&#xA;a=rtpmap:100 VP8/90000&#xA;a=fmtp:100 packetization-mode=1&#xA;

    &#xA;

    Where 50000 and 50002 are the ports which receive the rtp video and audio.

    &#xA;

    Log output :

    &#xA;

    ffmpeg version 4.3-3ubuntu1~18.04.sav0 Copyright (c) 2000-2020 the FFmpeg developers&#xA;built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)&#xA;configuration: --prefix=/usr --extra-version=&#x27;3ubuntu1~18.04.sav0&#x27; --toolchain=hardened &#xA;--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 &#xA;--enable-gpl --disable-stripping --enable-avresample --disable-filter=resample &#xA;--enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray &#xA;--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d &#xA;--enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi &#xA;--enable-libgme               &#xA;--enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg &#xA;--enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg &#xA;--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr &#xA;--enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame &#xA;--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp &#xA;--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi &#xA;--enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 -- &#xA;enable-pocketsphinx --enable-crystalhd --enable-libmfx --enable-libdc1394 --enable-libdrm -- &#xA;enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 -- &#xA;enable-shared&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;  [sdp @ 0x5649eef4b8c0] Could not find codec parameters for stream 1 (Video: vp8, yuv420p): &#xA;  unspecified size&#xA;&#xA;  Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;    Input #0, sdp, from &#x27;test.sdp&#x27;:&#xA;     Metadata:&#xA;       title           : RTP Video&#xA;       Duration: N/A, start: 0.000000, bitrate: N/A&#xA;         Stream #0:0: Audio: opus, 48000 Hz, mono, fltp&#xA;         Stream #0:1: Video: vp8, yuv420p, 90k tbr, 90k tbn, 90k tbc&#xA;      [rtmp @ 0x5649eefd87c0] Cannot open connection tcp://a.rtmp.youtube.com:1935&#xA;      rtmp://a.rtmp.youtube.com/live2/_______: Immediate exit requested&#xA;

    &#xA;

    I've increased 'analyzeduration' and 'probesize' values, error doesn't change.

    &#xA;

  • Recording Camlink 4k feed with ffmpeg

    5 août 2020, par Nitzan Yogev

    its my first question ! awesome !&#xA;so im new to python, and im working on some program for work&#xA;I have the Elgato CamLink 4k connected to Sony A7III.&#xA;im looking for the best way to record a video file from the camlink feed using python&#xA;I know that ffmpeg is a good way to record webcam feed. but im having trouble with it&#xA;here is my code.

    &#xA;

        import ffmpeg&#xA;&#xA;(&#xA;    ffmpeg&#xA;    .input(&#x27;0&#x27;, format=&#x27;avfoundation&#x27;, pix_fmt=&#x27;nv12&#x27;, framerate=25)&#xA;    .output(&#x27;test.mp4&#x27;, pix_fmt=&#x27;nv12&#x27;, vframes=125)&#xA;    .overwrite_output()&#xA;    .run()&#xA;)&#xA;

    &#xA;

    im using this ffmpeg-python module

    &#xA;

    im getting a output file with only the first frame and nothing more

    &#xA;

    here is what im getting in the run terminal

    &#xA;

    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Apple clang version 11.0.3 (clang-1103.0.32.62)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;[avfoundation @ 0x7ff043814600] Stream #0: not enough frames to estimate rate; consider increasing probesize&#xA;Input #0, avfoundation, from &#x27;0&#x27;:&#xA;  Duration: N/A, start: 6247.240967, bitrate: N/A&#xA;    Stream #0:0: Video: rawvideo (NV12 / 0x3231564E), nv12, 3840x2160, 1000k tbr, 1000k tbn, 1000k tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[mp4 @ 0x7ff043856c00] Frame rate very high for a muxer not efficiently supporting it.&#xA;Please consider specifying a lower framerate, a different muxer or -vsync 2&#xA;[libx264 @ 0x7ff043868000] MB rate (32400000000) > level limit (16711680)&#xA;[libx264 @ 0x7ff043868000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x7ff043868000] profile High, level 6.2, 4:2:0, 8-bit&#xA;[libx264 @ 0x7ff043868000] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, mp4, to &#x27;test.mp4&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), nv12, 3840x2160, q=-1--1, 1000k fps, 1000k tbn, 1000k tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;frame=  125 fps= 30 q=-1.0 Lsize=     788kB time=00:00:00.00 bitrate=52509528.5kbits/s dup=124 drop=1 speed=2.99e-05x    &#xA;video:786kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.290685%&#xA;[libx264 @ 0x7ff043868000] frame I:1     Avg QP:19.49  size:588332&#xA;[libx264 @ 0x7ff043868000] frame P:31    Avg QP:20.24  size:  4202&#xA;[libx264 @ 0x7ff043868000] frame B:93    Avg QP:33.28  size:   922&#xA;[libx264 @ 0x7ff043868000] consecutive B-frames:  0.8%  0.0%  0.0% 99.2%&#xA;[libx264 @ 0x7ff043868000] mb I  I16..4:  2.8% 86.0% 11.3%&#xA;[libx264 @ 0x7ff043868000] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  6.9%  0.3%  0.5%  0.0%  0.0%    skip:92.3%&#xA;[libx264 @ 0x7ff043868000] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  4.4%  0.0%  0.0%  direct: 0.0%  skip:95.6%  L0:19.0% L1:81.0% BI: 0.0%&#xA;[libx264 @ 0x7ff043868000] 8x8 transform intra:86.0% inter:88.3%&#xA;[libx264 @ 0x7ff043868000] coded y,uvDC,uvAC intra: 93.8% 87.1% 55.6% inter: 0.1% 1.5% 0.0%&#xA;[libx264 @ 0x7ff043868000] i16 v,h,dc,p:  9% 10%  9% 72%&#xA;[libx264 @ 0x7ff043868000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 14% 34%  6%  5%  5%  6%  7%  7%&#xA;[libx264 @ 0x7ff043868000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 18% 16%  9%  8%  7%  8%  7%  6%&#xA;[libx264 @ 0x7ff043868000] i8c dc,h,v,p: 48% 26% 20%  6%&#xA;[libx264 @ 0x7ff043868000] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0x7ff043868000] ref P L0: 82.6%  0.1% 14.0%  3.3%&#xA;[libx264 @ 0x7ff043868000] ref B L0: 99.8%  0.2%  0.0%&#xA;[libx264 @ 0x7ff043868000] ref B L1: 76.2% 23.8%&#xA;[libx264 @ 0x7ff043868000] kb/s:51475456.00&#xA;

    &#xA;

    if im plugging the camlink off I get a video from my macbook internal camera. so I know this should somehow work

    &#xA;