Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (46)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (9946)

  • 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 ?