Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (108)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • How to set up a continuous stream from Icecast to YouTube Live using FFmpeg ?

    16 mai 2020, par Teymur Gahramanov

    When Icecast servers turns off, FFmpeg trying to reconnect but with only one attempt. Here is error which i get and my script.

    



    [http @ 0x556612e43f80] Stream ends prematurely at 4040716, should be 1844674407370955161597x
[http @ 0x556612e43f80] Will reconnect at 4040716 error=Input/output error.
[tcp @ 0x7fe10400b7a0] Connection to tcp://185.195.26.99:8000 failed: Connection refused
[http @ 0x556612e43f80] Failed to reconnect at 0.
185.195.26.99:8000/radio: Input/output error1:40.96 bitrate=2878.3kbits/s speed=0.997x


    



    After that stream continuing, and YouTube does not break live translation, but it goes empty.

    



    #!/bin/bash

image=../pic/1.jpg #path to image
source=http://***.**.**.**:8000/radio #radio stream as source
youtube_url=rtmp://a.rtmp.youtube.com/live2 #rtmp://a.rtmp.youtube.com/live2
youtube_key=****-****-*****-****
resolution=1920x1080 #stream resolution

###########################################################

stream=FFREPORT=file=../log/stream-%t.log:level=32 ffmpeg \
        -thread_queue_size 1024 \
        -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 3600 -i $source \
        -re -loop 1 -i $image \
        -acodec aac -b:a 128k -ar 44100 -strict experimental \
        -vcodec libx264 -preset ultrafast -tune stillimage -r 30 -g 60 -b:v 4500k -minrate 4000k -maxrate 4500k -bufsize 6000k \
        -s $resolution \
        -f flv \
        $youtube_url/$youtube_key\

until $stream ; do
        echo "Restarting stream ..."
        sleep 2
done


    


  • Use FFMPEG to restream RTMP source to YouTube - no video stream in output

    5 février 2018, par Mike Miller

    I am attempting to grab the .m3u8 file from an nginx-rtmp server and pass it along to YouTube rtmp. I believe this to be possible (for example here : https://stackoverflow.com/a/11978820/1552594 although this is on the same host). The command I am using is :

    ffmpeg -analyzeduration 0 -i \
    http://source.rtmp.server/hls/stream.m3u8 -pix_fmt yuv420p \
    -f flv rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx

    However the output contains only audio and YouTube doesn’t like it. The command produces following :

    NOOO VIDEOOOO

    As you can see no Video stream in output metadata, stream mapping shows only audio and the trace shows 0kb of Video for 651kb of Audio

    Any help much appreciated

    MORE INFO

    Improved version of the command lifted from this article :

    https://judge2020.com/restreaming-a-m3u8-hls-stream-to-youtube-using-ffmpeg/

    "Restreaming a m3u8 HLS stream to Youtube using FFMPEG" AKA exactly what I am trying to do.

    The command I am sending is now :

    ffmpeg -re -i "http://source.rtmp.server/hls/stream.m3u8" \
    -strict -2 -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -flags \
    +global_header -bsf:a aac_adtstoasc -bufsize 3000k -f flv \
    "rtmp://a.rtmp.youtube.com/live2/xxx-xxxx-xxxx-xxxx"

    I got pretty much exactly the same response except with the Audio being read and output using aac codec.

    enter image description here

    MORE MORE INFO

    I have found that adding a mapping can force the video stream into the output :

    ffmpeg -re -i "http://source.rtmp.server/hls/stream.m3u8" \
    -strict -2 -c:v copy -c:a -map 0:0 -map 0:1 -ar 44100 -ab 128k -ac 2 \
    -flags +global_header -bsf:a aac_adtstoasc -bufsize 1000k \
    -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx"

    This throws up the error that has presumably been resulting in the video stream being silently dropped :

    enter image description here

  • python modules ffmpeg and ffprobe are installed but youtube-dl not able to find

    12 avril 2022, par Akshay Hiremath

    I'm using python 3.8 on MacOS Big Sur

    


    I installed python module package for youtube-dl with

    


    pip3 install -upgrade youtube-dl


    


    I wanted to do post processing on the content downloaded so I installed python packages ffprobe and ffmpeg.

    


    pip3 install ffprobe
Collecting ffprobe
  Downloading https://files.pythonhosted.org/packages/95/9c/adf90d21108d41f611aa921defd2f2e56d3f92724e4b5aa41fae7a9972aa/ffprobe-0.5.zip
Installing collected packages: ffprobe
  Running setup.py install for ffprobe ... done
Successfully installed ffprobe-0.5

pip3 install ffmpeg
Collecting ffmpeg
  Downloading https://files.pythonhosted.org/packages/f0/cc/3b7408b8ecf7c1d20ad480c3eaed7619857bf1054b690226e906fdf14258/ffmpeg-1.4.tar.gz
Installing collected packages: ffmpeg
  Running setup.py install for ffmpeg ... done
Successfully installed ffmpeg-1.4


    


    pip3 list 
Package    Version   
---------- ----------
ffmpeg     1.4       
ffprobe    0.5           
youtube-dl 2021.12.17 


    


    Still it is complaining can't find ffprobe and ffmpeg :

    


    youtube_dl.utils.DownloadError: ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.


    


    I see both packages in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/

    


    Trying to figure out what am I doing wrong. Many other answers to similar questions on SFO are suggesting installing these packages in the OS using brew etc. but in my case "I want to do everything through python". So shouldn't just installing python modules be enough ?