Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (28)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (6171)

  • avformat/libsrt : fix race condition with libsrt_network_wait_fd and epoll

    31 janvier 2021, par Marton Balint
    avformat/libsrt : fix race condition with libsrt_network_wait_fd and epoll
    

    The way SRT's async / epoll-based IO works is that the event status is stored
    in the epoll containers. That is, if an event occurs on an SRT socket, and that
    SRT socket isn't part of any epoll container, then that event is lost. If we
    later add that socket to an epoll container, we still won't receive the event
    even if it wasn't serviced.

    Therefore we create the epoll and put the fd into it right after the connection
    is established.

    See http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2021-January/275334.html

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavformat/libsrt.c
  • FFMPEG decode from RTP dump file into mp3 file

    5 février 2021, par pingvincible

    I'm trying to save RTP stream into mp3 file. I use this command :

    &#xA;

    ffmpeg -loglevel debug -protocol_whitelist file -f rtp -i microphone.rtpdump -f mp3 microphone.mp3&#xA;

    &#xA;

    I get this result :

    &#xA;

    user@pc:~/$ ffmpeg-amrnb -loglevel debug -protocol_whitelist file -f rtp -i microphone.rtpdump -f mp3 microphone.mp3&#xA;ffmpeg version N-100958-g4f3d8cb554 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)&#xA;  configuration: --enable-gpl --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-nonfree --enable-version3&#xA;  libavutil      56. 64.100 / 56. 64.100&#xA;  libavcodec     58.120.100 / 58.120.100&#xA;  libavformat    58. 65.101 / 58. 65.101&#xA;  libavdevice    58. 11.103 / 58. 11.103&#xA;  libavfilter     7.102.100 /  7.102.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Splitting the commandline.&#xA;Reading option &#x27;-loglevel&#x27; ... matched as option &#x27;loglevel&#x27; (set logging level) with argument &#x27;debug&#x27;.&#xA;Reading option &#x27;-protocol_whitelist&#x27; ... matched as AVOption &#x27;protocol_whitelist&#x27; with argument &#x27;file&#x27;.&#xA;Reading option &#x27;-f&#x27; ... matched as option &#x27;f&#x27; (force format) with argument &#x27;rtp&#x27;.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;microphone.rtpdump&#x27;.&#xA;Reading option &#x27;-f&#x27; ... matched as option &#x27;f&#x27; (force format) with argument &#x27;mp3&#x27;.&#xA;Reading option &#x27;microphone.mp3&#x27; ... matched as output url.&#xA;Finished splitting the commandline.&#xA;Parsing a group of options: global .&#xA;Applying option loglevel (set logging level) with argument debug.&#xA;Successfully parsed a group of options.&#xA;Parsing a group of options: input url microphone.rtpdump.&#xA;Applying option f (force format) with argument rtp.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: microphone.rtpdump.&#xA;[rtp @ 0x556947200580] Unable to receive RTP payload type 97 without an SDP file describing it&#xA;microphone.rtpdump: Invalid data found when processing input&#xA;

    &#xA;

    It looks like that microphone.rtpdump file format is correct as ffmpeg can find RTP payload type 97. The problem is that I don't understand how to use SDP file in this situation.

    &#xA;

    I have an SDP file for this payload type which I use, when I send data over network. It looks like this :

    &#xA;

    v=0&#xA;o=- 0 0 IN IP4 127.0.0.1&#xA;s=No Name&#xA;c=IN IP4 127.0.0.1&#xA;t=0 0&#xA;a=tool:libavformat 58.65.101&#xA;m=audio 1234 RTP/AVP 97&#xA;b=AS:12&#xA;a=rtpmap:97 AMR/8000/1&#xA;a=fmtp:97 octet-align=1&#xA;

    &#xA;

    And now I want to decode RTP stream from file, not by receiving it from network.

    &#xA;

    How to adapt my SDP file to read RTP stream from file ?

    &#xA;

    UPDATE : My rtpdump file is not a real rtpdump file format. It is just payloads from UDP packets written into file without any additional headers.

    &#xA;

  • vstack results in out of sync audio

    12 février 2021, par Arlo

    When I stack two videos using vstack, the result has audio sync issues for the bottom video.

    &#xA;

    My starting point : four separate RTP tracks captured from a 2 person video chat :

    &#xA;

     Actor1Video.webm,&#xA; Actor1Audio.webm,&#xA; Actor2Video.webm,&#xA; Actor2Audio.webm&#xA;

    &#xA;

    I use vstack to put Actor1 on top and Actor2 on bottom :

    &#xA;

    ffmpeg -i Actor1Video.webm -i Actor2Video.webm -i Actor1Audio.webm -i Actor2Audio.webm  -filter_complex "[1][0]scale2ref=oh*mdar:ih[2nd][ref];[ref][2nd]vstack=inputs=2[v];[2:a][3:a]join=inputs=2:channel_layout=stereo:map=0.0-FL|1.0-FR[a]" -c:a libfdk_aac -map "[v]" -map "[a]"  -vsync 2 ActorsCombined.mp4&#xA;

    &#xA;

    Here's the log :

    &#xA;

    ffmpeg version git-2021-02-08-89f78dd Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with Apple clang version 11.0.3 (clang-1103.0.32.62)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-89f78dd_6 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-demuxer=dash --disable-libjack --disable-indev=jack --enable-opencl --enable-videotoolbox --disable-htmlpages --enable-libfdk-aac --enable-nonfree&#xA;  libavutil      56. 64.100 / 56. 64.100&#xA;  libavcodec     58.121.100 / 58.121.100&#xA;  libavformat    58. 67.100 / 58. 67.100&#xA;  libavdevice    58. 11.103 / 58. 11.103&#xA;  libavfilter     7.103.100 /  7.103.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Input #0, matroska,webm, from &#x27;Actor1Video.webm&#x27;:&#xA;  Metadata:&#xA;    title           : FFmpeg&#xA;    ENCODER         : Lavf58.29.100&#xA;  Duration: 447576:28:17.41, start: 1611273978.135000, bitrate: N/A&#xA;  Stream #0:0: Video: vp8, yuv420p(tv, bt470bg/unknown/unknown, progressive), 1280x720, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      DURATION        : 447576:28:17.408999&#xA;Input #1, matroska,webm, from &#x27;Actor2Video.webm&#x27;:&#xA;  Metadata:&#xA;    title           : FFmpeg&#xA;    ENCODER         : Lavf58.29.100&#xA;  Duration: 447576:28:17.45, start: 1611273978.257000, bitrate: N/A&#xA;  Stream #1:0: Video: vp8, yuv420p(tv, bt470bg/unknown/unknown, progressive), 320x180, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      DURATION        : 447576:28:17.453999&#xA;Input #2, matroska,webm, from &#x27;Actor1Audio.webm&#x27;:&#xA;  Metadata:&#xA;    title           : FFmpeg&#xA;    ENCODER         : Lavf58.29.100&#xA;  Duration: 447576:28:17.49, start: 1611273978.112000, bitrate: N/A&#xA;  Stream #2:0: Audio: opus, 48000 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      DURATION        : 447576:28:17.492000&#xA;Input #3, matroska,webm, from &#x27;Actor2Audio.webm&#x27;:&#xA;  Metadata:&#xA;    title           : FFmpeg&#xA;    ENCODER         : Lavf58.29.100&#xA;  Duration: 447576:28:17.45, start: 1611273978.208000, bitrate: N/A&#xA;  Stream #3:0: Audio: opus, 48000 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      DURATION        : 447576:28:17.447999&#xA;File &#x27;ActorsCombined.mp4&#x27; already exists. Overwrite? [y/N] y&#xA;Stream mapping:&#xA;  Stream #0:0 (vp8) -> scale2ref:ref&#xA;  Stream #1:0 (vp8) -> scale2ref:default&#xA;  Stream #2:0 (opus) -> join:input0&#xA;  Stream #3:0 (opus) -> join:input1&#xA;  vstack -> Stream #0:0 (libx264)&#xA;  join -> Stream #0:1 (libfdk_aac)&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x7ff0c1831a00] using SAR=1/1&#xA;[libx264 @ 0x7ff0c1831a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x7ff0c1831a00] profile High, level 4.0, 4:2:0, 8-bit&#xA;[libx264 @ 0x7ff0c1831a00] 264 - core 161 r3043 59c0609 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - 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=12 lookahead_threads=2 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;ActorsCombined.mp4&#x27;:&#xA;  Metadata:&#xA;    title           : FFmpeg&#xA;    encoder         : Lavf58.67.100&#xA;  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1280x1440 [SAR 1:1 DAR 8:9], q=2-31, 29.97 fps, 30k tbn (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.121.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;  Stream #0:1: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 139 kb/s (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.121.100 libfdk_aac&#xA;frame=36626 fps= 15 q=-1.0 Lsize=  389420kB time=00:21:59.38 bitrate=2417.9kbits/s dup=0 drop=34791 speed=0.535x    &#xA;video:365641kB audio:22446kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.343645%&#xA;[libx264 @ 0x7ff0c1831a00] frame I:158   Avg QP:15.51  size:107833&#xA;[libx264 @ 0x7ff0c1831a00] frame P:9670  Avg QP:18.71  size: 25824&#xA;[libx264 @ 0x7ff0c1831a00] frame B:26798 Avg QP:24.90  size:  4018&#xA;[libx264 @ 0x7ff0c1831a00] consecutive B-frames:  0.6%  5.2%  0.6% 93.5%&#xA;[libx264 @ 0x7ff0c1831a00] mb I  I16..4: 13.2% 75.5% 11.3%&#xA;[libx264 @ 0x7ff0c1831a00] mb P  I16..4:  1.2%  3.6%  0.2%  P16..4: 43.1% 10.4%  5.9%  0.0%  0.0%    skip:35.6%&#xA;[libx264 @ 0x7ff0c1831a00] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 28.3%  0.7%  0.1%  direct: 2.3%  skip:68.5%  L0:45.1% L1:53.6% BI: 1.3%&#xA;[libx264 @ 0x7ff0c1831a00] 8x8 transform intra:71.6% inter:85.4%&#xA;[libx264 @ 0x7ff0c1831a00] coded y,uvDC,uvAC intra: 50.4% 77.2% 47.8% inter: 6.9% 17.0% 3.8%&#xA;[libx264 @ 0x7ff0c1831a00] i16 v,h,dc,p: 37% 28% 14% 22%&#xA;[libx264 @ 0x7ff0c1831a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 17% 25%  4%  6%  7%  5%  6%  5%&#xA;[libx264 @ 0x7ff0c1831a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 24% 16%  4%  6%  5%  4%  4%  2%&#xA;[libx264 @ 0x7ff0c1831a00] i8c dc,h,v,p: 60% 16% 17%  6%&#xA;[libx264 @ 0x7ff0c1831a00] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0x7ff0c1831a00] ref P L0: 63.1%  9.9% 20.5%  6.6%&#xA;[libx264 @ 0x7ff0c1831a00] ref B L0: 90.0%  8.9%  1.1%&#xA;[libx264 @ 0x7ff0c1831a00] ref B L1: 94.7%  5.3%&#xA;[libx264 @ 0x7ff0c1831a00] kb/s:2270.36&#xA;

    &#xA;

    The resulting file begins in sync, but after a few minutes the bottom video is suddenly out of sync with its audio.

    &#xA;

    The strange thing is, if I merge these videos with their audio separately, without using vstack, there's no sync issue :

    &#xA;

    ffmpeg -i Actor1Video.webm -i Actor1Audio.webm -vsync 2 Actor1.mp4 &amp;&amp;&#xA;ffmpeg -i Actor2Video.webm -i Actor2Audio.webm -vsync 2 Actor2.mp4&#xA;

    &#xA;

    When I do the above, the two videos are perfectly in sync. But if I take these two mp4s and stack them, I have the same issue where the bottom video goes out of sync.

    &#xA;

    Any suggestions ?