Recherche avancée

Médias (91)

Autres articles (65)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (11801)

  • VLC Player shows broken HLS stream with 4k HDR10 mkv

    8 avril 2023, par goodkid38

    I am trying to convert a 4k mkv to an HLS stream but I am not having any luck. I have tried a few ffmpeg commands to try and fix the issue but none have worked. Here are the commands I have tried.

    


      

    1. Basic copy command :
    2. 


    


    ffmpeg -i "video.mkv" -c copy -f hls "plexTemp/out.m3u8"

    


      

    1. Command used to see if it was an HDR color issue :
    2. 


    


    ffmpeg -i "video.mkv" -c copy -pix_fmt yuv420p10le -f hls "plexTemp/out.m3u8"
3. Command used to revert to 8 bit color :

    


    ffmpeg -i "video.mkv" -c copy -pix_fmt yuv420p -f hls "plexTemp/out.m3u8"

    


      

    1. I tried removing extra streams and just focusing on audio and video :
    2. 


    


    ffmpeg -i "out.mkv" -map 0:v:0 -map 0:a:1 -c copy -pix_fmt yuv420p10le -f hls "plexTemp/out.m3u8"

    


    I also saw these warnings when running each command.Stream HEVC is not hvc1, you should use tag:v hvc1 to set it.
And this

    


    [matroska,webm @ 000001d7921803c0] Stream #12: not enough frames to estimate rate; consider increasing probesize
[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001d7921803c0] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options


    


    So I tried increasing the analyzeduration and probesize and adding the tag like so :
ffmpeg -analyzeduration 10000000 -probesize 10000000 -i "out.mkv" -c copy -tag:v hvc1 -f hls "plexTemp/out.m3u8"

    


    To no avail. Here is what the output looks like on VLC. It's mostly black with a few lines of color that randomly change.enter image description here

    


    On my TV I see this :

    


    enter image description here

    


    One thing I see that stands out in ffmpegs output is this :

    


    [hls @ 00000207239a9ec0] Opening 'plexTemp/out0.ts' for writing7 bitrate=  -0.0kbits/s speed=N/A
[hls @ 00000207239a9ec0] Opening 'plexTemp/out.m3u8.tmp' for writing


    


    Here is the audio and video info on the mkv :

    


    General
Unique ID                                : 92280908398971492516286250889389584022 (0x456CA80EF29B1357B572719D6EC4AE96)
Complete name                            : I:\video.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 49.4 GiB
Duration                                 : 1 h 39 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 71.2 Mb/s
Frame rate                               : 23.976 FPS
Movie name                               : video
Encoded date                             : 2023-04-06 22:39:53 UTC
Writing application                      : MakeMKV v1.16.7 win(x64-release)
Writing library                          : libmakemkv v1.16.7 (1.3.10/1.5.2) win(x64-release)
Cover                                    : Yes
Attachments                              : cover.jpg

Video
ID                                       : 1
ID in the original source medium         : 4113 (0x1011)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 39 min
Bit rate                                 : 63.6 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.320
Stream size                              : 44.1 GiB (89%)
Writing library                          : ATEME Titan File 3.9.6 (4.9.6.2)        
Language                                 : English
Default                                  : No
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0050 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 140 cd/m2
Original source medium                   : Blu-ray

Audio #1
ID                                       : 2
ID in the original source medium         : 4352 (0x1100)
Format                                   : DTS XLL X
Format/Info                              : Digital Theater Systems
Commercial name                          : DTS:X
Codec ID                                 : A_DTS
Duration                                 : 1 h 39 min
Bit rate mode                            : Variable
Bit rate                                 : 4 174 kb/s
Channel(s)                               : 8 channels
Channel layout                           : C L R LFE Lb Rb Lss Rss
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Stream size                              : 2.89 GiB (6%)
Title                                    : Surround 7.1
Language                                 : English
Default                                  : Yes
Forced                                   : No
Original source medium                   : Blu-ray
Here is information on the HLS output:
General
Complete name                            : I:\out.m3u8
Format                                   : HLS
Format profile                           : Media
File size                                : 67.4 MiB
Duration                                 : 8 s 138 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 69.4 Mb/s
Frame rate                               : 23.976 FPS


    


    And my
