Recherche avancée

Médias (91)

Autres articles (27)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (4772)

  • ffmpeg x11grab to streamable format

    2 juin 2021, par Jintor

    2 FFMPEG process

    


    (1) generating a ffmpeg x11grab to a .mp4
(2) take the .mp4 and restream it simultaneously to multiple rtmp endpoints

    


    ISSUE the generated file in (1) have this error "moov atom not found"

    


    This is the command that generate (1) :

    


    ffmpeg -re -y -f x11grab -draw_mouse 0 -framerate 30 
-video_size $RESOLUTION -i :$DISPLAY_NUM -c:a aac -c:v libx264 
-movflags +faststart -preset ultrafast -crf 28 -refs 4 -qmin 4 
-pix_fmt yuv420p -filter:v fps=30 file.mp4


    


    in the (2) => when I try to ffmpeg -i file.mp4 output somewhere : I get "moov atom not found" so the (2) can't read or open (1).

    


    What I'm I missing

    


    in (1) -movflags +faststart doesn't seem to fix the issue

    


    ••••••• EDIT : more details on the context ••••••

    


    I'm using openvidu : webrtc with kurento and coturn.

    


    The record feature creates a .mp4 on the fly as the chat is going on.

    


    To start the recording, there is an API call i can make to my server and it automatically stops when all users leaves the chatroom OR do an other api call to stop. see composed video in this link https://docs.openvidu.io/en/2.17.0/advanced-features/recording/

    


    openvidu have also webhooks.

    


    My problem is not how to stop ffmpeg, but getting FFMPEG to encode while the mp4 or other is being generated "on the fly".

    


    There is 2 options :

    


    OPTION 1 : individual => 1 .webm per camare => this .webm ffmpeg can restream as hls or RTMP => it's working.

    


    OPTION 2 : ** but the issue is with "Composed" video => it's using ffmpeg to x11grab the session... but it's mp4 without moov ato, so ffmpeg don't do anything with this.

    


    see the composed.sh script here
https://github.com/OpenVidu/openvidu/blob/master/openvidu-server/docker/openvidu-recording/scripts/composed.sh

    


    ***************** EDIT 3 *************

    


    in the .sh this is the part that is creating the mp4

    


    ffmpeg -y -f alsa -i pulse -f x11grab -draw_mouse 0
