Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (100)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (10376)

  • How to use ffmpeg to play ps stream ?

    10 février 2018, par Zhang

    I use ffmpeg api to play media based on rtsp,but print log "Could not find codec parameters for stream 0 (Video : none, none) : unknown codec" . rtp payload is ps packet,how can I demux?

    if (avformat_open_input(&avFormatCtx, pathUrl, NULL, NULL) != 0) {
       NSLog(@"Open video file fail!!!");
       return NO;
    }

    // Retrieve stream information
    if (avformat_find_stream_info(avFormatCtx, NULL) < 0) {
       NSLog(@"Retrieve stream information fail!!!");
       return NO;
    }

    // Find the first video stream
    videoStream =  av_find_best_stream(avFormatCtx, AVMEDIA_TYPE_VIDEO, -1, -1, &avCodec, 0);
    char *errstr =   av_err2str(videoStream);
  • how to play m4s chunks downloaded from mpd file

    28 août 2015, par Mayank Agarwal

    Below i have written sample code to download first 7 chunks of mpd file of single quality alongwith base url mp4 of that particular quality.I am putting m4s chunks in queue of strings.How can i play the downloaded data.
    i have queue in which at first iteration is mp4 segment of particular quality
    and then in subsequent iterations i have m4s chunks of same quality
    Now i want to play this queue buffer using ffmpeg or gstreamer.How can i do this
    Individually i am able to play by downloading single mp4(of particular quality in mpd structure) then using cat concatenating with m4s chunks and then play.

    In open source libdash how it is done,if anyone has any idea.

    Please guide.

     #include <iostream>
    #include
    #include <curl></curl>curl.h>
    #include <queue>
    #include <cstdlib>

    using namespace std;
    string data;
    std::queue<string> myqueue;
    int size =0;



    size_t writeCallback(char* buf, size_t size, size_t nmemb, void* up)
    {

     printf("size  = %d\n\n\n",size);
     printf("size nmemb  = %d\n\n\n\n\n",nmemb);
     for (int c = 0; c/tell curl how many bytes we handled
     }



     int main()
     {
     CURL* curl; //our curl object
     char url_firstpart[80];// = NULL;
     char bitwide_chunk[10];
     char buffer[10];


    curl_global_init(CURL_GLOBAL_ALL); //pretty obvious
    curl = curl_easy_init();

    for(int i=0;i&lt;7;i++)
    {  

    strcpy(url_firstpart,"http://www-itec.uni- klu.ac.at/ftp/datasets/mmsys12/Valkaama/valkaama_1s/valkaama_1s_50kbit/valkaama_1s");
    string str = to_string(i);

    char * writable = new char[str.size() + 1];
    std::copy(str.begin(), str.end(), writable);
    writable[str.size()] = '\0';

    strcat(writable,".m4s");
    printf("concanated chink is %s\n",writable);

    strcat(url_firstpart,bitwide_chunk);
    puts(url_firstpart);


    curl_easy_setopt(curl, CURLOPT_URL,url_firstpart);
    curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &amp;writeCallback);
    curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);

    curl_easy_perform(curl);



    }

    size = myqueue.size();
    printf("Final size of queue = %d\n",size);
    cout &lt;&lt; endl &lt;&lt; data &lt;&lt; endl;
     cin.get();

     curl_easy_cleanup(curl);
     curl_global_cleanup();

     return 0;
    }
    </string></cstdlib></queue></iostream>
  • Problem settingup a play command for my discord bot (music) ['Error : FFmpeg/avconv not found !']

    28 août 2023, par TitanFrex

    Im new to programing a discord bot, im more to the web developing enviroment, im trying to create by myself a play command song (only with one link) to try if the first join is working and actually play the song.

    &#xA;

    (Discord.js v14)

    &#xA;

    Unfortunately i was having a problem with FFMPEG.&#xA;This my actual module for the play.js command, where all the problem is happening.

    &#xA;

    const { joinVoiceChannel, createAudioPlayer, createAudioResource } = require(&#x27;@discordjs/voice&#x27;);&#xA;const ytdl = require(&#x27;ytdl-core&#x27;);&#xA;&#xA;module.exports = {&#xA;    devOnly: true,&#xA;    name: &#x27;play&#x27;,&#xA;    description: &#x27;Start to play a song!&#x27;,&#xA;    // options: Object[],&#xA;&#xA;    /**&#xA;     *&#xA;     * @param {Client} client&#xA;     * @param {Interaction} interaction&#xA;     */&#xA;    callback: async (client, interaction) => {&#xA;        const voiceChannel = interaction.member.voice.channel;&#xA;&#xA;        if (!voiceChannel) {&#xA;            return interaction.reply(&#x27;You must be in a voice channel to use this command.&#x27;);&#xA;        }&#xA;&#xA;        const connection = joinVoiceChannel({&#xA;            channelId: voiceChannel.id,&#xA;            guildId: interaction.guild.id,&#xA;            adapterCreator: interaction.guild.voiceAdapterCreator,&#xA;        });&#xA;&#xA;        const stream = ytdl(&#x27;URL_HERE&#x27;, { filter: &#x27;audioonly&#x27; });&#xA;        const resource = createAudioResource(stream);&#xA;&#xA;        const player = createAudioPlayer();&#xA;        connection.subscribe(player);&#xA;        player.play(resource);&#xA;&#xA;        interaction.reply({&#xA;            content: `Playing Song`,&#xA;            // ephemeral: true,&#xA;        });&#xA;    }&#xA;}&#xA;

    &#xA;

    The first error i was receving was 'Error : FFmpeg/avconv not found !', i tried to install it with some guides online. after couple of tries i get it right and the command 'ffmpeg -version' returns.

    &#xA;

    After that i tought it was workikng, but when i started my project, i receved the same error,. I tried to look up for a solution and i tried to get the process.env.PATH to see but i dont understand if its right or not.

    &#xA;

    After i removed the console.log(process.env.PATH), i get no errors in the terminal, but it will stil not play the song.

    &#xA;