Recherche avancée

Médias (91)

Autres articles (68)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

Sur d’autres sites (11297)

  • 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>
  • 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(&amp;avFormatCtx, pathUrl, NULL, NULL) != 0) {
       NSLog(@"Open video file fail!!!");
       return NO;
    }

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

    // Find the first video stream
    videoStream =  av_find_best_stream(avFormatCtx, AVMEDIA_TYPE_VIDEO, -1, -1, &amp;avCodec, 0);
    char *errstr =   av_err2str(videoStream);
  • How play audio from a .mkv file from specific frame in python

    31 juillet 2022, par ChaseRatliff

    I would like to know how I could go about playing audio from a .mkv file. I am trying to play video. I am using opencv to display the video and ffpyplayer to play the audio. I can set the frame I want to start playing at in opencv but not in ffplayer. Any ideas or suggestions would help a ton. Here is what I have came up with.

    &#xA;

    import cv2&#xA;from ffpyplayer.player import MediaPlayer&#xA;&#xA;video_path=videoName&#xA;&#xA;def PlayVideo(video_path):&#xA;    font = cv2.FONT_HERSHEY_SIMPLEX&#xA;    video=cv2.VideoCapture(video_path)&#xA;&#xA;    video.set(cv2.CAP_PROP_POS_FRAMES, 7200)&#xA;    player = MediaPlayer(video_path)&#xA;    while True:&#xA;        font = cv2.FONT_HERSHEY_SIMPLEX&#xA;        grabbed, frame=video.read()&#xA;        audio_frame, val = player.get_frame()&#xA;&#xA;    if not grabbed:&#xA;        print("End of video")&#xA;        break&#xA;        &#xA;    if cv2.waitKey(28) &amp; 0xFF == ord("q"):&#xA;        break&#xA;&#xA;    cv2.imshow("Video", frame)&#xA;    if val != &#x27;eof&#x27; and audio_frame is not None:&#xA;        #audio&#xA;        img, t = audio_frame&#xA;&#xA;video.release()&#xA;cv2.destroyAllWindows()&#xA;&#xA;PlayVideo(video_path)&#xA;

    &#xA;