[Bash scripting, Live coding] search-in-subs mpv integration #5: EDL structure preferences

Published: 02 April 2024
on channel: Mindful Technology
98
1

0:00 Intro
0:21 What we have so far
1:21 Slight fix of previous session's work
3:11 Plan for this session
7:54 Adding a new option
10:22 Validating the new option's values
16:57 Using parameter expansion (${parameter:+word}) in Bash to enable/disable color
18:56 Back to validating the new option's values
20:28 Printing a correctly quoted string in Bash
23:48 Bash single quotes vs double quotes
28:45 Back to printing a correctly quoted string in Bash
31:47 Back to validating the new option's values
36:06 Implementing the functionality
39:10 Setting the variables
47:21 Adjusting the file locations according to the requested EDL structure
58:41 mpv: quit immediately without playing the file (e.g. for testing purposes)
59:29 Testing what we have so far
1:01:03 Creating edl_subdir
1:03:40 Adjusting the cache clearing procedure
1:06:29 Testing different EDL structures
1:09:13 Fixing paths to EDL tracks and to the chapters file
1:14:29 Further adjusting the cache clearing procedure
1:18:52 Creating a subdirectory in cache for the EDL files
1:26:10 Creating a function for clearing cache
1:28:38 Testing everything
1:29:29 Conclusion
1:30:26 Outro

Web pages featured in this video:

ANSI Escape Codes · GitHub: https://gist.github.com/fnky/45871934...
terminal - List of ANSI color escape sequences - Stack Overflow: https://stackoverflow.com/questions/4...
Xterm 256 colors and examples: https://robotmoon.com/256-colors/
Bash Reference Manual: https://www.gnu.org/software/bash/man...
mpv.io: https://mpv.io/manual/stable/

Extra links:

mpv/DOCS/edl-mpv.rst at master · mpv-player/mpv · GitHub: https://github.com/mpv-player/mpv/blo...

Example videos used:

Wikimedia Commons - File:Välkommen till min plats.webm (CC BY-SA 4.0): https://commons.wikimedia.org/wiki/Fi...


Watch video [Bash scripting, Live coding] search-in-subs mpv integration #5: EDL structure preferences online without registration, duration hours minute second in high quality. This video was added by user Mindful Technology 02 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 98 once and liked it 1 people.