Feed a Youtube video into FFmpeg directly with youtube-dl.

Downloading a Youtube video with youtube-dl is pretty common, but it is also possible to feed it directly into FFmpeg using parameter expansion in bash. ┌─[jason@jason-desktop]─[~/Videos] └──╼ $ffmpeg -i $(youtube-dl -f 22 -g https://www.youtube.com/watch?v=laJpHzVtF9k) output.ts┌─[jason@jason-desktop]─[~/Videos] └──╼ $ffmpeg -i $(youtube-dl -f 22 -g https://www.youtube.com/watch?v=laJpHzVtF9k) output.ts This command will get a Youtube video file and then process … Read more

Strange bash piping method that actually does work. And fixing hard disk partitions with fsck.

This is a strange bash piping method that actually does work. This pipes the output of one echo command and appends it to another. ubuntu ~ $ echo "Hello World" >| echo "Me" > out.txtubuntu ~ $ echo "Hello World" >| echo "Me" > out.txt This is the result of this strange command. ubuntu ~ … Read more