Recherche avancée

Médias (91)

Autres articles (30)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

Sur d’autres sites (3535)

  • ffmpeg fails to capture desktop when UAC prompt appears

    10 mai 2017, par kristin

    I am trying to stream desktop to .avi file using ffmpeg static version 3.2.4 from https://ffmpeg.zeranoe.com/builds/, but streaming fails when UAC prompt appears.

    Command line that I am trying to use :

    ffmpeg.exe -f gdigrab -analyzeduration 100M -probesize 100M -i desktop -framerate 10 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -x264opts crf=23 -r 10 ".avi"

    Output that I got :

     ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-d3d11va --enable-dxva2
    --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontcon
    fig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libb
    luray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --e
    nable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-l
    ibopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libope
    njpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --en
    able-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enabl
    e-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable
    -libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --e
    nable-libzimg --enable-lzma --enable-zlib
     libavutil      55. 34.101 / 55. 34.101
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.101 / 57. 56.101
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    [gdigrab @ 00000000003684a0] Capturing whole desktop as 1654x927x32 at (0,0)
    Input #0, gdigrab, from 'desktop':
     Duration: N/A, start: 1494400135.425894, bitrate: 1470470 kb/s
       Stream #0:0: Video: bmp, bgra, 1654x927, 1470470 kb/s, 29.97 fps, 1000k tbr,
    1000k tbn, 1000k tbc
    [libx264 @ 000000000036b3e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    AVX
    [libx264 @ 000000000036b3e0] profile Constrained Baseline, level 4.0
    Output #0, avi, to 'C:\New folder\test.avi':
     Metadata:
       ISFT            : Lavf57.56.101
       Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1654x926, q
    =-1--1, 10 fps, 10 tbn, 10 tbc
       Metadata:
         encoder         : Lavc57.64.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream mapping:
     Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=   12 fps=0.0 q=0.0 size=       6kB time=00:00:00.00 bitrate=N/A dup=0 dro
    frame=   18 fps= 17 q=12.0 size=     309kB time=00:00:00.50 bitrate=5067.3kbits/
    frame=   23 fps= 15 q=14.0 size=     624kB time=00:00:01.00 bitrate=5113.2kbits/
    frame=   29 fps= 12 q=13.0 size=     757kB time=00:00:01.60 bitrate=3877.8kbits/
    frame=   35 fps= 12 q=12.0 size=     849kB time=00:00:02.20 bitrate=3161.9kbits/
    frame=   40 fps= 12 q=15.0 size=     914kB time=00:00:02.70 bitrate=2771.9kbits/
    frame=   44 fps= 11 q=17.0 size=     992kB time=00:00:03.20 bitrate=2538.6kbits/
    frame=   49 fps= 11 q=11.0 size=    1069kB time=00:00:03.70 bitrate=2366.7kbits/
    frame=   55 fps= 11 q=11.0 size=    1186kB time=00:00:04.40 bitrate=2207.5kbits/
    [gdigrab @ 00000000003684a0] Failed to capture image (error 5)
    desktop: I/O error
    frame=   59 fps= 10 q=10.0 size=    1197kB time=00:00:04.80 bitrate=2043.4kbits/
    frame=   59 fps= 10 q=-1.0 Lsize=    1220kB time=00:00:06.10 bitrate=1638.6kbits
    /s dup=0 drop=99 speed=1.04x
    video:1213kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
    overhead: 0.577492%
    [libx264 @ 000000000036b3e0] frame I:1     Avg QP:20.00  size:249076
    [libx264 @ 000000000036b3e0] frame P:58    Avg QP:13.95  size: 17124
    [libx264 @ 000000000036b3e0] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 000000000036b3e0] mb P  I16..4:  1.8%  0.0%  0.0%  P16..4: 14.1%  0.0
    %  0.0%  0.0%  0.0%    skip:84.2%
    [libx264 @ 000000000036b3e0] coded y,uvDC,uvAC intra: 31.5% 13.5% 12.4% inter: 7
    .7% 2.1% 1.5%
    [libx264 @ 000000000036b3e0] i16 v,h,dc,p: 72% 25%  2%  1%
    [libx264 @ 000000000036b3e0] i8c dc,h,v,p: 71% 16% 12%  0%
    [libx264 @ 000000000036b3e0] kb/s:1629.20

    In output can see message :

    [gdigrab @ 00000000003684a0] Failed to capture image (error 5)
    desktop: I/O error

    this is written to output when UAC prompt appears.

    Am I doing something wrong or missing in command line ?
    Have to stream desktop using ffmpeg and don`t fail when UAC prompt appears ?

  • mp3 and multiple image convert to mp4 [on hold]

    16 mai 2017, par Henrik C Wiberg

    I need some guidance to convert an mp3 audio file, along with multiple photos to an mp4 file, using php/laravel.

    It must end with a mp4 file with a slideshow of images along with an audio file.

    How do you recommend me to begin the task ?
    I have this Json :

    {
    - data [
    {
       id: 1,
       name: "item 1",
       image: "image_1.jpg",
       start: "2017-01-01T02:00:00",
       end: "2017-01-01T02:30:00"
     },
     {
       id": 2,
       name: "item 2",
       image: "image_2.jpg",
       start: "2017-01-01T02:31:00",
       end: "2017-01-01T02:50:00"
     },
     {
       id": 3,
       name: "item 3",
       image: "image_3.jpg",
       start: "2017-01-01T02:51:00",
       end: "2017-01-01T03:00:00"
     }
    ],
    - meta {
      audiofile: {
       mp3: 'example.com/audio/audiofile.mp3',
       start: "2017-01-01T02:00:00",
       end: "2017-01-01T03:00:00"  
    }
    }  

    This json must be converted to one mp4 file, where image has to be placed and displayed on a timeline while ’audiofile.mp3’ is playing.

    Or do you know some code samples I can see ? :-)

  • After transcoding using ffmpeg, I found audio bitrate is not the value I expected

    16 mai 2017, par penny

    I used ffmpeg to transcode some files into new format and with certain parameters. After transcoding, I found some output file’s metadata is not what I expected, the output value is not the same with I set in the cmd line.

    Before transcoding I check the media info of the inputfile :

    ffmpeg -i dz2015082000010.mpg

    ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
    configuration : —enable-static —enable-memalign-hack —enable-libx264
    —enable-gpl —enable-pthreads —enable-version3 —enable-avisynth —enable-bzlib —enable-iconv —enable-zlib —enable-nonfree —extra-cflags=-I/usr/local/include/ —extra-ldflags=-L/usr/local/lib —enable-debug=3 —disable-optimizations —enable-nonfree —enable-libmp3lame libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 /
    57. 56.101 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 /
    54. 1.100 Input #0, mpeg, from ’dz2015082000010.mpg’ : Duration : 00:01:49.30, start : 0.685389, bitrate : 15723 kb/s
    Stream #0:0[0x1e0] : Video : mpeg2video (Main), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr,
    90k tbn, 50 tbc
    Stream #0:1[0x1c0] : Audio : mp2, 48000 Hz, stereo, s16p, 384 kb/s At least one output file must be specified

    Next, transcoding with the cmd line :

    ffmpeg -i dz2015082000010.mpg -vcodec libx264 -b:v 4000k -s 1920x1080 -r 25 -g 25  -vprofile main -acodec aac -strict -2 -b:a 128k -ac 2 -ar 44100 -y output.ts

    After transcoding, I check the media info of the output file :

    ffmpeg -i output.ts    

    ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.8.3 (GCC) 20140911 (Red Hat
    4.8.3-9) configuration : —enable-static —enable-memalign-hack —enable-libx264 —enable-gpl —enable-pthreads —enable-version3 —enable-avisynth —enable-bzlib —enable-iconv —enable-zlib —enable-nonfree —extra-cflags=-I/usr/local/include/ —extra-ldflags=-L/usr/local/lib —enable-debug=3 —disable-optimizations —enable-nonfree —enable-libmp3lame libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101
    / 57. 64.101 libavformat 57. 56.101 / 57. 56.101
    libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100
    / 6. 65.100 libswscale 4. 2.100 / 4. 2.100
    libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100
    / 54. 1.100 Input #0, mpegts, from ’full-2.ts’ : Duration :
    00:01:49.30, start : 1.456778, bitrate : 4455 kb/s Program 1
    Metadata :
    service_name : Service01
    service_provider : FFmpeg
    Stream #0:0[0x100] : Video : h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr,
    90k tbn, 50 tbc
    Stream #0:1[0x101] : Audio : aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 4 kb/s At least one output file must be
    specified

    I don’t know why the audio bitrate is changed to 4 kb/s after transcoding, I set the value with -b:a 128k before, anybody can help me ? BTW, the output file sounds all right.