Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (96)

  • 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

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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (8543)

  • ffmpeg only processes first image

    8 septembre 2020, par Michael Price

    I have a directory of .png images (I had previously tried .jpg until I read somewhere ffmpeg prefers .png).

    


    The images share a file numbering format cof000.png - cof358.png.

    


    I want to convert those images into a moving picture format. MPG or MP4 will be fine.

    


    The command I have tried is

    


    ffmpeg.exe -framerate 25 -i cof%03d.png -r 6 output.mp4


    


    I adapted the command from this post, here :

    


    https://stackoverflow.com/questions/53778503/ffmpeg-video-slideshow-only-takes-first-image


    


    Even after trying numerous different permutations of the command the final file only has the first image in it. I am using windows.

    


    What ffmpeg command do I need to use on Windows to compile all 180 image files into a single moving image ?

    


    Here is the output from using the command :

    


    $ ffmpeg.exe -framerate 25 -i cof%03d.png -r 6 output.mp4
ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.3.1 (GCC) 20200621
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enabl
e-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enabl
e-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-l
ibvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11
va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, image2, from 'cof%03d.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgb24(pc), 1200x1200 [SAR 2834:2834 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
File 'output.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001f7da6985c0] using SAR=1/1
[libx264 @ 000001f7da6985c0] using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2
[libx264 @ 000001f7da6985c0] profile High 4:4:4 Predictive, level 4.0, 4:4:4, 8-bit
[libx264 @ 000001f7da6985c0] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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_rang
e=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 s
liced_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=6 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbt
ree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 1200x1200 [SAR 1:1 DAR 1:1], q=-1--1, 6 fps, 12288
tbn, 6 tbc
    Metadata:
      encoder         : Lavc58.91.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=    1 fps=0.0 q=23.0 Lsize=      26kB time=00:00:00.00 bitrate=2662518.5kbits/s speed=0.000541x
