HMS

Home Media Server for Roku Players
git clone https://www.brianlane.com/git/HMS
Log | Files | Refs | README | LICENSE

commit 990fa89981aa52b5d3150f1ad02bc58d61b8ef8a
parent e10ea7f60ed072ff92c2faa86f230d17cb69f23f
Author: Brian C. Lane <bcl@brianlane.com>
Date:   Thu, 18 Mar 2010 22:48:33 -0700

Offset ffmpeg by 7 seconds

This seems to help with the bif images. Now the image shown shows up
about 4-5 seconds after starting playback of that part of the video.

Diffstat:
Mserver/scripts/makebif.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/scripts/makebif.py b/server/scripts/makebif.py @@ -70,7 +70,7 @@ def extractImages( videoFile, directory, interval, mode=0 ): """ size = "x".join([str(i) for i in videoSizes[mode]]) - cmd = "ffmpeg -i %s -r %0.2f -s %s %s/%%08d.jpg" % (videoFile, interval/100.0, size, directory) + cmd = "ffmpeg -i %s -ss 7 -r %0.2f -s %s %s/%%08d.jpg" % (videoFile, interval/100.0, size, directory) print cmd p = Popen( cmd, shell=True, stdout=PIPE, stdin=PIPE) (stdout, stderr) = p.communicate()