Skip to content

Instantly share code, notes, and snippets.

@daniil-lyakhov
Last active June 19, 2025 12:38
Show Gist options
  • Select an option

  • Save daniil-lyakhov/cc7a42422841c1ac1354793e6943ab8f to your computer and use it in GitHub Desktop.

Select an option

Save daniil-lyakhov/cc7a42422841c1ac1354793e6943ab8f to your computer and use it in GitHub Desktop.
panasonic video files converter to work in FCP
for f in *.MTS; do
ffmpeg -ss 0.07 -i "$f" \
-vf yadif=mode=1:parity=auto:deint=all \
-c:v libx264 -crf 18 -preset slow \
-c:a copy \
-movflags +faststart \
"${f%.mp4}_deint.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment