Recherche avancée

Médias (91)

Autres articles (62)

  • 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 : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (7153)

  • How to compress video size without changing much quality and without changing framerate (Ffmpeg) ?

    19 septembre 2020, par WebDiva

    I am using this command to compress my videos :

    &#xA;

    ffmpeg -y -i video.mp4 -vcodec libx264 -crf 24 -preset ultrafast compressed.mp4&#xA;&#xA;

    &#xA;

    Although it works okay, there is a slight increase in duration because I am changing the framerate of videos, and we need the video to be the exact duration. Is there a way to compress videos without changing the framerate ? any help would be appreciated. Thank you.

    &#xA;

    Log :

    &#xA;

    ffmpeg version git-2020-08-31-4a11a6f Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 10.2.1 (GCC) 20200805&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --enable-librav1e --enable-libsvtav1 --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 58.100 / 56. 58.100&#xA;  libavcodec     58.101.101 / 58.101.101&#xA;  libavformat    58. 51.101 / 58. 51.101&#xA;  libavdevice    58. 11.101 / 58. 11.101&#xA;  libavfilter     7. 87.100 /  7. 87.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, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;1600498063375.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;    creation_time   : 2020-09-19T06:47:54.000000Z&#xA;    com.android.version: 10&#xA;  Duration: 00:00:10.53, start: 0.000000, bitrate: 4613 kb/s&#xA;    Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 776x1440, 4611 kb/s, SAR 1:1 DAR 97:180, 19.11 fps, 16.42 tbr, 90k tbn, 180k tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-09-19T06:47:54.000000Z&#xA;      handler_name    : VideoHandle&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 000001e25a673ac0] using SAR=1/1&#xA;[libx264 @ 000001e25a673ac0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 000001e25a673ac0] profile Constrained Baseline, level 3.2, 4:2:0, 8-bit&#xA;[libx264 @ 000001e25a673ac0] 264 - core 161 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=16 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=24.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0&#xA;Output #0, mp4, to &#x27;compressed.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;    com.android.version: 10&#xA;    encoder         : Lavf58.51.101&#xA;    Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 776x1440 [SAR 1:1 DAR 97:180], q=-1--1, 16.42 fps, 12608 tbn, 16.42 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-09-19T06:47:54.000000Z&#xA;      handler_name    : VideoHandle&#xA;      encoder         : Lavc58.101.101 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;frame=  181 fps= 95 q=-1.0 Lsize=    5244kB time=00:00:10.96 bitrate=3918.2kbits/s dup=1 drop=29 speed=5.76x&#xA;video:5243kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.030269%&#xA;[libx264 @ 000001e25a673ac0] frame I:1     Avg QP:21.00  size: 92845&#xA;[libx264 @ 000001e25a673ac0] frame P:180   Avg QP:22.42  size: 29306&#xA;[libx264 @ 000001e25a673ac0] mb I  I16..4: 100.0%  0.0%  0.0%&#xA;[libx264 @ 000001e25a673ac0] mb P  I16..4: 35.6%  0.0%  0.0%  P16..4: 39.9%  0.0%  0.0%  0.0%  0.0%    skip:24.6%&#xA;[libx264 @ 000001e25a673ac0] coded y,uvDC,uvAC intra: 34.6% 31.8% 2.5% inter: 28.7% 17.1% 0.7%&#xA;[libx264 @ 000001e25a673ac0] i16 v,h,dc,p: 38% 18% 20% 23%&#xA;[libx264 @ 000001e25a673ac0] i8c dc,h,v,p: 48% 17% 25%  9%&#xA;[libx264 @ 000001e25a673ac0] kb/s:3894.93&#xA;

    &#xA;

  • FFMPEG doesn't work with mp4 and stdout

    22 septembre 2020, par Max Grigoriev

    I need to add text to mp4 video. If I write result to file then everything is OK, but I want to read data from ffmpeg stream.

    &#xA;&#xA;

    I run command :

    &#xA;&#xA;

    ffmpeg -i sample.mp4 -filter_complex "drawtext=&#x27;text=\"Sample Text\"&#x27;:x=(w-text_w)/2:y=(h-text_h-line_h)/2:fontsize=40:fontcolor=white:fontfile=TimesNewRoman.ttf:enable=&#x27;between(t,1,5)&#x27;"  -f mp4 -&#xA;

    &#xA;&#xA;

    I received the following error :

    &#xA;&#xA;

    ffmpeg version 2.2.2-tessus Copyright (c) 2000-2014 the FFmpeg developers&#xA;  built on May  7 2014 23:17:42 with clang version 3.3 (tags/RELEASE_33/final)&#xA;  configuration: --cc=/opt/local/bin/clang-mp-3.3 --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-libmodplug --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --disable-indev=qtkit --enable-runtime-cpudetect&#xA;  libavutil      52. 66.100 / 52. 66.100&#xA;  libavcodec     55. 52.102 / 55. 52.102&#xA;  libavformat    55. 33.100 / 55. 33.100&#xA;  libavdevice    55. 10.100 / 55. 10.100&#xA;  libavfilter     4.  2.100 /  4.  2.100&#xA;  libswscale      2.  5.102 /  2.  5.102&#xA;  libswresample   0. 18.100 /  0. 18.100&#xA;  libpostproc    52.  3.100 / 52.  3.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;a5732-480x320-clip01-sound.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : M4V &#xA;    minor_version   : 1&#xA;    compatible_brands: M4V mp42isom&#xA;creation_time   : 2014-02-12 02:23:02&#xA;  Duration: 00:00:15.10, start: 0.000000, bitrate: 509 kb/s&#xA;Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 480x320 [SAR 1:1 DAR 3:2], 457 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;Metadata:&#xA;  creation_time   : 2014-02-12 02:23:02&#xA;  handler_name    : Mainconcept MP4 Video Media Handler&#xA;Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 32000 Hz, stereo, fltp, 46 kb/s (default)&#xA;Metadata:&#xA;  creation_time   : 2014-02-12 02:23:02&#xA;  handler_name    : Mainconcept MP4 Sound Media Handler&#xA;[libx264 @ 0x10400d800] using SAR=1/1&#xA;[libx264 @ 0x10400d800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX&#xA;[libx264 @ 0x10400d800] profile High, level 2.1&#xA;[libx264 @ 0x10400d800] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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;[mp4 @ 0x10400d200] muxer does not support non seekable output&#xA;Output #0, mp4, to &#x27;pipe:&#x27;:&#xA;  Metadata:&#xA;major_brand     : M4V &#xA;minor_version   : 1&#xA;compatible_brands: M4V mp42isom&#xA;encoder         : Lavf55.33.100&#xA;Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 480x320 [SAR 1:1 DAR 3:2], q=-1--1, 90k tbn, 29.97 tbc (default)&#xA;Stream #0:1(eng): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 32000 Hz, stereo, s16, 128 kb/s (default)&#xA;Metadata:&#xA;  creation_time   : 2014-02-12 02:23:02&#xA;  handler_name    : Mainconcept MP4 Sound Media Handler&#xA;Stream mapping:&#xA;  Stream #0:0 (h264) -> drawtext (graph 0)&#xA;  drawtext (graph 0) -> Stream #0:0 (libx264)&#xA;  Stream #0:1 -> #0:1 (aac -> libvo_aacenc)&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;Conversion failed!&#xA;

    &#xA;&#xA;

    It seems the problem is related to mp4 and "muxer does not support non seekable output"

    &#xA;&#xA;

    Is there a solution how to make such text adding on the fly and return video as we have data and not to wait until all file is processed.

    &#xA;&#xA;

    Thanks

    &#xA;

  • FFMPEG doesn't work with mp4 and stdout

    22 août 2014, par Max Grigoriev

    I need to add text to mp4 video. If I write result to file then everything is OK, but I want to read data from ffmpeg stream.

    I run command :

    ffmpeg -i sample.mp4 -filter_complex "drawtext='text=\"Sample Text\"':x=(w-text_w)/2:y=(h-text_h-line_h)/2:fontsize=40:fontcolor=white:fontfile=TimesNewRoman.ttf:enable='between(t,1,5)'"  -f mp4 -

    I received the following error :

    ffmpeg version 2.2.2-tessus Copyright (c) 2000-2014 the FFmpeg developers
     built on May  7 2014 23:17:42 with clang version 3.3 (tags/RELEASE_33/final)
     configuration: --cc=/opt/local/bin/clang-mp-3.3 --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-libmodplug --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --disable-indev=qtkit --enable-runtime-cpudetect
     libavutil      52. 66.100 / 52. 66.100
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.100 / 55. 33.100
     libavdevice    55. 10.100 / 55. 10.100
     libavfilter     4.  2.100 /  4.  2.100
     libswscale      2.  5.102 /  2.  5.102
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a5732-480x320-clip01-sound.mp4':
     Metadata:
       major_brand     : M4V
       minor_version   : 1
       compatible_brands: M4V mp42isom
    creation_time   : 2014-02-12 02:23:02
     Duration: 00:00:15.10, start: 0.000000, bitrate: 509 kb/s
    Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 480x320 [SAR 1:1 DAR 3:2], 457 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
     creation_time   : 2014-02-12 02:23:02
     handler_name    : Mainconcept MP4 Video Media Handler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 32000 Hz, stereo, fltp, 46 kb/s (default)
    Metadata:
     creation_time   : 2014-02-12 02:23:02
     handler_name    : Mainconcept MP4 Sound Media Handler
    [libx264 @ 0x10400d800] using SAR=1/1
    [libx264 @ 0x10400d800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x10400d800] profile High, level 2.1
    [libx264 @ 0x10400d800] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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
    [mp4 @ 0x10400d200] muxer does not support non seekable output
    Output #0, mp4, to 'pipe:':
     Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V mp42isom
    encoder         : Lavf55.33.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 480x320 [SAR 1:1 DAR 3:2], q=-1--1, 90k tbn, 29.97 tbc (default)
    Stream #0:1(eng): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 32000 Hz, stereo, s16, 128 kb/s (default)
    Metadata:
     creation_time   : 2014-02-12 02:23:02
     handler_name    : Mainconcept MP4 Sound Media Handler
    Stream mapping:
     Stream #0:0 (h264) -> drawtext (graph 0)
     drawtext (graph 0) -> Stream #0:0 (libx264)
     Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Conversion failed!

    It seems the problem is related to mp4 and "muxer does not support non seekable output"

    Is there a solution how to make such text adding on the fly and return video as we have data and not to wait until all file is processed.

    Thanks