diff --git a/.travis.yml b/.travis.yml index 2a21303..f97acb8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,12 @@ python: - "3.2" - "3.3" +env: + - FFMPEG_STATIC=http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-07-16.tar.gz + - FFMPEG_STATIC=http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz + before_install: - - sudo sh ./test/install-ffmpeg.sh + - sudo sh -x ./test/install-ffmpeg.sh $FFMPEG_STATIC script: - python setup.py test diff --git a/converter/ffmpeg.py b/converter/ffmpeg.py index 6b14133..8e6be6e 100644 --- a/converter/ffmpeg.py +++ b/converter/ffmpeg.py @@ -453,8 +453,8 @@ def on_sigalrm(*_): ret = ret.decode(console_encoding) total_output += ret buf += ret - if '\r' in buf: - line, buf = buf.split('\r', 1) + if '\n' in buf: + line, buf = buf.split('\n', 1) tmp = pat.findall(line) if len(tmp) == 1: diff --git a/test/install-ffmpeg.sh b/test/install-ffmpeg.sh index b2db6fb..432cca6 100755 --- a/test/install-ffmpeg.sh +++ b/test/install-ffmpeg.sh @@ -4,6 +4,8 @@ # add-apt-repository -y ppa:jon-severinsson/ffmpeg # apt-get -y -qq update # apt-get -y -qq install ffmpeg -# list directory of ffmpeg binary file there is in http://ffmpeg.gusari.org/static/64bit/ -wget -P /tmp http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.latest.tar.gz -tar -xvf /tmp/ffmpeg.static.64bit.latest.tar.gz -C /usr/local/bin \ No newline at end of file +# list directory of ffmpeg binary file there is in http://johnvansickle.com/ffmpeg/ +wget -O /tmp/ffmpeg-static $1 +mkdir /tmp/ffmpeg-bin/ +tar -xvf /tmp/ffmpeg-static -C /tmp/ffmpeg-bin/ +cp `find /tmp/ffmpeg-bin/ -name 'ff*' -executable -type f` /usr/local/bin