Created
February 17, 2024 11:56
-
-
Save rriemann/920327e6b9c832eea4e3e7567ebd20bb to your computer and use it in GitHub Desktop.
Recording from Boss RC-600 on rp4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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