Skip to content

Instantly share code, notes, and snippets.

@rriemann
Created February 17, 2024 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rriemann/920327e6b9c832eea4e3e7567ebd20bb to your computer and use it in GitHub Desktop.
Save rriemann/920327e6b9c832eea4e3e7567ebd20bb to your computer and use it in GitHub Desktop.
Recording from Boss RC-600 on rp4
#!/usr/bin/env bash
# https://trac.ffmpeg.org/wiki/Capture/Webcam#Listdevices1
# https://trac.ffmpeg.org/wiki/Capture/ALSA
# https://superuser.com/questions/982342/in-ffmpeg-how-to-delay-only-the-audio-of-a-mp4-video-without-converting-the-au
# ffmpeg -f alsa -channels 2 -sample_rate 44100 -i hw:CARD=Audio,DEV=0 -itsoffset 0.6 -f v4l2 -framerate 25 -video_size 1024x576 -i /dev/video0 -vf "transpose=2,transpose=2,format=yuv420p" -c:v h264_v4l2m2m -b:v 1500k -c:a libmp3lame record_$(date +"%FT%T").mkv
ffmpeg -itsoffset -0.6 -f alsa -channels 2 -sample_rate 44100 -i hw:CARD=Audio,DEV=0 -itsoffset 0 -f v4l2 -framerate 25 -video_size 1024x576 -i /dev/video0 -vf "transpose=2,transpose=2,format=yuv420p" -c:v h264_v4l2m2m -b:v 1500k -c:a aac -b:a 160k record_$(date +"%FT%T").mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment