VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. WHAT I WANT TO DO : generate a video (animated waveform/spectrum) of an audio.

    CONTEXT : web platform (linux web server) were users upload files to a multimedia library (all conversions are automated via command lines).

    I KNOW : to use ffmpeg to generate a fixed image with the waveform
    HTML Code:
    -filter_complex "showwavespic=s=963x369:scale=sqrt:colors=#00d7fe"
    QUESTION : is there a way via command line to make it like a animated audio reacting spectrum ?

    I SAW : this post https://forum.videohelp.com/threads/393114-Generating-animated-frequency-spectrum-bars...audio-to-video => but the proposed solutions are windows with a user interface. I want a command-line without user interface solution. it could be ffmpeg or other...
    Quote Quote  
  2. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Jintor_Universe View Post
    WHAT I WANT TO DO : generate a video (animated waveform/spectrum) of an audio.

    CONTEXT : web platform (linux web server) were users upload files to a multimedia library (all conversions are automated via command lines).

    I KNOW : to use ffmpeg to generate a fixed image with the waveform
    HTML Code:
    -filter_complex "showwavespic=s=963x369:scale=sqrt:colors=#00d7fe"
    QUESTION : is there a way via command line to make it like a animated audio reacting spectrum ?

    I SAW : this post https://forum.videohelp.com/threads/393114-Generating-animated-frequency-spectrum-bars...audio-to-video => but the proposed solutions are windows with a user interface. I want a command-line without user interface solution. it could be ffmpeg or other...
    try this ?? - https://stackoverflow.com/questions/32254818/generating-a-waveform-using-ffmpeg
    Quote Quote  
  3. this generates a fixed frame (not animated)
    Quote Quote  
  4. I found https://github.com/adefossez/seewav

    It's a python script that combines caoiro (to generate lines) and ffmpeg to output a .mp4
    Last edited by Jintor_Universe; 28th Oct 2021 at 20:46.
    Quote Quote  
  5. -vf showwaves
    https://ffmpeg.org/ffmpeg-filters.html#showwaves

    eg.

    Code:
    ffmpeg -i input.ext  -filter_complex "[0:a]showwaves=s=1920x1080:mode=line:rate=24,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -crf 18 -c:a copy -t 00:01:00 showwaves.mp4
    [/code]
    Quote Quote  
  6. Originally Posted by poisondeathray View Post
    Code:
    ffmpeg -i input.ext  -filter_complex "[0:a]showwaves=s=1920x1080:mode=line:rate=24,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -crf 18 -c:a copy -t 00:01:00 showwaves.mp4
    [/code]
    cool

    I managed to create a .mp4 of both

    showwaves => https://www.stubfeed.com/media/ownchunx/15223756184271/15223757187185/showwaves.mp4
    python seewav => https://www.stubfeed.com/media/ownchunx/15223756184271/15223757187185/15223757187185_stubwav.mp4

    I prefer seewav : more smooth, but that is only an opinion.

    cheers
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!