In my bash script I consistently download video:
youtube-dl -f mp4 -o '%(id)s.%(ext)s' --no-warnings $URL
and then getting video title:
TITLE=$(youtube-dl --skip-download --get-title --no-warnings $URL | sed 2d)
Both of these commands take some time: the former takes 1-10 min (depending on video duration), and the latter takes 10-20 seconds.
Is there any way to get video title in background while downloading video?
PS. I can't send to background first command (download video) because after I work with video file: get file size and duration for item meta in rss feed.