Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (7)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (1770)

  • How to livestream a webcam to YouTube with FFmpeg ?

    6 juillet 2023, par pkok

    I want to send the livestream of my webcam to YouTube. I can follow YouTube's guide up to step 8. "Stream Connection" tells me there is "No data" and the button "Go Live" remains unclickable. A screenshot of this situation can be seen at

    



    image

    



    As encoding software, I was planning on using FFmpeg because it can run from the target platform, a Raspberry Pi with Raspbian. A USB webcam supported by video4linux2 is used.

    



    FFmpeg's wiki shows that streaming a file can be done with the following :

    



    ffmpeg -re -i input.mkv \&#xA;-c:v libx264 -preset veryfast -maxrate 3000k \&#xA;-bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 \&#xA;-ar 44100 -f flv rtmp://live.twitch.tv/app/<stream key="key">&#xA;</stream>

    &#xA;&#xA;

    I modified this command in the following ways :&#xA;1. It takes the video stream from the webcam with -f v4l2 -i /dev/video0.&#xA;2. It does not broadcast any audio with -an.&#xA;3. It broadcasts to YouTube's RTMP server, rtmp://a.rtmp.youtube.com/live2/<stream key="key"></stream>

    &#xA;&#xA;

    The final version of the command is now :

    &#xA;&#xA;

    RTMP_URL="rtmp://a.rtmp.youtube.com/live2"&#xA;STREAM_KEY="secr-etse-cret-secr"&#xA;OUTPUT=$RTMP_URL/$STREAM_KEY&#xA;ffmpeg -re -f v4l2 -i /dev/video0 \&#xA;-c:v libx264 -preset veryfast -maxrate 3000k \&#xA;-bufsize 6000k -pix_fmt yuv420p -g 50 -an \&#xA;-f flv $OUTPUT&#xA;

    &#xA;&#xA;

    When I run this command, I would expect that "Stream connection" would change to something else than "No data" after a few seconds, but that does not happen.

    &#xA;&#xA;

    I have tried recording the stream to a local file with :

    &#xA;&#xA;

    ffmpeg -re -f v4l2 -i /dev/video0 \&#xA;-c:v libx264 -preset veryfast -maxrate 3000k \&#xA;-bufsize 6000k -pix_fmt yuv420p -g 50 -an \&#xA;-f flv test.flv&#xA;

    &#xA;&#xA;

    This worked fine. That demonstrates to me that the issue is with getting the video stream accepted by YouTube.

    &#xA;

  • Calling one CLU(command line utility) with argument from another CLU in cmd ( youtube-dl from ffmpeg with additional arguments)

    3 septembre 2019, par beastboy

    I am able to run youtube-dl using command prompt , I have already kept youtube-dl.exe in the ffmpeg main folder and the ffmpeg bin folder and also I have kept ffmpeg.exe in the youtube_dl folder,

    now I am trying to call ffmpeg.exe in command prompt from youtube-dl with some additional arguments in ffmpeg and vice versa with the below commands
    and getting the following erros.

    Command

    C:\ffmpeg>youtube-dl -f 160 https://www.youtube.com/watch?v=u3APNJYMrLo --hls-prefer-ffmpeg --external-downloader ffmpeg --external-downloader-args -ss 00:00:20 -to 00:00:30

    Command

    C:\youtube_dl>youtube-dl -f 160 https://www.youtube.com/watch?v=u3APNJYMrLo --hls-prefer-ffmpeg --external-downloader ffmpeg --external-downloader-args -ss 00:00:20 -to 00:00:30

    Error

    Usage: youtube-dl [OPTIONS] URL [URL...]

    youtube-dl: error: using output template conflicts with using title, video ID or auto number

    and

    Command

    ffmpeg -ss 00:00:20 -to 00:00:30 -i "$(youtube-dl -f 160 -g https://www.youtube.com/watch?v=u3APNJYMrLo)" -c copy youtube.mp4

    Error

    $(youtube-dl: No such file or directory

    Command

    ffmpeg -ss 00:00:20 -to 00:00:30 -i $(youtube-dl -f 160 -g https://www.youtube.com/watch?v=u3APNJYMrLo) -c copy youtube.mp4

    Error

    $(youtube-dl -f 160 -g https://www.youtube.com/watch?v=u3APNJYMrLo): Invalid argument

    as per my understanding and the documentation pages of youtube-dl and ffmpeg the commands should work and should download the videos in the specified resolution but its not working.
    Can someone guide me on this , what is wrong with the code and how to rectify it if any.

  • Ffmpeg live streaming to Youtube - "Connect streaming software to start preview"

    10 septembre 2019, par Zoltan Fedor

    I have an rtsp feed (H.265) which I am trying to stream to YouTube Live, but whatever I do YouTube Studio just showing the waiting icon with "Connect streaming software to start preview".

    .sh file for streaming :

    VBR="1000k"
    FPS="30"
    QUAL="ultrafast"
    YOUTUBE_URL="rtmp://b.rtmp.youtube.com/live2"
    SOURCE="rtsp://qhatever.org:8555/whatever.sdp"      
    KEY="xxxx-xxxx-xxxx-xxxx"

    ~/ffmpeg-git-20190905-amd64-static/ffmpeg \
       -thread_queue_size 512 \
       -rtsp_transport tcp -i "$SOURCE" \
       -f lavfi -i anullsrc \
       -vcodec libx264 -pix_fmt yuvj420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v 2250k -minrate $VBR -maxrate 6000k -bufsize 6000k -keyint_min 60 \
       -acodec libmp3lame -ar 44100 -b:a 128k \
       -f flv "$YOUTUBE_URL/$KEY"

    Ffmpeg’s output :

    ffmpeg version N-49800-g2b66c757d6-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
     libavutil      56. 35.100 / 56. 35.100
     libavcodec     58. 56.101 / 58. 56.101
     libavformat    58. 32.104 / 58. 32.104
     libavdevice    58.  9.100 / 58.  9.100
     libavfilter     7. 58.102 /  7. 58.102
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, rtsp, from 'rtsp://whatever.org:8555/whatever.sdp':
     Metadata:
       title           : streamed by the Rtsp Server
       comment         : RTSP_STREAM_0
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080, 30 fps, 30 tbr, 90k tbn, 30 tbc
       Stream #0:1: Data: none
    Input #1, lavfi, from 'anullsrc':
     Duration: N/A, start: 0.000000, bitrate: 705 kb/s
       Stream #1:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (pcm_u8 (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [hevc @ 0x5fbfd80] Could not find ref with POC 4
    [libx264 @ 0x5fb9d80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x5fb9d80] profile Constrained Baseline, level 4.0, 4:2:0, 8-bit
    [libx264 @ 0x5fb9d80] 264 - core 157 r2969 d4099dd - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=60 keyint_min=31 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=abr mbtree=0 bitrate=2250 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=6000 vbv_bufsize=6000 nal_hrd=none filler=0 ip_ratio=1.40 aq=0
    Output #0, flv, to 'rtmp://b.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx':
     Metadata:
       title           : streamed by the Rtsp Server
       comment         : RTSP_STREAM_0
       encoder         : Lavf58.32.104
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuvj420p(pc, progressive), 1920x1080, q=-1--1, 2250 kb/s, 30 fps, 1k tbn, 30 tbc
       Metadata:
         encoder         : Lavc58.56.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 6000000/0/2250000 buffer size: 6000000 vbv_delay: N/A
       Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavc58.56.101 libmp3lame
    frame= 522 fps=31 q=19.0 size=  8802Kb time=00:00:36:53 bitrate 2481.0kbits/s dup= drop=2 speed=1.01x

    Basically all looks good to me - still, in YouTube Studio only the waiting icon with the "Connect streaming software to start preview" message is visible, not video feed.

    Any ideas ?