Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (85)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (6744)

  • Anomalie #4232 (Fermé) : Perte dans la table spip_jobs

    18 novembre 2018, par b b

    Ok, on ferme :)

  • avcodec/utils : make sidedata remapping table static const

    10 novembre 2014, par Michael Niedermayer
    avcodec/utils : make sidedata remapping table static const
    

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

    • [DH] libavcodec/utils.c
  • Basic "pass-through" use of FFmpegReader/FFmpegWriter in scikit-video

    6 février 2021, par JonathanZ supports MonicaC

    I am starting to use scikit-video and am having trouble writing files. I have reduced the problem to the simplest possible example

    &#xA;

    vid_file = "6710185719062326259_stamp_25pct.mp4"&#xA;output_file = "out_temp3.mp4"&#xA;reader = skvideo.io.FFmpegReader(vid_file)&#xA;writer = skvideo.io.FFmpegWriter(output_file)&#xA;for frame in reader.nextFrame():&#xA;        writer.writeFrame(frame)&#xA;writer.close()&#xA;

    &#xA;

    I'm playing the files in VLC, and the vid_file is valid but the output file, though playable, is mostly big green blocks (though I can discern some details from the original video in it).

    &#xA;

    My goal, or course, is to do "interesting" manipulations of the frame before I write it out, but I need to get the "no modifications" version working correctly first. I'm also going to be using this on large files, so the vread/vwrite functions that process an entire file at once are not appropriate.

    &#xA;

    I'm guessing I need to set the appropriate values in the outputdict parameter for the FFmpegWriter, but there are so many that I don't know where to start. I have tried

    &#xA;

    writer = skvideo.io.FFmpegWriter(output_file, outputdict={&#x27;-crf&#x27;: &#x27;0&#x27;, &#x27;-pix_fmt&#x27;: &#x27;rgb24&#x27;})&#xA;

    &#xA;

    (-crf 0 to suppress any compression, -pixfmt rgb24 as that's what FFmpegReader says it delivers by default, but these don't work either.

    &#xA;

    Any ideas on how to make this work ?

    &#xA;

    Here's the skvideo.io.ffprobe video information for the input file.

    &#xA;

    {&#xA;    "@index": "0",&#xA;    "@codec_name": "h264",&#xA;    "@codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",&#xA;    "@profile": "High",&#xA;    "@codec_type": "video",&#xA;    "@codec_time_base": "1/30",&#xA;    "@codec_tag_string": "avc1",&#xA;    "@codec_tag": "0x31637661",&#xA;    "@width": "480",&#xA;    "@height": "270",&#xA;    "@coded_width": "480",&#xA;    "@coded_height": "272",&#xA;    "@has_b_frames": "2",&#xA;    "@pix_fmt": "yuv420p",&#xA;    "@level": "21",&#xA;    "@chroma_location": "left",&#xA;    "@refs": "1",&#xA;    "@is_avc": "true",&#xA;    "@nal_length_size": "4",&#xA;    "@r_frame_rate": "15/1",&#xA;    "@avg_frame_rate": "15/1",&#xA;    "@time_base": "1/15360",&#xA;    "@start_pts": "0",&#xA;    "@start_time": "0.000000",&#xA;    "@duration_ts": "122880",&#xA;    "@duration": "8.000000",&#xA;    "@bit_rate": "183806",&#xA;    "@bits_per_raw_sample": "8",&#xA;    "@nb_frames": "120",&#xA;    "disposition": {&#xA;        "@default": "1",&#xA;        "@dub": "0",&#xA;        "@original": "0",&#xA;        "@comment": "0",&#xA;        "@lyrics": "0",&#xA;        "@karaoke": "0",&#xA;        "@forced": "0",&#xA;        "@hearing_impaired": "0",&#xA;        "@visual_impaired": "0",&#xA;        "@clean_effects": "0",&#xA;        "@attached_pic": "0",&#xA;        "@timed_thumbnails": "0"&#xA;    },&#xA;    "tag": [&#xA;        {&#xA;            "@key": "language",&#xA;            "@value": "und"&#xA;        },&#xA;        {&#xA;            "@key": "handler_name",&#xA;            "@value": "VideoHandler"&#xA;        }&#xA;    ]&#xA;}&#xA;

    &#xA;

    I will mention that when I ffprobe the output file the only differences I see are 1) the timing data is different, which isn't surprising, and 2) the output file has

    &#xA;

        "@has_b_frames": "0",&#xA;    "@pix_fmt": "yuv444p",&#xA;

    &#xA;

    I'm pretty confident the reader is working okay, because if I write out the data with

    &#xA;

    skimage.io.imsave(&#x27;x.png&#x27;, frame,  check_contrast=False)&#xA;

    &#xA;

    it looks good.

    &#xA;