Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (41)

  • 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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (7829)

  • FFMPEG : Youtube streaming quality and speed issues

    25 février 2020, par Alex Paramonov

    I am trying to make a reliable stream from my Icecast/Shoutcast servers to Youtube live. The command that I use is :

    ffmpeg -v verbose -framerate 30 -loop 1 -i /var/image.jpg -re -i http://127.0.0.1:4700/radio -c:v libx264 -preset ultrafast -b:v 2250k -maxrate 6000k -bufsize 6000k -c:a copy -ab 128k -s 1920x1080 -framerate 30 -g 60 -keyint_min 60 -f flv  rtmp://a.rtmp.youtube.com/live2/xxx

    As you can see I am using recommended bitrate for Youtube, insert keyframes every 2 seconds and streaming at 30 frames per second.
    The stream is working but after running for some time two thing are happening :

    1. FFMPEG speed falls from 1x to something like 0.998x
    2. Youtube starts complaining that video stream speed is slow, markes the quality as bad and sometimes video starts buffering.

    Why is this happening ? CPU load is normal, connectivity is ok (the stream is running on a 1Gg/s dedicated server).

    Since in my example above I am streaming a single image as a logo of the stream I also tried to generate a short 30 seconds video with that image and broadcast that video instead of an image, but that did not help as well.

    The command I used for conversion :

    ffmpeg -framerate 30 -loop 1 -i /var/image.jpg -c:v libx264 -preset ultrafast -tune stillimage  -b:v 2250k -minrate 2250k -maxrate 6000k -bufsize 6000k -framerate 30 -g 60 -keyint_min 60 -t 30 out4.mp4

    And broadcast with

    ffmpeg -stream_loop -1 -i out4.mp4  -re -i http://127.0.0.1:4700/radio -c:v copy -c:a copy  -framerate 30 -g 60 -keyint_min 60 -f flv  rtmp://a.rtmp.youtube.com/live2/xxx

    ffmpeg version is 4.1.1

  • ffmpeg streams with low framerate to Youtube

    20 février 2019, par FJ-web

    I try to stream audio and a set of jpegs via ffmpeg to youtube. Youtube has requirements on the framerate and the bitstream size.

    My ffmpeg command is :

    ffmpeg -ar 44100 -f alsa -thread_queue_size 512 -ac 1 -i hw:1,0 -f concat -r 20 -i list.txt -vf "scale=iw*min(1920/iw\,1080/ih):ih*min(1920/iw\,1080/ih), pad=1920:1080:(1920-iw*min(1920/iw\,1080/ih))/2:(1080-ih*min(1920/iw\,1080/ih))/2,fps=30,format=yuv420p" -crf 20 -f flv "rtmp://a.rtmp.youtube.com/{}/{}"

    Here hw:1,0 is my audio interface and list.txt is a list of jpeg images with 1920x1080 pixels.

    So, basically I tell ffmpeg explicitly to read 20 frames per second and stream in 30 frames per second, nevertheless youtube receives only between 0 and 3 frames per second. When performing this task my CPU usage is about 43%.

    What did I do wrong ?

  • No Audio when streaming to Youtube from ffmpeg

    11 février 2019, par Sindre Svendby

    So I’m not able to get sound to youtube when streaming with ffmpeg.

    The command I try to run ;

    ffmpeg \
    -f v4l2 \
    -vcodec h264 \
    -video_size 864x480 \
    -r 24 \
    -i /dev/video1 \
    -f alsa \
    -thread_queue_size 1024 \
    -ac 2 \
    -i plughw:CARD=C920,DEV=0 \
    -c:a aac \
    -filter:a "volume=1.5" \
    -b:a 128k \
    -ar 44100 \
    -vcodec copy \
    -b:v 2000k  \
    -r 24 \
    -g 48 \
    -x264opts no-scenecut \
    -bufsize 4096k \
    -maxrate 2048k \
    -f flv \
    rtmp://a.rtmp.youtube.com/live2/STREAM_KODE

    if I switch out the rmtp stream, with a file, like test.flv.
    And then I try to watch this with VLC I do get sound.

    If I check the audio codec in VLC I do see that the codec is aac.
    And as far as I can see from their help pages it is aac that is the correct audio codec to send in.

    I’m not sure how to continue debug this issue, and ideas on this would be great.