Skip to content

Commit

Permalink
10x speedup
Browse files Browse the repository at this point in the history
by setting the frame rate of the input image to 2 we speed things up nicely
  • Loading branch information
jmikedupont2 committed Jan 19, 2021
1 parent 2391091 commit 15f2755
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/gpodder/sync.py
Expand Up @@ -684,30 +684,28 @@ def add_track(self, episode, reporthook=None):
#ffmpeg -i "$1" -acodec libfaac -ac 2 -ab 128k -s 480x320
#-vcodec libx264 -vpre libx264-hq -vpre libx264-ipod640 -b 768k -bt 512k -aspect 3:2 -threads 0 -f mp4 $1.mp4
cmd = ['ffmpeg',
'-framerate', '2',
'-loop', '1',
'-i', image_file,
"-i", to_file,
#"-r", "1",
"-qmin", "3",
"-qmax", "5",

"-qmax", "5",
"-ac", "2",
"-ab", "128k",
"-b:v", "512k",
"-aspect", "3:2",
"-threads", "4",
"-s" ,"480x320",

#"-ar","16000",
"-s" ,"480x320",
"-ar","16000",
"-b:a","44K",
"-vbr","constrained",
"-vf", "scale=iw/4:ih/4",
"-profile:v", "baseline",
"-preset", "ultrafast",
"-movflags", "+faststart",
"-crf", "16",
"-c:v",
"libx264",
#"-vtag", "xvid",
"-c:a", "libmp3lame",
"-reset_timestamps", "1",
"-tune", "stillimage",
Expand Down

0 comments on commit 15f2755

Please sign in to comment.