Recherche avancée

Médias (91)

Autres articles (87)

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

  • 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

Sur d’autres sites (10198)

  • Is it possible to stream MJPEG content over MPEG-DASH ?

    26 juillet 2021, par Eloy Schultz

    I am trying to re-stream an MJPEG stream over dash using ffmpeg.

    


    I have an ESP32 camera module that outputs an MJPEG livestream at 192.168.2.128:81/stream (Arduino code here).
I can open this stream directly in the browser and see the video in realtime, but the camera will only allow for a single client at a time while I am in need of a multi client solution.

    


    What doesn't work

    
A solution I am currently trying to implement is to use a seperate server (Raspberry Pi) running apache and ffmpeg to re-stream the MJPEG content using DASH :


    ffmpeg -re -i http://192.168.2.128:81/stream -strict -2 -an -c:v copy -b:v 2000k -f dash -window_size 4 -extra_window_size 0 -min_seg_duration 2000000 -remove_at_exit 1 /var/www/html/out.mpd


    


    I get no errors when executing this command on the server.
I then use this ffmpeg-dash.html to display the video in the browser.
This code unfortunately fails, in Firefox the console reports the error :

    


    [72][Stream] No streams to play.


    


    followed by :

    


    Cannot play media. No decoders for requested formats: video/mp4;codecs="mp4v.6c";width="640";height="480"


    


    What does work

    
What is puzzling me is that the above code works fine if I replace the MJPEG livestream url with a sample .mkv file, so if I use


    ffmpeg -re -i /var/www/html/video.mkv -strict -2 -an -c:v copy -b:v 2000k -f dash -window_size 4 -extra_window_size 0 -min_seg_duration 2000000 -remove_at_exit 1 /var/www/html/out.mpd


    


    I can view the livestreamed sample video (video.mkv) without problems using the previously mentioned ffmpeg-dash.html file.
Furthermore, it seems that ffmpeg can read the MJPEG livestream without problems, since

    


    ffmpeg -t 10 -i http://192.168.2.128:81/stream -filter:v fps=15 -c:v flv test.flv


    


    returns a 10 second clip of the livestream succesfully.

    


    So to me it seems that the problem lies in how I combine the two. What am I missing ? Is it even possible to stream MJPEG content over MPEG-DASH ?
(I am new to this, sorry in advance for my ignorance)

    


  • A/V out of sync when using ffmpeg from mpeg-ts to dash

    17 mai 2018, par user3540646

    I’m using ffmpeg in order to convert MPEG-TS stream to MPEG-DASH.
    The mpeg-ts is h264 and aac_latm.
    Therefore I don’t need to reencode the video.
    The command I use :

    ffmpeg -i http://10.0.0.211:55555/Ch%2011%20Kan -strict -2 -c:v copy -window_size 10 -extra_window_size 10 -use_template 1 -use_timeline 1 -f dash kan.mpd

    I’m copying the video codec by using -c:v copy and the audio codec is default to aac.

    That way I get DASH stream BUT the audio/video is out of sync !

    How can I fix it ?

    Notes :

    1. If I reencode both audio and video like :

      ffmpeg -i http://10.0.0.211:55555/Ch%2011%20Kan -strict -2 -window_size 10 -extra_window_size 10 -use_template 1 -use_timeline 1 -f dash kan.mpd

    Then the audio/video is synced perfectly.
    But I do not want to reencode the video for nothing as I mentioned the video is already h264. (directly impact to performance)

    1. If I convert the MPEG-TS stream to mp4 file like :

      ffmpeg -i http://10.0.0.211:55555/Ch%2011%20Kan -strict -2 -c:v copy kan.mp4

    Then the audio/video is synced perfectly.

  • Generate MPEG-DASH segments when requested [closed]

    16 septembre 2024, par John Smith

    Up front disclaimer : this question is almost identical to the one here : Generate single MPEG-Dash segment with ffmpeg but it seems that ffmpeg has updated over time and now the answer provided by Coumeu is no longer accurate.

    


    Using ffmpeg, I am attempting to "lazily create" the segments needed for MPEG DASH playback. I have a static manifest (MPD) which includes SegmentTemplates for 1 video and 1 audio stream.

    


    Only when the endpoints provided in the SegmentTemplate for init or media segments is hit it will generate this segment. In other words, nothing is processed up front.

    


    I am creating the init segment using the following movflags :

    


    +frag_keyframe+faststart+skip_trailer 


    


    I am creating the media segment using the following movflags

    


    +frag_keyframe+default_base_moof+delay_moov+skip_trailer+dash+global_sidx


    


    and the following additional commands any segment type :

    


    -map_metadata -1 -copyts -start_at_zero -map 0:${streamIndex}


    


    This results in playable video with the correct duration, but it seems to be switching fragments quite fast. On average one fragment per second. When I omit the delay_moov flag, the video also starts glitching, like it's stepping over I-Frames.

    


    My observations when I look at the boxes :

    


      

    • earliest_presentation_time (sidx box) is 0 for all segments
    • 


    • base_media_decode_time (moof->traf->tfdt box) is 0 for all segments
    • 


    


    I'm looking for either the correct command line to create segments on the fly, or hacky ways to get it done right if ffmpeg doesn't provide it out of the box. Even information about what to look for would be helpful, because my knowledge about mp4 and MPEG-DASH is running out.