Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (27)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (3978)

  • Streaming windows desktop to Youtube with ffmpeg [closed]

    23 mai 2021, par rarahim

    I've been spending days trying to stream my live desktop to Youtube using ffmpeg. There are too many questions and answers on SO about this topic but none really works for me, or perhaps because working with ffmpeg is non-trivial task with it's never ending list of available options.

    


    So far, what sort of works for me is using the following (which is a mixture of what was gathered from various sources) :

    


    


    ffmpeg -threads:v 2 -threads:a 8 -filter_threads 2 -thread_queue_size
5096 -f dshow -i video="screen-capture-recorder" -f dshow -i
audio="Stereo Mix (Realtek High Definition Audio)" -pix_fmt yuv420p
-c:v libx264 -qp:v 19 -profile:v high -rc:v cbr_ld_hq -level:v 4.2 -r:v 60 -g:v 120 -bf:v 3 -refs:v 16 -f flv rtmp ://a.rtmp.youtube.com/live2/KEY

    


    


    My questions are :

    


      

    1. how do i only stream video ? i do not want to stream audio, simply removing '-f dshow -i audio="Stereo Mix (Realtek High Definition Audio)"' causes it to fail

      


    2. 


    3. after a while, ffmpeg starts to hog my memory causing my system to slow down terribly, what causes this and how can i fix it ?

      


    4. 


    5. my video feed when viewed from Youtube keeps buffering rather frequently, how can this be fixed/improved ?

      


    6. 


    


    Thanks.

    


    UPDATE :
I've managed to somewhat figure out a workaround for these issues. Not sure if these are the right solutions but they work for now.

    


      

    1. Youtube apparently requires streams to have audio component. So instead of just removing the audio device form the options, i had to put in "-f lavfi -i anullsrc" to use null audio device.

      


    2. 


    3. The memory hog issue was improved by adding "-framerate 10" and "-r 10" to the input and output options, this reduces target frame rate to 10fps.

      


    4. 


    5. The overall stream performance seem to be indirectly improved by doing the above actions.

      


    6. 


    


    So finally the working simplified version of my ffmpeg command is :

    


    


    ffmpeg -framerate 10 -f dshow -i video="screen-capture-recorder" -f
lavfi -i anullsrc -vcodec libx264 -preset:v ultrafast -pix_fmt yuv420p
-f flv -r 10 rtmp ://a.rtmp.youtube.com/live2/KEY

    


    


    I'm updating here in case it might be useful to someone at some point in the future.

    


  • Added wmode=transparent to YouTube example link.

    14 juin 2011, par Jack Moore

    m example1/index.html m example2/index.html m example3/index.html m example4/index.html m example5/index.html Added wmode=transparent to YouTube example link.

  • Stream PNG file to youtube with ffmpeg

    3 avril 2022, par codingmaster398

    What I'm trying to do :
I have a PNG file that is constantly getting written to. I want to pipe it (while it changes) to YouTube's RTMP server.

    


    What I've attempted :

    


    runCommand(
      'ffmpeg',
      `-threads:v 2 -threads:a 8 -filter_threads 2 -thread_queue_size 512 \
-loop 1 -re -i place.png \
-stream_loop -1 \
-filter:v "crop=in_w/2:in_h/2:1920:1280" \
-pix_fmt yuv420p -c:v libx264 -qp:v 19 -profile:v high -rc:v cbr_ld_hq -level:v 4.2 -r:v 60 -g:v 120 -bf:v 3 -refs:v 16 -preset fast -f flv rtmp://a.rtmp.youtube.com/live2/${steamKey}`,
    () => {},
    () => console.log('finished')
)

setInterval(()=>{
  image.write('./place.png') // Jimp },5000)


    


    What happens :

    


    ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.3.0 (GCC)
  configuration: --disable-static --prefix=/nix/store/7x62j0rls5dpriig91qrk0qh7hvvqd7k-ffmpeg-4.4.1 --arch=x86_64 --target_os=linux --enable-gpl --enable-version3 --enable-shared --enable-pic --enable-libsrt --enable-runtime-cpudetect --enable-hardcoded-tables --enable-pthreads --disable-w32threads --disable-os2threads --enable-network --enable-pixelutils --enable-ffmpeg --disable-ffplay --enable-ffprobe --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-avresample --enable-avutil --enable-postproc --enable-swresample --enable-swscale --disable-doc --enable-libass --enable-bzlib --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libmp3lame --enable-iconv --enable-libtheora --enable-libssh --enable-vaapi --enable-libdrm --enable-vdpau --enable-libvorbis --enable-libvpx --enable-lzma --disable-opengl --disable-libmfx --disable-libaom --enable-libpulse --enable-sdl2 --enable-libsoxr --enable-libx264 --enable-libxvid --enable-zlib --enable-libopus --enable-libspeex --enable-libx265 --enable-libdav1d --disable-debug --enable-optimizations --disable-extra-warnings --disable-stripping
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100

Input #0, png_pipe, from 'place.png':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: png, rgba(pc), 2000x1000, 25 fps, 25 tbr, 25 tbn, 25 tbc
Option stream_loop (set number of times input stream shall be looped) cannot be applied to output url rtmp://a.rtmp.youtube.com/live2/[key here lol] -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for output file rtmp://a.rtmp.youtube.com/live2/[key here lol].
Error opening output files: Invalid argument

finished


    


    References :

    


    Send live stream packets to youtube with nodejs ?

    


    streaming to youtube with ffmpeg