X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Frecanim.c;h=d18fa3da3e834179d46985e32c8b248e445d39ce;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hp=51379ed0a2ce2fa4903004233f4e4e2b0ff09c1c;hpb=aa75c7476aeaa84cf3abc192b376a8b03c325213;p=xscreensaver diff --git a/hacks/recanim.c b/hacks/recanim.c index 51379ed0..d18fa3da 100644 --- a/hacks/recanim.c +++ b/hacks/recanim.c @@ -1,4 +1,4 @@ -/* recanim, Copyright (c) 2014-2015 Jamie Zawinski +/* recanim, Copyright (c) 2014-2018 Jamie Zawinski * Record animation frames of the running screenhack. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -307,13 +307,15 @@ screenhack_record_anim_free (record_anim_state *st) sprintf (cmd, "ffmpeg" + " -hide_banner" + " -v 16" " -framerate 30" /* rate of input: must be before -i */ " -i '%s-%%06d.%s'" " -r 30", /* rate of output: must be after -i */ progname, type); if (soundtrack) sprintf (cmd + strlen(cmd), - " -i '%s' -map 0:v:0 -map 1:a:0 -acodec libfaac", + " -i '%s' -map 0:v:0 -map 1:a:0 -acodec aac", soundtrack); sprintf (cmd + strlen(cmd), " -c:v libx264" @@ -321,7 +323,8 @@ screenhack_record_anim_free (record_anim_state *st) " -crf 18" " -pix_fmt yuv420p" " '%s'" - " 2>&-", + " &-"*/, fn); fprintf (stderr, "%s: exec: %s\n", progname, cmd); system (cmd);