Python Console Webcam Recorder & Visualizer

Job ID: 39990383

Budget: $10 – $30 USD

I need a console-based Python application that will:

• Open the computer’s webcam, capture exactly 15 seconds of footage, and save the result as an MP4 in the working directory.
• Immediately play the freshly recorded clip in a lightweight window while a second window renders a live decibel-level graph of the same audio track.
• Treat either window as a play/pause toggle—mouse click or a simple keypress should pause and resume both streams in perfect sync.

Because the interface must stay console-friendly, I do not want a full desktop GUI. Using OpenCV, ffmpeg-python, moviepy, pyaudio, matplotlib, curses, or any mix you prefer is fine as long as the final script runs cross-platform with a clean requirements.txt.

Deliverables
• main.py (self-contained, clear functions)
• Any companion modules or assets
• requirements.txt with pinned versions
• README with setup and usage steps

Acceptance test: after running `python main.py`, the webcam starts, an MP4 appears when recording ends, two playback windows open side-by-side, and either window pauses/resumes both video and graph on demand.
Related categories: Python OpenCV