Recherche avancée

Médias (91)

Autres articles (111)

  • 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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • 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 (...)

Sur d’autres sites (5404)

  • ffmpeg conversion fails for 640x360 video size

    12 novembre 2015, par user3132858

    Can somebody advice how I can fix the ffmpeg error below :

    Array ( [0] => ffmpeg version 2.0.1 Copyright (c) 2000-2013 the FFmpeg developers
    [1] => built on Nov 11 2015 12:17:12 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16) [2]
    => configuration: --enable-gpl --enable-version3 --enable-shared --enable-nonfree
    --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb
    --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx
    --enable-libx264 --enable-libxvid [3] => libavutil 52. 38.100 / 52. 38.100 [4]
    => libavcodec 55. 18.102 / 55. 18.102 [5] => libavformat 55. 12.100 / 55. 12.100 [6]
    => libavdevice 55. 3.100 / 55. 3.100 [7] => libavfilter 3. 79.101 / 3. 79.101 [8]
    => libswscale 2. 3.100 / 2. 3.100 [9] => libswresample 0. 17.102 / 0. 17.102 [10]
    => libpostproc 52. 3.100 / 52. 3.100 [11] => Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '3.mov': [12]
    => Metadata: [13] => major_brand : qt [14] => minor_version : 537199360 [15] => compatible_brands: qt [16]
    => creation_time : 2005-10-17 22:54:32 [17] => Duration: 00:01:25.50, start: 0.000000,
    bitrate: 307 kb/s [18] => Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D),
    yuv420p, 640x480 [SAR 1:1 DAR 4:3], 261 kb/s, 10 fps, 10 tbr, 3k tbn, 25 tbc [19]
    => Metadata: [20] => creation_time : 2005-10-17 22:54:33 [21] => handler_name :
    Apple Video Media Handler [22] => Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D),
    32000 Hz, mono, fltp, 43 kb/s [23] => Metadata: [24] => creation_time : 2005-10-17 22:54:34 [25]
    => handler_name : Apple Sound Media Handler [26] => [libx264 @ 0x19fbb00] using SAR=944/945 [27]
    => [libx264 @ 0x19fbb00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [28]
    => Output #0, mp4, to '4.mp4': [29] => Metadata: [30] => major_brand : qt [31]
    => minor_version : 537199360 [32] => compatible_brands: qt [33] => Stream #0:0
    (eng): Video: h264, yuv420p, 630x472 [SAR 944:945 DAR 4:3], q=-1--1, 900 kb/s, 90k tbn,
    10 tbc [34] => Metadata: [35] => creation_time : 2005-10-17 22:54:33 [36]
    => handler_name : Apple Video Media Handler [37] => Stream #0:1(eng): Audio: aac, 32000 Hz,
    mono, fltp, 128 kb/s [38] => Metadata: [39] => creation_time : 2005-10-17 22:54:34 [40]
    => handler_name : Apple Sound Media Handler [41] => Stream mapping: [42]
    => Stream #0:0 -> #0:0 (mpeg4 -> libx264) [43] => Stream #0:1 -> #0:1 (aac -> aac) [44]
    => Error while opening encoder for output stream #0:0 - maybe incorrect parameters
    such as bit_rate, rate, width or height )

    This is my code :

    $width=640;
    $height=360;
    $aspect=round($width/$height, 1);

    $command = "/usr/bin/ffmpeg -threads 1 -y -i 3.mov -vf \"scale=min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")) * (gte(a\,".$aspect.")*".$width." + \
    lt(a\,".$aspect.")*((".$height."*iw)/ih)) + not(min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")))*iw : \
    min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")) * (lte(a\,".$aspect.")*".$height." + \
    gt(a\,".$aspect.")*((".$width."*ih)/iw)) + not(min(1\,gt(iw\,".$width.")+gt(ih\,".$height.")))*ih\"  -b:v 900k -acodec aac -strict -2 -ab 96k 4.mp4 ";

    It is rather strange but when I change the width and height parameters to 300 and 200 respectively, the command executes, the error appears when the width x height is 640x360.

    Any ideas of what might be wrong ?

    UPDATE : I am pretty sure the error has got something to do with the audio encoding. If I change the -ab 96k part to -c:a copy, command executes.
    I cannot however use -c:a copy because for some audio formats the video does not play on mobile devices. Therefore i need the audio settings to be fixed and the same for all videos.

  • FFmpeg audio channel rematrix (5.1 to stereo)

    29 octobre 2014, par Flock Dawson

    I’ve got a (very large !) Apple ProRes 422 file with 16ch audio. To be able to use it on a less powerful computer, I’d like to convert it to a standard MP4 file (h264 video codec, stereo audio). The original file has 16 channels of audio, however, and FFmpeg gives an error when I try to convert it (’Rematrix is needed’). How do I do rematrixing of audio channels ? Are there additional steps needed ?

    This is the FFmpeg command I used :

    ffmpeg -y -i Capture0000.mov -vcodec libx264 -vb 2000k -pix_fmt yuv420p -coder 0 -profile:v baseline -acodec libfaac -ab 128k /tmp/out.mp4

    This is the FFmpeg output :

    ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
         built on May  8 2014 14:17:45 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
         configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libxvid --enable-libfaac
         libavutil      52. 81.100 / 52. 81.100
         libavcodec     55. 60.103 / 55. 60.103
         libavformat    55. 37.102 / 55. 37.102
         libavdevice    55. 13.101 / 55. 13.101
         libavfilter     4.  5.100 /  4.  5.100
         libswscale      2.  6.100 /  2.  6.100
         libswresample   0. 18.100 /  0. 18.100
         libpostproc    52.  3.100 / 52.  3.100
       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Capture0000.mov':
         Metadata:
           creation_time   : 2014-08-17 18:30:31
         Duration: 01:01:22.52, start: 0.000000, bitrate: 202001 kb/s
           Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183513 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
           Metadata:
             creation_time   : 2014-08-17 18:30:31
             handler_name    : Apple Alias Data Handler
             encoder         : Apple ProRes 422 (HQ)
           Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32, 18432 kb/s (default)
           Metadata:
             creation_time   : 2014-08-17 18:30:31
             handler_name    : Apple Alias Data Handler
       [auto-inserted resampler 0 @ 0x3943da0] [SWR @ 0x39441a0] Rematrix is needed between 16 channels and 5.1 but there is not enough information to do it
       [auto-inserted resampler 0 @ 0x3943da0] Failed to configure output pad on auto-inserted resampler 0
       Error opening filters!

    This is the FFprobe output :

    ffprobe version 2.2.git Copyright (c) 2007-2014 the FFmpeg developers
     built on May  8 2014 14:17:45 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
     configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libxvid --enable-libfaac
     libavutil      52. 81.100 / 52. 81.100
     libavcodec     55. 60.103 / 55. 60.103
     libavformat    55. 37.102 / 55. 37.102
     libavdevice    55. 13.101 / 55. 13.101
     libavfilter     4.  5.100 /  4.  5.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Capture0000.mov':
     Metadata:
       creation_time   : 2014-08-17 18:30:31
     Duration: 01:01:22.52, start: 0.000000, bitrate: 202001 kb/s
       Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183513 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
       Metadata:
         creation_time   : 2014-08-17 18:30:31
         handler_name    : Apple Alias Data Handler
         encoder         : Apple ProRes 422 (HQ)
       Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32, 18432 kb/s (default)
       Metadata:
         creation_time   : 2014-08-17 18:30:31
         handler_name    : Apple Alias Data Handler
  • FFmpeg audio channel rematrix (5.1 to stereo)

    8 décembre 2019, par Flock Dawson

    I’ve got a (very large !) Apple ProRes 422 file with 16ch audio. To be able to use it on a less powerful computer, I’d like to convert it to a standard MP4 file (h264 video codec, stereo audio). The original file has 16 channels of audio, however, and FFmpeg gives an error when I try to convert it (’Rematrix is needed’). How do I do rematrixing of audio channels ? Are there additional steps needed ?

    This is the FFmpeg command I used :

    ffmpeg -y -i Capture0000.mov -vcodec libx264 -vb 2000k -pix_fmt yuv420p -coder 0 -profile:v baseline -acodec libfaac -ab 128k /tmp/out.mp4

    This is the FFmpeg output :

    ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
         built on May  8 2014 14:17:45 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
         configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libxvid --enable-libfaac
         libavutil      52. 81.100 / 52. 81.100
         libavcodec     55. 60.103 / 55. 60.103
         libavformat    55. 37.102 / 55. 37.102
         libavdevice    55. 13.101 / 55. 13.101
         libavfilter     4.  5.100 /  4.  5.100
         libswscale      2.  6.100 /  2.  6.100
         libswresample   0. 18.100 /  0. 18.100
         libpostproc    52.  3.100 / 52.  3.100
       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Capture0000.mov':
         Metadata:
           creation_time   : 2014-08-17 18:30:31
         Duration: 01:01:22.52, start: 0.000000, bitrate: 202001 kb/s
           Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183513 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
           Metadata:
             creation_time   : 2014-08-17 18:30:31
             handler_name    : Apple Alias Data Handler
             encoder         : Apple ProRes 422 (HQ)
           Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32, 18432 kb/s (default)
           Metadata:
             creation_time   : 2014-08-17 18:30:31
             handler_name    : Apple Alias Data Handler
       [auto-inserted resampler 0 @ 0x3943da0] [SWR @ 0x39441a0] Rematrix is needed between 16 channels and 5.1 but there is not enough information to do it
       [auto-inserted resampler 0 @ 0x3943da0] Failed to configure output pad on auto-inserted resampler 0
       Error opening filters!

    This is the FFprobe output :

    ffprobe version 2.2.git Copyright (c) 2007-2014 the FFmpeg developers
     built on May  8 2014 14:17:45 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
     configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libxvid --enable-libfaac
     libavutil      52. 81.100 / 52. 81.100
     libavcodec     55. 60.103 / 55. 60.103
     libavformat    55. 37.102 / 55. 37.102
     libavdevice    55. 13.101 / 55. 13.101
     libavfilter     4.  5.100 /  4.  5.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Capture0000.mov':
     Metadata:
       creation_time   : 2014-08-17 18:30:31
     Duration: 01:01:22.52, start: 0.000000, bitrate: 202001 kb/s
       Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183513 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
       Metadata:
         creation_time   : 2014-08-17 18:30:31
         handler_name    : Apple Alias Data Handler
         encoder         : Apple ProRes 422 (HQ)
       Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32, 18432 kb/s (default)
       Metadata:
         creation_time   : 2014-08-17 18:30:31
         handler_name    : Apple Alias Data Handler