Recherche avancée

Médias (91)

Autres articles (46)

  • 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

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

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

Sur d’autres sites (9270)

  • Youtube live stream with dynamic content

    6 octobre 2019, par Arturek

    I’m trying to create a live stream with changing data in real-time on youtube.

    Let’s say I want to show the current Bitcoin price in real-time. For instance, using python and sending requests to some public APIs, I can very easily get current prices of Bitcoin. But I have no idea how to create such a live stream, which will be automatically updated with fresh data.

    I know that I can use ffmpeg to stream on youtube, but how would I change the content of my stream ?

    # To make sure you know what I mean, I created a basic sample.

    import requests
    import json
    import time

    createYtLiveStream()

    while(True):
     response = requests.get('https://api.coindesk.com/v1/bpi/currentprice.json').json()
     price = response['bpi']['USD']['rate']

     updateYtLiveStream(price)

     time.sleep(20)

    I want to do it on Ubuntu. Can you tell me how can I do it, please ?
    Thanks.

  • How to generate valid live DASH for YouTube ?

    24 septembre 2019, par Matt Hensley

    I am attempting to implement YouTube live video ingestion via DASH as documented at :
    https://developers.google.com/youtube/v3/live/guides/encoding-with-dash

    To start, I am exercising the YouTube API manually and running ffmpeg to verify required video parameters before implementing in my app.

    Created a new livestream with liveStreams.insert and these values for the cdn field :

    "cdn": {
       "frameRate": "variable",
       "ingestionType": "dash",
       "resolution": "variable"
    }

    Created a broadcast via liveBroadcasts.insert, then used liveBroadcasts.bind to bind the stream to the broadcast.

    Then I grabbed the ingestionInfo from the stream and ran this ffmpeg command, copying in the ingestionAddress with the streamName :

    ffmpeg -stream_loop -1 -re -i mov_bbb.mp4 \
       -loglevel warning \
       -r 30 \
       -g 60 \
       -keyint_min 60 \
       -force_key_frames "expr:eq(mod(n,60),0)" \
       -quality realtime \
       -map v:0 \
       -c:v libx264 \
       -b:v:0 800k \
       -map a:0 \
       -c:a aac \
       -b:a 128k \
       -strict -2 \
       -f dash \
       -streaming 1 \
       -seg_duration 2 \
       -use_timeline 0 \
       -use_template 1 \
       -window_size 5 \
       -extra_window_size 10 \
       -index_correction 1 \
       -adaptation_sets "id=0,streams=v id=1,streams=a" \
       -dash_segment_type mp4 \
       -method PUT \
       -http_persistent 1 \
       -init_seg_name "dash_upload?cid=${streamName}&copy=0&file=init$RepresentationID$.mp4" \
       -media_seg_name "dash_upload?cid=${streamName}&copy=0&file=media$RepresentationID$$Number$.mp4" \
       'https://a.upload.youtube.com/dash_upload?cid=${streamName}&copy=0&file=dash.mpd'

    It appears all the playlist updates and video segments upload fine to YouTube - ffmpeg does not report any errors. However the liveStream status always shows noData, and the YouTube Live Control Room doesn’t show the stream as receiving data.

    The DASH output, when written to files play backs fine in this test player. The playlist output doesn’t match exactly the samples, but does have the required tags per the "MPD Contents" section in the documentation.

    Are my ffmpeg arguments incorrect, or does YouTube have additional playlist format requirements that are not documented ?

  • Live stream failed on Youtube

    20 septembre 2023, par kuldeep chopra

    We are currently running an AWS container that utilizes FFmpeg for live streaming while concurrently saving the stream as an MP4 file. However, we encountered an issue during a recent live stream session that was functioning correctly until approximately 13 minutes in, at which point FFmpeg reported the following error logs :

    


    ffmpeg [flv @ 0x555c4bdfe680] Failed to update header with correct duration.
2023-09-07T23:06:38.490+05:30 [flv @ 0x555c4bdfe680] Failed to update header with correct filesize.
2023-09-07T23:06:38.491+05:30 failed => rtmp://a.rtmp.youtube.com/live2/key......
2023-09-07T23:06:38.491+05:30 ffmpeg [tee @ 0x555c48843700] Slave muxer #1 failed: Broken pipe, continuing with 1/2 slaves.


    


    It's worth noting that we have conducted hundreds of live streams on YouTube without encountering this error before ; this is the first occurrence of such an issue.

    


    We would greatly appreciate it if you could investigate and provide insights into the underlying problem causing these error messages.