This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I have recently switched from youtube-dl to yt-dlp due to throttling, and I'm having problems getting a link to the video in the right format.
As default, youtube sends all mp4 (h264) format 360-videos scrambled/cut up (equiangular) to be unusable in VR environments. This could be fixed (to equirectangular) in youtube-dl by adding --user-agent ''
or --user-agent 'WEB'
yt-dlp seems to process the user agent differently, and changes the encoding to AV1 (useless to me) or sometimes sends the standard scrambled video (which, in the link, is marked with ANDROID instead of WEB; changing this in the link doesn't change the video output).
Forcing the h264-codec with -S vcodec:h264
just results in the lower-quality equiangular video.
Here some examples:
youtube-dl -f 'bestvideo[height<=1440][ext=mp4]' --user-agent 'WEB' --get-url https://youtu.be/m9EClKA1VeQ #Standard h264 mp4 video in a equirectangular format (but throttled; 1080p)
yt-dlp -f 'bestvideo[height<=1440][ext=mp4]' --user-agent 'WEB' --get-url https://youtu.be/m9EClKA1VeQ #AV1 mp4 video (unusable encoding; 1440p)
yt-dlp -f 'bestvideo[height<=1080][ext=mp4]' --user-agent 'WEB' --get-url https://youtu.be/m9EClKA1VeQ #equiangular h264 mp4 video (unusable for me; 1080p)
Does anyone have a solution how to force an equirectangular format while retaining the h264 encoding?
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/youtubedl/c...