Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (79)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

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

  • VideoCapture() returns None in opencv & install opencv with ffmpeg

    16 décembre 2017, par Wentai Chen

    System : UBUNTU 16.04
    Python version : 3.5

    I would like to use cv2.VideoCapture() function to process my mp4 file. However, when I run the script below, I always get a result of None, so I am not able to continue my work after.

    import cv2
    video_cap = cv2.VideoCapture('demo.mp4')
    ret,frame = video_cap.read()
    print(ret,frame)

    result: False,None

    By searching a lot I realized the problem : opencv is not properly installed with ffmpeg, so that the video function in opencv does not work.

    However I didn’t find a efficient tutorial on how to properly install opencv. I wonder if anyone could help. Thank you !

  • Ffmpeg encoding a video with time_base Not equal to framerate does not work hardware accelerated Video Player

    10 janvier 2020, par Gilgamesh22

    I have a time_base of 90000 with a frame rate of 30. I can generate a h264 video and have it work in VLC but this video does not work in a hardware accelerated web chrome player using Intel HD Graphics 530. If I change the time_base to 30 It works fine.

    Note : I am changing the frame->pts appropriately to match the time_base.
    Note : Video does not have audio stream

    //header.h
    AVCodecContext *cctx;
    AVStream* stream;

    Here is the non working example code

    //source.cpp
    stream->time_base = { 1, 90000 };
    stream->r_frame_rate = { fps, 1 };
    stream->avg_frame_rate = { fps, 1 };

    cctx->codec_id = codecId;
    cctx->time_base = { 1 ,  90000 };
    cctx->framerate = { fps, 1 };

    // ......
    // add frame code later on timestamp are in millisecond
    frame->pts = (timestamp - startTimeStamp)* 90;

    Here is the working example code

    //source.cpp
    stream->time_base = { 1, fps};
    stream->r_frame_rate = { fps, 1 };
    stream->avg_frame_rate = { fps, 1 };

    cctx->codec_id = codecId;
    cctx->time_base = { 1 ,  fps};
    cctx->framerate = { fps, 1 };

    // ......
    //  add frame code timestamp are in millisecond
    frame->pts = (timestamp - startTimeStamp)/(1000/fps);

    Any ideas on why the second example works and the first does not in the video player.

  • Video is not playing in default player of android device

    6 janvier 2014, par Gururak

    I am using ffmpeg command for padding a video. After padding video, video is becoming bigger than the screen size of android device. Because of the bigger size video is not playing in videoview. It can be played by scaling padded video to screen size of the device. But i don't want to scale the video.Finally my question is "How to play a video of bigger size than the screen size in android in video view" ?