Here is the output of my HLS stream :

    


    Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Muxing mode                              : MPEG-TS
Codec ID                                 : 36
Duration                                 : 8 s 49 ms
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Writing library                          : ATEME Titan File 3.9.6 (4.9.6.2)        
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0050 cd/m2, max: 1000 cd/m2
Maximum Content Light Level              : 1000 cd/m2
Maximum Frame-Average Light Level        : 140 cd/m2
Source                                   : out92.ts

Audio
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
Format                                   : DTS XLL X
Format/Info                              : Digital Theater Systems
Commercial name                          : DTS:X
Muxing mode                              : MPEG-TS
Codec ID                                 : 130
Duration                                 : 8 s 138 ms
Bit rate mode                            : Variable
Channel(s)                               : 8 channels
Channel layout                           : C L R LFE Lb Rb Lss Rss
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Delay relative to video                  : -125 ms
Language                                 : English
Source                                   : out92.ts


    


  • ffmpeg "Underestimated required buffer size"

    10 avril 2021, par Kajuna

    I'm seeing this error on some Windows machine when converting an 8K png stream to ProRes 4444 with ffmpeg. The command looks like

    


    


    ffmpeg -f image2pipe -framerate 30000/1001 -i - -c:v prores_ks -y output.mov

    


    


    And the output

    


    


    ffmpeg version git-2020-06-17-0b3bd00 Copyright (c) 2000-2020 the
FFmpeg developers built with gcc 9.3.1 (GCC) 20200523
    
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 —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 libavutil 56. 55.100 / 56. 55.100 libavcodec 58. 92.100 / 58. 92.100 libavformat 58. 46.101 / 58. 46.101 libavdevice 58. 11.100 / 58. 11.100 libavfilter 7. 86.100 / 7. 86.100 libswscale 5. 8.100 /
5. 8.100 libswresample 3. 8.100 / 3. 8.100 libpostproc 55. 8.100 / 55. 8.100 [image2pipe @ 000002245a96da40] Stream #0 : not enough frames to estimate rate ; consider increasing probesize Input
#0, image2pipe, from 'pipe :' : Duration : N/A, bitrate : N/A
Stream #0:0 : Video : png, rgba(pc), 7680x3840, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream mapping : Stream #0:0 -> #0:0 (png (native) ->
prores (prores_ks)) frame= 0 fps=0.0 q=0.0 size= 0kB
time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A frame= 0
fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate=
-0.0kbits/s speed=N/A frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A frame= 0
fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate=
-0.0kbits/s speed=N/A frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A [prores_ks @
000002245aaaf080] Autoselected 4:4:4:4 profile because of the used
input colorspace. It can be overridden through -profile option.
[prores_ks @ 000002245aaaf700] Autoselected 4:4:4:4 profile because of
the used input colorspace. It can be overridden through -profile
option. [prores_ks @ 000002245aa1e7c0] Autoselected 4:4:4:4 profile
because of the used input colorspace. It can be overridden through
-profile option. [prores_ks @ 000002245aa1d580] Autoselected 4:4:4:4 profile because of the used input colorspace. It can be overridden
through -profile option. [prores_ks @ 000002245aa1ec40] Autoselected
4:4:4:4 profile because of the used input colorspace. It can be
overridden through -profile option. [prores_ks @ 000002245aa1da00]
Autoselected 4:4:4:4 profile because of the used input colorspace. It
can be overridden through -profile option. [prores_ks @
000002245aa1f540] Autoselected 4:4:4:4 profile because of the used
input colorspace. It can be overridden through -profile option.
[prores_ks @ 000002245aa1de80] Autoselected 4:4:4:4 profile because of
the used input colorspace. It can be overridden through -profile
option. [prores_ks @ 000002245a972b40] Autoselected 4:4:4:4 profile
because of the used input colorspace. It can be overridden through
-profile option. Output #0, mov, to 'output.mov' : Metadata :
encoder : Lavf58.46.101
Stream #0:0 : Video : prores (prores_ks) (ap4h / 0x68347061), yuva444p10le, 7680x3840, q=2-31, 200 kb/s, 29.97 fps, 30k tbn, 29.97
tbc
Metadata :
encoder : Lavc58.92.100 prores_ks frame= 1 fps=0.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
    
