mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-25 11:52:51 +01:00
Add ffmpeg AR test function
This commit is contained in:
parent
be9442ddbf
commit
23e25b0b2e
10
zsh/ffmpeg
10
zsh/ffmpeg
@ -62,6 +62,16 @@ function ff-ar4-3() {
|
|||||||
mv "$1" "_$1" && mv "temp_$1" "$1"
|
mv "$1" "_$1" && mv "temp_$1" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ffmpeg fix 4:3 AR ($1 = file, $2 1/1, $4:3)
|
||||||
|
function ff-ar-custom() {
|
||||||
|
if [ $# -lt 3 ]; then
|
||||||
|
>&2 echo "Not enough arguments (\$1 = 'file', \$2 '1/1', \$3 '4:3')"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
ffmpeg -i "$1" -c copy -map 0 -bsf:v "h264_metadata=sample_aspect_ratio=$2" -aspect $3 -movflags faststart "_$1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# ffmpeg fix Non-monotonous DTS
|
# ffmpeg fix Non-monotonous DTS
|
||||||
function ff-dts() {
|
function ff-dts() {
|
||||||
ffmpeg -fflags +igndts -i "$1" -c copy -movflags faststart "temp_$1"
|
ffmpeg -fflags +igndts -i "$1" -c copy -movflags faststart "temp_$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user