Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (37)

  • 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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (8829)

  • avcodec/hevc_filter : Pass HEVCLocalContext when slice-threading

    29 juin 2022, par Andreas Rheinhardt
    avcodec/hevc_filter : Pass HEVCLocalContext when slice-threading
    

    The HEVC decoder has both HEVCContext and HEVCLocalContext
    structures. The latter is supposed to be the structure
    containing the per-slicethread state.

    Yet that is not how it is handled in practice : Each HEVCLocalContext
    has a unique HEVCContext allocated for it and each of these
    coincides with the main HEVCContext except in exactly one field :
    The corresponding HEVCLocalContext.
    This makes it possible to pass the HEVCContext everywhere where
    logically a HEVCLocalContext should be used.

    This commit stops doing this for lavc/hevc_filter.c ; it also constifies
    everything that is possible in order to ensure that no slice thread
    accidentally modifies the main HEVCContext state.

    There are places where this was not possible, namely with the SAOParams
    in sao_filter_CTB() or with sao_pixels_buffer_h in copy_CTB_to_hv().
    Both of these instances lead to data races, see
    https://fate.ffmpeg.org/report.cgi?time=20220629145651&slot=x86_64-archlinux-gcc-tsan-slices

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/hevc_filter.c
    • [DH] libavcodec/hevcdec.c
    • [DH] libavcodec/hevcdec.h
  • FFmpeg : bitrate change dynamically

    13 avril 2012, par Kevin Yen-Fu Ou

    I read the previous thread and this is the response from NISHAnT,
    FFMPEG : Dynamic change of bit_rate for Video

    avcodec_init();

    avcodec_register_all();

    codec = avcodec_find_encoder(CODEC_ID_H263);

    c = avcodec_alloc_context();

    picture= avcodec_alloc_frame();

       c->bit_rate = bitrate;
       c->width = w;
       c->height = h;
       c->time_base= (AVRational){1,framerate};
       c->pix_fmt = PIX_FMT_YUV420P;

    avcodec_close(c);

    av_free(c);

    And this is my code :

       if(previous_BR != cur_BR){
           previous_BR = cur_BR;

           AVCodecContext* new_c = av_mallocz(sizeof(AVCodecContext));;

           avcodec_copy_context(new_c, ost_table[0]->st->codec);


           avcodec_close(ost_table[0]->st->codec);
           av_free(ost_table[0]->st->codec);

           avcodec_init();
           avcodec_register_all();

           ost_table[0]->enc = avcodec_find_encoder(CODEC_ID_H264);
           new_c = avcodec_alloc_context3(ost_table[0]->enc);
           ost_table[0]->st->codec = new_c;

           AVFrame *picture= avcodec_alloc_frame();

           new_c->bit_rate = cur_BR;
           new_c->width = 352;
           new_c->height = 288;
           int framerate = 30;
           new_c->time_base= (AVRational){1,framerate};
           new_c->pix_fmt = PIX_FMT_YUV420P;
           new_c->codec_type = AVMEDIA_TYPE_VIDEO;
           new_c->codec_id = CODEC_ID_H264;}

    I tried to add my code to transcode(), but ffmpeg exits after it goes through my codes.
    is there something wrong with my codes ?
    or what else I should add ?

    I put the code after "redo :", so that it will recursively loop back.
    please help !!

    Thank you.

  • HTML5 video player some mp4 files not playing chrome

    1er juillet 2020, par Marc

    So I'm trying to build a personnal streaming platform and I've done my best to follow the recommandations I've found everywhere for better compatibility/quality when streaming.

    &#xA;&#xA;

    So I'm systematically encoding my video to video codec h264 with mp4 container with ffmpeg using this command :

    &#xA;&#xA;

    ffmpeg -i input -vcodec libx264 -maxrate 8000k -bufsize 1000K -minrate 10k -crf 24 -ab 192k -movflags faststart output.mp4&#xA;

    &#xA;&#xA;

    However, I occasionaly fall on some reluctant mp4 that will play fine on Edge and Firefox but won't on Chrome. Loading seems to be processed fine as I can see the total duration in the controls, but it will never play and will not leave any error in the console.

    &#xA;&#xA;

    Here's a Mediainfo export of such reluctant file :

    &#xA;&#xA;

    Format                                   : MPEG-4&#xA;Format profile                           : Base Media&#xA;Codec ID                                 : isom (isom/iso2/avc1/mp41)&#xA;File size                                : 1.04 GiB&#xA;Duration                                 : 1 h 21 min&#xA;Overall bit rate                         : 1 832 kb/s&#xA;Writing application                      : Lavf57.56.101&#xA;&#xA;Video&#xA;ID                                       : 1&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format profile                           : High@L4&#xA;Format settings                          : CABAC / 4 Ref Frames&#xA;Format settings, CABAC                   : Yes&#xA;Format settings, Reference frames        : 4 frames&#xA;Codec ID                                 : avc1&#xA;Codec ID/Info                            : Advanced Video Coding&#xA;Duration                                 : 1 h 21 min&#xA;Bit rate                                 : 1 634 kb/s&#xA;Width                                    : 1 912 pixels&#xA;Height                                   : 1 032 pixels&#xA;Display aspect ratio                     : 1.85:1&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 24.000 FPS&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Bits/(Pixel*Frame)                       : 0.035&#xA;Stream size                              : 953 MiB (89%)&#xA;Writing library                          : x264 core 148 r2748 97eaef2&#xA;Encoding settings                        : 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=9 / 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=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=24.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=8000 / vbv_bufsize=1000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00&#xA;Language                                 : French&#xA;Menus                                    : 3&#xA;Codec configuration box                  : avcC&#xA;&#xA;Audio&#xA;ID                                       : 2&#xA;Format                                   : AAC LC&#xA;Format/Info                              : Advanced Audio Codec Low Complexity&#xA;Codec ID                                 : mp4a-40-2&#xA;Duration                                 : 1 h 21 min&#xA;Bit rate mode                            : Constant&#xA;Bit rate                                 : 192 kb/s&#xA;Channel(s)                               : 6 channels&#xA;Channel layout                           : C L R Ls Rs LFE&#xA;Sampling rate                            : 48.0 kHz&#xA;Frame rate                               : 46.875 FPS (1024 SPF)&#xA;Compression mode                         : Lossy&#xA;Stream size                              : 112 MiB (11%)&#xA;Language                                 : French&#xA;Default                                  : Yes&#xA;Alternate group                          : 1&#xA;Menus                                    : 3&#xA;&#xA;Menu #1&#xA;ID                                       : 3&#xA;Codec ID                                 : text&#xA;Duration                                 : 1 h 21 min&#xA;Language                                 : English&#xA;Bit rate mode                            : CBR&#xA;Menu For                                 : 1,2&#xA;00:00:00.000                             : Chapitre 01&#xA;00:08:39.000                             : Chapitre 02&#xA;00:15:10.000                             : Chapitre 03&#xA;00:24:47.000                             : Chapitre 04&#xA;00:33:39.000                             : Chapitre 05&#xA;00:43:38.000                             : Chapitre 06&#xA;00:50:51.000                             : Chapitre 07&#xA;00:59:13.000                             : Chapitre 08&#xA;01:08:01.000                             : Chapitre 09&#xA;01:14:06.000                             : Chapitre 10&#xA;Bit rate mode                            : Constant&#xA;&#xA;Menu #2&#xA;00:00:00.000                             : Chapitre 01&#xA;00:08:39.000                             : Chapitre 02&#xA;00:15:10.000                             : Chapitre 03&#xA;00:24:47.000                             : Chapitre 04&#xA;00:33:39.000                             : Chapitre 05&#xA;00:43:38.000                             : Chapitre 06&#xA;00:50:51.000                             : Chapitre 07&#xA;00:59:13.000                             : Chapitre 08&#xA;01:08:01.000                             : Chapitre 09&#xA;01:14:06.000                             : Chapitre 10&#xA;

    &#xA;&#xA;

    Thanks in advance for any valuable tip you could provide

    &#xA;