Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (56)

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

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

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

  • Discord Bot Not Playing Audio When Using YouTube-dl and FFmpeg

    5 novembre 2020, par John Henry 5

    I'm trying to get a bot to join a voice chat and then play the audio in a youtube url. This is the code I have :

    


    @client.command() async def play(ctx):
    channel = ctx.message.author.voice.channel
    voice_client = await channel.connect()

    opts = {'format': 'bestaudio'}
    FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
    with youtube_dl.YoutubeDL(opts) as ydl:
        song_info = ydl.extract_info('video', download=False)
        URL = song_info['formats'][0]['url']
    voice_client.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))


    


    No errors are thrown but it just says [youtube] video : Downloading webpage

    


  • streaming to youtube with ffmpeg

    6 janvier 2021, par ohroblot

    I am trying to stream to youtube but the stream health says no data.

    


    ffmpeg -threads:v 2 -threads:a 8 -filter_threads 2 -thread_queue_size 512 \
-i /tmp/thumbs/thumbnail.jpg \
-stream_loop -1 \
-i /tmp/audio/tracks.mp3 \
-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/xxx


    


    ffmpeg is shown rendering frames like this :

    


    frame=    1 fps=0.0 q=0.0 size=  236220kB time=04:02:50.73 bitrate= 132.8kbits/s speed=67.3x   
frame=    1 fps=0.0 q=0.0 size=  236872kB time=04:03:30.90 bitrate= 132.8kbits/s speed=67.3x   
frame=    1 fps=0.0 q=0.0 size=  237539kB time=04:04:12.02 bitrate= 132.8kbits/s speed=67.3x   
frame=    1 fps=0.0 q=0.0 size=  238215kB time=04:04:53.69 bitrate= 132.8kbits/s speed=67.4x   
frame=    1 fps=0.0 q=0.0 size=  238869kB time=04:05:34.05 bitrate= 132.8kbits/s speed=67.4x   
frame=    1 fps=0.0 q=0.0 size=  239515kB time=04:06:13.83 bitrate= 132.8kbits/s speed=67.4x   
frame=    1 fps=0.0 q=0.0 size=  240153kB time=04:06:53.14 bitrate= 132.8kbits/s speed=67.5x  


    


    but as far as youtube, no data is being sent over.

    


    What is causing this to fail ?

    


  • How to merge 2 streams and send the stream to youtube ?

    22 janvier 2021, par Nikhil Jacob

    Trying to merge 2 rtmp url from one youtube account and sending the merged stream to another youtube account

    


    Details :

    


      

    1. We enabled 2 youtube account with Go Live feature

      


    2. 


    3. Used the larix Broadcaster mobile application to send the stream to the first youtube account

      


    4. 


    5. This worked fine and we were able to see the stream on youtube

      


    6. 


    7. We brought up the other youtube account and captured it's rtmp url

      


    8. 


    9. We used the following command to take the stream broadcasted on the first account to stream to the other youtube account

      


      ffmpeg -re -i rtmp ://a.rtmp.youtube.com/live2/StreamKey 1 -i rtmp ://a.rtmp.youtube.com/live2/Stream Key1 -strict -2 -f flv rtmp ://a.rtmp.youtube.com/live2/Stream Key 2

      


    10. 


    


    However, we are getting a response server validation failed on

    


    ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[rtmp @ 0x55e577487340] Server response validating failed
rtmp://a.rtmp.youtube.com/live2/{StreamKey 1}: Input/output error


    


    Please clarify why the merging of 2 rtmp url is failing. Should we setup our own rtmp server to capture the input stream and then send the output stream to youtube ?