Recherche avancée

Médias (91)

Autres articles (69)

  • 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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (11142)

  • Cannot stop and (re-play) a rtsp stream with FFMediaElement

    5 mars 2024, par CactusJack

    I have a problem using stop and play on a rtsp stream using the FFMediaElement.

    


    I am initializing an instance of the MediaElement once by doing m_MediaPlayer = new MediaPlayer();
This instance should live the whole application lifetime.

    


    After this, I open the rtsp stream : await m_MediaPlayer.Open(new Uri(rtspAdress));
The media opens, and when I do m_MediaPlayer.Play(); the stream is displayed in the MediaElement.

    


    Now I want to stop the stream with m_MediaPlayer.Stop(); and play it again. After calling play again, the stream is not diplayed anymore. The log says :

    


    Direct Command 'Close' accepted. Perparing execution.
OnStreamReadInterrupt was requested an immediate read exit.
EVENT START : BufferingEnded
EVENT DONE : BufferingEnded
V BLK : 14.388 | CLK : 14.417 | DFT : 29 | IX : 4 | RNG : 48.897% | PQ : 0.0k | TQ : 0.0k
Direct Command 'Close' entered
MediaState changed : + Close
Media closed.
OnStreamReadInterrupt was requested an immediate read exit.
EVENT START : MediaStateChanged
EVENT START : MediaClosed
EVENT DONE : MediaStateChanged
Direct Command 'Close' completed. Result : True
EVENT DONE : MediaClosed
Dispose Entered. Waiting for Command Manager processor to stop.
Dispose is waiting for pending direct commands.
Dispose is closing media.
EVENT START : MediaClosed
Media closed.
EVENT DONE : MediaClosed
Dispose completed.

    


    So why is Stop disposing the media ?
When I create a new player before re-playing and open the stream again, it works. But this takes a moment, so I just wat to stop and start again. Is that possible ?

    


  • Play Multiple online videos in FFMPEG

    4 juillet 2014, par AndroidOptimist

    I’m trying to make an Android Applicaion that uses FFMPEG to play online streams. I gone through dolphin player source and with the help of this i achieved playing udp streams in android. Now i am trying to play multiple streams in my player. For example i have a list activity that has 10 names and by clicking each name the corrosponding video should be played. How can i achieve this in avformat_open_input. I am very new to ffmpeg. Please help me in achiving this. Thanks in advance.

    My c code is as follows :

    static int decode_module_init(void *arg)
    {
       VideoState *is = (VideoState *)arg;
       AVFormatContext *pFormatCtx;

       int err;
       int ret = -1;

       int i;

       int video_index = -1;
       int audio_index = -1;


       is->videoStream=-1;
       is->audioStream=-1;

       char* Filename = "udp://.....";

       global_video_state = is;

       pFormatCtx = avformat_alloc_context();
       pFormatCtx->interrupt_callback.callback = decode_interrupt_cb;
       pFormatCtx->interrupt_callback.opaque = is;


       **err = avformat_open_input(&pFormatCtx, Filename , NULL, NULL);**

       if (err < 0) {
           __android_log_print(ANDROID_LOG_INFO, "message", "File open failed");
           ret = -1;
           goto decode_module_init_fail;

       }

       __android_log_print(ANDROID_LOG_INFO, "message", "File open successful");
    }
  • Why can't Chrome 83 play this AV1 encoded video ?

    25 mai 2020, par Slbox

    The file plays great in VLC.

    



    I've tried adding the codecs="av01.0.05M.08" to the video source, but no luck - no browser will play it, despite what's stated here : https://caniuse.com/#feat=av1

    



    The video was encoded like so :

    



    ffmpeg -i input.avi -pix_fmt yuva420p -f nut -c:v libaom-av1 -minrate 1k -b:v 350k -maxrate 2000k -strict experimental output.mp4


    



    Browser console :

    



      

    • Chrome gives no hint whatsoever as to why it won't play. Firefox gives some minor clues.

    • 


    • Firefox shows the below

    • 


    



    Media resource https://example.com/example.mp4 could not be decoded. example.mp4


    



    Media resource https://example.com/example.mp4 could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)
Details: static MP4Metadata::ResultAndByteBuffer __cdecl mozilla::MP4Metadata::Metadata(mozilla::ByteStream *): Cannot parse metadata


    



    Any advice on where I'm going wrong, either in understanding or in encoding arguments, would be greatly appreciated !