I'd be surprised if 160kb Opus compared to 256kb ACC. The main advantage of Opus is that it has a very low latency for live streaming.

For WebM, I calculated 35% improvement for VP9. I'm currently applying the same ratio for VP8 but don't really know the difference. In any cases, the WebM stream I posted above is considerably larger than the MP4 stream.

After doing all these improvements, you can download the latest version here
http://spiritualselftransformation.com/ … 2-beta.exe

With the mass-downloader, if you scan and update the whole playlist and scan again, it still gives several false positive of "better versions available", for various reasons.

277

(17 replies, posted in Using SVP)

Part of the issue with CPU-bottleneck is that CPU technology has been totally stagnant for the past 2 years! It should have doubled during that period, but it turns out the laptop I bought 2 years ago has a CPU twice stronger than a brand new laptop at the same price today.

If you made SVP for Mobile, then CPU performance would have doubled.

For many of the low-quality videos, their best version appear to be the VP8 WebM non-DASH version. Sometimes it's the only one with a decent file size.

At least for some of them. Videos <= 480p are downloaded in all kinds of ways

- WebM VP8 non-DASH
- WebM VP9 + 256kb ACC into MKV
- MP4 file with 256kb ACC

With this one, for example, WebM VP8 is the best available
https://www.youtube.com/watch?v=_4WZeBcEvZI

Yay, DASH Manifest now works. And yes, some videos are now only available in lower quality than they were previously. Video formats change all the time. So there are files I have locally that I don't want to replace.

Chainik, for downloading, since you're already using Python, you might as well use YouTube-dl's code which is in the Public Domain according to their license

https://github.com/rg3/youtube-dl

Now that works except those that give me access denied for the DASH Manifest. You can then download WebM video + 256kb AAC audio into a MKV container for some videos.

For this video, the best version is the non-DASH WebM that is falsely marked as 360p, so I can't ignore those.
https://www.youtube.com/watch?v=HVCcqRKhrdo

The file size is specified for each video stream so I simply sort by Resolution and then by FileSize to get the best video. However, non-DASH videos don't have FileSize specified.

Access denied is because those DASH Manifest files need to be decrypted

Now that works except those that give me access denied for the DASH Manifest. You can then download WebM video + 256kb AAC audio into a MKV container for some videos.

Damn it's not that easy to just download a video! Now I'm getting this error on some videos when trying to download the DASH Manifest File

Your client does not have permission to get URL

https://manifest.googlevideo.com/api/ma … om/key/yt5

OK, after parsing the DASH Manifest, now it downloads the 256kb audio stream.

https://github.com/rg3/youtube-dl/issues/6099

Both YTD Video Downloader and www.clipconverter.cc fail to download the best video format.

I looked at all the video streams one by one to see whether one would have been mis-interpreted and I definitely don't find that 256kb stream.

Complete YouTube Saver definitely downloads 256kb ACC at this URL

//r3---sn-j5caxh5nj5o-j0oe.googlevideo.com/videoplayback?id=437a08b6955af5fb&itag=141&source=youtube&requiressl=yes&ms=au&mv=m&mm=31&pl=21&mn=sn-j5caxh5nj5o-j0oe&ratebypass=yes&mime=audio/mp4&gir=yes&clen=11226600&lmt=1421394143029494&dur=352.107&upn=HrcakPuKNVc&mt=1435344694&key=dg_yt0&sver=3&fexp=9407141,9408142,9408420,9408710,9412491,9413006,9413155,9413503,9415052,9415560,9415828,9416048,9416126,9416144,9416456,9416729,9416846,952640&signature=0FE155AE3EBD09030F8EC53D102863736A5E52E2.2C58359C108562726726BEA8E0F0326322879DEE&ip=189.221.249.135&ipbits=0&expire=1435366409&sparams=ip,ipbits,expire,id,itag,source,requiressl,ms,mv,mm,pl,mn,ratebypass,mime,gir,clen,lmt,dur

If you open the web page in your browser and search "itag=141", however, you don't find it. It seems like it's not available anymore, but still is if you know how to request it... Complete YouTube Downloader seems to be doing something fancy here. Any idea?

Edit:
http://stream-recorder.com/forum/some-n … b&amp;

Ah... it seems YouTube didn't actually lower their quality. Rather, I've been downloading the wrong video streams!

...

Now I'm seeing the 600MB file that I had on my local computer. The downloader says 250kb but I think it's a mistake. The 600MB file I have on my computer has a 128kb AAC audio with it. But actually, that downloader failed to merge the audio into the video.