video:26kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.137195%
[libx264 @ 000001f7da6985c0] frame I:1     Avg QP:16.42  size: 25465
[libx264 @ 000001f7da6985c0] mb I  I16..4:  2.1% 85.2% 12.7%
[libx264 @ 000001f7da6985c0] 8x8 transform intra:85.2%
[libx264 @ 000001f7da6985c0] coded y,u,v intra: 9.1% 0.9% 1.0%
[libx264 @ 000001f7da6985c0] i16 v,h,dc,p: 42% 39% 19%  0%
[libx264 @ 000001f7da6985c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 11% 52%  0%  0%  0%  0%  0%  0%
[libx264 @ 000001f7da6985c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 17% 13%  5%  4%  6%  6%  6%  5%
[libx264 @ 000001f7da6985c0] kb/s:1222.32


    


  • how to add hvt1 hvc2 to ffmpeg ?

    19 août 2020, par user10716022

    i only add libavformat library isom.c

    


    { AV_CODEC_ID_HEVC , MKTAG ('h', 'v', 'c', '2') }, /* HEVC / H.265 coded
with gpac */
 { AV_CODEC_ID_HEVC , MKTAG ('h', 'v', 't', '1') }, /* HEVC / H.265 coded
with gpac */


    


    i want use ffmpeg mpeg dash srd

    


    MPD video code ffmpeg do not have
this is my MPD

    


    &lt;?xml version="1.0"?>&#xA;&#xA;<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500S" type="static" mediapresentationduration="PT0H3M37.792S" maxsegmentduration="PT0H0M5.000S" profiles="urn:mpeg:dash:profile:isoff-live:2011">&#xA; <programinformation moreinformationurl="http://gpac.io">&#xA;  &#xA; </programinformation>&#xA;&#xA; <period duration="PT0H3M37.792S">&#xA;  <adaptationset segmentalignment="true" maxwidth="1920" maxheight="1012" maxframerate="24" par="1920:1012" lang="und" startwithsap="1">&#xA;   <essentialproperty schemeiduri="urn:mpeg:dash:srd:2014" value="1,0,0,0,0"></essentialproperty>&#xA;   <segmenttemplate media="output_qp22_dash_track1_$Number$.m4s" initialization="hight01_set1_init.mp4" timescale="24000" startnumber="1" duration="120000"></segmenttemplate>&#xA;   <representation mimetype="video/mp4" codecs="hvc2.1.6.L186.80" width="1920" height="1012" framerate="24" sar="1:1" bandwidth="3010576">&#xA;   </representation>&#xA;  </adaptationset>&#xA;</period>&#xA;</mpd>&#xA;

    &#xA;

  • Prevent ffmpeg from changing the intensity of colors while downscaling the resolution of the video

    29 août 2022, par dravit

    I have a use case where I need to downscale a 716x1280 mp4 video to 358x640 (half of the original). Command that I used is

    &#xA;

    ffmpeg -i ./input.mp4 -vf "scale=640:640:force_original_aspect_ratio=decrease,pad=ceil(iw/2)*2:ceil(ih/2)*2" ./output.mp4&#xA;

    &#xA;

    Out of 10 sample videos, 2 of the them suffered impact on colors. Below I have attached a comparison from the one which was impacted the most.

    &#xA;

    Comparison of frames from the most impacted video

    &#xA;

    NOTE : The one on the right is a frame from the original video and the frame on the left is the one from the processed (down scaled) video. Notice the colors red and green in the image (even the skin color and hair color were changed).

    &#xA;

    What I am looking for is

    &#xA;

      &#xA;
    • Is there any way I can prevent changes like these happening ? Probably some flag on saturation, brightness, contrast or any other parameter.
    • &#xA;

    • I am assuming that ffmpeg uses some default settings while downscaling a video. What made ffmpeg change colors only for these two videos ? If it made similar changes for the rest of the videos as well, how to predict this behaviour before hand ?
    • &#xA;

    &#xA;

    EDIT :

    &#xA;

    What I already have Tried ?

    &#xA;

      &#xA;
    • -crf with values 0 and 18.
    • &#xA;

    • -preset veryslow as mentioned here
    • &#xA;

    &#xA;

    None helped

    &#xA;

    Mediainfo input V/S output

    &#xA;

    &#xA;&#xA;&#xA;&#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;&#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    param input output
    color range Limited NA (attribute not in description)
    color primaries BT.2020 NA (attribute not in description)
    transfer characteristics HLG NA (attribute not in description)
    matrix coefficients BT.2020 non-constant NA (attribute not in description)
    bit deapth 8 8

    &#xA;

    &#xA;

    Logs of the ffmpeg command

    &#xA;

    ffmpeg -i ./input.mp4 -vf "scale=640:640:force_original_aspect_ratio=decrease,pad=ceil(iw/2)*2:ceil(ih/2)*2" -movflags &#x2B;faststart ./output.mp4&#xA;ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Apple clang version 12.0.0 (clang-1200.0.32.28)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_9 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.45.100&#xA;  Duration: 00:00:30.05, start: 0.000000, bitrate: 10366 kb/s&#xA;    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt2020nc/bt2020/arib-std-b67), 716x1280, 10116 kb/s, 30 fps, 30 tbr, 19200 tbn, 38400 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Video&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 245 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Audio&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (aac (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x7faab4808800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x7faab4808800] profile High, level 3.0, 4:2:0, 8-bit&#xA;[libx264 @ 0x7faab4808800] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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;Output #0, mp4, to &#x27;./output.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 358x640, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Video&#xA;      encoder         : Lavc58.91.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Audio&#xA;      encoder         : Lavc58.91.100 aac&#xA;[mp4 @ 0x7faab5808800] Starting second pass: moving the moov atom to the beginning of the file&#xA;frame=  901 fps=210 q=-1.0 Lsize=    3438kB time=00:00:30.02 bitrate= 938.0kbits/s speed=7.01x&#xA;video:2933kB audio:472kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.974633%&#xA;[libx264 @ 0x7faab4808800] frame I:6     Avg QP:22.60  size: 20769&#xA;[libx264 @ 0x7faab4808800] frame P:228   Avg QP:24.84  size:  7657&#xA;[libx264 @ 0x7faab4808800] frame B:667   Avg QP:27.59  size:  1697&#xA;[libx264 @ 0x7faab4808800] consecutive B-frames:  0.9%  0.9%  1.0% 97.2%&#xA;[libx264 @ 0x7faab4808800] mb I  I16..4:  9.5% 64.6% 26.0%&#xA;[libx264 @ 0x7faab4808800] mb P  I16..4:  2.5% 12.2%  2.5%  P16..4: 37.2% 20.6% 11.2%  0.0%  0.0%    skip:13.7%&#xA;[libx264 @ 0x7faab4808800] mb B  I16..4:  0.4%  2.1%  0.2%  B16..8: 42.2%  7.1%  1.2%  direct: 1.8%  skip:44.9%  L0:39.4% L1:52.8% BI: 7.8%&#xA;[libx264 @ 0x7faab4808800] 8x8 transform intra:72.2% inter:74.2%&#xA;[libx264 @ 0x7faab4808800] coded y,uvDC,uvAC intra: 61.8% 67.2% 20.2% inter: 16.7% 13.9% 1.3%&#xA;[libx264 @ 0x7faab4808800] i16 v,h,dc,p: 24% 19%  7% 50%&#xA;[libx264 @ 0x7faab4808800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 16% 15%  6%  9% 11%  7% 10%  6%&#xA;[libx264 @ 0x7faab4808800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 16% 13%  7%  9% 10%  7%  9%  4%&#xA;[libx264 @ 0x7faab4808800] i8c dc,h,v,p: 53% 16% 26%  5%&#xA;[libx264 @ 0x7faab4808800] Weighted P-Frames: Y:3.9% UV:1.8%&#xA;[libx264 @ 0x7faab4808800] ref P L0: 57.8% 19.5% 14.8%  7.8%  0.1%&#xA;[libx264 @ 0x7faab4808800] ref B L0: 90.7%  7.2%  2.1%&#xA;[libx264 @ 0x7faab4808800] ref B L1: 95.3%  4.7%&#xA;[libx264 @ 0x7faab4808800] kb/s:799.80&#xA;[aac @ 0x7faab2036a00] Qavg: 189.523&#xA;

    &#xA;