Moved python script to a different folder.
This commit is contained in:
		
							parent
							
								
									5a22a1e9e3
								
							
						
					
					
						commit
						169d3410a1
					
				
							
								
								
									
										9
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,14 +1,13 @@ | ||||
| 
 | ||||
| ORIGINAL_SUBS=original-subs.fr.vtt | ||||
| UNSYNCRONIZED=1-ere-french-raw.vtt | ||||
| ORIGINAL_SUBS=autogen-subs | ||||
| VIDEO=1ere-introcut.mp4 | ||||
| 
 | ||||
| cleansubs: | ||||
| 	python parse-subs.py $(ORIGINAL_SUBS) | ||||
| 	ffmpeg -i 1ere.mkv -i output.vtt -vcodec copy -acodec copy -c:s mov_text test.mp4 -y | ||||
| 	python scripts/parse-subs.py $(ORIGINAL_SUBS).fr.vtt | ||||
| # 	ffmpeg -i 1ere.mkv -i output.vtt -vcodec copy -acodec copy -c:s mov_text test.mp4 -y
 | ||||
| 
 | ||||
| getsubs: | ||||
| 	yt-dlp --write-auto-subs --sub-lang=fr --skip-download  https://www.youtube.com/watch?v=WRq2197FlMw -o original-subs | ||||
| 	yt-dlp --write-auto-subs --sub-lang=fr --skip-download  https://www.youtube.com/watch?v=WRq2197FlMw -o autogen-subs | ||||
| 
 | ||||
| # omit the music
 | ||||
| clip: | ||||
|  | ||||
| @ -7,15 +7,15 @@ The original video and the autogenerated captions in French can be sourced from | ||||
| 
 | ||||
| ## Setup | ||||
| 
 | ||||
| The following command downloads auto-generated captions from YouTube to a new file named `original-subs.fr.vtt`. | ||||
| Run the following to download auto-generated captions from YouTube to a new file named `original-subs.fr.vtt`. | ||||
| 
 | ||||
|     yt-dlp --write-auto-subs --sub-lang=fr --skip-download  https://www.youtube.com/watch?v=WRq2197FlMw -o original-subs | ||||
| 
 | ||||
| Other video players such as `mpv` might not display YouTube's auto-generated captions properly. The following removes duplicate and resyncs captions. | ||||
| 
 | ||||
|     python parse-subs.py original-subs.fr.vtt  | ||||
|     python scripts/parse-subs.py original-subs.fr.vtt  | ||||
| 
 | ||||
| ## Other Notes | ||||
| ## Notes | ||||
| 
 | ||||
| The `Makefile` contains some reference for using `yt-dlp` and `ffmpeg` but does not function without downloading the entire video and renaming some files. | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user