Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_youtube (Read 492401 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: foo_youtube

Reply #1200
Is there a way to prevent the cached audio data file from being automatically deleted when playback moves onto the next track? <...> I don't want it to re-retrieve the data from youtube every time.
Currently component is far away from being able to reuse data that was cached in the past.

When playback order is set to "Repeat (track)", and when the track reaches its end, it pings youtube's servers. I don't understand why this needs to happen. Given all the required audio data is already cached, and since I'm just looping the audio that's been already cached, I don't see why it needs to connect to youtube's servers for anything. So why does this happen?
Could be an unaccounted artifact. Or by design (because cache reuse from previous track is actually not part of original design but merely a hack). I'll check if the fix is feasible.

does this mean that we can decode any URL supported by youtube-dl now?
It is supposed so. But honestly I've tested a dozen of sites at best.

How would I go about loading soundcloud URLs with this plugin now? I've downloaded youtube-dl and set it to the preferred internal analyzer, but that doesn't seem to help. Whenever loading a soundcloud URL, I get an 'unsupported file format' error in console.
As others have already pointed out, in this case it was issue with youtube-dl. Version 2019.12.25 (the latest at the moment of quoted post) cannot open Soundcloud URL but the latest one (2020.01.24 at this moment) works well.

Another thing is I cannot make subtitle working with Lyric Show 3...
Confirmed a bug. Will be fixed in beta 2.

Re: foo_youtube

Reply #1201
Can confirm soundcloud issue is fixed in the latest version of youtube-dl, and that using youtube-dl as the internal analyzer even fixes the issues with loading youtube urls in version 3.4 of foo_youtube -- thanks to 3dyd for keeping this wonderful plugin alive, and for continuing to be one of the most active and reliable devs out there.


Re: foo_youtube

Reply #1203
Quote
Could you elaborate?
3dyd
I use the player on the multi-touch screen. One touch is more convenient.
Maybe this has something to do with focus, but I can’t turn on the full screen using Alt + Enter,
At the same time, Alt + Enter returns the normal screen.

I’ll ask for another choice of switching presets(selection of download quality) through the "Keyboard Shortcut"

Also, there are not enough buttons for switching tracks in full screen mode,
or even better with gestures, as in PotPlayer: https://potplayer.daum.net/)
Movement to the right with the clamped LMB - track forward. Left - back.

Noticed it scales to a full screen, somehow strange .. first the window moves to the upper left corner, and then opens.
Thanks for any additions!

Re: foo_youtube

Reply #1204
3dyd, could you enlight me about one thing? foo_youtube store all info about added tracks in cache ("%profile_cache%\foo_youtube\cache\meta" by default). If i delete added track from playlist (or delete playlist itself), then info about track would be cleared from cache too? Or not?
Option "Maximum number of tracks to cache" set to 0 (unlimited).

Re: foo_youtube

Reply #1205
As far as I can tell, no. The metadata and any images associated with the tracks will stay cached until you delete them.

Re: foo_youtube

Reply #1206
As far as I can tell, no. The metadata and any images associated with the tracks will stay cached until you delete them.
Slender , thank you.
I just thought, that plugin has some sort of "auto-optimization": all cache data without playlist entry periodically deleted.

Re: foo_youtube

Reply #1207
Quote
Unable to open item for playback (Youtube Source: Analysis, server error (code # 429) | Analysis, no video found on Youtube URL)
Corrects only IP change

Re: foo_youtube

Reply #1208
I have a question (and hopefully not a feature request...)

I like using the 'youtube source > video > window > background > image > album art' feature, but it does not work for media I have downloaded. Is there a way to make it also display thumbnails from locally saved videos, or create my own rules for displaying background album art? I'd like to be able to create my own rules similar to the built-in album art reader, where I can have fallback image filters if it does not find an applicable source (e.g. if video thumbnail doesn't exist, display album.*, else *album*.*, etc)

Re: foo_youtube

Reply #1209
seems like youtube changed something for instance i cant seem to get it to load playlists, at least playlist 50 items or larger. small play lists work but right around 50 items i get a timeout.

Re: foo_youtube

Reply #1210
Just for my curiosity: does anybody know why %fy_url% is not documented in the titleformatting. Workarounds like https://"%path%" are used quite often, see here. Anything wrong with %fy_url%?

Re: foo_youtube

Reply #1211
I think the current logic for cue_sheet in "Make Album" functionality  is wrong.
INDEX 01 points always to track's start
INDEX 02(in case where is 02 is the last INDEX) : defines current end of track and consequently its duration. (we don't need this for pregap functionality)
INDEX 00 is  previous track's end, (=pregap)

Now thinking about the algorithm creating the sheet, your leads are:

 * Listening to youtube video track starts: Those would be  the "01"  indexes of   the NEW cue sheet. You can be 100% sure these are correct times.

 * The starts(index 01) of the searched cue_sheet which are probably wrong.

 * The lengths of the search cue_sheet which are PROBABLY correct.

In case lengths are correct you can easily calculate the pregaps: current track idx1 - (previous tack idx1 + previous track length)
Unfortunately lengths won't be always accurate, so if you want 3dyd  to  support pregaps you probably should add a user editable pregap column.  Changes to it should keep previous track length unchanged and change current(and following)  track start times. Better UX and less frustrating for you not having to take any  guesses.

Re: foo_youtube

Reply #1212
I added a panel that play local video files, that's my main usage of foo_youtube. How can I prevent it to open that window that plays the video twice?

Re: foo_youtube

Reply #1213
I added a panel that play local video files, that's my main usage of foo_youtube. How can I prevent it to open that window that plays the video twice?

I was trying to figure out what's wrong on my own. I had to remove another video plug-in, the "Local Video Player". Now all settings of foo_youtube are working without problems.

Re: foo_youtube

Reply #1214
@3dyd
Could you add some important OSD controls(For full screen), for example? :
Spoiler (click to show/hide)

 

Re: foo_youtube

Reply #1215
@3dyd
Could you add some important OSD controls, for example? :
Spoiler (click to show/hide)

Re: foo_youtube

Reply #1216
Maybe this has something to do with focus, but I can’t turn on the full screen using Alt + Enter,
At the same time, Alt + Enter returns the normal screen.
If you use video UIE, it does not hold keyboard focus (only video popup window does). In this case - only double click (double tap).

I’ll ask for another choice of switching presets(selection of download quality) through the "Keyboard Shortcut"
Not planned since this can be done via video context menu.

Also, there are not enough buttons for switching tracks in full screen mode,
or even better with gestures
Noted.

Noticed it scales to a full screen, somehow strange .. first the window moves to the upper left corner, and then opens.
Should be worked around in latest beta (only for Win 8.1+).

I just thought, that plugin has some sort of "auto-optimization": all cache data without playlist entry periodically deleted.
When "Maximum number or tracks/thumbnails to cache" is set to number other than zero component deletes least recently used items to keep total number of items within given limit.

Quote
Unable to open item for playback (Youtube Source: Analysis, server error (code # 429) | Analysis, no video found on Youtube URL)
Corrects only IP change
Now there is an alternative.

I like using the 'youtube source > video > window > background > image > album art' feature, but it does not work for media I have downloaded. Is there a way to make it also display thumbnails from locally saved videos, or create my own rules for displaying background album art?
Component uses foobar2000 API to get album art. If it is possible to make so that video thumbnail appears in standard Album Art UIE, it will also appear in video window.

seems like youtube changed something for instance i cant seem to get it to load playlists, at least playlist 50 items or larger. small play lists work but right around 50 items i get a timeout.
API quota has been exhausted near this date. More info about this thing is here. I plan to remove dependency on Youtube API (probably in 3.6). For now for playlists loading can also be used youtube-dl (it does not depend on API). For on-site search there is no alternative yet (within component).

Just for my curiosity: does anybody know why %fy_url% is not documented in the titleformatting. Workarounds like https://"%path%" are used quite often, see here. Anything wrong with %fy_url%?
Nothing wrong with it, just forgot to document. Actually it is preferred way to go because for example for search or playlist tracks https://%path% won't give correct result. Documentation has been updated.

Could you add some important OSD controls, for example? :
OSD duplicating existing functionality (context menu in this case) is not planned.

Re: foo_youtube

Reply #1217
I am unsure if I am missing it, but is there a way to create a context menu for foo_youtube that will Add the location currently in the clipboard to the current playlist.

Currently I have to copy url from youtube, switch to foobar, use file->add location->ctrl V to paste location, hit enter, then hit play to begin playing.

It would be nice to have a context menu that uses add location to paste the contents of the clipboard into the currently selected playlist.

Re: foo_youtube

Reply #1218
I think the current logic for cue_sheet in "Make Album" functionality  is wrong.
<...>
So you mean, for example, for two one-minute-long tracks with pregap of 30 seconds between them instead of this:
Code: [Select]
  TRACK 01 AUDIO
    TITLE "First"
    INDEX 01 00:00:00
    INDEX 02 01:00:00
  TRACK 02 AUDIO
    TITLE "Second"
    INDEX 01 01:30:00
do this?
Code: [Select]
  TRACK 01 AUDIO
    TITLE "First"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "Second"
    INDEX 00 01:00:00
    INDEX 01 01:30:00
When foobar2000 loads such cuesheet, pregap becomes part of preceding song (if I had not already messed up this part of CUE loading). So in the second example "First" track will be 90 seconds long.

Component skips gaps so it would anyway need to tweak cuesheet loading as it does so with INDEX 02. But, unlike INDEX 02, with INDEX 00 you cannot specify the end of last track in case it does not match the end of entire video.

This feature is meant to become a generic way to split or cut off track. So both Start and Length columns must remain to be editable. In this case addition of third editable column does not look reasonable, as it does not add new functionality.

Also need to understand that this feature is not about cuesheets at all. Cuesheet is just used as a tool for track splitting and further versions may switch to some other way. So binding to cuesheet terminology in UI is not desirable.

It would be nice to have a context menu that uses add location to paste the contents of the clipboard into the currently selected playlist.
Playlist сontext menu contains actions to be performed on selected tracks in playlist. What you want merely fits to main menu item, not context menu item.

Anyway, this sounds like a generic feature, not something specific to this component.

Re: foo_youtube

Reply #1219
Quote
When foobar2000 loads such cuesheet, pregap becomes part of preceding song
I think this is considered the standard behavior. CueTools does the same. A quick search here in HydrogenAudio also pointed towards the same behavior. But it's totally your choice, I'm not saying it has to be done this way.

Quote
Also need to understand that this feature is not about cuesheets at all.
Totally agree, I personally consider even the existing functionality kind of a luxury! I only made this post because I for once tried to customize the "Make Album" on this:
Code: [Select]
youtube.com/watch?v=6MiBOVZBExk
and since description included timestaps, I thought why not to try to correct the cuesheet foo_youtube provided a bit, which lead to this ugly cuesheet(removed titles, notice idx02 timestamps):
Spoiler (click to show/hide)

Re: foo_youtube

Reply #1220
Ok, this is a bug actually. INDEX 02 cannot go beyond the track length. Fixed in 3.5.

Also made it not to introduce pregap when editing Start column. So when adjusting it to timestamps from description (the most often use case) there will be no INDEX 02 in resulting cuesheet.

Re: foo_youtube

Reply #1221
Hello 3dyd, thank you very much for this awesome component.

I've started using it recently for playing local files taken from youtube, using a ''Video Panel(DUI)'' got no problems at all, but using a ''Popup window'' everything seems to work fine until I change from "Hide automatically: Never"to something else in Preferences/Video/Playback, after this my foobar will crash on track changes very often on win8.1. Didn't test much on win10, but after sometime(5-20min?) foobar interface was mostly hanging entirely without interrupt playback and without crash.
I sent you a mail with some logs.

Re: foo_youtube

Reply #1222
Thank you. I'll check.

Re: foo_youtube

Reply #1223
Quote
"To continue with your YouTube experience, please fill out the form below"
There was no such message..

Fallback Text
It may be useful, but I do not have time to read it (when switching 480p).
Сan You make a delay that would be text-displayed yet a few seconds(or call it with one touch) after the video?

Re: foo_youtube

Reply #1224
Quote
"To continue with your YouTube experience, please fill out the form below"
There was no such message..
Article you've quoted describes how to deal with HTTP 429 error. So either your issue is not HTTP 429 or you've not used browser's Incognito/Private mode or they've changed something so these instructions are not relevant anymore. In the latter case I won't be able to advise unless I reproduce it.

Сan You make a delay that would be text-displayed yet a few seconds(or call it with one touch) after the video?
No, but you can remove fallback text in component preferences Video ->Window -> Fallback Text -> Pattern.