Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (54)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (7570)

  • GoLive with facebook rtmps transport issue using ffmpeg

    12 septembre 2020, par General Omosco

    I am having an issue trying to figure out facebook rtmps Go Live suitable configuration for ffmpeg with below configuration without success !

    



    rtmpUrls = `[f=flv]rtmp://a.rtmp.youtube.com/live2/xxxxxxx|[f=flv]rtmps://live-api-s.facebook.com:443/rtmp/xxxxxxxx`;
    });

        this.ffmpeg = child_process.spawn('ffmpeg', [

          // FFmpeg reads the input from STDIN write
          '-i', '-',
           '-flags', '+global_header',
          '-vcodec', 'copy',

          // AAC audio is required for Facebook Live.
          '-acodec', 'libfdk_aac',
          //'-ab', '32k', 
          //'-ar', '44100',
          '-bsf:a', 'aac_adtstoasc',

          '-framerate', '60',
          '-g', '30',

          '-f', 'tee', 
          '-map', '0:v',
          '-map', '0:a',
          // The output RTMPs.
          rtmpUrls
        ]);


    



    I received this from facebook events log

    



    


    Facebook has not received video signal from the video source for some
 time. Check that the connectivity between the video source and
 Facebook is sufficient for the source resolution and bitrate. Check
 your video encoder logs for details. If problems persist, consider
 improving connection quality or reducing the bitrate of your video
 source.

    


    



    When i change the framerate from 60 to 30, it will flash a black blank screen trying to receive signal and then immediately go back to default page.
While youtube works flawlessly !

    



    This is the log coming ffmpeg, but the log also comes when with only youtube rtmp.
log

    


  • How do you generate a looping animated gif for Facebook with ffmpeg

    7 février 2020, par Alan W. Smith

    When I paste a giphy url (like this one) into a facebook post or comment, the gif plays immediately and loops indefinitely. When I upload ones I make from ffmpeg, neither of those things happen. You have to click a play button to start the animation and then it ends after one time through.

    I have a couple of ffmpeg commands I use to create the gifs. They are :

    ffmpeg -ss 10 -t 5  -i input.m4v -vf "fps=15,scale=800:-2:flags=lanczos,palettegen" -y palette.png

    and

    ffmpeg -ss 10.6 -t 5 -i input.m4v -i palette.png -filter_complex "fps=15,scale=800:-1:lanczos[video];[video][1:v]paletteuse" output.gif

    The first one generates a custom color pallet that’s used by the second one to create a high quality animated gif. I’ve also tried adding -loop 0 (i.e. ffmpeg -ss 10.6 -t 5 -i input.m4v -i palette.png -filter_complex "fps=15,scale=800:-1:lanczos[video];[video][1:v]paletteuse" -loop 0 output.gif) but that didn’t work either.

    I also tried uploading the ffmpeg generated images to a personal website and calling them from there but those didn’t load at all.

    In case it helps, here’s a copy of one of the gifs (which autostarts and loops on StackOverflow for me but not on FB)

    enter image description here

    How does one go about creating a gif that will autostart and loop indefinitely for facebook ?

    (Note : I’ve got no problem if I need to do something with a personal website, but I don’t want to use Giphly or the other animated gif sites directly if at all possible. Also worth pointing out that I discovered if I download the image from giphly and upload it, it doesn’t autostart either. So, this may be something internal to FB, but I’d still like to figure that out.)

  • FFMPEG stream from sdp to youtube/facebook live(RTMP)

    3 avril 2020, par Akil

    Similar to this question, I'm trying to stream to Youtube/Facebook live (rtmp) via Ffmpeg.

    



    The server on which ffmpeg is installed receives a rtp stream (source of the stream uses Vp8 and opus as the codecs), i then use the sdp given below as input for the ffmpeg command

    



    SDP :

    



    v=0
o=- 0 0 IN IP4 127.0.0.1
s=FFMPEG Test
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 56.15.102
m=audio 10004 RTP/AVP 111
a=rtpmap:111 OPUS/48000/2
m=video 10006 RTP/AVP 100
a=rtpmap:100 VP8/90000
a=fmtp:100 packetization-mode=1


    



    Where 10004 and 10006 are the audio and video port of the rtp input stream.

    



    I'm using the following FFMPEG command to stream to youtube/facebook live

    



    ffmpeg -protocol_whitelist file,crypto,udp,rtp -i input.sdp -c:a aac -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 6000k -vb 400k -maxrate 1500k -deinterlace -vcodec libx264 -preset veryfast -g 30 -r 30 -f flv "rtmp_url"


    



    Log :

    



    ffmpeg version 4.2.2-1build1~18.04.sav0 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
  configuration: --prefix=/usr --extra-version='1build1~18.04.sav0' --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-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
    [sdp @ 0x56083912d340] Could not find codec parameters for stream 1 (Video: vp8, yuv420p): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, sdp, from 'input.sdp':
      Metadata:
        title           : FFMPEG Test
      Duration: N/A, start: 0.000000, bitrate: N/A
        Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
        Stream #0:1: Video: vp8, yuv420p, 90k tbr, 90k tbn, 90k tbc
    Codec AVOption profile () specified for output file #0 (youtube_rtmp_url) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
    Codec AVOption g (set the group of picture (GOP) size) specified for output file #0 (youtube_rtmp_url) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
    Codec AVOption preset (Configuration preset) specified for output file #0 (youtube_rtmp_url) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
    Stream mapping:
      Stream #0:0 -> #0:0 (opus (native) -> aac (native))
    Press [q] to stop, [?] for help
    Output #0, flv, to 'youtube_rtmp_url':
      Metadata:
        title           : FFMPEG Test
        encoder         : Lavf58.29.100
        Stream #0:0: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
        Metadata:
          encoder         : Lavc58.54.100 aac
    av_interleaved_write_frame(): Broken pipe 134.5kbits/s speed=2.35x    
    [flv @ 0x5608391a7040] Failed to update header with correct duration.
    [flv @ 0x5608391a7040] Failed to update header with correct filesize.
    Error writing trailer of youtube_rtmp_url: Broken pipe
    size=     162kB time=00:00:09.86 bitrate= 134.2kbits/s speed=2.32x    
    video:0kB audio:155kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.493091%
    [aac @ 0x5608391a7ac0] Qavg: 247.499
    Conversion failed!


    



    I have verified that ffmpeg can read the stream, i used a different ffmpeg command to record the stream and that works well. Could someone please point out whats wrong or link to some documentation that might help ?