FAQ  •  Register  •  Login

YouTube CacheKey

<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Aug 23, 2012 4:47 am

YouTube CacheKey

Youtube videos result in the creation of a cachekey for every played video.
YouTube however has established format codes that define the attributes of each variation of a file that apply to all Youtube Videos. It seems to me therefore that the cachekey for a youtube video can simply be its format code and in that way the cache will only need to hold the dozen or so format code cache keys rather than one cachekey for every played youtube video.
Does this make sense and will it work?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Aug 27, 2012 10:25 pm

Re: YouTube CacheKey

that would work for codec combination, but probably not for resolution, bitrate, fps, etc. Those might be needed for transcoding detection etc.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Mon Aug 27, 2012 10:31 pm

Re: YouTube CacheKey

What do you actually cache. I don't see it documented. The format codes cover resolution as well, but I don't see fps or source bitrate used in your ffmpeg commands.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Aug 27, 2012 11:07 pm

Re: YouTube CacheKey

basically a lot from ffmpeg -i. I think the formats cover max resolution, not the actual resolution, right?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Mon Aug 27, 2012 11:28 pm

Re: YouTube CacheKey

Good point, but again I don't see you providing ffmpeg with any of that detail in your generated commands. FFmpeg seems to "discover " what it needs.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Aug 28, 2012 10:57 pm

Re: YouTube CacheKey

some of them are used for transcode matchers, eg maxHeight, profile, level, etc.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 51 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.