Recherche avancée

Médias (91)

Autres articles (20)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (5964)

  • Play mp3 data with audiotrack with ffmpeg

    1er février 2014, par Ichigo Kurosaki

    I am designing an android app where i receive live mp3 data as stream from Red5 server and i need to play it.

    I cant play it using media player class as i don't have any url for the stream, nor i cant use files. Another option is to use Audio track class, but requires PCM data only. So need to convert mp3 to pcm, so using ffmpeg.

    My code for conversion is

    AVCodec *codec;
    AVCodecContext *c= NULL;
    int out_size, len;
    uint8_t *outbuf;

    int iplen=(*env)->GetArrayLength(env, mp3buf);
    int16_t inbuf[AUDIO_INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
    AVPacket avpkt;
    av_init_packet(&avpkt);
    av_register_all();
    avcodec_register_all();

    codec = avcodec_find_decoder(CODEC_ID_MP3);
    if(!codec){
       __android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "Codec not found");
    }
    c = avcodec_alloc_context();
    outbuf = malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
    avpkt.data = (*env)->GetByteArrayElements(env,mp3buf,NULL);

    avpkt.size = (*env)->GetArrayLength(env, mp3buf);
    out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
    int ao=avcodec_open(c, codec);
       if (ao < 0) {
           __android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "avcodec not open");
       }
       len = avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt);

    The Problem is avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt); returns -1 always.

    Cant figure out whats wrong.

    Any help appreciated.

  • Why does this HEVC HLS stream not play on browsers ?

    22 janvier 2024, par Sebastian

    I have a HEVC HLS stream that does not play when I paste it e.g. in Safari. The video is encoded in HEVC and has a resolution of 4608x1728. The screen just stays black.

    


    The URL is : https://cdn2.taggy.cam/videos/JFNi2a3JVxmUxWh8t6YkbzR5t9HyS94ZaQy81KVrbwJ2ztTp9f/hls/h265/video.m3u8

    


    (or https://cdn2.taggy.cam/videos/JFNi2a3JVxmUxWh8t6YkbzR5t9HyS94ZaQy81KVrbwJ2ztTp9f/hls/h265/playlist.m3u8 for the master playlist)

    


    VLC player does play it.

    


    I tried several different players to get an error message, but the only thing I got was "MEDIA.VIDEO_ERROR (4,,CHUNK_DEMUXER_ERROR_APPEND_FAILED : Video stream codec hevc doesn't match SourceBuffer codecs.)"

    


    The video is initially created with FFMpeg by recording the RTSP stream of a webcam with

    


    ffmpeg -i rtsp://stream -tag:v hvc1 -f hls -hls_time 1 -hls_list_size 0 -hls_segment_filename output-directory/video-%05d.m4s -c copy


    


    Any ideas how to debug this would be appreciated !

    


    Thanks,
Sebastian

    


  • Discord bot play youtoube link

    26 février 2019, par RedGaming

    Im coding a discord bot, i installed ytdl and ffmpeg, both correctly (cmd shows version), but it quite dont plays the yt links, this is the code :
    } else if (message.content.startsWith ===$prefixplay`)
    const ytdl = require(’ytdl-core’) ;
    const streamOptions =
    seek : 0,
    volume : 1
     ;
    const broadcast = bot.createVoiceBroadcast() ;
    var link = arg1

       bot.voiceChannel.join()
           .then(connection => {
               const stream = ytdl(arg1, {
                   filter: 'audioonly'
               });
               broadcast.playStream(stream);
               const dispatcher = connection.playBroadcast(broadcast);
           })
           .catch(console.error);