How to stream a TikTok video into MPV with the command line on Linux.
How to stream a TikTok video to MPV using yt-dlp.
How to stream a TikTok video to MPV using yt-dlp.
The Youtube Red app for Linux is very interesting indeed. This would be great to use on your machine to play music and videos.
A very nice userscript that will fix the Youtube layout for November 2022.
How to remove sponsored segments from a video downloaded by yt-dlp.
A very useful Youtube userscript to redirect Youtube #shorts to a standard watch page. Very useful.
Some very useful tricks for downloading videos from Youtube and using MPV.
There is an easy way to print out a list of a YouTube channel`s latest video uploads with the command line. This involves curl and grep. This is a very neat trick. Below is an example of this in action. Get the Youtube channel-id by viewing the HTML source of the channel page and looking … Read more
Watching Youtube in a browser is fun, but you may also use a nice app to watch Youtube instead. This is easily installed on a Linux machine. Install it like this. Firstly, download the Debian package from here. https://freetubeapp.io/#download. Then install the Debian package this way. ┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Downloads] └─$ sudo dpkg -i freetube_0.16.0_amd64.deb [sudo] password … Read more
Youtube is testing changes on a live site instead of an offline clone and now the sidebar has no links so it is harder to get to the Playlists and Watch later. This is very annoying indeed. The menu to access your channel is not loading either, this is very annoying. How am I supposed to watch videos bookmarked in the Watch Later section?
Downloading a Youtube video is very useful for archiving interesting videos. But you can also download the Youtube video with metadata as well. The example below will download a Youtube video and the metadata as a json file. This is a great one-liner. yt-dlp –embed-subs –embed-thumbnail –embed-metadata –output "%(uploader)s/%(title)s [%(id)s].%(ext)s" https://www.youtube.com/watch?v=VlvwDLGArzkyt-dlp –embed-subs –embed-thumbnail –embed-metadata –output … Read more
Youtube RSS feeds died for a short time, but now they are back. These are a great way to get information about a Youtube user`s latest uploaded videos. This can allow access to the thumbnail file and the views count. Here is an example URL. https://www.youtube.com/feeds/videos.xml?channel_id=UCgc4xqIMDoiP4KOTFS21TJA. This is a sample from a Youtube RSS feed … Read more
There are a lot of very useful userscripts on the Internet, these are just a few of the most useful ones. No YouTube Volume Normalization. https://gist.github.com/abec2304/2782f4fc47f9d010dfaab00f25e69c8a. This userscript will perform volume normalization on Youtube videos, this will help out when you are using Youtube for Vevo. Web Comic reader. https://github.com/ameboide/webcomic_reader/blob/master/webcomic_reader.user.js. Pretty good for reading webcomics … Read more
Rip a Youtube video to a good quality Webm with FFmpeg This very useful command will get a Youtube video and rip a certain timeframe from the video to a good quality WebM file. Create a Webm with FFmpeg. ┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ffmpeg -ss 00:00:55 -to 00:01:05 -i `yt-dlp -g -f bestvideo GbPK2VCarvU` -threads … Read more
This is how to block the related videos section and the recommended movies section on Youtube.com. This should be very helpful when using uBlock Origin on the Internet. 4498 4499 4500 ! 2021-09-26 https://www.youtube.com www.youtube.com###content > .ytd-rich-section-renderer.style-scope youtube.com##[id^="item-section-"] > li:has(span.yt-badge:has-text(Related))! 2021-09-26 https://www.youtube.com www.youtube.com###content > .ytd-rich-section-renderer.style-scope youtube.com##[id^="item-section-"] > li:has(span.yt-badge:has-text(Related)) This uBlock Origin rule will block the … Read more
Use this code in the uBlock Origin dashboard, and this will block Youtube views code, this allows viewing a video and your visit with a browser will not count views. ||https://s.youtube.com/api/stats/* ||https://www.youtube.com/ptracking ||https://s.youtube.com/api/stats/playback ||https://www.youtube.com/api/stats/watchtime||https://s.youtube.com/api/stats/* ||https://www.youtube.com/ptracking ||https://s.youtube.com/api/stats/playback ||https://www.youtube.com/api/stats/watchtime This could be very useful for any Youtube user who does not care for adding views to videos. … Read more
Saving a Youtube playlist as mp3 files is easy with Linux. The youtube-dl script is capable of handling this easily. You need to specify the playlist ID instead of the whole URL. Below is an example, this shows how easy it is to save a bunch of videos as mp3 files. ┌──[[email protected]]─[~/Music/newyoutube] └──╼ ╼ $ … Read more
Saving music from Youtube is fun. I am going to show how to save in good quality using youtube-dl by itself. This command will do it in one go. youtube-dl -f 140 https://www.youtube.com/watch?v=eb-2ljQDYFU –embed-thumbnail –extract-audio –audio-format mp3youtube-dl -f 140 https://www.youtube.com/watch?v=eb-2ljQDYFU –embed-thumbnail –extract-audio –audio-format mp3 This is the command in action. This gets the music in … Read more
Saving a Youtube video as audio and not video is very easy. This command below will save Youtube audio as an MP3 file. You need youtube-dl as well. Then select a Youtube video and use this one-liner to download it as an MP3 audio file. jason@jason-Lenovo-H50-55:~/Videos$ youtube-dl -f 140 https://www.youtube.com/watch?v=neEXAoYfcRo -o – | ffmpeg -hide_banner … Read more
Downloading a thumbnail of a Youtube video on Linux is very easy. This can be done using the youtube-dl script. Use this youtube-dl command to list all thumbnails for this video. ┌─[jason@jason-desktop]─[~/Pictures] └──╼ $youtube-dl https://www.youtube.com/watch?v=0ttKUEI3rtM –list-thumbnails [youtube] 0ttKUEI3rtM: Downloading webpage [info] Thumbnails for 0ttKUEI3rtM: ID width height URL 0 168 94 https://i.ytimg.com/vi/0ttKUEI3rtM/hqdefault.jpg?sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLCtzil9D33ps4rh6SWgoECSwl7PZg 1 196 110 … Read more
It is possible with MPV to play a playlist, which is a list of URL`s one on each line, and this will be played in order by MPV. This is very easy to do. Make a playlist in VIM. This example works just fine. You do not need any special characters, just one URL on … Read more