frame= 2 fps=0.3 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A
speed= 0x frame= 3 fps=0.4 q=0.0 size= 0kB
time=00:00:00.00 bitrate=N/A speed= 0x frame= 4 fps=0.4 q=0.0
size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x frame=
    
5 fps=0.5 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed=
    
0x [prores_ks @ 000002245aaaf080] Underestimated required buffer
size. Video encoding failed [prores_ks @ 000002245aaaf700]
Underestimated required buffer size. [prores_ks @ 000002245aa1e7c0]
Underestimated required buffer size. [prores_ks @ 000002245aa1d580]
Underestimated required buffer size. [prores_ks @ 000002245aa1ec40]
Underestimated required buffer size. [prores_ks @ 000002245aa1da00]
Underestimated required buffer size. Conversion failed !

    


    


    How could I debug this considering I don't have access to the problematic machine (a user does) ? Could the "not enough frames to estimate rate ; consider increasing probesize" message be related to the problem ?

    


    Thanks

    


    Edit : I increased probesize and that warning disappeared, but the conversion keeps failing with the same error message "Underestimated required buffer size". I can now reproduce this on one of my Windows machines.

    


    Edit 2 : Not a solution but I found out that this problem is gone if using ffmpeg 4.2.3 and was introduced with 4.3

    


  • ffmpeg conversion x264 [error] : malloc of size 26200384 failed [closed]

    13 janvier 2021, par Anshul Singh

    I'm trying to use FFMPEG to transcode a video with very large frames but I'm getting the following error when trying to convert 4k video on my server.

    


    ffmpeg version N-55112-g7eb9cf593e-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
    configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg  libavutil      56. 61.100 / 56. 61.100\n  libavcodec     58.114.100 / 58.114.100
     libavformat    58. 64.100 / 58. 64.100
      libavdevice    58. 11.103 / 58. 11.103
       libavfilter     7. 91.100 /  7. 91.100
         libswscale      5.  8.100 
/  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
    libpostproc    55.  8.100 / 55.  8.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5d798c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 0
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5d798c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 0.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://example.com':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: mp42mp41
        creation_time   : 2015-07-28T16:09:40.000000Z
        Duration: 00:00:15.04, start: 0.000000, bitrate: 41976 kb/s
        Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), 
    yuv420p(tv, bt709), 3840x2160, 41762 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
    Metadata:
    creation_time   : 2015-07-28T16:09:40.000000Z
    handler_name    : ?Mainconcept Video Media Handler
    encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
    Metadata:
    creation_time   : 2015-07-28T16:09:40.000000Z
    handler_name    : #Mainconcept MP4 Sound Media Handler
    Stream mapping:
        Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
        Stream #0:1 -> #0:1 (aac (native) -> aac (native))
        Press [q] to stop, [?] for help
        [libx264 @ 0x5d92240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
        [libx264 @ 0x5d92240] profile Main, level 5.1, 4:2:0, 8-bit
        [libx264 @ 0x5d92240] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 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=1 lookahead_threads=1 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=abr mbtree=1 bitrate=750 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
        frame=    6 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    \rx264 [error]: malloc of size 26200384 failed
        Video encoding failed
        [libx264 @ 0x5d92240] final ratefactor: 40.36
        Conversion failed!


    


    My server has 1Gb of memory.