With the Natural Grounding Player, you can right-click on the file in the playlist and "Extract audio", and tell me what bitrate that file really has.

And now it's still not that simple to select the right stream. There are 2x 2160p WebM streams available: code 272 and 313. In case of doubt like this, would simply taking the highest format code be good enough?

The "right" file to download is 266, which is not MOV but really is MP4. Combined with 160kbps Opus audio.

I wonder how that downloader do to know the file size of all downloads right away. I was querying each URLs which takes time.

OK I got the 160kbps Opus stream successfully. I'm definitely not seeing 256kbps ACC (code 141), but I have codes 266 and 313 that aren't recognized.

Searching online, 266 is MOV video type which I had never seen before. What's up with Mov? Is it good or should I ignore it?

I found a good list of format codes here: in the source code of another downloader smile
https://github.com/rg3/youtube-dl/blob/ … youtube.py

Now all streams are properly identified but I still see no trace of a 256kbps AAC. Do you see what format code it has?

Thanks, those 3 format codes were exactly what I needed to fix it! There's VERY LITTLE online documentation about that! But I saw at one place that 249 is 50kbps and 250 is 70kbps. This will become one of the few downloaders that support Opus?

Oh, that's what FormatCode is! I'm only seeing 140 and 171 as recognized streams, and the 3 unrecognized streams are 249, 250 and 251.

So it looks like they downgraded AAC and Vorbis in favor of Opus which I'm ignoring so far.

Wait... there were 3 unrecognized streams at the bottom. Could those be Opus audio and that the downloader doesn't yet support it? It doesn't have that format in its list of supported audio formats.

Let's this this HD video
https://www.youtube.com/watch?v=Q3oItpVa9fs

The best quality audio I'm seeing is non-DASH 720p with 192kb AAC audio. Then, I see only 2 DASH audios, AAC and Vorbis, and they're both 128kb. Unless I'm missing something?

Opus Audio? Is that implemented yet, are there currently videos using that format?

292

(45 replies, posted in Using SVP)

I just had again a problem where video playback started lagging. I confirm that following those steps solved the problem. Simply closing and re-opening MPC-HC did not solve it.

Alright... now it can download only the audio stream and merge it back with the video. I saw that not only did they lower the video bitrates, but they also lowered the audio bitrates from 192kb to 128kb. That's very unfortunate. So for videos I downloaded before I want to keep, even the AAC audio may be higher than the new Vorbis audio, so I have to compare the bitrate as well.

If the remote Vorbis bitrate is no less than 20% lower than the local AAC bitrate, I download the audio stream and merge it with the local video.

Here are the SIMPLEST instructions as to how to convert videos to 60fps in 7 easy steps

Some videos have Vorbis audio available but I can't redownload them because my local MP4 is higher quality. I might have to add an option to redownload only the audio and muxe that Vorbis audio with the local video. However, that won't work if the videos aren't exactly the same length.

For now I'm throwing away non-DASH MP4 and WebM files.

I saw these DASH mostly for 360p videos that were in fact 240p, and I saw it in one case where MP4 was available twice in 720p: DASH and non-DASH.

If you see a specific video where the non-DASH MP4 should be downloaded, show it to me.

This version will download according to those rules
http://spiritualselftransformation.com/ … 2-beta.exe

If WebM is less than 35% smaller than MP4, download WebM.
Otherwise, download H264 with Vorbis audio into a MKV container.
If only H264 is available, download into a MP4.

There is also a mass-downloader and updater that scans your local files to detect whether a better version can be downloaded. It will only replace your local files if the online version is either higher resolution or considerably larger. For MP4 files, if the file size is similar, it will re-download it with Vorbis audio.

Wow, the bass sounds MUCH better with Vorbis!

Comparing for the same resolution: apples with apples. Are there cases where I should take the non-DASH H264? For now I'm discarding that version. But I remember seeing a MP4 video with 128kbps in the DASH version and 192kbps in the non-DASH, and both were available for the same resolution.

Damn you're right, Vorbis audio is better.

This means that to get the best version from YouTube, I have to check the size of both video streams. If WebM is no less than 35% smaller than the MP4 stream, take the VP9 video and Vorbis audio and muxe as WebM. If WebM is over 35% smaller, take the H264 stream with the Vorbis audio and muxe as MKV. If WebM isn't available at all, take H264+ACC and muxe as MP4.

This makes it a bit complicated, but will do a better job than any other downloader out there.