Skip to content

Instantly share code, notes, and snippets.

@daniel-dona
Created November 19, 2022 20:58
Show Gist options
  • Save daniel-dona/3b1b155a59cd58c05975793a74bebb0a to your computer and use it in GitHub Desktop.
Save daniel-dona/3b1b155a59cd58c05975793a74bebb0a to your computer and use it in GitHub Desktop.
Recodificar con 30 FPS la salida errónea de VDH
#!/bin/bash
# Uso ./fix_framerate.sh [video.mp4]
echo "Processing \"$1\""
ffmpeg -i "$1" -c copy -f h264 temp.h264
ffmpeg -r 30 -i temp.h264 -c copy temp.mp4
ffmpeg -i "$1" -vn -acodec copy temp.aac
ffmpeg -i temp.mp4 -i temp.aac -c:v copy -c:a copy "$1.fixed.mp4"
rm temp.h264 temp.mp4 temp.aac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment