Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (25)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (7918)

  • avformat_write_header() doesn't work when writing data to memory instead of file

    12 novembre 2020, par Mohamed Kandeel

    i want to resample a given input format from memory to memory everything is good so far.

    


    but when trying to get the output header from ffmpeg it doesn't work.

    


    here i allocate the context and pass the write_buffer function pointer so that it doesn't write to a file but instead it will call my function with the required data

    


    unsigned char * aviobuffer = (unsigned char *) av_malloc (32768);
AVIOContext * avio = avio_alloc_context (aviobuffer, 32768,1, NULL, NULL, write_buffer, NULL);

AVFormatContext* containerContext;
avformat_alloc_output_context2(&containerContext, NULL, "s16le", NULL);
containerContext->pb = avio;


    


    here is my write_buffer function

    


    std::vector<char>* data;&#xA;int write_buffer(void *opaque, uint8_t *buf, int buf_size)&#xA;{&#xA;    std::vector<char> tmp;&#xA;    tmp.assign(buf, buf &#x2B; buf_size);&#xA;    data->insert(data->end(), tmp.begin(), tmp.end());&#xA;    return buf_size;&#xA;}&#xA;</char></char>

    &#xA;

    now when i call avformat_write_header() it doesn't call my write_buffer() function + it returns 0 which means success.

    &#xA;

    int ret = avformat_write_header(containerContext, NULL);&#xA;

    &#xA;

    after that i call the appropriate functions to get the data body itself and my write_buffer() get called normally so i am now left with the data body with no header !!

    &#xA;

    how can i get the output header anyways ?

    &#xA;

  • ffmpeg, twitch.tv, doesnt work

    7 novembre 2015, par John Smith

    Im using this command for streaming :

    ffmpeg -f dshow -i video="screen-capture-recorder" -f dshow -i audio="Mikrofon (USB audioeszköz)" -f dshow -i audio="virtual-audio-capturer" -f dshow -i audio="Mikrofon (Conexant SmartAudio H" -vcodec libx264 -r 25 -crf 0 -acodec aac -strict -2 -filter_complex amix=inputs=3:duration=first -pix_fmt yuv420p -s 640x480 -preset fast -f flv "rtmp ://live.twitch.tv/app/live_**********"

    if I save it to disk, it works. Streaming to twitch.tv also wont give error, but it just stays blank, it cannot see it "alive"

  • Unable to get nginx-vod-module plugin to work

    31 octobre 2020, par AAP

    My first time trying hands on nginx-vod-module or any video streaming for that matter.&#xA;I just want to play static mp4 videos which I place on the server but via hls instead of direct mp4 access. No actual live streaming

    &#xA;

    Q1. Am I right in understanding that a mp4 video which I place locally on my server, will automatically get broken down into segments for HLS ?

    &#xA;

    My nginx installation is here : /opt/kaltura/nginx&#xA;The mp4 file is placed at /opt/kaltura/nginx/test/vid.mp4

    &#xA;

    In ../nginx/conf/server.conf, I have this :

    &#xA;

    location /hls/ {&#xA;            alias test/;&#xA;            vod hls;&#xA;            vod_bootstrap_segment_durations 2000;&#xA;            vod_bootstrap_segment_durations 2000;&#xA;            vod_bootstrap_segment_durations 2000;&#xA;            vod_bootstrap_segment_durations 4000;&#xA;&#xA;            include /opt/kaltura/nginx/conf/cors.conf;&#xA;        }&#xA;location / {&#xA;            root   html;&#xA;        }&#xA;

    &#xA;

    Now, I am able to access the m3u8 file :&#xA;curl http://104.167xxxxx/hls/vid.mp4/index.m3u8

    &#xA;

    But when I try to open this file via VLC, I see these errors in errors.log :

    &#xA;

    *2020/10/31 15:00:08 [error] 12749#0: *60 mp4_parser_validate_stsc_atom: zero entries, client: 49.207 ..., server: ubuntu, request: "GET /hls/vid.mp4/seg-1-v1.ts HTTP/1.1", host: "104.167. ..."&#xA;2020/10/31 15:00:08 [error] 12752#0: *61 mp4_parser_validate_stsc_atom: zero entries, client: 49.207 ..., server: ubuntu, request: "GET /hls/vid.mp4/seg-2-v1.ts HTTP/1.1", host: "104.167. ..."&#xA;2020/10/31 15:00:09 [error] 12749#0: *62 mp4_parser_validate_stsc_atom: zero entries, client: 49.207 ..., server: ubuntu, request: "GET /hls/vid.mp4/seg-3-v1.ts HTTP/1.1", host: "104.167. ..."&#xA;2020/10/31 15:00:10 [error] 12751#0: *63 mp4_parser_validate_stsc_atom: zero entries, client: 49.207 ..., server: ubuntu, request: "GET /hls/vid.mp4/seg-4-v1.ts HTTP/1.1", host: "104.167. ..."*&#xA;

    &#xA;

    Q2 : Is https must for this to work ?&#xA;Q3 : I dont see any /hls/vid.mp4 folder created anywhere on the server. Do I have to manually run ffmpeg separately to create the hls segments ?

    &#xA;

    What wrong am I doing ?

    &#xA;