Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Macao Legacy
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
Macao Legacy
Commits
89c38c89
Commit
89c38c89
authored
May 29, 2024
by
Eliott Sammier
Browse files
Options
Downloads
Patches
Plain Diff
Add commands for audio streams to CLI
parent
f6281036
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mcli
+41
-0
41 additions, 0 deletions
mcli
tetras_extraction/macao_12/result/indexes/swf_streams_count.txt
+100
-100
100 additions, 100 deletions
..._extraction/macao_12/result/indexes/swf_streams_count.txt
with
141 additions
and
100 deletions
mcli
+
41
−
0
View file @
89c38c89
...
@@ -11,6 +11,10 @@ Usage: $(basename "$0") <command> [args]
...
@@ -11,6 +11,10 @@ Usage: $(basename "$0") <command> [args]
COMMANDS
COMMANDS
list-streams <file>
List audio streams in <file>
count-streams [<file>]
Count audio streams in <file>, or from all SWF files if none is given
setup
setup
Initialize Python environment required by extractors
Initialize Python environment required by extractors
extract-rdf
extract-rdf
...
@@ -22,10 +26,47 @@ help
...
@@ -22,10 +26,47 @@ help
EOF
EOF
}
}
# Check if $1 is a regular file, otherwise if it's a filename (and not a path)
# look for this filename in fallback directory $2
check_file
()
{
file
=
"
$1
"
fallback
=
"
$2
"
[[
-f
"
$file
"
]]
&&
echo
"
$file
"
&&
return
if
[[
-d
"
$fallback
"
&&
"
$(
basename
"
$file
"
)
"
=
"
$file
"
]]
;
then
file
=
"
$fallback
/
$file
"
[[
-f
"
$file
"
]]
&&
echo
"
$file
"
&&
return
fi
echo
"No such file '
$1
'"
>
&2
return
1
}
list_streams
()
{
ffprobe
-i
"
$1
"
2>&1 |
grep
-E
'Stream.*Audio: mp3'
}
action
=
"
$1
"
action
=
"
$1
"
shift
shift
case
"
$action
"
in
case
"
$action
"
in
list-streams
)
[[
-z
"
$1
"
]]
&&
echo
"Usage: list-streams <file>"
&&
exit
1
file
=
"
$(
check_file
"
$1
"
"
$SOURCES_DIR
/contenu/media"
)
"
list_streams
"
$file
"
;;
count-streams
)
if
[[
-n
"
$1
"
]]
;
then
file
=
"
$(
check_file
"
$1
"
"
$SOURCES_DIR
/contenu/media"
)
"
echo
"Indexing streams from
$file
..."
echo
"
$(
list_streams
"
$file
"
|
wc
-l
)
$(
basename
"
$file
"
)
"
else
echo
"Indexing streams from all SWFs (this may take some time) ..."
out_file
=
"
$RESULTS_DIR
/indexes/swf_streams_count.txt"
for
file
in
"
$SOURCES_DIR
/contenu/media/"
*
.swf
;
do
echo
"
$(
list_streams
"
$file
"
|
wc
-l
)
$(
basename
"
$file
"
)
"
done
|
sort
-rn
>
"
$out_file
"
cat
"
$out_file
"
fi
;;
setup
)
setup
)
"
$SCRIPTS_DIR
/setup.sh"
"
$SCRIPTS_DIR
/setup.sh"
;;
;;
...
...
This diff is collapsed.
Click to expand it.
tetras_extraction/macao_12/result/indexes/swf_streams_count.txt
+
100
−
100
View file @
89c38c89
45 phonemes_liste_page6.swf
44 phonemes_liste_page6.swf
45 page6.swf
44 page6.swf
21 page4b.swf
20 page4b.swf
21 page41.swf
20 page41.swf
21 page3.swf
20 page3.swf
21 page3b.swf
20 page3b.swf
21 e29anj_s4lc_p115.swf
20 e29anj_s4lc_p115.swf
21 e29anj_s4lc_p114.swf
20 e29anj_s4lc_p114.swf
17 macao_remarque_plus_accent3.swf
16 macao_remarque_plus_accent3.swf
15 e29anj_s1lc_remarque_accen1.swf
14 e29anj_s1lc_remarque_accen1.swf
11 page5c22.swf
10 page5c22.swf
9 page5f21.swf
8 page5f21.swf
9 page5e1.swf
8 page5e1.swf
9 page5b21.swf
8 page5b21.swf
9 e29anj_s5_lc1_25.swf
8 e29anj_s5_lc1_25.swf
9 e29anj_s5_lc1_1.swf
8 e29anj_s5_lc1_1.swf
8 page5e2.swf
7 page5e2.swf
8 e29anj_s5_lc26.swf
7 e29anj_s5_lc26.swf
7 page5c.swf
6 page5c.swf
5 page5g1.swf
4 page5g1.swf
5 page5f11.swf
4 page5f11.swf
5 macao_comparer_syll_orale_1.swf
4 macao_comparer_syll_orale_1.swf
4 page5d2.swf
3 page5d2.swf
4 page5a11.swf
3 page5a11.swf
3 page5h1.swf
2 page5h1.swf
3 page5d1.swf
2 page5d1.swf
3 page5b1.swf
2 page5b1.swf
3 page5a21.swf
2 page5a21.swf
2 pop_conson0322.swf
2 p2641.swf
2 p2621.swf
2 p2611.swf
2 interrested.swf
2 farmer.swf
2 e29_macao1_3c21.swf
2 e29_macao1_3c11.swf
2 e29_macao1_2c4_0238.swf
2 e29_macao1_2c4_0234.swf
2 e29_macao1_2c2.swf
2 e29_macao1_2b92.swf
2 e29_macao1_2b91.swf
2 e29_macao1_2b72.swf
2 e29_macao1_2b71.swf
2 e29_macao1_2b33.swf
2 e29_macao1_2b32.swf
2 e29_macao1_2b31.swf
2 e29_macao1_2b22.swf
2 e29_macao1_2b21.swf
2 e29_macao1_2b12.swf
2 e29_macao1_2b11.swf
2 e29_macao1_2a92.swf
2 e29_macao1_2a91.swf
2 e29_macao1_2a82.swf
2 e29_macao1_2a81.swf
2 e29_macao1_2a72.swf
2 e29_macao1_2a71.swf
2 e29_macao1_2a62.swf
2 e29_macao1_2a61.swf
2 e29_macao1_2a52.swf
2 e29_macao1_2a51.swf
2 e29_macao1_2a41.swf
2 e29_macao1_2a31.swf
2 differently.swf
2 danger1.swf
2 bt_use.swf
2 bt_university.swf
2 bt_theoretician.swf
2 bt_tecnological.swf
2 bt_tecnocratic.swf
2 bt_technology.swf
2 bt_socio1.swf
2 bt_recognition.swf
2 bt_real.swf
2 bt_psycho.swf
2 bt_photo.swf
2 bt_philo.swf
2 bt_optimistic.swf
2 bt_narrative.swf
2 bt_kitchen.swf
2 bt_identify.swf
2 bt_farmer_refuse.swf
2 bt_eighty.swf
2 bt_eighteen.swf
2 bt_criticsm.swf
2 bt_computer.swf
2 bt_comm.swf
2 bt_chicago.swf
2 bt_cat.swf
2 bt_boat.swf
2 bt_big.swf
2 bt_about.swf
2 bt_19.swf
2 bouton_theory.swf
2 bouton_psycholgy.swf
2 bouton_photographer.swf
2 bouton_narrator.swf
2 bouton_heroine.swf
2 bouton_communicate.swf
2 bouton_characters.swf
2 bouton_beginning.swf
1 wenesday.swf
1 wenesday.swf
1 talked1.swf
1 talked1.swf
1 stopped1.swf
1 stopped1.swf
...
@@ -112,7 +40,11 @@
...
@@ -112,7 +40,11 @@
1 precisely.swf
1 precisely.swf
1 pop_voyelle.swf
1 pop_voyelle.swf
1 pop_voyelle1.swf
1 pop_voyelle1.swf
1 pop_conson0322.swf
1 p2641.swf
1 p2631.swf
1 p2631.swf
1 p2621.swf
1 p2611.swf
1 oranges.swf
1 oranges.swf
1 months1.swf
1 months1.swf
1 marked1.swf
1 marked1.swf
...
@@ -124,11 +56,13 @@
...
@@ -124,11 +56,13 @@
1 interresting3.swf
1 interresting3.swf
1 interresting2.swf
1 interresting2.swf
1 interresting1.swf
1 interresting1.swf
1 interrested.swf
1 i1.swf
1 i1.swf
1 horse1.swf
1 horse1.swf
1 history.swf
1 history.swf
1 head1.swf
1 head1.swf
1 government.swf
1 government.swf
1 farmer.swf
1 eye1.swf
1 eye1.swf
1 every4.swf
1 every4.swf
1 every3.swf
1 every3.swf
...
@@ -136,26 +70,35 @@
...
@@ -136,26 +70,35 @@
1 e29_macao1_3d1_319.swf
1 e29_macao1_3d1_319.swf
1 e29_macao1_3d1_318.swf
1 e29_macao1_3d1_318.swf
1 e29_macao1_3c31.swf
1 e29_macao1_3c31.swf
1 e29_macao1_3c21.swf
1 e29_macao1_3c11.swf
1 e29_macao1_2c4_0241.swf
1 e29_macao1_2c4_0241.swf
1 e29_macao1_2c4_0240.swf
1 e29_macao1_2c4_0240.swf
1 e29_macao1_2c4_0239.swf
1 e29_macao1_2c4_0239.swf
1 e29_macao1_2c4_0238.swf
1 e29_macao1_2c4_0237.swf
1 e29_macao1_2c4_0237.swf
1 e29_macao1_2c4_0236.swf
1 e29_macao1_2c4_0236.swf
1 e29_macao1_2c4_0235.swf
1 e29_macao1_2c4_0235.swf
1 e29_macao1_2c4_0234.swf
1 e29_macao1_2c3_0233.swf
1 e29_macao1_2c3_0233.swf
1 e29_macao1_2c3_023311.swf
1 e29_macao1_2c3_023311.swf
1 e29_macao1_2c3_0232.swf
1 e29_macao1_2c3_0232.swf
1 e29_macao1_2c3_0230.swf
1 e29_macao1_2c3_0230.swf
1 e29_macao1_2c3_0229.swf
1 e29_macao1_2c3_0229.swf
1 e29_macao1_2c3_0228.swf
1 e29_macao1_2c3_0228.swf
1 e29_macao1_2c2.swf
1 e29_macao1_2c2_0227.swf
1 e29_macao1_2c2_0227.swf
1 e29_macao1_2c2_02261.swf
1 e29_macao1_2c2_02261.swf
1 e29_macao1_2c2_02251.swf
1 e29_macao1_2c2_02251.swf
1 e29_macao1_2c2_02241.swf
1 e29_macao1_2c2_02241.swf
1 e29_macao1_2c2_02233.swf
1 e29_macao1_2c2_02233.swf
1 e29_macao1_2c11.swf
1 e29_macao1_2c11.swf
1 e29_macao1_2b92.swf
1 e29_macao1_2b91.swf
1 e29_macao1_2b82.swf
1 e29_macao1_2b82.swf
1 e29_macao1_2b81.swf
1 e29_macao1_2b81.swf
1 e29_macao1_2b72.swf
1 e29_macao1_2b71.swf
1 e29_macao1_2b62.swf
1 e29_macao1_2b62.swf
1 e29_macao1_2b61.swf
1 e29_macao1_2b61.swf
1 e29_macao1_2b52.swf
1 e29_macao1_2b52.swf
...
@@ -163,18 +106,39 @@
...
@@ -163,18 +106,39 @@
1 e29_macao1_2b43.swf
1 e29_macao1_2b43.swf
1 e29_macao1_2b42.swf
1 e29_macao1_2b42.swf
1 e29_macao1_2b41.swf
1 e29_macao1_2b41.swf
1 e29_macao1_2b33.swf
1 e29_macao1_2b32.swf
1 e29_macao1_2b31.swf
1 e29_macao1_2b22.swf
1 e29_macao1_2b21.swf
1 e29_macao1_2b12.swf
1 e29_macao1_2b11.swf
1 e29_macao1_2b102.swf
1 e29_macao1_2b102.swf
1 e29_macao1_2b101.swf
1 e29_macao1_2b101.swf
1 e29_macao1_2a92.swf
1 e29_macao1_2a91.swf
1 e29_macao1_2a82.swf
1 e29_macao1_2a81.swf
1 e29_macao1_2a72.swf
1 e29_macao1_2a71.swf
1 e29_macao1_2a62.swf
1 e29_macao1_2a61.swf
1 e29_macao1_2a52.swf
1 e29_macao1_2a51.swf
1 e29_macao1_2a4.swf
1 e29_macao1_2a4.swf
1 e29_macao1_2a41.swf
1 e29_macao1_2a3.swf
1 e29_macao1_2a3.swf
1 e29_macao1_2a31.swf
1 e29_macao1_2a2.swf
1 e29_macao1_2a2.swf
1 e29_macao1_2a1.swf
1 e29_macao1_2a1.swf
1 e29_macao1_2a102.swf
1 e29_macao1_2a102.swf
1 e29_macao1_2a101.swf
1 e29_macao1_2a101.swf
1 different.swf
1 different.swf
1 differently.swf
1 desperate1.swf
1 desperate1.swf
1 dangerous2.swf
1 dangerous2.swf
1 dangerous1.swf
1 dangerous1.swf
1 danger1.swf
1 cry1.swf
1 cry1.swf
1 confortable.swf
1 confortable.swf
1 chocolate.swf
1 chocolate.swf
...
@@ -183,7 +147,9 @@
...
@@ -183,7 +147,9 @@
1 business.swf
1 business.swf
1 bt_wound.swf
1 bt_wound.swf
1 bt_wound2.swf
1 bt_wound2.swf
1 bt_use.swf
1 bt_use2.swf
1 bt_use2.swf
1 bt_university.swf
1 bt_thought.swf
1 bt_thought.swf
1 bt_though.swf
1 bt_though.swf
1 bt_thin.swf
1 bt_thin.swf
...
@@ -191,14 +157,26 @@
...
@@ -191,14 +157,26 @@
1 bt_think1.swf
1 bt_think1.swf
1 bt_thing.swf
1 bt_thing.swf
1 bt_thing1.swf
1 bt_thing1.swf
1 bt_theoretician.swf
1 bt_test.swf
1 bt_test.swf
1 bt_tecnological.swf
1 bt_tecnocratic.swf
1 bt_technology.swf
1 bt_tear.swf
1 bt_tear.swf
1 bt_tear2.swf
1 bt_tear2.swf
1 bt_soldier1.swf
1 bt_soldier1.swf
1 bt_socio1.swf
1 bt_sit.swf
1 bt_sit.swf
1 bt_sink.swf
1 bt_sink.swf
1 bt_sharp.swf
1 bt_sharp.swf
1 bt_rhubarb.swf
1 bt_rhubarb.swf
1 bt_recognition.swf
1 bt_real.swf
1 bt_psycho.swf
1 bt_photo.swf
1 bt_philo.swf
1 bt_optimistic.swf
1 bt_narrative.swf
1 bt_lid.swf
1 bt_lid.swf
1 bt_lick.swf
1 bt_lick.swf
1 bt_leg.swf
1 bt_leg.swf
...
@@ -206,26 +184,40 @@
...
@@ -206,26 +184,40 @@
1 bt_league.swf
1 bt_league.swf
1 bt_lead.swf
1 bt_lead.swf
1 bt_lead2.swf
1 bt_lead2.swf
1 bt_kitchen.swf
1 bt_kater.swf
1 bt_kater.swf
1 bt_ihadto1.swf
1 bt_ihadto1.swf
1 bt_identify.swf
1 bt_howcan.swf
1 bt_howcan.swf
1 bt_hear.swf
1 bt_hear.swf
1 bt_grin.swf
1 bt_grin.swf
1 bt_green.swf
1 bt_green.swf
1 bt_farmer_refuse.swf
1 bt_enonce.swf
1 bt_enonce.swf
1 bt_enonce39.swf
1 bt_enonce39.swf
1 bt_enonce38.swf
1 bt_enonce38.swf
1 bt_eighty.swf
1 bt_eighteen.swf
1 bt_ear.swf
1 bt_ear.swf
1 bt_criticsm.swf
1 bt_cow.swf
1 bt_cow.swf
1 bt_cough.swf
1 bt_cough.swf
1 bt_content.swf
1 bt_content.swf
1 bt_computer.swf
1 bt_comm.swf
1 bt_chicago.swf
1 bt_chest.swf
1 bt_chest.swf
1 bt_cat.swf
1 bt_bought.swf
1 bt_bought.swf
1 bt_boat.swf
1 bt_big.swf
1 bt_beatles1.swf
1 bt_beatles1.swf
1 bt_about.swf
1 bt_9.swf
1 bt_9.swf
1 bt_22.swf
1 bt_22.swf
1 bt_21.swf
1 bt_21.swf
1 bt_20.swf
1 bt_20.swf
1 bt_19.swf
1 bt_181.swf
1 bt_181.swf
1 bt_17.swf
1 bt_17.swf
1 bt_16.swf
1 bt_16.swf
...
@@ -235,6 +227,14 @@
...
@@ -235,6 +227,14 @@
1 bt_12_seed.swf
1 bt_12_seed.swf
1 bt_10.swf
1 bt_10.swf
1 brought1.swf
1 brought1.swf
1 bouton_theory.swf
1 bouton_psycholgy.swf
1 bouton_photographer.swf
1 bouton_narrator.swf
1 bouton_heroine.swf
1 bouton_communicate.swf
1 bouton_characters.swf
1 bouton_beginning.swf
1 blurred1.swf
1 blurred1.swf
1 average.swf
1 average.swf
0 macao_auxiliaire72.swf
0 macao_auxiliaire72.swf
...
...
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