Recherche avancée

Médias (91)

Autres articles (87)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (11793)

  • how to stream a website to youtube using ffmpeg with python [closed]

    22 avril 2023, par Eyal B

    I want to stream a website (more specifically an element) to YT using ffmpeg with python. i already found a way to stream an mp4, but now i want to stream a website. i thought of using a headless browser like puppeteer and selenium, but couldnt quite get it right.
the ffmpeg command that worked was : ffmpeg -re -i cat.mp4 -pix_fmt yuvj420p  -x264-params keyint=48:min-keyint=48:scenecut=-1  -b:v 4500k -b:a 128k -ar 44100 -acodec aac -vcodec libx264 -preset medium -crf 28 -threads 4 -f flv rtmp://x.rtmp.youtube.com/live2/waas-xbqw-d671-4a75-2qq2 thanks in advance !

    


  • 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

    


  • Building A livestreaming server like youtube from scratch

    9 décembre 2022, par Dipo Ahmed

    I am trying to build a live streaming server like youtube where I can watch the video live or if I want to I can play the video from any duration I want.

    


    What I have tried so far.
I have built a node js WebSocket server where I push the video blob that I receive from the browser via MediaRecorder API every 2 seconds. This blob is then getting converted to hls by a ffmpeg process which generates 2 seconds *.ts files and a .m3u8 file which I am playing with video.js in browser.

    


    This is my ffmpeg command

    


     spawn('ffmpeg', [
        '-i', '-',
        // '-re',
        '-fflags', '+igndts',

        '-vcodec', 'h264',
        '-acodec', 'aac',

        '-preset', 'slow',
        '-crf', '22',
        // You can also use QP value to adjust output stream quality, e.g.: 
        // '-qp', '0',
        // You can also specify output target bitrate directly, e.g.:
        '-b:v', '1500K',
        '-b:a', '128K', // Audio bitrate

        '-f', 'hls',
        '-hls_time', '1',
        // '-hls_playlist_type', 'vod',
        '-hls_list_size', '2',
        '-hls_flags', 'independent_segments',
        '-hls_segment_type', 'mpegts',
        '-hls_segment_filename', `${path}/stream%02d.ts`, `${path}/stream.m3u8`,
    ]);


    


    The problem is that the video js player duration is not updating like in youtube where the video duration increases every second.

    


    Any direction will be appreciated. Please tell me if my approach is wrong and what needs to be learned for me to build this system.