User:Zuhui/Prototyping/BASH: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "[https://hub.xpub.nl/cerealbox/~manetta/cloudmix/cloudmix.html 151024] ===yt-dlp scripts=== [https://hub.xpub.nl/cerealbox/~manetta/cloudmix/yt-dlp/ 151024 yt-dlp] //go to directory I want to save the youtube file '''$yt-dlp (video url)''' //copy the name of the file '''$ffmpeg -i (name of the file) (filename+filetype)''' //this will convert to filetype that I want to download ===stream segments scripts=== [https://hub.xpub.nl/cerealbox/~manetta/cloudmix/stream-segm...")
 
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
[https://hub.xpub.nl/cerealbox/~manetta/cloudmix/cloudmix.html 151024]
==Scripts==
===yt-dlp scripts===
[https://hub.xpub.nl/cerealbox/~manetta/cloudmix/cloudmix.html Tuesday with Manetta 151024]
===yt-dlp===
[https://hub.xpub.nl/cerealbox/~manetta/cloudmix/yt-dlp/ 151024 yt-dlp]
[https://hub.xpub.nl/cerealbox/~manetta/cloudmix/yt-dlp/ 151024 yt-dlp]
  //go to directory I want to save the youtube file
  //go to directory I want to save the youtube file
Line 7: Line 8:
  '''$ffmpeg -i (name of the file) (filename+filetype)''' //this will convert to filetype that I want to download
  '''$ffmpeg -i (name of the file) (filename+filetype)''' //this will convert to filetype that I want to download


===stream segments scripts===
===Stream segments===
[https://hub.xpub.nl/cerealbox/~manetta/cloudmix/stream-segments/ 151024 stream segments]
[https://hub.xpub.nl/cerealbox/~manetta/cloudmix/stream-segments/ 151024 stream segments]
===Vosk===
[https://hub.xpub.nl/cerealbox/~manetta/cloudmix/vosk/ 151024 with Manetta]
===Vosk 2===
[https://hub.xpub.nl/cerealbox/~murtaugh/si25/mixcloud/ 251124 with Michael]
<br><br>
'''Trial 1, with [https://hub.xpub.nl/cerealbox/~zuhui/transcriptt/interview/adventure.webm Adventure Time clip]'''
'''$ yt-dlp "https://www.youtube.com/watch?v=qbsvZclUXh8" --write-info-json'''
'''$ mv *.info.json *.webm interview/'''
'''$ ffmpeg -i adventure.webm adventure.wav'''
'''$ vosk-transcriber -l en-us -i adventure.wav -t srt -o adventure.srt'''
'''$ ../py_script/srt2vtt.py adventure.srt adventure.vtt'''
'''$ chmod +x ../py_script/srt2vtt.py''' //if permission denied
'''$ ffmpeg -i adventure.wav adventure.mp3''' //for html
'''[https://hub.xpub.nl/cerealbox/~zuhui/transcriptt/interview/adventuretime_transcript.html ↘︎it works]'''
<br><br>
'''Trial 2, with Json to vtt'''
'''$ vosk-transcriber -l en-us -i adventure.wav -t json -o adventure.json'''
'''$ ../py_script/srt2vtt.py adventure.json adventure_words.vtt'''
'''[https://hub.xpub.nl/cerealbox/~zuhui/transcriptt/interview/adventuretime_transcript_ver2.html ↘︎doesn't work and it's vtt file problem → ok now it works, used wrong python file to make vtt out of json]'''
==Command line==

Latest revision as of 11:43, 26 November 2024

Scripts

Tuesday with Manetta 151024

yt-dlp

151024 yt-dlp

//go to directory I want to save the youtube file
$yt-dlp (video url)
//copy the name of the file
$ffmpeg -i (name of the file) (filename+filetype) //this will convert to filetype that I want to download

Stream segments

151024 stream segments

Vosk

151024 with Manetta

Vosk 2

251124 with Michael

Trial 1, with Adventure Time clip

$ yt-dlp "https://www.youtube.com/watch?v=qbsvZclUXh8" --write-info-json
$ mv *.info.json *.webm interview/
$ ffmpeg -i adventure.webm adventure.wav
$ vosk-transcriber -l en-us -i adventure.wav -t srt -o adventure.srt
$ ../py_script/srt2vtt.py adventure.srt adventure.vtt
$ chmod +x ../py_script/srt2vtt.py //if permission denied
$ ffmpeg -i adventure.wav adventure.mp3 //for html

↘︎it works

Trial 2, with Json to vtt

$ vosk-transcriber -l en-us -i adventure.wav -t json -o adventure.json
$ ../py_script/srt2vtt.py adventure.json adventure_words.vtt

↘︎doesn't work and it's vtt file problem → ok now it works, used wrong python file to make vtt out of json

Command line