Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (38)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

Sur d’autres sites (7695)

  • FFMPEG re-broadcast/proxy MJPEG stream

    10 septembre 2022, par Ollie Pugh

    I have an MJPEG stream coming from an RPI on my home network and have an NGINX acting as a proxy on an EC2.

    


    For the camera access the flow of stream to the user is the following

    


    RPi -> mjpeg-proxy (running on EC2) -> NGINX (running on same EC2) -> user

    


    the point of mjpeg-proxy is to reduce the load on the RPi and only have one stream to the Pi and allow the EC2 to distribute that one stream.

    


    Now this work fine-ish from my PC (on same network as Pi) the streams work perfectly. But when it comes to my phone on roaming data, the stream is super choppy and the latency grows massively (this project needs minimal latency, like sub 300ms).

    


    I can't understand why this would happen ? Because even when running of my local PC its going through the Proxy hosted in the cloud, so its not as if its an advantage to it being local ?

    


    the stream is fine on another device, e.g. my laptop, but thats on the same network as the RPi. But like I said, it shouldn't makea difference as its going through a proxy !

    


    I was wondering if using FFMPEG to re-stream the mjpeg stream would be beneficial as node is notoriously slow. But I don't really want to be writing my own mjpeg-proxy in C++ to speed this all up.

    


    I have looked online for answers to FFMPEG MJPEG proxy and have been very unsuccesful

    


  • ffmpeg randomly stops recording rtmp stream

    14 novembre 2022, par M9A

    I am trying to record a rtmp stream using ffmpeg. On the whole it records the stream fine but every so often it stops recording the stream and when I then go to record it again, it will only record around a second or 2 before it stops again. This usually goes on for like 10-15mins. In this time if I want to record the stream, I would have to manually record 1-2 seconds each time. This sounds like it is a server issue - perhaps there is a mechanism that cuts off the stream every few seconds.

    


    In the case where the stream cuts off, is there a way to keep trying and recording all of these 1-2 second segments rather than me doing it manually ? Doing it manually creates gaps in the recording due to the time taken to connect and record the stream. I even tried running the command in a loop but even with that there are gaps in the video.

    


    The code I am using to record the stream is as follows :

    


    ffmpeg -i "rtmp://example.com/stream?id=12345" -vcodec copy -acoded copy "output.mp4"


    


    When it is recording fine and cuts off the first time, there is no error given. It's like the stream came to an end so it stops recording. The subsequent times where I can only record 1-2 seconds are the same - there is no error

    


    As there are no error messages such as timeout or connection errors, I cannot even run flags on the command to retry recording.

    


  • Swift Get video stream duration

    14 mars 2019, par Jordane H

    I have a problem with a video which has an audio stream longer than the video stream according to ffmpeg command line :

    ffmpeg -i input.mp4 -vcodec copy -an -f null -   <--- video stream duration
    ffmpeg -i input.mp4 -acodec copy -an -f null -   <--- audio stream duration

    For example, the the first command gives a list of data including the stream duration of 3.64 and the second 3.80.

    I need to retrieve the video stream duration on Swift. I tried this :

    guard let videoAssetTrack = asset.tracks(withMediaType: AVMediaType.video).first else {
       return
    }

    let duration: CMTime = videoAssetTrack.timeRange.duration
    let durationTime = CMTimeGetSeconds(duration)

    It gives me 3.80, not the value I was expecting.

    Thank you for your attention, I hope you can help me on this case.