Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (61)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • 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

  • 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

Sur d’autres sites (14569)

  • Error applying bitstream filters to an output packet for stream #0:1 [closed]

    25 septembre 2022, par Samuel Moya Donoso

    I have a video clip that is 1.84 GB, it doesn't tell me the duration but I estimate that it lasts 15 minutes and I'm trying to execute the following command :

    


    ffmpeg.exe -r 50.000 -i result.h264 -i result.aac -bsf:a aac_adtstoasc -c:v copy -c:a copy result.mov


    


    But then I get the following error :

    


    Error applying bitstream filters to an output packet for stream #0:1.
result.aac: Invalid data found when processing input

Error applying bitstream filters to an output packet for stream #0:1.
[aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header!


    


    How do I fix this ? What does the error mean ? Here is the full FFMPEG output :

    


    ffmpeg version 2022-06-22-git-fed07efcde-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.3.0 (Rev1, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil      57. 27.100 / 57. 27.100 libavcodec     59. 33.100 / 59. 33.100 libavformat    59. 25.100 / 59. 25.100 libavdevice    59.  6.100 / 59.  6.100 libavfilter     8. 41.100 /  8. 41.100 libswscale      6.  6.100 /  6.  6.100 libswresample   4.  6.100 /  4.  6.100 libpostproc    56.  5.100 / 56.  5.100 [h264 @ 0000028de0daed00] top block unavailable for requested intra mode -1 [h264 @ 0000028de0daed00] error while decoding MB 50 0 [h264 @ 0000028de0daed00] concealing 3007 DC, 3007 AC, 3007 MV errors in I frame [h264 @ 0000028de0daed00] mb_skip_run 7095 is invalid [h264 @ 0000028de0daed00] error while decoding MB 5 5 [h264 @ 0000028de0daed00] concealing 2732 DC, 2732 AC, 2732 MV errors in P frame [h264 @ 0000028de0daed00] concealing 1158 DC, 1158 AC, 1158 MV errors in P frame [h264 @ 0000028de0daed00] out of range intra chroma pred mode [h264 @ 0000028de0daed00] error while decoding MB 31 1 [h264 @ 0000028de0daed00] concealing 2962 DC, 2962 AC, 2962 MV errors in P frame [h264 @ 0000028de0daed00] corrupted macroblock 11 2 (total_coeff=16) [h264 @ 0000028de0daed00] error while decoding MB 11 2 [h264 @ 0000028de0daed00] concealing 2918 DC, 2918 AC, 2918 MV errors in P frame [h264 @ 0000028de0daed00] cbp too large (54) at 10 28 [h264 @ 0000028de0daed00] error while decoding MB 10 28 [h264 @ 0000028de0daed00] concealing 1255 DC, 1255 AC, 1255 MV errors in P frame [h264 @ 0000028de0daed00] P sub_mb_type 30 out of range at 4 28 [h264 @ 0000028de0daed00] error while decoding MB 4 28 [h264 @ 0000028de0daed00] concealing 1261 DC, 1261 AC, 1261 MV errors in P frame Input #0, h264, from 'result.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(tv, bt709, progressive), 1024x752 [SAR 1:1 DAR 64:47], 25 fps, 25 tbr, 1200k tbn [aac @ 0000028de0eb6700] Estimating duration from bitrate, this may be inaccurate Input #1, aac, from 'result.aac': Duration: 00:21:05.50, bitrate: 164 kb/s Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 164 kb/s Output #0, mov, to 'result.mov': Metadata: encoder         : Lavf59.25.100 Stream #0:0: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1024x752 [SAR 1:1 DAR 64:47], q=2-31, 25 fps, 25 tbr, 12800 tbn Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 164 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help [mov @ 0000028de1191a00] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Input packet too small Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Input packet too small Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Input packet too small Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. [aac_adtstoasc @ 0000028de0d85000] Multiple RDBs per frame with CRC is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. Error applying bitstream filters to an output packet for stream #0:1. result.aac: Invalid data found when processing input frame=32932 fps=574 q=-1.0 Lsize= 1919740kB time=00:10:58.62 bitrate=23878.0kbits/s speed=11.5x video:1908995kB audio:10215kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.027647%

    


  • ffmpeg stream decoding - artefacts when not using ffplay

    18 décembre 2018, par Lucker10

    I stream a video capture via RTP using libx264. For now, I just stream to localhost.
    For watching the stream, I use the ffmpeg library. When I set the GOP size greater than 1 (only I frames), I get artefacts on the receiver side received image. The strange thing is, when I use ffplay, the image is perfect like original. What am I doing wrong ?

    Settings for encoding

    output_codec_ctx->bit_rate = 5000000;
    output_codec_ctx->width = 1920;
    output_codec_ctx->height = 1080;
    output_codec_ctx->time_base.den = 30; // frames per second
    output_codec_ctx->time_base.num = 1;
    output_codec_ctx->gop_size = 10; // gop size
    output_codec_ctx->max_b_frames = 0; // B frames
    output_codec_ctx->pix_fmt = AV_PIX_FMT_YUV420P; // output pixel format
    output_codec_ctx->codec_type = AVMEDIA_TYPE_VIDEO;

    av_opt_set(output_codec_ctx->priv_data, "preset", "ultrafast", 0);
    av_opt_set(output_codec_ctx->priv_data, "tune", "zerolatency", 0);

    Code for decoding

    AVFormatContext *pFormatCtx;
    AVCodecContext *input_codec_ctx;
    AVCode *pCodec;
    avdevice_register_all(); // for device
    avformat_network_init();
    pFormatCtx = avformat_alloc_context();
    input_codec_ctx = avcodec_alloc_context3(nullptr);
    AVDictionary *options = nullptr;
    av_dict_set(&options, "protocol_whitelist", "file,udp,rtp", 0);
    av_dict_set(&options, "fflags", "nobuffer",0);

    avformat_open_input(&pFormatCtx, "rtp://127.0.0.1:49990", nullptr, &options);

    avformat_find_stream_info(pFormatCtx, nullptr);
    for (uint i = 0; i < pFormatCtx->nb_streams; i++)
    {
      if (pFormatCtx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
      {
        videoStream = static_cast<int>(i);
        break;
      }

    }

    av_read_play(pFormatCtx);    //play stream
    pCodec = avcodec_find_decoder(pFormatCtx->streams[videoStream]->codecpar->codec_id);
    AVCodecParameters *codec_param = pFormatCtx->streams[videoStream]->codecpar;
    avcodec_parameters_to_context(input_codec_ctx, codec_param);
    avcodec_open2(input_codec_ctx, pCodec, nullptr);

    AVPacket packet;
    AVPacket *pkt  = &amp;packet;
    AVFrame *frame;
    frame = av_frame_alloc();

    av_init_packet(pkt);
    pkt->data = nullptr;    // packet data will be allocated by the encoder
    pkt->size = 0;

    while(true){
       av_read_frame(pFormatCtx,pkt);
       avcodec_send_packet(input_codec_ctx,pkt);
       avcodec_receive_frame(input_codec_ctx,frame);
    }
    </int>

    Initialization and stuff omitted. Console output for custom decoding :

    NULL @ 0x1fb7b80] Opening 'stream.sdp' for reading
    [sdp @ 0x1fb7b80] Format sdp probed with size=2048 and score=50
    [sdp @ 0x1fb7b80] video codec set to: h264
    [sdp @ 0x1fb7b80] RTP Packetization Mode: 1
    [udp @ 0x1f34140] end receive buffer size reported is 131072
    [udp @ 0x1fb8e40] end receive buffer size reported is 131072
    [sdp @ 0x1fb7b80] setting jitter buffer size to 500

    Success !
    [sdp @ 0x1fb7b80] Before avformat_find_stream_info() pos: 181 bytes read:181 seeks:0 nb_streams:1
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [AVBSFContext @ 0x1fa5880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] Format yuv420p chosen by get_format().
    [h264 @ 0x1fa51c0] Reinit context to 1920x1088, pix_fmt: yuv420p
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 57 packets
    [h264 @ 0x1fa51c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] Invalid level prefix
    [h264 @ 0x1fa51c0] error while decoding MB 2 36
    [h264 @ 0x1fa51c0] concealing 3887 DC, 3887 AC, 3887 MV errors in I frame
    [h264 @ 0x1fa51c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 155 packets
    [h264 @ 0x1fa51c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] corrupted macroblock 32 41 (total_coeff=-1)
    [h264 @ 0x1fa51c0] error while decoding MB 32 41
    [h264 @ 0x1fa51c0] concealing 3257 DC, 3257 AC, 3257 MV errors in I frame
    [h264 @ 0x1fa51c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1fa51c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 52 packets
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 51 packets
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 10 packets
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 50 packets
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 52 packets
    [sdp @ 0x1fb7b80] All info found
    [sdp @ 0x1fb7b80] After avformat_find_stream_info() pos: 181 bytes read:181 seeks:0 frames:28
    found video stream

    The number of elements in stream is  1

    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] Format yuv420p chosen by get_format().
    [h264 @ 0x1ee3880] Reinit context to 1920x1088, pix_fmt: yuv420p
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 256 packets
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] Invalid level prefix
    [h264 @ 0x1ee3880] error while decoding MB 119 41
    [h264 @ 0x1ee3880] concealing 3170 DC, 3170 AC, 3170 MV errors in I frame
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 5 packets
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 4 packets
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] out of range intra chroma pred mode
    [h264 @ 0x1ee3880] error while decoding MB 100 56
    [h264 @ 0x1ee3880] corrupted macroblock 84 65 (total_coeff=-1)
    [h264 @ 0x1ee3880] error while decoding MB 84 65
    [h264 @ 0x1ee3880] concealing 754 DC, 754 AC, 754 MV errors in I frame
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 160 packets
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] corrupted macroblock 17 36 (total_coeff=-1)
    [h264 @ 0x1ee3880] error while decoding MB 17 36
    [h264 @ 0x1ee3880] concealing 3872 DC, 3872 AC, 3872 MV errors in I frame
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [sdp @ 0x1fb7b80] max delay reached. need to consume packet
    [sdp @ 0x1fb7b80] RTP: missed 53 packets
    [h264 @ 0x1ee3880] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [h264 @ 0x1ee3880] corrupted macroblock 62 39 (total_coeff=-1)
    [h264 @ 0x1ee3880] error while decoding MB 62 39
    [h264 @ 0x1ee3880] concealing 3467 DC, 3467 AC, 3467 MV errors in I frame
  • Evolution #3926 : Remplacement de safehtml par le plug htmlpurifier ou autre

    14 janvier 2019, par Guillaume Fahrner

    Sorry je n’avais pas vu ce message :

    cedric - a écrit :

    Depuis https://core.spip.net/projects/spip/repository/revisions/24131 le plugin HTMLPurifier est fonctionel sans nécessiter de patch dans le core ?

    Malheureusement si : il reste une surcharge de la fonction propre() via inc/texte.php. Elle est utilisée pour réaliser la protection HTML via echappe_html() AVANT le 1er filtrage de sécurité via echapper_html_suspect(). Un deuxième est réalisé via echappe_retour_modeles($t, $interdire_script) ou $interdire_script est vrai en espacé privé ou si le mode parano actif et faux sinon. (Je n’ai pas su faire autrement, mais il y a peut être une astuce a trouver.)

    Je ne sais pas si tu considères que c’est le core mais une surchage des règles YAML de textwheel est également réalisé afin que l’on envoi bien tout qui doit l’être dans les filtres de sécurité.

    Donc non pas de modification du core nécessaire pour que le plugin fonctionne. A voir si ces surcharges mériterais une "intégration directe" future.

    on est bon et on peut release tel quel en indiquant que le plugin htmlpurifier est disponible pour tests et se laisser le temps ?

    A mon avis oui. Pour rappel : le mode parano est actuellement inutilisable avec l’actuel safehtml(). Du coup ça peut être une approche pour l’intégrer/le tester au fil de l’eau : commencé par les gens qui utilisent le mode parano en leur recommandant chaudement/forcant ce plugin.

    Ci dessous la liste des plugins que j’utilise sans problème hors textwheel/todo (cf https://core.spip.net/issues/4254) avec htmlPurifier :

    Abonnements 3.3.6 - stable
    Agenda 3.26.0 - stable
    API de vérification 1.8.1 - stable
    API Prix 0.1.16 - dev
    Article PDF 1.0.10 - stable
    Autorité 0.10.20 - stable
    Banque&paiement 3.6.7 - stable
    Cache Cool 0.5.4 - stable
    Challenge Hacking 1.0.0 - stable
    Champs Extras 3.11.7 - stable
    Chatbox 1.0.5 - stable
    Coloration Code 99 - stable
    Commandes 1.15.5 - stable
    Compositions 3.7.3 - stable
    Crayons 1.26.18 - stable
    CTF all the day 1.0.0 - stable
    Facteur 3.6.2 - stable
    Formulaire de contact avancé 0.16.5 - stable
    Frimousses 1.5.1 - stable
    GIS 4.44.24 - stable
    HTML Purifier 5.0.0.1 - test
    iCalendar 0.4.5 - test
    Import ics 4.4.3 - stable
    Imprimer document 0.2.2 - stable
    LangOnet 1.4.6 - stable
    MailShot 1.27.3 - stable
    MailSubscribers 2.11.3 - stable
    Markdown 1.0.2 - test
    Messagerie 3.1.8 - test
    Mini Calendrier 2.4.1 - stable
    Mot de passe dès l’inscription 1.0.19 - stable
    Newsletters 1.6.0 - stable
    Nombres de visiteurs connectés 0.2.3 - stable
    NoSPAM 1.5.18 - stable
    Notation 2.4.2 - test
    Notifications 3.6.8 - stable
    Notifications avancées 0.4.2 - test
    Pages 1.3.7 - stable
    Pre & Code 99 - test
    Saisies pour formulaires 3.11.1 - stable
    Social tags 1.1.1 - stable
    SPIP Bonux 3.4.6 - stable
    Tip A Friend 1.6.9 - stable
    Todo 2.2.1 - stable
    Traduction entre rubriques 3.1.3 - stable
    YAML 1.5.4 - stable

    Je pense que si on doit intégrer le plugin ça sera sur la version dev 3.3, pas sur la version stable, et ça va demander de prendre le temps de voir toutes les modifs et les impacts éventuels que tu n’aurais pas vu ou auxquelles tu n’aurais pas pensé.

    Clairement je pense me faire insulter :-) Je suis prêt ^^ Plus sérieusement il faut absolument tester/restester/reretester. J’ai tenté de faire au mieux mais je ne peux pas revoir tout le code HTML généré par les plugins... Au moindre écart de conformité HTML ca ne passera pas. Le bug https://core.spip.net/issues/4254 en est un bon exemple : avec htmlpurifier l’élément

    est supprimé ; avec "safehtml() standard" le code invalide est conservé et c’est le navigateur qui va corriger.

    Il faut voir les bons cotés : cela force les bonnes pratiques, met SPIP au plus haut niveau du standard (Drupal fait moins bien), aide a identifier des bugs et ce qui passe dans propre() sera obligatoirement valide. C’est aussi a terme moins de problèmes d’injection XSS a traiter pour la team.

    Sur la fonction de survol des logos le sujet reste ouvert ? On est en effet d’accord que cette écriture est obsolète et devrait être revue de toute façon, mais c’est donc un point à traiter dans le core le cas échéant

    Euh je comprend pas, faut-il intégrer le patch des puces de statut dans ce plugin ? Je pensais plus coder le truc """proprement""" avec un JS dans le directement dans /prive/. A décolérer complètement à mon sens.

    Encore merci pour le temps que tu y passes :)