Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.07k stars 1.5k forks source link

Increase tags limit per video #704

Closed Booteille closed 6 years ago

Booteille commented 6 years ago

I find the tags limit of 5 a bit inconveniant, would it be possible to increase this limit to 10 (or more)?

I don't know if I am the only one, though. What do you think?

rigelk commented 6 years ago

We base our limit on that kind of reason. But admittedly we could go up to 10, since our ontology is broader than SO's.

Booteille commented 6 years ago

Yeah, I thought about that before posting but I think 10 should be fine, and better for the case of PeerTube, yup.

Especially for news video, containing many differents informations in one video.

ghost commented 6 years ago

@Booteille

Especially for news video, containing many differents informations in one video....

...which is not advised by professional content creators. Short videos which discuss one topic are the greatest, in terms of SEO, attention retention etc... Long videos have their place too, but in very very rare cases.

5 tags is good enough to me.

Booteille commented 6 years ago

Well. Since there are not only short videos discussing one topic and I don't think this should be the only option to make news videos (even if SEO is better on them), I think we should think about others content creators too.

Chocobozzz commented 6 years ago

IMHO 5 tags maximum is fine, because it forces uploaders to choose the right tags (not funny I know), so it's more relevant to viewers. More than 5 tags would be difficult for users to picture them mentally, and if all uploaders add 10 tags to every video they upload it would make this field useless.

rigelk commented 6 years ago

I guess 5 tags will be plenty enough, especially once we use Wikidata tags. Closing for now until we have more practical clues :)

Yetangitu commented 5 years ago

Here's one more piece of input to this discussion. I'm using Peertube to host a few thousand videos from all sorts of sources, this as a companion to an image archive containing photos from the same devices. The photos are tagged with the names of individuals portrayed in them as well as with location tags ('school', 'train', 'plane', etc), activity tags, event tags ('birthday', 'christmas', etc), source tags (camera_type-owner_name) and object category tags ('tools', 'vehicles', 'meteorological phenomena', etc). These are hierarchical tags which makes it possible to find e.g. photos containing 'people' (which is the parent category for names) observing 'meteorological phenomena', e.g. children looking at a rainbow or 'all photos containing person_X at event_Y in year_Z' or 'photos containing person_X but not person_Y'.

While the use of tags to categorise items in this way has been discussed (and denounced by some, defended by others) in practice this is one of the more practical ways to open up a largish archive (50.000 photos, 2500 videos) for exploration. It might not be a canonical, theoretically sound way to use tags but... it works, even for people who are not all that computer-savvy.

It is also clear that 5 tags are not sufficient to implement this scheme. I increased the number of allowed tags in the instance I use for this purpose. This means that videos shared from that instance potentially fail the tags validator on the importing instance and either loose tags or fail to be imported (I have not followed the code path to find out how it would behave).

One of the ways in which this dilemma could be solved is by having a generic metadata section containing key:value pairs which can be searched in the same way tags can. This metadata section can be shared in federation, allowing the same search capacity on remote systems. While it is not as 'pure' as the Wikidata-sourced tags it is far more usable for detailed exploration.

george110765 commented 5 years ago

Whether or not 5 tags is good practice, shouldnt it be up to the user to use the peer tube as they see fit. Or shoudl the length of video also be limited as ppl see that short videos are more effective than long videos etc etc... I can see the above usage case and maybe others would just force ppl to not use peer tube at all.

Is there any reason to limit the tag field? as decription field seems to be plenty long enough so I cant imagine it is a storage issue.

Yetangitu commented 5 years ago

Too many tags without a plan to use them makes for a useless system, just look at the keywords in the header for many web pages or eBay product descriptions where the main purpose seems to be for the page or product to show up in every query.

Yetangitu commented 5 years ago

A good middle way between overly restrictive tags and tag soup would be for the first X tags to be shared with other PT instances. It would still be possible to have more than X of them (as I do) but those extra tags do not get shared.

tilllt commented 4 years ago

I agree that 5 tags are not enough. The way people organize their information is an individual decision and I find 5 tags very limiting. Especially if you need to put a tag and an alternative (abbreviation, alternative spelling etc)

mpfaff commented 4 years ago

5 tags is absolutely not enough for a hard maximum. I'd be fine with that as a default, but it should absolutely within the administrator's control.

quicktrick commented 2 years ago

I increased the number of allowed tags in the instance I use for this purpose.

Hi @Yetangitu! How did you do that? I need it very much, too.

I found the file /var/www/peertube/peertube-latest/dist/server/initializers/constants.js with the parameters:

        TAGS: { min: 0, max: 5 },
        TAG: { min: 2, max: 30 },

I increased the TAGS max parameter. But that's not enough, obviously. It doesn't let to enter more than 5 tags, anyway.

I really need more than 5 tags for my PeerTube instance.