Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (47)

  • 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

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

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

  • FFMpeg SDR and HDR side-by-side video encoding

    21 septembre 2023, par Famro Fexl

    I am attempting to create a side-by-side video with FFMpeg using the hstack filter.

    


    The SDR video is formatted as "AVC 8-bit YUV420p BT709 Gamma 2.4" and the HDR video is formatted as "HEVC 10-bit YUV420p10le BT2020 SMPTE2084 (with HDR10 metadata)".

    


    In order for the gamma and color space to match, I tried to convert the SDR video to an HDR format using filtering.

    


    Basically, I attempted to process the Rec.709 gamma 2.4 SDR content to Rec.2020 SMPTE2084 content so it could be combined and displayed in the same video. I'm not sure if the input pixel format mattered, at it appeared to be automatically transformed into the output pixel format. From everything I know, this should be theoretically possible.

    


    Here is my FFMpeg command for converting the SDR video into HDR :
ffmpeg -i input.mkv -filter_complex "colormatrix=bt709:bt2020" -color_primaries bt2020 -color_trc smpte2084 -c:v libx265 out.mkv

    


    The colorspace filter always returned the error [Parsed Colorspace_0 @ addr] Unsupported input primaries 2 (unknown), when using the filter_complex `colorspace=all=bt2020", so I was never able to use it.

    


    The HDR result had over-saturated reds in the color space and it was too dim in the gamma. I tried every gamma option available, but none of them matched the original SDR content.`

    


  • avformat/movenc : remove the write_clli mov flag

    13 avril 2020, par Michael Bradshaw
    avformat/movenc : remove the write_clli mov flag
    

    The clli atom is expected to be standardized soon. See
    http://ffmpeg.org/pipermail/ffmpeg-devel/2020-April/259529.html

    We now write the clli atom by default.

    Signed-off-by : Michael Bradshaw <mjbshaw@google.com>

    • [DH] libavformat/movenc.c
    • [DH] libavformat/movenc.h
  • ffmpeg command execution never stops

    19 août 2020, par Khawar Raza

    I am trying to concatenate 3 videos of different resolutions and overlaying 2 videos as transition effects(though the chroma key color removal is not yet implemented) between videos using below command :

    &#xA;

    ffmpeg &#xA;-i input1.mp4 &#xA;-i input2.mp4 &#xA;-i input3.mp4 &#xA;-i transition1.mp4 &#xA;-i transition2.mp4 &#xA;-filter_complex &#xA;"[0:v]pad=width=1080:height=1920:x=(1080-iw)*0.5:y=(1920-ih)*0.5:color=black[video0];&#xA;[1:v]pad=width=1080:height=1920:x=(1080-iw)*0.5:y=(1920-ih)*0.5:color=black[video1];&#xA;[2:v]pad=width=1080:height=1920:x=(1080-iw)*0.5:y=(1920-ih)*0.5:color=black[video2];&#xA;[video0][video1][video2]concat=n=3:v=1:a=0[outv];&#xA;[3:v]scale=w=1080:h=1920[t0];&#xA;[4:v]scale=w=1080:h=1920[t1];&#xA;[outv][t0]overlay=enable=&#x27;between(t,6.6045,9.6335)&#x27;[out0];&#xA;[out0][t1]overlay=enable=&#x27;between(t,12.5655,15.6165)&#x27;[out1];&#xA;[0:a][1:a][2:a]concat=n=3:v=0:a=1[audio]" &#xA;-c:v libx264 -pix_fmt yuv420p -map [out1] -map [audio] -preset ultrafast output.mp4&#xA;

    &#xA;

    I get success only with few videos. Most of the times the command execution never stops. It keeps on appending something to the output video file even for hours. Here is the output from console :

    &#xA;

    ffmpeg version v4.4-dev-416&#xA;     Copyright (c) 2000-2020 the FFmpeg developers&#xA;      built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)&#xA;      configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang&#x2B;&#x2B; --extra-libs=&#x27;-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat&#x27; --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libx264 --enable-gpl --enable-libxvid --enable-gpl --enable-libx265 --enable-gpl --enable-libvidstab --enable-gpl --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec&#xA;      libavutil      56. 55.100 / 56. 55.100&#xA;      libavcodec     58. 96.100 / 58. 96.100&#xA;      libavformat    58. 48.100 / 58. 48.100&#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;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input1.mp4&#x27;:&#xA;      Metadata:&#xA;        major_brand     : &#xA;    mp42&#xA;        minor_version   : &#xA;    0&#xA;        compatible_brands: &#xA;isommp42&#xA;        creation_time   : &#xA;    2020-08-12T17:21:49.000000Z&#xA;        com.android.version: &#xA;    9&#xA;      Duration: &#xA;    00:00:08.12&#xA;    , start: &#xA;    0.000000&#xA;    , bitrate: &#xA;    17298 kb/s&#xA;        Stream #0:0&#xA;    (eng)&#xA;    : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 16309 kb/s&#xA;    , SAR 1:1 DAR 16:9&#xA;    , &#xA;    28.70 fps, &#xA;    29.50 tbr, &#xA;    90k tbn, &#xA;    60 tbc&#xA;     (default)&#xA;        Metadata:&#xA;          rotate          : &#xA;    90&#xA;          creation_time   : &#xA;&#xA;          handler_name    : &#xA;    VideoHandle&#xA;        Side data:&#xA;          &#xA;    displaymatrix: rotation of -90.00 degrees&#xA;        Stream #0:1&#xA;    (eng)&#xA;    : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s&#xA;     (default)&#xA;        Metadata:&#xA;          creation_time   : &#xA;    2020-08-12T17:21:49.000000Z&#xA;          handler_name    : &#xA;    SoundHandle&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input2.mp4&#x27;:&#xA;      Metadata:&#xA;        major_brand     : &#xA;    isom&#xA;        minor_version   : &#xA;    512&#xA;        compatible_brands: &#xA;    isomiso2avc1mp41&#xA;   encoder         : &#xA;    Lavf57.25.100&#xA;      Duration: &#xA;    00:00:05.97&#xA;    , start: &#xA;    0.000000&#xA;    , bitrate: &#xA;    770 kb/s&#xA;        Stream #1:0&#xA;    (und)&#xA;    : Audio: aac (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 128 kb/s&#xA;     (default)&#xA;        Metadata:&#xA;          handler_name    : &#xA;    SoundHandler&#xA;        Stream #1:1&#xA;    (und)&#xA;    : Video: h264 (avc1 / 0x31637661), yuv420p, 368x480, 608 kb/s&#xA;    , &#xA;    27.29 fps, &#xA;120 tbr, &#xA;    12k tbn, &#xA;    60 tbc&#xA;     (default)&#xA;        Metadata:&#xA;          handler_name    : &#xA;    VideoHandler&#xA;Input #2, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input3.mp4&#x27;:&#xA;      Metadata:&#xA;        major_brand     : &#xA;    isom&#xA;        minor_version   : &#xA;    512&#xA;    compatible_brands: &#xA;    isomiso2avc1mp41&#xA;        encoder         : &#xA;    Lavf55.19.104&#xA;      Duration: &#xA;    00:00:13.05&#xA;    , start: &#xA;    0.000000&#xA;    , bitrate: &#xA;    2453 kb/s&#xA;        Chapter #2:0: &#xA;    start 0.000000, &#xA;    end 13.033000&#xA;        Metadata:&#xA;          title           : &#xA;        Stream #2:0&#xA;    (und)&#xA;    : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s&#xA;     (default)&#xA;        Metadata:&#xA;          handler_name    : &#xA;    SoundHandler&#xA;        Stream #2:1&#xA;    (und)&#xA;: Video: h264 (avc1 / 0x31637661), yuv420p, 640x480, 2320 kb/s&#xA;    , &#xA;    25 fps, &#xA;    25 tbr, &#xA;    1200k tbn, &#xA;    50 tbc&#xA;     (default)&#xA;        Metadata:&#xA;          handler_name    : &#xA;    VideoHandler&#xA;        Stream #2:2&#xA;    (eng)&#xA;    : Data: bin_data (text / 0x74786574), 0 kb/s&#xA;        Metadata:&#xA;          handler_name    : &#xA;    SubtitleHandler&#xA;Input #3, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;transition1.mp4&#x27;:&#xA;      Metadata:&#xA;        major_brand     : &#xA;    mp42&#xA;        minor_version   : &#xA;    0&#xA;        compatible_brands: &#xA;    mp41isom&#xA;    creation_time   : &#xA;    2020-08-17T09:31:23.000000Z&#xA;      Duration: &#xA;    00:00:03.03&#xA;    , start: &#xA;    0.000000&#xA;    , bitrate: &#xA;    6263 kb/s&#xA;        Stream #3:0&#xA;    (und)&#xA;    : Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 6307 kb/s&#xA;    , &#xA;    30 fps, &#xA;    30 tbr, &#xA;    30k tbn, &#xA;    60 tbc&#xA;     (default)&#xA;        Metadata:&#xA;          creation_time   : &#xA;&#xA;          handler_name    : &#xA;    VideoHandler&#xA;          encoder         : &#xA;    AVC Coding&#xA;        Stream #3:1&#xA;    (und)&#xA;    : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 79 kb/s&#xA;     (default)&#xA;        Metadata:&#xA;          creation_time   : &#xA;    2020-08-17T09:31:23.000000Z&#xA;          handler_name    : &#xA;SoundHandler&#xA;Input #4, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;transition2.mp4&#x27;:&#xA;      Metadata:&#xA;        major_brand     : &#xA;    mp42&#xA;        minor_version   : 0&#xA;        compatible_brands: &#xA;    mp41isom&#xA;        creation_time   : &#xA;    2020-08-17T09:30:33.000000Z&#xA;      Duration: &#xA;    00:00:03.05&#xA;    , start: &#xA;    0.000000&#xA;    , bitrate: &#xA;    7828 kb/s&#xA;        Stream #4:0&#xA;    (und)&#xA;    : Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 7873 kb/s&#xA;    , &#xA;    30 fps, &#xA;30 tbr, &#xA;    30k tbn, &#xA;    60 tbc&#xA;     (default)&#xA;        Metadata:&#xA;          creation_time   : &#xA;    2020-08-17T09:30:33.000000Z&#xA;          handler_name    : &#xA;    VideoHandler&#xA;          encoder         : &#xA;    AVC Coding&#xA;        Stream #4:1&#xA;    (und)&#xA;    : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 79 kb/s&#xA;     (default)&#xA;        Metadata:&#xA;          creation_time   : &#xA;    2020-08-17T09:30:33.000000Z&#xA;          handler_name    : &#xA;    SoundHandler&#xA;Stream mapping:&#xA;      Stream #0:0 (h264) -> pad&#xA;      Stream #0:1 (aac) -> concat:in0:a0&#xA;Stream #1:0 (aac) -> concat:in1:a0&#xA;      Stream #1:1 (h264) -> pad&#xA;      Stream #2:0 (aac) -> concat:in2:a0&#xA;      Stream #2:1 (h264) -> pad&#xA;      Stream #3:0 (h264) -> scale&#xA;      Stream #4:0 (h264) -> scale&#xA;      overlay&#xA;     -> Stream #0:0 (libx264)&#xA;      concat&#xA;     -> Stream #0:1 (aac)&#xA;    Press [q] to stop, [?] for help&#xA;&#xA;[graph 0 input from stream 0:0 @ 0x733a19a900] sws_param option is deprecated and ignored&#xA;    [graph 0 input from stream 1:1 @ 0x733a19aa80] sws_param option is deprecated and ignored&#xA;    [graph 0 input from stream 2:1 @ 0x733a19ab40] sws_param option is deprecated and ignored&#xA;    [graph 0 input from stream 3:0 @ 0x733a19ac00] sws_param option is deprecated and ignored&#xA;    [graph 0 input from stream 4:0 @ 0x733a19acc0] sws_param option is deprecated and ignored&#xA;&#xA;[mp4 @ 0x733a679400] Frame rate very high for a muxer not efficiently supporting it.&#xA;    Please consider specifying a lower framerate, a different muxer or -vsync 2&#xA;[libx264 @ 0x733a1b0600] using SAR=1/1&#xA;[libx264 @ 0x733a1b0600] MB rate (8160000000) > level limit (16711680)&#xA;[libx264 @ 0x733a1b0600] using cpu capabilities: ARMv8 NEON&#xA;[libx264 @ 0x733a1b0600] profile Constrained Baseline, level 6.2, 4:2:0, 8-bit&#xA;    [libx264 @ 0x733a1b0600] 264 - core 160 - 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=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0&#xA;Output #0, mp4, to &#x27;output.mp4&#x27;:&#xA;      Metadata:&#xA;        major_brand     : &#xA;    mp42&#xA;minor_version   : &#xA;    0&#xA;        compatible_brands: &#xA;    isommp42&#xA;        com.android.version: &#xA;    9&#xA;        encoder         : &#xA;    Lavf58.48.100&#xA;        Chapter #0:0: &#xA;    start 0.000000, &#xA;    end 13.033000&#xA;        Metadata:&#xA;          title           : &#xA;        Stream #0:0&#xA;    : Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1080x1920 [SAR 1:1 DAR 9:16], q=-1--1&#xA;    , &#xA;    1000k tbn, &#xA;    1000k tbc&#xA;(default)&#xA;        Metadata:&#xA;          encoder         : &#xA;    Lavc58.96.100 libx264&#xA;        Side data:&#xA;          &#xA;    cpb: &#xA;    bitrate max/min/avg: 0/0/0 buffer size: 0 &#xA;    vbv_delay: N/A&#xA;        Stream #0:1&#xA;    : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s&#xA;     (default)&#xA;        Metadata:&#xA;          encoder         : &#xA;    Lavc58.96.100 aac&#xA;E/Progress: Progress: 3.6918316&#xA;D/mobile-ffmpeg: Progress: frame: 1, time: 1002, Pct: 0.036918&#xA;frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:01.00 bitrate=   0.5kbits/s speed=1.79x    &#xA;More than 1000 frames duplicated&#xA;

    &#xA;

    I even tried command without overlay and audio parts but result was same. I am working on Android app and using below ffmpeg wrapper library :

    &#xA;

    https://github.com/tanersener/mobile-ffmpeg

    &#xA;