Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
16dd93ab
Commit
16dd93ab
authored
20 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
quick and dirty PSNR check for audio
Originally committed as revision 3902 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bd9ea6a4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/ffmpeg.regression.ref
+4
-4
4 additions, 4 deletions
tests/ffmpeg.regression.ref
tests/regression.sh
+4
-0
4 additions, 0 deletions
tests/regression.sh
tests/rotozoom.regression.ref
+4
-4
4 additions, 4 deletions
tests/rotozoom.regression.ref
with
12 additions
and
8 deletions
tests/ffmpeg.regression.ref
+
4
−
4
View file @
16dd93ab
...
...
@@ -126,18 +126,18 @@ stddev: 10.99 PSNR:27.30 bytes:7602176
21f8ff9f1daacd9133683bb4ea0f50a4 *./data/a-mp2.mp2
95712 ./data/a-mp2.mp2
91ab1b253cd360037d3fca67b795aba8 *./data/out.wav
1055276 ./data/out.wav
stddev:117.02 PSNR: 6.75 bytes:1054720
d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm
97983 ./data/a-ac3.rm
2d081e0e1f2e9bd4514e9ac8ec41884c *./data/a-g726.wav
24268 ./data/a-g726.wav
a719ab6d47d8d601520edb13bf6136b4 *./data/out.wav
96940 ./data/out.wav
stddev:134.28 PSNR: 5.56 bytes:96256
bdc512b78e2ccb1d815aec08794650eb *./data/a-adpcm_ima.wav
266288 ./data/a-adpcm_ima.wav
1316b03da3bdc8df9785c7995e3c9b2a *./data/out.wav
1056684 ./data/out.wav
stddev:129.55 PSNR: 5.87 bytes:1054720
d2eee867856d2bdb6d08e936d4ceec0c *./data/a-adpcm_ms.wav
267308 ./data/a-adpcm_ms.wav
91a84bb4f319a3a0bf0c0441b3d3a529 *./data/out.wav
1056572 ./data/out.wav
stddev: 73.79 PSNR:10.76 bytes:1054720
This diff is collapsed.
Click to expand it.
tests/regression.sh
+
4
−
0
View file @
16dd93ab
...
...
@@ -86,6 +86,7 @@ raw_dst="$datadir/out.yuv"
raw_ref
=
"
$datadir
/ref.yuv"
pcm_src
=
"asynth1.sw"
pcm_dst
=
"
$datadir
/out.wav"
pcm_ref
=
"
$datadir
/ref.wav"
if
[
X
"
`
echo
|
md5sum
2> /dev/null
`
"
!=
X
]
;
then
do_md5sum
()
{
md5sum
-b
$1
;
}
elif
[
-x
/sbin/md5
]
;
then
...
...
@@ -108,6 +109,8 @@ do_ffmpeg()
do_md5sum
$f
>>
$logfile
if
[
$f
=
$raw_dst
]
;
then
$tiny_psnr
$f
$raw_ref
>>
$logfile
elif
[
$f
=
$pcm_dst
]
;
then
$tiny_psnr
$f
$pcm_ref
>>
$logfile
else
wc
-c
$f
>>
$logfile
fi
...
...
@@ -144,6 +147,7 @@ echo "ffmpeg benchmarks" > $benchfile
###################################
# generate reference for quality check
do_ffmpeg_nocheck
$raw_ref
-y
-f
pgmyuv
-i
$raw_src
-an
-f
rawvideo
$raw_ref
do_ffmpeg_nocheck
$pcm_ref
-y
-ab
128
-ac
2
-ar
44100
-f
s16le
-i
$pcm_src
-f
wav
$pcm_ref
###################################
if
[
-n
"
$do_mpeg
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
tests/rotozoom.regression.ref
+
4
−
4
View file @
16dd93ab
...
...
@@ -126,18 +126,18 @@ stddev: 3.43 PSNR:37.39 bytes:7602176
21f8ff9f1daacd9133683bb4ea0f50a4 *./data/a-mp2.mp2
95712 ./data/a-mp2.mp2
91ab1b253cd360037d3fca67b795aba8 *./data/out.wav
1055276 ./data/out.wav
stddev:117.02 PSNR: 6.75 bytes:1054720
d056da679e6d6682812fffb28a7f0db6 *./data/a-ac3.rm
97983 ./data/a-ac3.rm
2d081e0e1f2e9bd4514e9ac8ec41884c *./data/a-g726.wav
24268 ./data/a-g726.wav
a719ab6d47d8d601520edb13bf6136b4 *./data/out.wav
96940 ./data/out.wav
stddev:134.28 PSNR: 5.56 bytes:96256
bdc512b78e2ccb1d815aec08794650eb *./data/a-adpcm_ima.wav
266288 ./data/a-adpcm_ima.wav
1316b03da3bdc8df9785c7995e3c9b2a *./data/out.wav
1056684 ./data/out.wav
stddev:129.55 PSNR: 5.87 bytes:1054720
d2eee867856d2bdb6d08e936d4ceec0c *./data/a-adpcm_ms.wav
267308 ./data/a-adpcm_ms.wav
91a84bb4f319a3a0bf0c0441b3d3a529 *./data/out.wav
1056572 ./data/out.wav
stddev: 73.79 PSNR:10.76 bytes:1054720
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment