Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (65)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (8625)

  • What is solution for ffmpeg rtsp output stuck

    1er février 2016, par Long Bai

    I’m using ffmpeg in qt-mingw.
    I developed the sample program to write to the rtsp stream.
    It is working well when the rtsp url is regular.
    But it is stuck when the rtsp url doesn’t exit. For example, when i try to write to "rtsp ://noserver", my program is stuck on avformat_write_header().
    Is there any solution for this problem ?
    Thanks for your reply.

  • How to use ffmpeg-python library to download a Twitch VOD with a link retrieved using the streamlink library

    28 octobre 2020, par Daniel Norfolk

    This is the whole code, for easy reference :

    


    import urllib.request
import streamlink
import ffmpeg
stream_url = streamlink.streams("https://www.twitch.tv/videos/783301562")['best'].url
print(stream_url)

try:
    urllib.request.urlretrieve(stream_url, "vod.m3u8")
except Exception as e:
    print(e)

stream = (
    ffmpeg
    .input('vod.m3u8')
    .output('output.mp4')
    .run
)
print(stream)


    


    I am looking at a way of downloading Twitch VODs. I started with the link to a VOD : https://www.twitch.tv/videos/783301562 . I then used the code :

    


    stream_url = streamlink.streams("https://www.twitch.tv/videos/783301562")['best'].url
print(stream_url)


    


    This gave me a new link which, when I go to this link it downloaded a file with a '.m3u8' extension. This link is : https://dqrpb9wgowsf5.cloudfront.net/ab3654a5992fbfa52ccb_briziana_40240109614_1603789265/chunked/index-dvr.m3u8

    


    From here, I first tried to put the link directly into the following code :

    


    stream = (
    ffmpeg
    .input(stream_url)
    .output('output.mp4')
    .run
)
print(stream)


    


    This didn't output any mp4 file but did give the output :

    


    


    >

    


    


    I then added the following code to download the file, I also change the ffmpeg code to use the downloaded file rather then the url :

    


    try:
    urllib.request.urlretrieve(stream_url, "vod.m3u8")
except Exception as e:
    print(e)

stream = (
    ffmpeg
    .input('vod.m3u8')
    .output('output.mp4')
    .run
)
print(stream)


    


    This gave the same result, no mp4 file with the same output as above. Any help would be greatly appreciated !

    


  • FFmpeg : Invalid buffer size when streaming to Twitch

    1er décembre 2020, par user1965074

    I am streaming a 2560x1440 @ 24FPS to Twitch with this command :

    


    ffmpeg \
>     -f rawvideo \
>     -vcodec rawvideo \
>     -s 2560x1440 \
>     -pix_fmt bgr24 \
>     -r "24" \
>     -i 20200818-074700.mp4 \
>     -f flv \
>     -vcodec libx264 \
>     -profile:v main \
>     -g 48 \
>     -keyint_min 24 \
>     -b:v 4500k \
>     -minrate 4500k \
>     -maxrate 4500k \
>     -pix_fmt yuv420p \
>     -preset ultrafast \
>     -tune zerolatency \
>     -threads 0 \
>     -bufsize 4500k \
>     rtmp://live-arn.twitch.tv/app/{KEY}


    


    It fails with message Invalid buffer size, packet size 9137374 < expected frame_size 11059200. Given the error message, I have tried decreasing and increasing the 4500k in all places of the command as explained in this answer but it does not help.

    


    Here is the full log

    


    ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[rawvideo @ 0xfb3120] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from '20200818-074700.mp4':
  Duration: 00:00:02.96, start: 0.000000, bitrate: 2118169 kb/s
    Stream #0:0: Video: rawvideo (BGR[24] / 0x18524742), bgr24, 2560x1440, 2123366 kb/s, 24 tbr, 24 tbn, 24 tbc
[libx264 @ 0xfbdfc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0xfbdfc0] profile Constrained Baseline, level 5.0
[libx264 @ 0xfbdfc0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=22 lookahead_threads=16 sliced_threads=1 slices=22 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=48 keyint_min=24 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=4500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4500 vbv_bufsize=4500 nal_hrd=none filler=0 ip_ratio=1.40 aq=0
Output #0, flv, to 'rtmp://live-arn.twitch.tv/app/{KEY}':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 2560x1440, q=-1--1, 4500 kb/s, 24 fps, 1k tbn, 24 tbc
    Metadata:
      encoder         : Lavc56.60.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0xfbdfc0] VBV underflow (frame 0, -1827312 bits)
Truncating packet of size 11059200 to 9137375me=00:00:02.33 bitrate=6051.7kbits/s    
[rawvideo @ 0xfbca80] Invalid buffer size, packet size 9137374 < expected frame_size 11059200
Error while decoding stream #0:0: Invalid argument
[flv @ 0xfbd020] Failed to update header with correct duration.
[flv @ 0xfbd020] Failed to update header with correct filesize.
frame=   70 fps= 54 q=52.0 Lsize=    2029kB time=00:00:02.91 bitrate=5698.4kbits/s    
video:2026kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.152412%
[libx264 @ 0xfbdfc0] frame I:2     Avg QP:47.09  size:381468
[libx264 @ 0xfbdfc0] frame P:68    Avg QP:51.00  size: 19279
[libx264 @ 0xfbdfc0] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0xfbdfc0] mb P  I16..4: 14.1%  0.0%  0.0%  P16..4:  2.7%  0.0%  0.0%  0.0%  0.0%    skip:83.2%
[libx264 @ 0xfbdfc0] coded y,uvDC,uvAC intra: 8.2% 94.6% 83.0% inter: 0.0% 3.2% 0.7%
[libx264 @ 0xfbdfc0] i16 v,h,dc,p: 87%  1% 12%  0%
[libx264 @ 0xfbdfc0] i8c dc,h,v,p: 98%  1%  2%  0%
[libx264 @ 0xfbdfc0] kb/s:5688.52