Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pipewire-evaluation
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docs
pipewire-evaluation
Commits
977eb34d
Commit
977eb34d
authored
1 year ago
by
Dylan Aïssi
Browse files
Options
Downloads
Patches
Plain Diff
Rename test-case-1-capture.py to test-case-capture.py
Signed-off-by:
Dylan Aïssi
<
dylan.aissi@collabora.com
>
parent
d1921608
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+8
-5
8 additions, 5 deletions
README.md
scripts/test-case-capture.py
+5
-5
5 additions, 5 deletions
scripts/test-case-capture.py
with
13 additions
and
10 deletions
README.md
+
8
−
5
View file @
977eb34d
...
...
@@ -12,7 +12,7 @@ linkcolor: blue
colorlinks
:
true
---
*Draft report - 2023-10-2
0
*
*Draft report - 2023-10-2
5
*
[
PipeWire
](
https://pipewire.org/
)
is
*de facto*
the new audio server used by all
...
...
@@ -181,7 +181,7 @@ onboard to the usb audio output.

{width=50%}
Two scripts are available to run this test
`test-case-
1-
capture.py`
and
Two scripts are available to run this test
`test-case-capture.py`
and
`test-case-1-run.py`
.
-
The first one is to capture sound coming from the sound cards of the board and
...
...
@@ -216,7 +216,7 @@ secs the capture sample rate. Due to a hardward limitation, the capture sample
rate is reconfigured between 32000, 44100 and 48000 instead of the unspported
8000 and 16000.
The script
`test-case-
1-
capture.py`
can be used to record sound generated by the
The script
`test-case-capture.py`
can be used to record sound generated by the
board sound cards during the test (i.e. with changing capture sample rate of the
stream redirected to 1 output) to evaluate how the sound is affected.
...
...
@@ -268,7 +268,7 @@ it will measure the time required to run `pw-jack sndfile-jackplay` when only 1
other instance is running, then with 11 other instances, 21 other instances, etc
until 51 instances.
The script
`test-case-
1-
capture.py`
can be used to record sound generated by the
The script
`test-case-capture.py`
can be used to record sound generated by the
board sound cards during the test (i.e. with many instances of
`pw-jack sndfile-jackplay`
) to evaluate how the sound is affected.
...
...
@@ -285,10 +285,13 @@ it only differs by not starting a third moving stream but instead by using
`stress-ng`
to simulate a high system load in order to generate xruns. The number
of xruns will be measured with
`pw-top`
and/or
`pw-profiler`
.
The script
`test-case-
1-
capture.py`
can be used to record sound generated by the
The script
`test-case-capture.py`
can be used to record sound generated by the
board sound cards during the test (i.e. under high system load) to evaluate how
the sound is affected.
**TODO**
:
-
Write the pw-top/pw-profiler logging part.
# References
-
[
T10085: Initial pipewire evaluation on r-car
](
https://phabricator.apertis.org/T10085
)
-
[
PipeWire's website
](
https://pipewire.org/
)
...
...
This diff is collapsed.
Click to expand it.
scripts/test-case-
1-
capture.py
→
scripts/test-case-capture.py
+
5
−
5
View file @
977eb34d
...
...
@@ -27,9 +27,9 @@ def pw_record(node, file):
if
__name__
==
"
__main__
"
:
print
(
"
Running capture for test-case
1
"
)
print
(
"
Running capture for test-case
"
)
my_pw_dump
=
pw_dump
(
"
pw-dump-temp-
tc1-
capture.json
"
)
my_pw_dump
=
pw_dump
(
"
pw-dump-temp-capture.json
"
)
my_nodes_name
=
[]
for
pw_obj
in
my_pw_dump
:
...
...
@@ -46,11 +46,11 @@ if __name__ == "__main__":
print
(
f
"
Start capture for pw nodes:
\n
{
my_nodes_name
}
"
)
pw_rec1
=
pw_record
(
my_nodes_name
[
0
],
"
test-case-
1-
capture1.wav
"
)
pw_rec2
=
pw_record
(
my_nodes_name
[
1
],
"
test-case-
1-
capture2.wav
"
)
pw_rec1
=
pw_record
(
my_nodes_name
[
0
],
"
test-case-capture1.wav
"
)
pw_rec2
=
pw_record
(
my_nodes_name
[
1
],
"
test-case-capture2.wav
"
)
print
(
"
Press any key to stop the capture...
"
)
input
()
os
.
killpg
(
os
.
getpgid
(
pw_rec1
.
pid
),
signal
.
SIGTERM
)
os
.
killpg
(
os
.
getpgid
(
pw_rec2
.
pid
),
signal
.
SIGTERM
)
print
(
"
End of capture for test-case
1
"
)
print
(
"
End of capture for test-case
"
)
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