Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (59)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (11342)

  • Merge commit ’23f741f79327e31be7b2a75ebb2e02111e06e52f’

    28 mai 2014, par Michael Niedermayer
    Merge commit ’23f741f79327e31be7b2a75ebb2e02111e06e52f’
    

    * commit ’23f741f79327e31be7b2a75ebb2e02111e06e52f’ :
    matroskadec : parse the channel layout mask for FLAC

    Conflicts :
    libavformat/oggparsevorbis.c

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/Makefile
    • [DH] libavformat/flacdec.c
    • [DH] libavformat/matroskadec.c
    • [DH] libavformat/oggdec.h
    • [DH] libavformat/oggparsecelt.c
    • [DH] libavformat/oggparseflac.c
    • [DH] libavformat/oggparseogm.c
    • [DH] libavformat/oggparseopus.c
    • [DH] libavformat/oggparsespeex.c
    • [DH] libavformat/oggparsetheora.c
    • [DH] libavformat/oggparsevorbis.c
    • [DH] libavformat/oggparsevp8.c
  • Merge remote-tracking branch ’rbultje/vp9-profile1-wip’

    1er mai 2015, par Michael Niedermayer
    Merge remote-tracking branch ’rbultje/vp9-profile1-wip’
    

    * rbultje/vp9-profile1-wip :
    vp9 : add fate test for 422.
    vp9 : copy bug in libvpx for 4:2:2 chroma bs=8x4/4x4 prediction.
    vp9 : add yuv440 fate test.
    vp9 : fix mask_edges and filter_plane_rows/cols() for 440.
    vp9 : more specifically specify mask destination to mask_edges().
    vp9 : add fate test for profile 1 444.
    vp9 : don’t create special u/v filter masks for 444.
    vp9 : merge uv loopfilter code into generic filter_plane_rows/cols().
    vp9 : split out loopfilter luma rows/cols functions from loopfilter_sb().
    vp9 : invert order of two conditions.
    vp9 : use correct chroma subsampling for profile 1 inter block recon.
    vp9 : use correct chroma subsampling for profile 1 intra block recon.
    vp9 : take chroma subsampling into account when walking the block tree.
    vp9 : support non-420 chroma subsampling for profile 1 token decoding.
    vp9 : increase buffer sizes for non-420 chroma subsamplings.
    vp9 : profile 1 header decoding.

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/vp9.c
    • [DH] libavcodec/vp9_mc_template.c
    • [DH] tests/fate/vpx.mak
    • [DH] tests/ref/fate/vp9p1-04-yuv422
    • [DH] tests/ref/fate/vp9p1-04-yuv440
    • [DH] tests/ref/fate/vp9p1-04-yuv444
  • ffmpeg how to set max_num_reorder_frames H264

    13 juin, par Vasil Yordanov

    Anyone know how can I set max_num_reorder_frames to 0 when I am encoding H264 video ?&#xA;You can find in the docs as uint8_t H264RawVUI::bitstream_restriction_flag

    &#xA;

    PS. Based on the discussion in the comments. What I actually want to accomplish is to have all the frames written in the order in which they were encoded. My use-case is - I have 1000 images for example. I encode each one of them using the codec, but then when I investigate a little bit and check the actual packets in the H264 container, I see that I have cases when one frame is written twice (for example ... 1,2,3,3,4,5,6,7,7 ...) what I want is once I decode the the H264 container I want to get the same images which I encoded. Is that possible and how ?

    &#xA;

    P.P.S : I don't think the g=1 works - giving some more code for reference. This is what I currently have :

    &#xA;

    import numpy as np&#xA;import ffmpeg, subprocess, av&#xA;&#xA;width, height, encoding_profile, pixel_format = 1280, 800, &#x27;main&#x27;, &#x27;yuv420p&#x27;&#xA;&#xA;# here I create 256 frames where each one has unique pixels all zeros, ones, twos and etc.&#xA;np_images = []&#xA;for i in range(256):&#xA;    np_image = i &#x2B; np.zeros((height, width, 3), dtype=np.uint8)&#xA;    np_images.append(np_image)&#xA;&#xA;print(f&#x27;number of numpy images: {len(np_images)}&#x27;)&#xA;&#xA;encoder = (ffmpeg&#xA;    .input(&#x27;pipe:&#x27;, format=&#x27;rawvideo&#x27;, pix_fmt=&#x27;rgb24&#x27;, s=&#x27;{}x{}&#x27;.format(width, height))&#xA;    .output(&#x27;pipe:&#x27;, format=&#x27;H264&#x27;, pix_fmt=pixel_format, vcodec=&#x27;libx264&#x27;, profile=&#x27;main&#x27;, g=1)&#xA;    .run_async(pipe_stdin=True, pipe_stdout=True)&#xA;)&#xA;&#xA;for timestamp, frame in enumerate(np_images):&#xA;    encoder.stdin.write(&#xA;        frame&#xA;        .astype(np.uint8)&#xA;        .tobytes()&#xA;    )&#xA;&#xA;encoder.stdin.close()&#xA;output = encoder.stdout.read()&#xA;encoder.stdout.close()&#xA;&#xA;# here I decode the encoded frames using PyAV&#xA;frame_decoder = av.CodecContext.create("h264", "r")&#xA;frame_decoder.thread_count = 0&#xA;frame_decoder.thread_type = &#x27;NONE&#x27;&#xA;packets = frame_decoder.parse(output)&#xA;decoded_frames = []&#xA;&#xA;for packet in packets:&#xA;    frame = frame_decoder.decode(packet)&#xA;    decoded_frames.extend(frame)&#xA;&#xA;decoded_frames.extend(frame_decoder.decode())&#xA;print(f&#x27;number of decoded frames: {len(decoded_frames)}&#x27;)&#xA;print(&#x27;keyframe boolean mask&#x27;)&#xA;print([e.key_frame for e in decoded_frames])&#xA;&#xA;decoded_np_images = []&#xA;&#xA;for frame in decoded_frames:&#xA;    decoded_np_images.append(np.array(frame.to_image()))&#xA;&#xA;print(f&#x27;number of decoded numpy images: {len(decoded_np_images)}&#x27;)&#xA;&#xA;# here I check what the decoded frames contain (all zeros, ones, twos and etc.)&#xA;print([e[0,0,0].item() for e in decoded_np_images])&#xA;

    &#xA;

    the particular problem which I am facing is that in the output you can observe this :

    &#xA;

    &#xA;

    number of decoded numpy images : 255

    &#xA;

    [0, 1, 2, 3, 3, 4, 5, 6, 8, 9, 10,&#xA;10, 11, 12, 13, 15, 16, 17, 17, 18, 19, 20, 22, 23, 24, 24, 25, 26,&#xA;27, 29, 30, 31, 31, 32, 33, 34, 36, 37, 38, 39, 39, 40, 41, 43, 44,&#xA;45, 46, 46, 47, 48, 50, 51, 52, 53, 53, 54, 55, 57, 58, 59, 60, 60,&#xA;61, 62, 64, 65, 66, 67, 67, 68, 69, 71, 72, 73, 74, 74, 75, 76, 78,&#xA;79, 80, 81, 81, 82, 83, 85, 86, 87, 88, 88, 89, 90, 91, 93, 94, 95,&#xA;95, 96, 97, 98, 100, 101, 102, 102, 103, 104, 105, 107, 108, 109, 109,&#xA;110, 111, 112, 114, 115, 116, 116, 117, 118, 119, 121, 122, 123, 123,&#xA;124, 125, 126, 128, 129, 130, 131, 131, 132, 133, 135, 136, 137, 138,&#xA;138, 139, 140, 142, 143, 144, 145, 145, 146, 147, 149, 150, 151, 152,&#xA;152, 153, 154, 156, 157, 158, 159, 159, 160, 161, 163, 164, 165, 166,&#xA;166, 167, 168, 170, 171, 172, 173, 173, 174, 175, 176, 178, 179, 180,&#xA;180, 181, 182, 183, 185, 186, 187, 187, 188, 189, 190, 192, 193, 194,&#xA;194, 195, 196, 197, 199, 200, 201, 201, 202, 203, 204, 206, 207, 208,&#xA;208, 209, 210, 211, 213, 214, 215, 216, 216, 217, 218, 220, 221, 222,&#xA;223, 223, 224, 225, 227, 228, 229, 230, 230, 231, 232, 234, 235, 236,&#xA;237, 237, 238, 239, 241, 242, 243, 244, 244, 245, 246, 248, 249, 250,&#xA;251, 251, 252, 253]

    &#xA;

    &#xA;

    I still have frames which are appearing twice (and respectively some are missing)

    &#xA;