Skip to content

Instantly share code, notes, and snippets.

@sepastian
Created March 3, 2024 17:20
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 sepastian/44fbf0de3eedd6b3505767a8b4cf87d4 to your computer and use it in GitHub Desktop.
Save sepastian/44fbf0de3eedd6b3505767a8b4cf87d4 to your computer and use it in GitHub Desktop.
Camcorder to digital video
# Grab video from a camcorder using dvgrap,
# convert to h.265 encoded video using ffmpeg.
#
# https://trac.ffmpeg.org/wiki/Encode/H.265
# https://regx.dgswa.com/html/content/dvgrab-ffmpeg-capture-compression
dvgrab --format dv1 --rewind - \
| ffmpeg -f dv -i - \
-vf yadif \
-c:v libx265 -crf 26 \
-preset fast \
-c:a aac -b:a 128k \
-tag:v hvc1 \
output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment