Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit af1411c

Browse files
fix compiling ffmpeg and avconv
1 parent aa9ab25 commit af1411c

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

‎scripts/generate_video.py‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ def is_exe(fpath):
3333

3434
if not ffmpeg_cmd and not avconv_cmd:
3535
print 'Unable to find ffmpeg or avconve command'
36-
sys.exit(0)
37-
38-
36+
sys.exit(-1)
3937

4038
def testsrc(size, frame_rate, time, out_path, vcodec=None, bitrate=None, pix_fmt=None, use_avconv=False):
4139
exec_cmd = ffmpeg_cmd
42-
if use_avconv:
40+
if use_avconvoros.environ.get('LIBRARY', None) =='libav':
4341
exec_cmd = avconv_cmd
4442

4543
exec_cmd.extend(['testsrc=size=%s:rate=%s' % (size, str(frame_rate)), '-t', str(time)])
@@ -59,7 +57,7 @@ def testsrc(size, frame_rate, time, out_path, vcodec=None, bitrate=None, pix_fmt
5957

6058
def main():
6159
parser = optparse.OptionParser()
62-
parser.add_option('-r', '--rate', help="Frame Rate", default=25, type="int")
60+
parser.add_option('-r', '--rate', help="Frame Rate", default=24, type="string")
6361
parser.add_option('-t', '--time', help="Duration in seconds.", default=5, type="int")
6462
parser.add_option('-s', '--size', help="size of testsrc", default='640x480')
6563
parser.add_option('-v', '--vcodec', help="video codec", default='mpeg4')

‎scripts/test-setup‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ if [[ $exists != 0 ]]; then
3939
./configure \
4040
--disable-static \
4141
--enable-shared \
42-
--disable-doc \
43-
--disable-avfilter \
44-
--disable-avdevice \
45-
--disable-postproc
42+
--disable-doc
4643

4744
echo make
4845
make
@@ -63,9 +60,7 @@ if [[ $exists != 0 ]]; then
6360
./configure \
6461
--disable-static \
6562
--enable-shared \
66-
--disable-doc \
67-
--disable-avfilter \
68-
--disable-avdevice
63+
--disable-doc
6964

7065
echo make
7166
make

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /