nyxrobotics commited on
Commit
4ae32d3
·
1 Parent(s): da1bc1e

Remove unused script

Browse files
Files changed (2) hide show
  1. README.md +0 -1
  2. modules/mp4_rename_english.sh +0 -24
README.md CHANGED
@@ -7,6 +7,5 @@
7
  ### Create dataset
8
  - Create youtube playlist
9
  - Download mp4 videos from the playlist
10
- - Rename mp4 files to English
11
  - Create png images from mp4
12
  - Run maskal and annotate
 
7
  ### Create dataset
8
  - Create youtube playlist
9
  - Download mp4 videos from the playlist
 
10
  - Create png images from mp4
11
  - Run maskal and annotate
modules/mp4_rename_english.sh DELETED
@@ -1,24 +0,0 @@
1
- #!/bin/bash
2
- # Options
3
- PLAYLIST_URL=https://youtube.com/playlist?list=PLwlIgd6_8FLJqgvIgtUye8Jz2jSKLrCAI
4
- # ----- Start script -----
5
- # get playlist name
6
- PLAYLIST_NAME=$(yt-dlp --no-warnings --dump-single-json --playlist-end 1 $PLAYLIST_URL | jq -r '.title')
7
- echo "Playlist Name:" $PLAYLIST_NAME
8
- # get script dir
9
- SCRIPT_DIR=$(cd $(dirname $0); pwd)
10
- cd $SCRIPT_DIR/../download/youtube/$PLAYLIST_NAME
11
- FILES="./*.mp4"
12
- for FILEPATH in $FILES; do
13
- NAME=$(basename -- "$FILEPATH")
14
- EXTENSION="${NAME##*.}"
15
- NAME="${NAME%.*}"
16
- if LANG=C grep -q -n -v '^[[:cntrl:][:print:]]*$' <<< "$NAME" ; then
17
- name_format=$(echo "$NAME" | uconv -x "Fullwidth-Halfwidth")
18
- name_en=$(echo $(trans -brief -no-warn -no-ansi ja:en "$name_format") | sed -e "s/\./ /g" | sed -e "s/^The *//" | sed -e "s/^ *//" | sed -e "s/ *$//" | sed -e "s/ / /" | sed -e "s/#//" )
19
- echo -e "$NAME"
20
- echo -e "$name_en"
21
- echo "rename '$NAME' '$name_en' '$FILEPATH'"
22
- echo "-----"
23
- fi
24
- done