-framerate $FRAMERATE -video_size $RESOLUTION -i :$DISPLAY_NUM
-c:a aac -c:v libx264 -preset ultrafast
-crf 28 -refs 4 -qmin 4 -pix_fmt yuv420p
-filter:v fps=$FRAMERATE "/recordings/$VIDEO_ID/$VIDEO_NAME.$VIDEO_FORMAT"

    


    How can I modify this to have better result example VP8 or VP9 with good quality .webm so that the ffpmeg second command(2) can encode it live...

    


    **** EDIT 4 ********

    


    I tried this it worked for 30 seconds and suddenly stopped

    


        &lt;./stop ffmpeg -y -f alsa -i pulse -f &#xA;x11grab -draw_mouse 0 -framerate $FRAMERATE &#xA;-video_size $RESOLUTION -i :$DISPLAY_NUM &#xA;-c:v libx264 -b:v 1396k -b:a 128k -ar 44100 -maxrate 1369k &#xA;-pix_fmt yuv420p -preset veryfast -tune zerolatency &#xA;-c:a aac -ac 2 -profile:v main -flags -global_header &#xA;-bufsize 969k -hls_time 1 -hls_list_size 0 -g 30 &#xA;-start_number 0 -streaming 1 -hls_playlist 1 &#xA;-lhls 1 -hls_playlist_type event -f hls "/recordings/$VIDEO_ID/$VIDEO_NAME".m3u8&#xA;&#xA;&#xA;N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode.&#xA;N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle time.&#xA;Display in use -> :99&#xA;----------------------------------------&#xA;ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)&#xA;  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&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Guessed Channel Layout for Input Stream #0.0 : stereo&#xA;Input #0, alsa, from &#x27;pulse&#x27;:&#xA;  Duration: N/A, start: 1617150428.783763, bitrate: 1536 kb/s&#xA;    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s&#xA;[x11grab @ 0x55e88a4e8780] Stream #0: not enough frames to estimate rate; consider increasing probesize&#xA;Input #1, x11grab, from &#x27;:99&#x27;:&#xA;  Duration: N/A, start: 1617150428.837799, bitrate: N/A&#xA;    Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 30 fps, 1000k tbr, 1000k tbn, 1000k tbc&#xA;Stream mapping:&#xA;  Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (libx264))&#xA;  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x55e88a4f70c0] max bitrate less than average bitrate, assuming CBR&#xA;[libx264 @ 0x55e88a4f70c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512&#xA;[libx264 @ 0x55e88a4f70c0] profile Main, level 4.0&#xA;[alsa @ 0x55e88a4c2e40] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619940.ts&#x27; for writing&#xA;Output #0, hls, to &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.29.100&#xA;    Stream #0:0: Video: h264 (libx264), yuv420p(progressive), 1920x1080, q=-1--1, 1396 kb/s, 30 fps, 90k tbn, 30 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.54.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 1369000/0/1396000 buffer size: 969000 vbv_delay: -1&#xA;    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc58.54.100 aac&#xA;frame=   16 fps=0.0 q=21.0 size=N/A time=00:00:00.53 bitrate=N/A speed=1.06x    &#xA;frame=   31 fps= 31 q=16.0 size=N/A time=00:00:01.03 bitrate=N/A speed=1.02x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619941.ts&#x27; for writing&#xA;frame=   47 fps= 31 q=21.0 size=N/A time=00:00:01.56 bitrate=N/A speed=1.03x    &#xA;frame=   62 fps= 30 q=22.0 size=N/A time=00:00:02.06 bitrate=N/A speed=1.02x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619942.ts&#x27; for writing&#xA;frame=   77 fps= 30 q=24.0 size=N/A time=00:00:02.56 bitrate=N/A speed=1.01x    &#xA;frame=   92 fps= 30 q=22.0 size=N/A time=00:00:03.06 bitrate=N/A speed=0.999x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619943.ts&#x27; for writing&#xA;frame=  108 fps= 30 q=29.0 size=N/A time=00:00:03.60 bitrate=N/A speed=   1x    &#xA;frame=  124 fps= 30 q=21.0 size=N/A time=00:00:04.13 bitrate=N/A speed=1.01x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619944.ts&#x27; for writing&#xA;frame=  139 fps= 30 q=20.0 size=N/A time=00:00:04.63 bitrate=N/A speed=1.01x    &#xA;frame=  154 fps= 30 q=18.0 size=N/A time=00:00:05.13 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619945.ts&#x27; for writing&#xA;frame=  169 fps= 30 q=19.0 size=N/A time=00:00:05.63 bitrate=N/A speed=   1x    &#xA;frame=  185 fps= 30 q=19.0 size=N/A time=00:00:06.16 bitrate=N/A speed=1.01x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619946.ts&#x27; for writing&#xA;frame=  199 fps= 30 q=20.0 size=N/A time=00:00:06.63 bitrate=N/A speed=   1x    &#xA;frame=  215 fps= 30 q=19.0 size=N/A time=00:00:07.16 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619947.ts&#x27; for writing&#xA;frame=  230 fps= 30 q=19.0 size=N/A time=00:00:07.66 bitrate=N/A speed=   1x    &#xA;frame=  242 fps= 30 q=18.0 size=N/A time=00:00:08.06 bitrate=N/A speed=0.99x    &#xA;frame=  254 fps= 29 q=17.0 size=N/A time=00:00:08.46 bitrate=N/A speed=0.979x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619948.ts&#x27; for writing&#xA;frame=  276 fps= 30 q=17.0 size=N/A time=00:00:09.20 bitrate=N/A speed=1.01x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec133903625619949.ts&#x27; for writing&#xA;frame=  290 fps= 30 q=21.0 size=N/A time=00:00:09.66 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199410.ts&#x27; for writing&#xA;frame=  306 fps= 30 q=31.0 size=N/A time=00:00:10.20 bitrate=N/A speed=   1x    &#xA;frame=  322 fps= 30 q=21.0 size=N/A time=00:00:10.73 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199411.ts&#x27; for writing&#xA;frame=  337 fps= 30 q=21.0 size=N/A time=00:00:11.23 bitrate=N/A speed=   1x    &#xA;frame=  352 fps= 30 q=19.0 size=N/A time=00:00:11.73 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199412.ts&#x27; for writing&#xA;frame=  367 fps= 30 q=19.0 size=N/A time=00:00:12.23 bitrate=N/A speed=   1x    &#xA;frame=  382 fps= 30 q=18.0 size=N/A time=00:00:12.73 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199413.ts&#x27; for writing&#xA;frame=  397 fps= 30 q=18.0 size=N/A time=00:00:13.23 bitrate=N/A speed=   1x    &#xA;frame=  412 fps= 30 q=18.0 size=N/A time=00:00:13.73 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199414.ts&#x27; for writing&#xA;frame=  428 fps= 30 q=18.0 size=N/A time=00:00:14.26 bitrate=N/A speed=   1x    &#xA;frame=  443 fps= 30 q=17.0 size=N/A time=00:00:14.76 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199415.ts&#x27; for writing&#xA;frame=  458 fps= 30 q=18.0 size=N/A time=00:00:15.26 bitrate=N/A speed=   1x    &#xA;frame=  474 fps= 30 q=17.0 size=N/A time=00:00:15.80 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199416.ts&#x27; for writing&#xA;frame=  489 fps= 30 q=18.0 size=N/A time=00:00:16.30 bitrate=N/A speed=   1x    &#xA;frame=  504 fps= 30 q=17.0 size=N/A time=00:00:16.80 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199417.ts&#x27; for writing&#xA;frame=  520 fps= 30 q=20.0 size=N/A time=00:00:17.33 bitrate=N/A speed=   1x    &#xA;frame=  535 fps= 30 q=18.0 size=N/A time=00:00:17.83 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199418.ts&#x27; for writing&#xA;frame=  551 fps= 30 q=20.0 size=N/A time=00:00:18.36 bitrate=N/A speed=   1x    &#xA;frame=  566 fps= 30 q=19.0 size=N/A time=00:00:18.86 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199419.ts&#x27; for writing&#xA;frame=  581 fps= 30 q=20.0 size=N/A time=00:00:19.36 bitrate=N/A speed=   1x    &#xA;frame=  596 fps= 30 q=19.0 size=N/A time=00:00:19.86 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199420.ts&#x27; for writing&#xA;frame=  612 fps= 30 q=21.0 size=N/A time=00:00:20.40 bitrate=N/A speed=   1x    &#xA;frame=  626 fps= 30 q=20.0 size=N/A time=00:00:20.86 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199421.ts&#x27; for writing&#xA;frame=  641 fps= 30 q=21.0 size=N/A time=00:00:21.37 bitrate=N/A speed=   1x    &#xA;frame=  657 fps= 30 q=35.0 size=N/A time=00:00:21.90 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199422.ts&#x27; for writing&#xA;frame=  672 fps= 30 q=33.0 size=N/A time=00:00:22.40 bitrate=N/A speed=   1x    &#xA;frame=  687 fps= 30 q=23.0 size=N/A time=00:00:22.90 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199423.ts&#x27; for writing&#xA;frame=  703 fps= 30 q=23.0 size=N/A time=00:00:23.43 bitrate=N/A speed=   1x    &#xA;frame=  718 fps= 30 q=25.0 size=N/A time=00:00:23.93 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199424.ts&#x27; for writing&#xA;frame=  733 fps= 30 q=27.0 size=N/A time=00:00:24.44 bitrate=N/A speed=   1x    &#xA;frame=  749 fps= 30 q=26.0 size=N/A time=00:00:24.96 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199425.ts&#x27; for writing&#xA;frame=  764 fps= 30 q=28.0 size=N/A time=00:00:25.46 bitrate=N/A speed=   1x    &#xA;frame=  780 fps= 30 q=27.0 size=N/A time=00:00:26.00 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199426.ts&#x27; for writing&#xA;frame=  795 fps= 30 q=27.0 size=N/A time=00:00:26.50 bitrate=N/A speed=   1x    &#xA;frame=  810 fps= 30 q=26.0 size=N/A time=00:00:27.00 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec1339036256199427.ts&#x27; for writing&#xA;frame=  825 fps= 30 q=29.0 size=N/A time=00:00:27.50 bitrate=N/A speed=   1x    &#xA;[hls @ 0x55e88a4f3040] Opening &#x27;/recordings/13391978436095-2/rec13390362561994.m3u8.tmp&#x27; for writing&#xA;frame=  840 fps= 30 q=30.0 Lsize=N/A time=00:00:28.01 bitrate=N/A speed=   1x    &#xA;video:4635kB audio:404kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;[libx264 @ 0x55e88a4f70c0] frame I:42    Avg QP:12.88  size: 28020&#xA;[libx264 @ 0x55e88a4f70c0] frame P:798   Avg QP:13.11  size:  4473&#xA;[libx264 @ 0x55e88a4f70c0] mb I  I16..4: 88.4%  0.0% 11.6%&#xA;[libx264 @ 0x55e88a4f70c0] mb P  I16..4:  6.6%  0.0%  0.4%  P16..4:  6.6%  1.9%  0.6%  0.0%  0.0%    skip:83.8%&#xA;[libx264 @ 0x55e88a4f70c0] coded y,uvDC,uvAC intra: 18.8% 20.1% 10.1% inter: 1.7% 2.4% 0.1%&#xA;[libx264 @ 0x55e88a4f70c0] i16 v,h,dc,p: 55% 30% 12%  4%&#xA;[libx264 @ 0x55e88a4f70c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 27% 31%  2%  3%  2%  2%  1%  2%&#xA;[libx264 @ 0x55e88a4f70c0] i8c dc,h,v,p: 77%  9% 12%  1%&#xA;[libx264 @ 0x55e88a4f70c0] Weighted P-Frames: Y:1.1% UV:0.1%&#xA;[libx264 @ 0x55e88a4f70c0] kb/s:1355.98&#xA;[aac @ 0x55e88a4f8440] Qavg: 40876.258&#xA;jq: error (at <stdin>:1): Cannot iterate over null (null)&#xA;jq: error (at <stdin>:1): Cannot iterate over null (null)&#xA;jq: error (at <stdin>:1): null (null) cannot be parsed as a number&#xA;jq: error (at <stdin>:1): null (null) cannot be parsed as a number&#xA;jq: error: syntax error, unexpected &#x27;|&#x27; (Unix shell quoting issues?) at , line 1:&#xA;.hasAudio=false | .hasVideo=false | .duration= | .size= | .status="failed"                                               &#xA;jq: 1 compile error&#xA;ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)&#xA;  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&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Invalid duration specification for ss: -i&#xA;</stdin></stdin></stdin></stdin>

    &#xA;

    ***** Edit 5 **********

    &#xA;

    no mather what format I choose, it stops after 20 to 30 secs.&#xA;the same line with .webm .mov .264 when it's not .mp4 ffmpeg seems to drop

    &#xA;

  • Why does my ffmpeg audio sound slower and deeper - sample rate mismatch

    4 septembre 2020, par yogesh zinzu

    ok so this is a discord bot to record voice chat&#xA;https://hatebin.com/hgjlazacri&#xA;Now the bot works perfectly fine but the issue is that the audio sounds a bit deeper and slower than normal.. Why does it happen ? how can I make the audio sound 1:1..

    &#xA;

    &#xD;&#xA;
    &#xD;&#xA;
    const Discord = require(&#x27;discord.js&#x27;);&#xA;const client = new Discord.Client();&#xA;const ffmpegInstaller = require(&#x27;@ffmpeg-installer/ffmpeg&#x27;);&#xA;const ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;ffmpeg.setFfmpegPath(ffmpegInstaller.path);&#xA;const fs = require(&#x27;fs-extra&#x27;)&#xA;const mergeStream = require(&#x27;merge-stream&#x27;);&#xA;const config = require(&#x27;./config.json&#x27;);&#xA;const { getAudioDurationInSeconds } = require(&#x27;get-audio-duration&#x27;);&#xA;const cp = require(&#x27;child_process&#x27;);&#xA;const path1 = require(&#x27;path&#x27;);&#xA;const Enmap = require(&#x27;enmap&#x27;);&#xA;const UserRecords = require("./models/userrecords.js")&#xA;const ServerRecords = require("./models/serverrecords.js")&#xA;let prefix = `$`&#xA;class Readable extends require(&#x27;stream&#x27;).Readable { _read() {} }&#xA;let recording = false;&#xA;let currently_recording = {};&#xA;let mp3Paths = [];&#xA;const silence_buffer = new Uint8Array(3840);&#xA;const express = require(&#x27;express&#x27;)&#xA;const app = express()&#xA;const port = 3000&#xA;const publicIP = require(&#x27;public-ip&#x27;)&#xA;const { program } = require(&#x27;commander&#x27;);&#xA;const { path } = require(&#x27;@ffmpeg-installer/ffmpeg&#x27;);&#xA;const version = &#x27;0.0.1&#x27;&#xA;program.version(version);&#xA;let debug = false&#xA;let runProd = false&#xA;let fqdn = "";&#xA;const mongoose = require("mongoose");&#xA;const MongoClient = require(&#x27;mongodb&#x27;).MongoClient;&#xA;mongoose.connect(&#x27;SECRRET&#x27;,{&#xA;  useNewUrlParser: true&#xA;}, function(err){&#xA;  if(err){&#xA;    console.log(err);&#xA;  }else{&#xA;    console.log("Database connection initiated");&#xA;  }&#xA;});&#xA;require("dotenv").config()&#xA;function bufferToStream(buffer) {&#xA;    let stream = new Readable();&#xA;    stream.push(buffer);&#xA;    return stream;&#xA;}&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;client.commands = new Enmap();&#xA;&#xA;client.on(&#x27;ready&#x27;, async () => {&#xA;    console.log(`Logged in as ${client.user.tag}`);&#xA;&#xA;    let host = "localhost"&#xA;&#xA;    &#xA;&#xA;    let ip = await publicIP.v4();&#xA;&#xA;    let protocol = "http";&#xA;    if (!runProd) {&#xA;        host = "localhost"&#xA;    } else {&#xA;        host = `35.226.244.186`;&#xA;    }&#xA;    fqdn = `${protocol}://${host}:${port}`&#xA;    app.listen(port, `0.0.0.0`, () => {&#xA;        console.log(`Listening on port ${port} for ${host} at fqdn ${fqdn}`)&#xA;    })&#xA;});&#xA;let randomArr = []&#xA;let finalArrWithIds = []&#xA;let variable = 0&#xA;client.on(&#x27;message&#x27;, async message => {&#xA;    console.log(`fuck`);&#xA;    if(message.content === `$record`){&#xA;        mp3Paths = []&#xA;        finalArrWithIds = []&#xA;        let membersToScrape = Array.from(message.member.voice.channel.members.values());&#xA;        membersToScrape.forEach((member) => {&#xA;            if(member.id === `749250882830598235`) {&#xA;                console.log(`botid`);&#xA;            }&#xA;            else {&#xA;                finalArrWithIds.push(member.id)&#xA;            }&#xA;            &#xA;        })&#xA;        const randomNumber = Math.floor(Math.random() * 100)&#xA;        randomArr = []&#xA;        randomArr.push(randomNumber)&#xA;    }&#xA;   &#xA;    &#xA;    const generateSilentData = async (silentStream, memberID) => {&#xA;        console.log(`recordingnow`)&#xA;        while(recording) {&#xA;            if (!currently_recording[memberID]) {&#xA;                silentStream.push(silence_buffer);&#xA;            }&#xA;            await new Promise(r => setTimeout(r, 20));&#xA;        }&#xA;        return "done";&#xA;    }&#xA;    console.log(generateSilentData, `status`)&#xA;    function generateOutputFile(channelID, memberID) {&#xA;        const dir = `./recordings/${channelID}/${memberID}`;&#xA;        fs.ensureDirSync(dir);&#xA;        const fileName = `${dir}/${randomArr[0]}.aac`;&#xA;        console.log(`${fileName} ---------------------------`);&#xA;        return fs.createWriteStream(fileName);&#xA;    }&#xA;    &#xA;    if (!fs.existsSync("public")) {&#xA;        fs.mkdirSync("public");&#xA;    }&#xA;    app.use("/public", express.static("./public"));&#xA;  if (!message.guild) return;&#xA;&#xA;  if (message.content === config.prefix &#x2B; config.record_command) {&#xA;    if (recording) {&#xA;        message.reply("bot is already recording");&#xA;        return&#xA;    }&#xA;    if (message.member.voice.channel) {&#xA;        recording = true;&#xA;        const connection = await message.member.voice.channel.join();&#xA;        const dispatcher = connection.play(&#x27;./audio.mp3&#x27;);&#xA;&#xA;        connection.on(&#x27;speaking&#x27;, (user, speaking) => {&#xA;            if (speaking.has(&#x27;SPEAKING&#x27;)) {&#xA;                currently_recording[user.id] = true;&#xA;            } else {&#xA;                currently_recording[user.id] = false;&#xA;            }&#xA;        })&#xA;&#xA;&#xA;        let members = Array.from(message.member.voice.channel.members.values());&#xA;        members.forEach((member) => {&#xA;&#xA;            if (member.id != client.user.id) {&#xA;                let memberStream = connection.receiver.createStream(member, {mode : &#x27;pcm&#x27;, end : &#x27;manual&#x27;})&#xA;&#xA;                let outputFile = generateOutputFile(message.member.voice.channel.id, member.id);&#xA;                console.log(outputFile, `outputfile here`);&#xA;                mp3Paths.push(outputFile.path);&#xA;                    &#xA;&#xA;                silence_stream = bufferToStream(new Uint8Array(0));&#xA;                generateSilentData(silence_stream, member.id).then(data => console.log(data));&#xA;                let combinedStream = mergeStream(silence_stream, memberStream);&#xA;&#xA;                ffmpeg(combinedStream)&#xA;                    .inputFormat(&#x27;s32le&#x27;)&#xA;                    .audioFrequency(44100)&#xA;                    .audioChannels(2)&#xA;                    .on(&#x27;error&#x27;, (error) => {console.log(error)})&#xA;                    .audioCodec(&#x27;aac&#x27;)&#xA;                    .format(&#x27;adts&#x27;) &#xA;                    .pipe(outputFile)&#xA;                    &#xA;            }&#xA;        })&#xA;    } else {&#xA;      message.reply(&#x27;You need to join a voice channel first!&#x27;);&#xA;    }&#xA;  }&#xA;&#xA;  if (message.content === config.prefix &#x2B; config.stop_command) {&#xA;&#xA;    let date = new Date();&#xA;    let dd = String(date.getDate()).padStart(2, &#x27;0&#x27;);&#xA;    let mm = String(date.getMonth() &#x2B; 1).padStart(2, &#x27;0&#x27;); &#xA;    let yyyy = date.getFullYear();&#xA;    date = mm &#x2B; &#x27;/&#x27; &#x2B; dd &#x2B; &#x27;/&#x27; &#x2B; yyyy;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;    let currentVoiceChannel = message.member.voice.channel;&#xA;    if (currentVoiceChannel) {&#xA;        recording = false;&#xA;        await currentVoiceChannel.leave();&#xA;&#xA;        let mergedOutputFolder = &#x27;./recordings/&#x27; &#x2B; message.member.voice.channel.id &#x2B; `/${randomArr[0]}/`;&#xA;        fs.ensureDirSync(mergedOutputFolder);&#xA;        let file_name = `${randomArr[0]}` &#x2B; &#x27;.aac&#x27;;&#xA;        let mergedOutputFile = mergedOutputFolder &#x2B; file_name;&#xA;    &#xA;        &#xA;    let download_path = message.member.voice.channel.id &#x2B; `/${randomArr[0]}/` &#x2B; file_name;&#xA;&#xA;        let mixedOutput = new ffmpeg();&#xA;        console.log(mp3Paths, `mp3pathshere`);&#xA;        mp3Paths.forEach((mp3Path) => {&#xA;             mixedOutput.addInput(mp3Path);&#xA;            &#xA;        })&#xA;        console.log(mp3Paths);&#xA;        //mixedOutput.complexFilter(&#x27;amix=inputs=2:duration=longest&#x27;);&#xA;        mixedOutput.complexFilter(&#x27;amix=inputs=&#x27; &#x2B; mp3Paths.length &#x2B; &#x27;:duration=longest&#x27;);&#xA;        &#xA;        let processEmbed = new Discord.MessageEmbed().setTitle(`Audio Processing.`)&#xA;        processEmbed.addField(`Audio processing starting now..`, `Processing Audio`)&#xA;        processEmbed.setThumbnail(`https://media.discordapp.net/attachments/730811581046325348/748610998985818202/speaker.png`)&#xA;        processEmbed.setColor(` #00FFFF`)&#xA;        const processEmbedMsg = await message.channel.send(processEmbed)&#xA;        async function saveMp3(mixedData, outputMixed) {&#xA;            console.log(`${mixedData} MIXED `)&#xA;            &#xA;            &#xA;            &#xA;            return new Promise((resolve, reject) => {&#xA;                mixedData.on(&#x27;error&#x27;, reject).on(&#x27;progress&#x27;,&#xA;                async (progress) => {&#xA;                    &#xA;                    let processEmbedEdit = new Discord.MessageEmbed().setTitle(`Audio Processing.`)&#xA;                    processEmbedEdit.addField(`Processing: ${progress.targetSize} KB converted`, `Processing Audio`)&#xA;                    processEmbedEdit.setThumbnail(`https://media.discordapp.net/attachments/730811581046325348/748610998985818202/speaker.png`)&#xA;                    processEmbedEdit.setColor(` #00FFFF`)&#xA;                    processEmbedMsg.edit(processEmbedEdit)&#xA;                    console.log(&#x27;Processing: &#x27; &#x2B; progress.targetSize &#x2B; &#x27; KB converted&#x27;);&#xA;                }).on(&#x27;end&#x27;, () => {&#xA;                    console.log(&#x27;Processing finished !&#x27;);&#xA;                    resolve()&#xA;                }).saveToFile(outputMixed);&#xA;                console.log(`${outputMixed} IT IS HERE`);&#xA;            })&#xA;        }&#xA;        // mixedOutput.saveToFile(mergedOutputFile);&#xA;        await saveMp3(mixedOutput, mergedOutputFile);&#xA;        console.log(`${mixedOutput} IN HEREEEEEEE`);&#xA;        // We saved the recording, now copy the recording&#xA;        if (!fs.existsSync(`./public`)) {&#xA;            fs.mkdirSync(`./public`);&#xA;        }&#xA;        let sourceFile = `${__dirname}/recordings/${download_path}`&#xA;        console.log(`DOWNLOAD PATH HERE ${download_path}`)&#xA;        const guildName = message.guild.id;&#xA;        const serveExist = `/public/${guildName}`&#xA;        if (!fs.existsSync(`.${serveExist}`)) {&#xA;            fs.mkdirSync(`.${serveExist}`)&#xA;        }&#xA;        let destionationFile = `${__dirname}${serveExist}/${file_name}`&#xA;&#xA;        let errorThrown = false&#xA;        try {&#xA;            fs.copySync(sourceFile, destionationFile);&#xA;        } catch (err) {&#xA;            errorThrown = true&#xA;            await message.channel.send(`Error: ${err.message}`)&#xA;        }&#xA;        const usersWithTag = finalArrWithIds.map(user => `\n &lt;@${user}>`);&#xA;        let timeSpent = await getAudioDurationInSeconds(`public/${guildName}/${file_name}`)&#xA;        let timesSpentRound = Math.floor(timeSpent)&#xA;        let finalTimeSpent = timesSpentRound / 60&#xA;        let finalTimeForReal = Math.floor(finalTimeSpent)&#xA;        if(!errorThrown){&#xA;            //--------------------- server recording save START&#xA;            class GeneralRecords {&#xA;                constructor(generalLink, date, voice, time) {&#xA;                  this.generalLink = generalLink;&#xA;                  this.date = date;&#xA;                  this.note = `no note`;&#xA;                  this.voice = voice;&#xA;                  this.time = time&#xA;                }&#xA;              }&#xA;              let newGeneralRecordClassObject = new GeneralRecords(`${fqdn}/public/${guildName}/${file_name}`, date, usersWithTag, finalTimeForReal)&#xA;              let checkingServerRecord = await ServerRecords.exists({userid: `server`})&#xA;              if(checkingServerRecord === true){&#xA;                  existingServerRecord = await ServerRecords.findOne({userid: `server`})&#xA;                  existingServerRecord.content.push(newGeneralRecordClassObject)&#xA;                  await existingServerRecord.save()&#xA;              }&#xA;              if(checkingServerRecord === false){&#xA;                let serverRecord = new ServerRecords()&#xA;                serverRecord.userid = `server`&#xA;                serverRecord.content.push(newGeneralRecordClassObject)&#xA;                await serverRecord.save()&#xA;              }&#xA;              //--------------------- server recording save STOP&#xA;        }&#xA;        &#xA;        //--------------------- personal recording section START&#xA;        for( member of finalArrWithIds) {&#xA;&#xA;        let personal_download_path = message.member.voice.channel.id &#x2B; `/${member}/` &#x2B; file_name;&#xA;        let sourceFilePersonal = `${__dirname}/recordings/${personal_download_path}`&#xA;        let destionationFilePersonal = `${__dirname}${serveExist}/${member}/${file_name}`&#xA;        await fs.copySync(sourceFilePersonal, destionationFilePersonal);&#xA;        const user = client.users.cache.get(member);&#xA;        console.log(user, `user here`);&#xA;        try {&#xA;            ffmpeg.setFfmpegPath(ffmpegInstaller.path);&#xA;          &#xA;            ffmpeg(`public/${guildName}/${member}/${file_name}`)&#xA;             .audioFilters(&#x27;silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-90dB&#x27;)&#xA;             .output(`public/${guildName}/${member}/personal-${file_name}`)&#xA;             .on(`end`, function () {&#xA;               console.log(`DONE`);&#xA;             })&#xA;             .on(`error`, function (error) {&#xA;               console.log(`An error occured` &#x2B; error.message)&#xA;             })&#xA;             .run();&#xA;             &#xA;          }&#xA;          catch (error) {&#xA;          console.log(error)&#xA;          }&#xA;        &#xA;&#xA;        // ----------------- SAVING PERSONAL RECORDING TO DATABASE START&#xA;        class PersonalRecords {&#xA;            constructor(generalLink, personalLink, date, time) {&#xA;              this.generalLink = generalLink;&#xA;              this.personalLink = personalLink;&#xA;              this.date = date;&#xA;              this.note = `no note`;&#xA;              this.time = time;&#xA;            }&#xA;          }&#xA;          let timeSpentPersonal = await getAudioDurationInSeconds(`public/${guildName}/${file_name}`)&#xA;          let timesSpentRoundPersonal = Math.floor(timeSpentPersonal)&#xA;          let finalTimeSpentPersonal = timesSpentRoundPersonal / 60&#xA;          let finalTimeForRealPersonal = Math.floor(finalTimeSpentPersonal)&#xA;          let newPersonalRecordClassObject = new PersonalRecords(`${fqdn}/public/${guildName}/${file_name}`, `${fqdn}/public/${guildName}/${member}/personal-${file_name}`, date, finalTimeForRealPersonal)&#xA;&#xA;           let checkingUserRecord = await UserRecords.exists({userid: member})&#xA;              if(checkingUserRecord === true){&#xA;                  existingUserRecord = await UserRecords.findOne({userid: member})&#xA;                  existingUserRecord.content.push(newPersonalRecordClassObject)&#xA;                  await existingUserRecord.save()&#xA;              }&#xA;              if(checkingUserRecord === false){&#xA;                let newRecord = new UserRecords()&#xA;                newRecord.userid = member&#xA;                newRecord.content.push(newPersonalRecordClassObject)&#xA;                await newRecord.save()&#xA;              }&#xA;&#xA;&#xA;       &#xA;        // ----------------- SAVING PERSONAL RECORDING TO DATABASE END&#xA;       &#xA;&#xA;        const endPersonalEmbed = new Discord.MessageEmbed().setTitle(`Your performance was amazing ! Review it here :D`)&#xA;        endPersonalEmbed.setColor(&#x27;#9400D3&#x27;)&#xA;        endPersonalEmbed.setThumbnail(`https://media.discordapp.net/attachments/730811581046325348/745381641324724294/vinyl.png`)&#xA;        endPersonalEmbed.addField(`1
  • Conversion Funnel Optimisation : 10 Ways to Convert More

    24 janvier 2024, par Erin

    Converting leads into happy customers is the ultimate goal of any sales and marketing team. But there are many steps in between those two events, or in other words, funnel stages. 

    Your sales funnel includes all the steps you take to make your audience aware of your product or services and convince them to purchase. Conversion funnel optimisation strategies can help you move users through the stages of your sales funnel. 

    This article will show you how to optimise your conversion funnel and boost sales — no matter how your funnel looks. We’ll go over practical tips you can implement and how you can analyse and measure results.

    Let’s get started.

    What is conversion funnel optimisation ? 

    Conversion funnel optimisation is the strategic and ongoing process of refining and improving the different stages of a sales or marketing funnel to increase the rate at which users complete desired actions.

    A sales funnel represents the stages a potential customer goes through before purchasing. 

    The typical stages of a sales funnel include :

    • Awareness : At the top of the funnel, potential customers become aware of your product or service. 
    • Consideration : In this stage, prospects evaluate the product or service against alternatives. They may compare features, prices and customer reviews to make an informed decision.
    • Conversion : The prospect completes the transaction and becomes an actual customer by purchasing.
    • Loyalty : You can turn one-time buyers into repeat customers and brand advocates. 

    It’s called a “funnel” because, similar to the shape of a funnel, the number of potential customers decreases as they progress through the various stages of the sales process — as you can see illustrated below.

    Marketing funnel stages

    Sales funnels can vary across industries and business models, but the general concept remains the same. The goal is to guide potential customers through each funnel stage, addressing their needs and concerns at each step, ultimately leading to a successful conversion. 

    You can create and monitor a custom funnel for your site’s user journey with a web analytics solution like Matomo.

    Try Matomo for Free

    Get the web insights you need, without compromising data accuracy.

    No credit card required

    The importance of conversion funnel optimisation 

    At the heart of conversion funnel optimisation is the quest for higher conversion rates

    Refining the customer journey can increase the chances of turning visitors into customers who return repeatedly.

    Specifically, here’s how conversion funnel optimisation can benefit your business :

    • Increased conversions : Marketers can increase the likelihood of turning website visitors into customers by making the user journey more user-friendly and persuasive.
    • Higher revenue : Improved conversion rates aren’t just numbers on a chart ; they translate to tangible revenue. 
    • Increased ROI (return on investment) : By optimising the conversion funnel, you can get more value from your marketing and sales efforts. 
    • Improved customer satisfaction : When customers find it easy and enjoyable to interact with a website or service, it positively influences their satisfaction and likelihood of returning.
    • Data-driven decision-making : Businesses can make informed decisions on budgets and resources based on user behaviour and performance metrics by analysing and optimising conversion funnels.

    ​​Ultimately, conversion funnel optimisation efforts align the entire funnel with overarching business goals.

    10 ways to optimise your conversion funnel 

    Here are 10 ways to optimise your conversion funnel.

    1. Identify and segment your target audience

    The key to a successful conversion funnel begins with a deep understanding of your target audience. 

    Identifying and segmenting your audience lets you speak directly to their pain points, desires and motivations.

    One effective way to know your audience better is by creating detailed buyer personas. These are fictional representations of your ideal customers based on thorough market research and real data. Dive into demographics and behavioural patterns to craft personas that resonate with your audience.

    Audience segmentation

    Note that consumer preferences are not static. They evolve, influenced by trends, technological advancements and shifts in societal values. Staying attuned to these changes is crucial as part of optimising your conversion funnel.

    Thus, you must regularly update your buyer personas and adjust your marketing strategies accordingly.

    2. Create content for every stage of the funnel

    Each funnel stage represents a different mindset and needs for your potential customers. Tailoring your content ensures you deliver the right message at the right time to the right audience. 

    Here’s how to tailor your content to fit prospective customers at every conversion funnel stage.

    Awareness-stage content

    Prospects here are seeking information. Your content should be educational and focused on addressing their pain points. Create blog posts, infographics and videos introducing them to your industry, product or service.

    This video we created at Matomo is a prime example of awareness-stage content, grabbing attention and educating viewers about Matomo.

    Consideration-stage content

    Prospects are evaluating their options. Provide content highlighting your product’s unique selling points, such as case studies, product demonstrations and customer testimonials.

    Here’s how we use a versus landing page at Matomo to persuade prospects at this funnel stage.

    Versus page example from Matomo comparing Google Analytics alternative

    Conversion-stage content

    This is the final push. Ensure a smooth transition to conversion with content like promotional offers, limited-time discounts and clear calls to action (CTA).

    Loyalty-stage content

    In this stage, you might express gratitude for the purchase through personalised thank-you emails. Follow up with additional resources, tips or exclusive offers to reinforce a positive post-purchase experience. This also positions your brand as a helpful resource beyond the initial sale.

    Reward customer loyalty with exclusive offers, discounts or membership in a loyalty program.

    3. Capture leads

    Lead magnets are incentives offered to potential customers in exchange for their contact information, typically their email addresses. 

    Examples of lead magnets include :

    • Ebooks and whitepapers : In-depth resources that delve into specific topics of interest to your target audience.
    • Webinars and workshops : Live or recorded sessions that offer valuable insights, training or demonstrations.
    • Free trials and demos : Opportunities for potential customers to experience your product or service firsthand.
    • Checklists and templates : Practical tools that help your audience solve specific challenges.
    • Exclusive offers and discounts : Special promotions are available to those who subscribe or provide their contact information.

    For instance, here’s how HubSpot uses templates as lead magnets.

    HubSpot templates

    Similarly, you can incorporate your lead magnets into relevant articles or social media posts, email campaigns and other marketing channels.

    4. Optimise your landing pages

    Understanding how visitors interact with your landing pages is a game-changer. So, the first step in optimising your landing pages is to analyse them.

    Enter Matomo’s heatmaps — the secret weapon in landing page optimisation. They visually represent how users interact with your pages, revealing where they linger, what catches their attention and where they may encounter friction. 

    Matomo Heatmaps Feature

    Here are a few landing page elements you should pay attention to :

    • Strategic visual elements : Integrate high-quality images, videos and graphics that support your message and guide visitors through the content.
    • Compelling copy : Develop concise and persuasive copy that emphasises the benefits of your offering, addressing user pain points.
    • Effective CTA : Ensure your CTA is prominently displayed, using compelling language and colours that stand out.
    • Mobile responsiveness : Optimise your landing pages for various devices, especially considering the prevalence of mobile users.
    • Minimal form fields : Reduce friction by keeping form fields to a minimum, requesting only essential information.
    • ​​Leverage social proof : Integrate testimonials, reviews and trust badges to build trust and credibility.
    • A/B testing : Experiment with variations in design, copy and CTAs through A/B testing, allowing data to guide your decisions.

    Try Matomo for Free

    Get the web insights you need, without compromising data accuracy.

    No credit card required

    5. ​​Use compelling Calls to Action (CTAs)

    Crafting compelling CTAs is an art that involves a careful balance of persuasion, clarity and relevance.

    Here are a few tips you can implement to write CTAs that support your goals :

    • Use language that compels action. Instead of generic phrases like “Click Here,” opt for more persuasive alternatives such as “Unlock Exclusive Access” or “Start Your Free Trial.”
    • Make sure your CTAs are clear and straightforward. Visitors should instantly understand what action you want them to take. 
    • Tailor CTAs to the specific content on the page. Whether it’s a blog post, landing page or email, the CTA should seamlessly connect with the surrounding context.
    • Position your CTAs strategically. They should be prominently displayed and easily noticeable, guiding visitors without intruding.
    • Create a sense of urgency. Encourage immediate action by incorporating language that instils a sense of urgency. Phrases like “Limited Time Offer” or “Act Now” can prompt quicker responses.

    6. Have an active social presence

    Social media platforms are bustling hubs of activity where your target audience spends a significant portion of their online time. Cultivating a social media presence allows you to meet your audience where they are, fostering a direct line of communication.

    Moreover, the integration of shopping features directly into social media platforms transforms them into seamless shopping experiences. Nearly half of Instagram users shop weekly through the platform. 

    Also, the US social commerce sales continue to grow each year and are expected to reach $79.64 billion by 2025.

    Graph showing the UD social commerce sales 2019-2025

    7. Build a brand community

    Four in five customers consider communities important to how engaged they are with a brand.

    A strong community fosters a sense of belonging and loyalty among members. When customers feel connected to your brand and each other, they are more likely to remain loyal over the long term. 

    Also, satisfied community members often share their positive experiences with others, expanding your brand’s reach without additional marketing efforts.

    For example, Nike’s community for runners is a digital space where individuals share their running journeys, accomplishments and challenges. 

    Nike Run Club page

    By strategically building and nurturing a community, you not only enhance retention and spur referrals but also create a space where your brand becomes an integral part of your customers’ lives. 

    8. Conduct A/B tests

    A/B testing systematically compares two versions of a webpage, email or other content to determine which performs better.

    Examples of elements to A/B test :

    • CTAs : The language, colour, size and placement of CTAs can significantly impact user engagement. A/B testing allows you to discover which variations prompt the desired actions.
    • Headlines : Crafting compelling headlines is an art. Test different versions to identify which headlines resonate best with your audience, whether they are more drawn to clarity, humour, urgency or curiosity.
    • Images : Test different images to understand your audience’s visual preferences. This could include product images, lifestyle shots or graphics.
    Matomo A/B Test feature

    With Matomo’s A/B testing feature, you can test various elements to see which is successful in converting visitors or moving them to the next stage of the conversion funnel.

    9. Leverage social proof

    In an era where consumers are inundated with choices, the opinions, reviews and endorsements of others serve as beacons, guiding potential customers through the decision-making process. 

    Simply put — when people see that others have had positive experiences with your brand, it instils trust and confidence.

    Importance of social proof

    You can proactively gather social proof and display it prominently across your marketing channels. Here are some examples of social proof you can leverage :

    • Customer reviews : Positive reviews and testimonials from satisfied customers serve as authentic endorsements of your products or services. 
    • Case studies : In-depth case studies that showcase successful collaborations or solutions provided to clients offer a detailed narrative of your brand’s capabilities. These are particularly effective in B2B scenarios or for complex products and services.
    • User-generated content : Encourage customers to share their experiences. This could include photos, videos or posts on social media platforms, providing a dynamic and genuine portrayal of your brand.
    • Influencer endorsements : Collaborating with influencers in your industry or niche can amplify your social proof. When influencers vouch for your products or services, their followers are more likely to take notice.

    10. Measure and analyse performance

    This is a continuous loop of refinement, where you should use analysis and data-driven insights to guide your conversion funnel optimisation efforts.

    Here’s a systematic approach you can take :

    1. Identify the path users take on your site using a feature like Users Flow.
    2. Map the customer journey using a Funnels feature like the one in Matomo. 
    3. Identify the metrics that align with your conversion goals at each stage of the funnel, such as website traffic, conversion rates, click-through rates and customer acquisition costs.
    4. Assess conversion rates at different stages of the funnel. Identify areas with significant drop-offs and investigate factors that might contribute to the decline.
    5. Use heatmaps and session recordings to see first-hand how users interact with your site.
    6. Create an experiment to test and improve a specific area within your funnel using insights from the heatmaps and session recordings.
    7. A/B test, analyse the results to understand which variations performed better. Use this data to refine elements within your funnel.

    See how Concrete CMS 3x their leads with conversion optimisation.

    Conclusion 

    The customer journey is not linear. However, it involves a few specific stages your audience will go through — from first learning about your product or services to considering whether to try it. The goal is to turn them into happy and loyal customers.

    In this article, we went over strategies and practical tips you can use to guide customers through the conversion funnel. From segmenting your audience to capturing leads, optimising landing pages and running A/B tests, there are steps you can take to ensure your audience will move to the next stage.

    And of course, you have to continuously measure and analyse your performance. That’s how you know whether you’re heading in the right direction and, if not, where to correct your course. 

    For that, you need a robust web analytics solution with conversion optimisation features. Try Matomo free for 21 days and start optimising your conversion funnel—no credit card required.