Last active
January 2, 2017 04:17
-
-
Save geoffp/d9346e81ac16830f98a2 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# This command line works well enough to encode videos for my Sylvania SDVD9020B | |
# portable DVD players. There are still mysterious issues with aspect ratio, but | |
# this method is the best compromise I've found so far in about two hours of | |
# digging and experimentation. | |
# Observations: | |
# setting an aspect ratio of 16:9 seems to work for 2.35:1 | |
# video. Not sure why. | |
ffmpeg -i "$1.mkv" -c:v mpeg4 -qscale:v 5 -vf setsar=1,scale=480:-1:,setdar=16:9 -c:a libmp3lame -b:a 128k ~/"$1 [portableDVD].mp4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment