Skip to content

tjGecko/audio-video-recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Audio Video Recorder

A Python application for simultaneous audio and video recording with timestamp synchronization.

Features

  • Simultaneous audio and video recording
  • Timestamp synchronization between audio and video streams
  • Configurable recording duration
  • Support for multi-channel audio input
  • Automatic file organization with timestamped folders

Requirements

  • Python 3.8+
  • OpenCV
  • NumPy
  • SoundDevice

Installation

  1. Clone the repository
  2. Install dependencies:
    pip install -r requirements.txt

Usage

Basic usage:

from src.recorder import AudioVideoRecorder

# Create a recorder instance
recorder = AudioVideoRecorder(
    mic_device_name="UMA16V2",  # Your audio device name
    video_device_index=0,       # Video device index (usually 0 for default camera)
    duration=2700              # Duration in seconds (45 minutes)
)

# Start recording
recorder.start_recording()

Output

The recorder creates two directories for each recording session:

  • data/audio_stream_[timestamp]/: Contains audio chunks in NumPy format
  • data/video_stream_[timestamp]/: Contains the video recording in MP4 format

Notes

  • Make sure your audio device is properly connected and recognized by the system
  • The video device index might need to be adjusted based on your system configuration
  • The default recording duration is 45 minutes (2700 seconds)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages