Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (72)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (11666)

  • Avconv / FFmpeg - VOB to mp4

    26 septembre 2017, par 0ne_Up

    I am using avconv/ffmpeg to convert VOB files copied from a DVD to mp4. The command I’m using is

    avconv -i "concat:1.VOB|2.VOB|3.VOB|4.VOB|5.VOB" -c:v libx264 -crf 28 -c:a libvo_aacenc -b:a 128k output.mp4

    This is working, but I’ve seen many different commands using different kinds of arguments, and I’m wondering if this is the "right" way to do it, and if someone has suggestions about which arguments I should (not) use and why (not). The file should be compatible with mobile devices and smart TV’s. I’ve also seen "libmp3lame" being used as audio codec, is it better to use AAC or MP3 ?

    The file size is 732.6MB for a video lasting 00:58:37, is this reasonable ?
    Maybe I can use something to reduce the filesize further without too much quality loss ?

    I’m also confused about the difference between Avconv and FFmpeg. I thought that FFmpeg is deprecated and Avconv is "newer and better", I have two installations of Linux Mint, when I run "avconv —help" on a 17.1 installations I see

    avconv version 9.20-6:9.20-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers

    And when I run the same command on a 18.1 installation I see

    ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers

    Is avconv newer than ffmpeg or is it just a different name for the same thing ?

  • ffmpeg fails to capture desktop when UAC prompt appears

    12 juillet 2019, 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 ?

  • ffmpeg throws error while converting wav to flac

    24 août 2017, par user3815252

    I am working on a research project and it requires me to first record audios from browser (using getuserMedia) and save them in a wav format. My code looks like this :

    navigator.mediaDevices.getUserMedia({ audio: true }).then(stream => {
           const chunks = [];
           const recorder = new MediaRecorder(stream);
           recorder.ondataavailable = e => {
               chunks.push(e.data);
               if (recorder.state == 'inactive') {
                   $scope.blob = new Blob(chunks, { type: 'audio/wav' });
                   $scope.file = new File([$scope.blob], "myFile.wav", {type: 'audio/wav', lastModified: Date.now()});

                   $scope.blobUrl = URL.createObjectURL($scope.blob);
                   createAudioElement($scope.blobUrl);
               }
           };
           recorder.start(1000);
           $scope.stop = function() {
               recorder.stop();    
           };

       }).catch(console.error);

    After saving $scope.file on filesystem, I convert it to flac format using ffmpeg utility ([https://www.ffmpeg.org/).

    Now my problem is the ffmpeg tool sometimes gives me error saying that this file cannot be recognized as wav file. The exact output of ffmpeg tool is :

     ffmpeg-user: Wav to Flac conversion: Invalid data found when processing input

     ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 7.0.2 (clang-700.1.81)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.3 --enable-shared
     --enable-pthreads --enable-gpl --enable-version3
     --enable-hardcoded-tables
     --enable-avresample --cc=clang --host-cflags= --host-ldflags=
     --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl

     --disable-lzma --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100

    Does anyone know why am I getting this error ?