youtube-dl -o - <webpage> | vlc - shows a video in VLC. However, the video is piped (through something like
fd://0), which inhibits the possibility to jump forwards/backwards.
youtube-dl -j <webpage> lists JSON data which contains several "url" properties. If you do
vlc <url>, VLC now shows video length, lets us jump, etc. like if we were playing a local video.
Question: Now, it's perfectly possible to write a small Python script that extracts the URL, but is there a simple way to do this using only simple Bash, preferably a one-liner?
youtube-dl -j lists an array of video streams in different qualities, and it's desirable to pick the video with the highest quality.