Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11731)

  • Adding an Overlay Using FFMPEG With Minimal Re-Encoding

    24 avril 2019, par spaceman

    FFMPEG is really useful for cutting a part of a video, without re-encoding the video.

    I know it is also possible to use FFMPEG for adding an Overlay Image to a video, in a certain part of the video (for example from 10secs till 20secs).

    My question is : If I do this overlaying of an image, will the whole video get re-encoded because of that ? Or just the relevant duration will be encoded ?

    Also are there any options that I can use to make the re-encoding minimal ?
    The purpose if of course to keep the quality of the video like the original one..
    (I would ask for no re-encoding at all, but I don’t see how that might be possible...)

    Thank you

  • Decode raw h.264 frame data using nvdec(h264_cuvid) in C/C++

    28 octobre 2020, par Straywolfs

    everyone...

    


    I trying to write decoder class for h.264 raw stream...but it didn't work well..

    


    the stream simply consists data size and encoded raw data...
(Resoultion = 1280 x 720)

    


    Here are codes I wrote...(except exceptions...)

    



    


    Part 1 : Initialization

    


    AVCodec *m_pDecoder = avcodec_find_decoder_by_name("h264_cuvid");
AVCodecContext *m_pDecoderContext = avcodec_alloc_context3(m_pDecoder);

AVBufferRef *m_HWContext;
av_hwdevice_ctx_create(&m_HWContext, AV_HWDEVICE_TYPE_CUDA, NULL, NULL, 0);

AVPacket m_pkt_decode;
av_init_packet(&m_pkt_decode);

m_pDecoderContext->pix_fmt = AV_PIX_FMT_CUDA;
m_pDecoderContext->width = 1280;
m_pDecoderContext->height = 720;
avcodec_open2(m_pDecoderContext, m_pDecoder, NULL);


    



    


    Part 2 : Filling the stream data

    


    m_pkt_decode.data = (uint8_t *)pStreamData;
m_pkt_decode.size = nDataSize;


    



    


    Part 3 : Decoding the stream data

    


    AVFrame *frame = nullptr;
frame = av_frame_alloc();

avcodec_send_packet(m_pDecoderContext, &m_pkt_decode);
avcodec_receive_frame(m_pDecoderContext, frame);


    


    and then...

    


    avcodec_receive_frame function is always return errors...
    
Are there any missing steps in my codes ?

    


  • How to split video to frames and one frame to 3 images from selected frame parts

    19 août 2019, par Łukasz Klejszta

    I`m parsing mp4 files on server (node.js). I want to have at least 3 images from specific parts of video, frame by frame.

    I already splitted video to frames using command :
    ffmpeg -i /mnt/.../test_1.mp4 -s 1920x1080 -aspect 16:9 -vframes 5 -filter_complex "scale=iw*sar:ih, pad=max(iw\\,ih*(16/9)):ow/(16/9):(ow-iw)/2:(oh-ih)/2:black" /mnt/.../test_frame_1920x1080_%d.jpg

    I have test_1.mp4 file 1920x1080 60fps, want to store part of each frame as image. Part of image is reactangle starting at 100x100 and ending on 200x200. Result would be like test_1_[frame_number]_image_100x100_200x200.jpg