openzim / youtube

Create a ZIM file from a Youtube channel/username/playlist
GNU General Public License v3.0
52 stars 29 forks source link

Should we improve video quality? #90

Closed rgaudin closed 4 years ago

rgaudin commented 4 years ago

I am not very satisfied with the video quality of the ZIM files we serve, especially given we provide a single flavour. AFAIK, we have not received any complain about it though (@Popolechien can you confirm) but it bugs me a little.

I also know that the current compression settings have been selected years ago so I was wondering if we should update it a bit, at the expense of bigger ZIM files, of course.

I wrote a little script to test a couple other presets and compare the output with the current encoding.

You can see the result in report.html. I am attaching a screenshot in case this goes away… Comparison

As you can see, I randomly selected sample videos from the channels we scrape and compressed all of them with 3 different presets:

Unfortunately, the 240p while reasonably bigger than previous is not significantly better. It works best on animations and texts, but otherwise barely noticeable.

The 360p is way better but also way bigger.

I though it could easily demonstrate better quality without major size impact but could not. Still, we may want to tweak the converter in the future and I think that script is a good way to try and compare.

@kelson42 should I push it here in a contrib folder or should it be pushed somewhere else?

kelson42 commented 4 years ago

@rgaudin Yes, please put the tool in contrib. This is a valuable script.

rgaudin commented 4 years ago

Script has been pushed ; @Popolechien any feedback from youtube users?

Popolechien commented 4 years ago

Only this one (from a Hotspot user): "Ted talks - not the most user friendly landing page (thumbnails are stretched, just having a long scroll list is not the most easy visual to browse videos, making some basic categorisations here would be good). It's good that you can scroll for different languages but I had issues making the page update with my language selection."