Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
bcea9605
Commit
bcea9605
authored
Nov 05, 2006
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a variable for FFmpeg options.
Originally committed as revision 6904 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
899af1a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
regression.sh
tests/regression.sh
+8
-6
No files found.
tests/regression.sh
View file @
bcea9605
...
@@ -110,12 +110,14 @@ fi
...
@@ -110,12 +110,14 @@ fi
# create the data directory if it does not exists
# create the data directory if it does not exists
mkdir
-p
$datadir
mkdir
-p
$datadir
FFMPEG_OPTS
=
"-y -flags +bitexact -dct fastint -idct simple"
do_ffmpeg
()
do_ffmpeg
()
{
{
f
=
"
$1
"
f
=
"
$1
"
shift
shift
echo
$ffmpeg
-y
-flags
+bitexact
-dct
fastint
-idct
simple
$*
echo
$ffmpeg
$FFMPEG_OPTS
$*
$ffmpeg
-y
-flags
+bitexact
-dct
fastint
-idct
simple
-benchmark
$*
>
$datadir
/bench.tmp 2> /tmp/ffmpeg
$$
$ffmpeg
$FFMPEG_OPTS
-benchmark
$*
>
$datadir
/bench.tmp 2> /tmp/ffmpeg
$$
egrep
-v
"^(Stream|Press|Input|Output|frame| Stream| Duration|video:)"
/tmp/ffmpeg
$$
||
true
egrep
-v
"^(Stream|Press|Input|Output|frame| Stream| Duration|video:)"
/tmp/ffmpeg
$$
||
true
rm
-f
/tmp/ffmpeg
$$
rm
-f
/tmp/ffmpeg
$$
do_md5sum
$f
>>
$logfile
do_md5sum
$f
>>
$logfile
...
@@ -134,8 +136,8 @@ do_ffmpeg_crc()
...
@@ -134,8 +136,8 @@ do_ffmpeg_crc()
{
{
f
=
"
$1
"
f
=
"
$1
"
shift
shift
echo
$ffmpeg
-y
-flags
+bitexact
-dct
fastint
-idct
simple
$*
-f
crc
$datadir
/ffmpeg.crc
echo
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
$datadir
/ffmpeg.crc
$ffmpeg
-y
-flags
+bitexact
-dct
fastint
-idct
simple
$*
-f
crc
$datadir
/ffmpeg.crc
>
/tmp/ffmpeg
$$
2>&1
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
$datadir
/ffmpeg.crc
>
/tmp/ffmpeg
$$
2>&1
egrep
-v
"^(Stream|Press|Input|Output|frame| Stream| Duration|video:|ffmpeg version| configuration| built)"
/tmp/ffmpeg
$$
||
true
egrep
-v
"^(Stream|Press|Input|Output|frame| Stream| Duration|video:|ffmpeg version| configuration| built)"
/tmp/ffmpeg
$$
||
true
rm
-f
/tmp/ffmpeg
$$
rm
-f
/tmp/ffmpeg
$$
echo
"
$f
`
cat
$datadir
/ffmpeg.crc
`
"
>>
$logfile
echo
"
$f
`
cat
$datadir
/ffmpeg.crc
`
"
>>
$logfile
...
@@ -145,8 +147,8 @@ do_ffmpeg_nocheck()
...
@@ -145,8 +147,8 @@ do_ffmpeg_nocheck()
{
{
f
=
"
$1
"
f
=
"
$1
"
shift
shift
echo
$ffmpeg
-y
-flags
+bitexact
-dct
fastint
-idct
simple
$*
echo
$ffmpeg
$FFMPEG_OPTS
$*
$ffmpeg
-y
-flags
+bitexact
-dct
fastint
-idct
simple
-benchmark
$*
>
$datadir
/bench.tmp 2> /tmp/ffmpeg
$$
$ffmpeg
$FFMPEG_OPTS
-benchmark
$*
>
$datadir
/bench.tmp 2> /tmp/ffmpeg
$$
egrep
-v
"^(Stream|Press|Input|Output|frame| Stream| Duration|video:)"
/tmp/ffmpeg
$$
||
true
egrep
-v
"^(Stream|Press|Input|Output|frame| Stream| Duration|video:)"
/tmp/ffmpeg
$$
||
true
rm
-f
/tmp/ffmpeg
$$
rm
-f
/tmp/ffmpeg
$$
expr
"
`
cat
$datadir
/bench.tmp
`
"
:
'.*utime=\(.*s\)'
>
$datadir
/bench2.tmp
expr
"
`
cat
$datadir
/bench.tmp
`
"
:
'.*utime=\(.*s\)'
>
$datadir
/bench2.tmp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment