HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: 3dyd on 2014-01-25 02:43:57

Title: foo_youtube
Post by: 3dyd on 2014-01-25 02:43:57
This component adds possibility to play Youtube, Vimeo and Dailymotion clips directly by their URL.

Other features: channels support (Youtube, Dailymotion), search on Youtube within the program, clip thumbnail as album art, clip subtitles as lyrics, multitrack album from the single clip, video playback.

Changelog (https://fy.3dyd.com/changelog/)
Download (https://fy.3dyd.com/download/)
Documentation (https://fy.3dyd.com/help/)
Title: Re: foo_youtube
Post by: eahm on 2014-01-25 03:03:11
Beautiful, I needed something like this last summer but it will come useful again I'm sure!
Title: Re: foo_youtube
Post by: mire777 on 2014-01-25 14:29:47
This is great! Thanks..  finally that someone make this plugin, and sound quality is excellent.
One future request, if possible, would be good that you have search box in view>youtube window, and when enter song and title you recieve list of videos , and when click on selected video it starts play.
Anyway, this is the plugin i've been looking for years, thank you, i appreciate your hard work..
Title: Re: foo_youtube
Post by: outwork on 2014-01-26 09:02:38
Amazing! Ive just registered to foobar forum, to thank you your hard work. Everything is just working fine, waiting for the next release!
Title: Re: foo_youtube
Post by: emte on 2014-01-26 09:08:40
Not working here.

I always get "Unable to open item for playback (Unsupported format or corrupted file):"http://www.youtube.com/watch?v=lI5bxuBUXo4"" error or "Unable to open item for playback (Forbidden (403)):"3dydfy://www.youtube.com/watch?v=lI5bxuBUXo4"" error.
Title: Re: foo_youtube
Post by: mire777 on 2014-01-26 09:53:23
Not working here.

I always get "Unable to open item for playback (Unsupported format or corrupted file):"http://www.youtube.com/watch?v=lI5bxuBUXo4"" error or "Unable to open item for playback (Forbidden (403)):"3dydfy://www.youtube.com/watch?v=lI5bxuBUXo4"" error.


Your link work..
You may have this problem: In preferences>advanced>networking check, allow seeking over HTTP.
Title: Re: foo_youtube
Post by: mire777 on 2014-01-26 10:07:39
This is how it looks, i also have images and bio text for Youtube video

(http://imageshack.com/a/img23/8792/ofv0.png)
Title: Re: foo_youtube
Post by: emte on 2014-01-26 12:39:45
Not working here.

I always get "Unable to open item for playback (Unsupported format or corrupted file):"http://www.youtube.com/watch?v=lI5bxuBUXo4"" error or "Unable to open item for playback (Forbidden (403)):"3dydfy://www.youtube.com/watch?v=lI5bxuBUXo4"" error.


Your link work..
You may have this problem: In preferences>advanced>networking check, allow seeking over HTTP.


Have it checked... I have no idea why it doesn't work on my machine.

http://www.youtube.com/watch?v=7XcTyEKSnYg (http://www.youtube.com/watch?v=7XcTyEKSnYg) <-- this one works

http://www.youtube.com/watch?v=I0fObdhfbkQ (http://www.youtube.com/watch?v=I0fObdhfbkQ) <-- this one doesn't
Title: Re: foo_youtube
Post by: 3dyd on 2014-01-26 17:34:20
Thanks to all for feedback!

Not working here.

I always get "Unable to open item for playback (Unsupported format or corrupted file):"http://www.youtube.com/watch?v=lI5bxuBUXo4"" error or "Unable to open item for playback (Forbidden (403)):"3dydfy://www.youtube.com/watch?v=lI5bxuBUXo4"" error.


For now plugin adds Youtube clips, recognized by it, with custom protocol string 3dydfy://. This is done to prevent foobar2000 to download page before it passes link (and downloaded page) to plugins - plugin anyway downloads page again by itself using canonical url, which content may differ with provided. In conclusion, for now (v0.0.1) if you have in playlist Youtube link started with http:// then it was not recognized by the plugin (so foobar2000 just added the link to playlist as is) and when you will play it - plugin will ignore it (because expects only 3dydfy:// links). Yep, not good decision, so this behaviour will be fixed in next version - http:// links also will be accepted.

About Unable to open item for playback (Forbidden (403)). Sometimes this really happens, Youtube rejects requests to media files (maybe it thinks there was too much requests for media files for one computer (and not without a reason :) )). Usually this is temporary effect and after few seconds all is ok. Ensure that you've selected Playback Start slider in Presefences to Fast - this will download only page and don't request any info about media files from Youtube. Also some info may give plugin log which can be found in plugin info window, tab Log (plugin info window shows by menu View -> Youtube Source). To see log, you should have this window opened before start playback (bug, fixed in next version)
Title: Re: foo_youtube
Post by: outwork on 2014-01-26 21:14:16
It is possible to implement direct search within foobar2000?
Title: Re: foo_youtube
Post by: 3dyd on 2014-01-26 22:06:08
It is possible to implement direct search within foobar2000?

This is good question, already mentioned in earlier messages. Yes, this is possible, but not sure is this really needs. Really, this can be done using one more tab in Youtube Source window (let call it Search tab), where you'll get edit box for search request, Search button and list of founded clips. But Youtube already has all this by itself, with many search filters and personalized search results, so is this really needed?
Title: Re: foo_youtube
Post by: outwork on 2014-01-26 22:15:02
It would be a quite useful feature, if i could stream my favourite music directly from foobar without a browser. Personally i didnt like youtube`s interface at all. For some users with low-end computers it could be a welcomed feature.
Title: Re: foo_youtube
Post by: mire777 on 2014-01-27 00:00:15
It is possible to implement direct search within foobar2000?

This is good question, already mentioned in earlier messages. Yes, this is possible, but not sure is this really needs. Really, this can be done using one more tab in Youtube Source window (let call it Search tab), where you'll get edit box for search request, Search button and list of founded clips. But Youtube already has all this by itself, with many search filters and personalized search results, so is this really needed?



That would be really useful,i also don't like youtube interface, if you have this option, you don't have to leaving foobar, and go to browser (It's frustrating to use another program for this).
Also copy-paste url is difficult somethimes if you want many videos from diferent artists. It would be good if you have time to do it. Thanks..

Something i found, you can download mp3 from video with convert
Title: Re: foo_youtube
Post by: eahm on 2014-01-28 14:46:34
Can you send it to the official components page so it updates automatically?
Title: Re: foo_youtube
Post by: 3dyd on 2014-01-28 14:52:24
Temporary having problem to edit main post so for now leaving this only here:

New version:
foo_youtube_0.0.2.zip (http://www.hydrogenaudio.org/forums/index.php?act=attach&type=post&id=7793)

Changes:
- added Youtube Adaptive Streams using. Enabled by default which means that if page has acceptable adaptive streams then only those streams will be used at selecting which media to play
- selection of which media to play configured to use only formats supported by foobar2000 out of the box. And this list excludes FLV format and adaptive AAC stream (Youtube uses DASH codec unsupported by current foobar2000 version). In addition to those excluded also WebM format - Youtube usually provides qualities in both WebM and MP4 formats, so this ignoring in most cases will not result in quality loss, but most likely will result in playback speed up - looks like WebM needs more seeking though file
- Clips History tab now shows info about all media files founded on the page. Youtube page always contains more than one media with different qualities. This info tab provided for clean understanding which quality was selected to play and which was ignored due to plugin preferences
- plugin does not ignore now links started with usual protocol (http) or links without protocol at all. However it still uses own 3dydfy:// protocol to speed up playback start
Title: Re: foo_youtube
Post by: 3dyd on 2014-01-28 15:00:28
@outwork, @mire777
Ok, if Search needed, then it will be.

@eahm
I'll try.
Title: Re: foo_youtube
Post by: outwork on 2014-01-28 15:31:26
Trying out right now! Thanks.
Title: Re: foo_youtube
Post by: mire777 on 2014-01-28 16:06:57
@outwork, @mire777
Ok, if Search needed, then it will be.

@eahm
I'll try.


Thanks a lot
Title: Re: foo_youtube
Post by: starmajoris on 2014-01-28 22:33:50
Ok, if Search needed, then it will be.


I thank you a lot for this and your plugin. It's awesome.

Title: Re: foo_youtube
Post by: mudlord on 2014-01-29 08:58:01
Can you send it to the official components page so it updates automatically?


Only components that are proven to be stable and well developed tend to end up there.
Title: Re: foo_youtube
Post by: 3dyd on 2014-01-29 19:46:44
Can you send it to the official components page so it updates automatically?


Only components that are proven to be stable and well developed tend to end up there.


Well, thanks for feedback. Actually point is not in placing this component to the official components list. Point is to have updates or at least be notified about new version if component already installed by the user. Or this feature available only for official components?
Title: Re: foo_youtube
Post by: eahm on 2014-01-29 20:18:46
Well, thanks for feedback. Actually point is not in placing this component to the official components list. Point is to have updates or at least be notified about new version if component already installed by the user. Or this feature available only for official components?

Not even the Components page have only official components. The auto updates come from that page though yes.

Check here at the bottom of the page: http://www.foobar2000.org/download (http://www.foobar2000.org/download). Official components are only the ones made by Peter.

Browse official components
Browse all components

mudlord specified the components must at least be stable not official.
Title: Re: foo_youtube
Post by: room302 on 2014-01-29 21:39:06
Great plugin, but i a have problem, its crashed over over again.
log here:

Quote
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 06BA2C1Ah
Access violation, operation: read, address: 00000000h

Call path:
entry=>initquit::on_init
Registers:
EAX: 00000000, EBX: 02BE1EA0, ECX: 00000000, EDX: 0029F69C
ESI: 00000001, EDI: 00000021, EBP: 0029F640, ESP: 0029F5F4

Crash location:
Module: foo_youtube
Offset: 2C1Ah
Title: Re: foo_youtube
Post by: 3dyd on 2014-01-29 23:46:08
Ough, difficult to learn from others' mistakes whatever says opening quote of this topic (http://www.hydrogenaudio.org/forums/index.php?showtopic=76296).

New version:
foo_youtube_0.0.3.zip (http://www.hydrogenaudio.org/forums/index.php?act=attach&type=post&id=7794)

Changes:
- tuning of playback quality selection improved. Youtube Adaptive Streams now used always but still preferred by default due to 'Prefer Adaptive Streams' setting. Example: 'Preferred Quality' set to 'Best available' (as by default) and analyzed clip has best quality '1080p, 192 kbps AAC, 666 MB' and best adaptive stream 'OGG 128 kbps, 10 MB'. By default adaptive streams are preferred regardless of quality of video clips i.e. will be selected 'OGG 128 kbps, 10 MB'. If uncheck this setting then adaptive stream will be compared with other available audio streams and will be selected best available which is '1080p, 192 kbps AAC, 666 MB'. If you worry which quality selected, check 'Clips History' tab from main menu 'View- > Youtube Source', it shows available qualities, quality selected for playback and qualities ignored due to preferences. This should help to understand quality selection strategy. I remind, particular streams (including adaptive) can be disabled through 'Formats to ignore' edit box in component preferences
- added debug info (helps with crash analysis). @room302, please use 'Send Report' from foobar2000 crash window (maybe i'll get it somehow) or send crash dump directly to threedyd@gmail.com
- few minor changes regarded to UI
Title: Re: foo_youtube
Post by: 3dyd on 2014-01-30 20:04:36
New version:
foo_youtube_0.0.3.1.zip (http://www.hydrogenaudio.org/forums/index.php?act=attach&type=post&id=7795)

Changes:
- fixed crash on start in several cases. Thanks to @room302
Title: Re: foo_youtube
Post by: musikomaniak on 2014-02-03 19:00:21
This is how it looks, i also have images and bio text for Youtube video

(http://imageshack.com/a/img23/8792/ofv0.png)


For me it does not look at all like mire777.
I can listen, but I don't have any image or bio.


Edit
What looks mine, listening to youtube Jazz Compilation http://www.youtube.com/watch?v=0gcu3GI3nA4 (http://www.youtube.com/watch?v=0gcu3GI3nA4)
(http://i.imgur.com/83CUEXx.jpg)
Title: Re: foo_youtube
Post by: mire777 on 2014-02-03 19:40:04
For me it does not look at all like mire777.
I can listen, but I don't have any image or bio.

It's not an option in this component..
I think that 3dyd will do something to support this..
For now, you can use my script: http://mire777.deviantart.com/art/WSH-Biog...C2003-419126433 (http://mire777.deviantart.com/art/WSH-Biography-for-xch4nge-MARC2003-419126433)
In field 'Artist format' you should enter: $if(%artist%,%artist%,%title%) , and use 'google' or 'yahoo' server for image, because from last.fm didn't work..
Title: Re: foo_youtube
Post by: musikomaniak on 2014-02-03 19:59:02
Thanks a lot Mire777. I thought it was part of the component
I'll try your script, but I'm not sure to know how to.

What do you mean by
Quote
use 'google' or 'yahoo' server for image
?
You mean to use Chrome, instead of Mozilla or Opera?
Title: Re: foo_youtube
Post by: mire777 on 2014-02-03 20:13:21
Thanks a lot Mire777. I thought it was part of the component
I'll try your script, but I'm not sure to know how to.

What do you mean by
Quote
use 'google' or 'yahoo' server for image?
You mean to use Chrome, instead of Mozilla or Opera?


No this is a part of script, in properties- ''download source'' for images you should enter: google or yahoo instead of last.fm.
For text biography in properties- in ''download source'' you should enter: last.fm. And in Artist format you also use: $if(%artist%,%artist%,%title%)
Only you must have instaled and functional Internet Explorer because script use that browser in background to download images..
Title: Re: foo_youtube
Post by: room302 on 2014-02-03 20:15:45
I think that 3dyd will do something to support this..


exactly, we need that 
Title: Re: foo_youtube
Post by: musikomaniak on 2014-02-03 21:01:04
No this is a part of script, in properties- ''download source'' for images you should enter: google or yahoo instead of last.fm.
For text biography in properties- in ''download source'' you should enter: last.fm. And in Artist format you also use: $if(%artist%,%artist%,%title%)
Only you must have instaled and functional Internet Explorer because script use that browser in background to download images..

I'll have to understand where to put the script. Sorry, I'm very low and stupid
On the other hand I have the components foo_uie_biography, foo_uie_lyrics and I don't use Last.fm and don't have WSH panel.
I think it would be easier for me just to listen to Youtube
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-04 14:32:37
The idea is great but unfortunatelly there is one moment. Youtube clips haven't such properties like artist, album name etc. All what can be used in context of this component - clip title (as %title%) and clip duration. The user who uploaded the video gives a title for it and there are no rules regarding to this. So for example it can be 'Manowar - Mountains', 'Mountains (Manowar) ^___-' or just 'The best sogn ever!!!1'. Thus in many (or most) cases search info on separated services (last.fm, Google etc) by clip title may result in nothing. Other variant here (which will provide less useful info but at least will provide it always) - is to use in Biography View thumbnail and description from original Youtube clip page. But this task is out of foo_youtube scope and for somebody who is familiar with Biography View extending (I'm not)
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-04 18:15:43
New version:
foo_youtube_0.0.4.zip (http://download.3dyd.com/foo_youtube_0.0.4.zip)

Changes:
- show clip thumbnail in Album Art (disabled by default)
- show info in Log about clips skipped due to feed loading

Also updated first post of the topic, take a look.
Title: Re: foo_youtube
Post by: room302 on 2014-02-04 19:38:27
- show clip thumbnail in Album Art (disabled by default)
- show info in Log about clips skipped due to feed loading


everything is perfect.
but i think thumbnail option must be enabled by default.
good job
Title: Re: foo_youtube
Post by: mire777 on 2014-02-05 10:20:11
The idea is great but unfortunatelly there is one moment. Youtube clips haven't such properties like artist, album name etc. All what can be used in context of this component - clip title (as %title%) and clip duration. The user who uploaded the video gives a title for it and there are no rules regarding to this. So for example it can be 'Manowar - Mountains', 'Mountains (Manowar) ^___-' or just 'The best sogn ever!!!1'. Thus in many (or most) cases search info on separated services (last.fm, Google etc) by clip title may result in nothing. Other variant here (which will provide less useful info but at least will provide it always) - is to use in Biography View thumbnail and description from original Youtube clip page. But this task is out of foo_youtube scope and for somebody who is familiar with Biography View extending (I'm not)


'Albumart thumbnail' is perfect,thank you..  One thing, you can split title in tag fields if it has ''-'' separator, example: 'Manowar - Mountains' , to be: artist: 'Manowar' , title: 'Mountains' , because user on youtube in most cases use this format. Then we can have biography photos and text if use ''biography component'', also if use ''foo_uie_lyrics3'' you can have lyrics. You can add in preferences, something like: 'split title in tags'.
I also use this metod in foobar to 'automatically fill values in tags' directly from foobar(when i download some song from youtube), i use titleformat: #youtube# %artist%  -%title%- , and it fill all my tags..

About biography view component, develop has not been seen for a long time now, but idea to use thumbnail and description from original Youtube clip page is good..
This can be done in WSH..
Component is perfect now, only waiting search option  . Thanks a lot..
Title: Re: foo_youtube
Post by: d125q on 2014-02-05 11:25:15
One thing, you can split title in tag fields if it has ''-'' separator, example: 'Manowar - Mountains' , to be: artist: 'Manowar' , title: 'Mountains' , because user on youtube in most cases use this format. Then we can have biography photos and text if use ''biography component'', also if use ''foo_uie_lyrics3'' you can have lyrics. You can add in preferences, something like: 'split title in tags'.

Indeed; this is how foobar2000 handles SHOUTcast streams (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Title_Formatting_Reference#Metadata); %artist% takes the StreamTitle up to the first '-' character, while %title% the StreamTitle after the first '-' character.
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-06 15:42:05
but i think thumbnail option must be enabled by default.

I'm not sure in it yet i.e. it should work fine but who knows... So disabled by default for now.

@mire777, @d125q
This approach will work not always. But yes, idea is good, so will be as an option.
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-07 20:53:02
New version:
foo_youtube_0.0.5.zip (http://download.3dyd.com/foo_youtube_0.0.5.zip)

Changes:
- clip title parsing rules. Read below
- remove black areas in Youtube thumbnails. Disabled by default
- clips history size control

About clip title parsing. There are three predefined ways:
- first is use whole clip title as %title% (as it now, this is default)
- second is split clip title to %artist% and %title% by first '-' character
- about third variant. ~5±5% of clips also have some comment at end of the title within () or [] e.g. Sonata Arctica - Don't Be Mean (New Album) (http://www.youtube.com/watch?v=SFHPGPoTYBU). Third variant is extension of second which ignores such comments. This may extend the chance that artist and title will be retrieved correctly.

Rules can be added manually, added some info to preferences help (http://fy.3dyd.com/home/component_preferences) (at bottom of the page). There are also some info about removing black areas from thumbnails of Youtube clips.
Title: Re: foo_youtube
Post by: room302 on 2014-02-07 23:41:31
after every update it getting better.
ideas:
-maybe u can integrate "stream recorder" for directly sound record from videos

regards
Title: Re: foo_youtube
Post by: mire777 on 2014-02-08 10:15:35
after every update it getting better.
ideas:
-maybe u can integrate "stream recorder" for directly sound record from videos

regards


Room302 - You can save video sound with foobar converter, in mp3 or wav format, focus selected video from playlist and just hit convert.
If you chose best quality video in preferences, than your output sound in mp3 also be best quality..
It will also save tags: %artist% - %title% , and if you use foo_uie_biography component set to save artwork image, if you have path set in preferences>display, you will have thumbnails for each track in playlist

3dyd thanks alot , works great, all info is displayed: biography text, images and lyrics...
Title: Re: foo_youtube
Post by: nada on 2014-02-08 12:18:00
Good component, but I have a problem. If you set any quality other than 32kbps, youtube sound have interruptions.
I have to adjust the playback output buffer length in 30000ms to avoid this.
But even then, some video sound  have interruptions..
Is there a way to fix this? Thanks.
Title: Re: foo_youtube
Post by: room302 on 2014-02-08 19:45:44
Room302 - You can save video sound with foobar converter, in mp3 or wav format, focus selected video from playlist and just hit convert.


ah well, its very useful and better than my idea
thank u for information.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-02-09 09:17:05
With the last version 0.0.5 I see an image

(http://i.imgur.com/K1oCxNP.jpg)
Title: Re: foo_youtube
Post by: mooter on 2014-02-09 09:50:55
3dyd, I just want to thank you for making this component.  The only reason I come to this forum is about once a month just to see if someone has made this yet, and now you have:)
Browsers are overkill with ram and cpu just to stream music of YT, there are some great playlists and other stuff that can only be found there. 
Foobar is perfect for this and that's why it and it's community kicks ass!

Thanks again man, I really appreciate it.  It's already better than 'good enough' imo
Title: Re: foo_youtube
Post by: neons on 2014-02-09 10:58:16
I also come here to thank you for this component. The only thing I'd like to have also, is to be able to search youtube videos from foobar.
I hope that this will be added as option in next release..
Thank you very much for this component and your work, it's perfect.
Works great.
Title: Re: foo_youtube
Post by: Wolfbane on 2014-02-09 16:41:09
Nice addon/plugin, have installed it and it has really nice possibilities.

I have gotten it only to show an Image in the "Album Art Viewer". If it is already possible to make it play a video, plz enlighten me how.
Is there any way in the future to let it actually play the you tube video ?

I would prob prefer if the you tube clip video was in a seperate window of it own instead, if that is possible, in the same way  as "Lyric Show Panel"
Title: Re: foo_youtube
Post by: detmek on 2014-02-10 00:58:42
Thanks for this plugin. I  installed it an hour ago and it works stable and just as I want. Thanks again.
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-10 01:44:16
Thanks to all for feedback!

@Wolfbane
Well (http://www.hydrogenaudio.org/forums/index.php?showtopic=93650), foobar is an audio player, so I will probably not even try this.

Good component, but I have a problem. If you set any quality other than 32kbps, youtube sound have interruptions.
I have to adjust the playback output buffer length in 30000ms to avoid this.
But even then, some video sound  have interruptions..
Is there a way to fix this? Thanks.


Actually I've noted a kind of this problem (that's why WebM disabled by default). Now seems it is time to think about this.
What need to play Youtube clip in context of this component:
#1. get link to playable media
#2. provide access to this media for decoder (i.e. download it from the Internet)
#3. decode media file data and play.
Component by itself does only #1. Downloading the media and decode[/preprocess]/play depends on foobar. I.e. if clip started to play - component's job was done and done successfully.
What can be done. First and foremost, should be understood that most of the media files on Youtube are video clips. In this case, if foobar plays an audio from the clip, it anyway downloads video file and plays audio from it. If bitrate of whole media file is greater than your Internet speed then you'll get interruptions. You can move Playback Start slider in component Preferences page to Medium - in this case in History tab will be shown also size of each media file (note, this slows down playback start) so you can determine if it is the problem of media file size in your case.
But. Looking more deeply, foobar seems always downloads the media by small pieces (v1.3.1). This is probably good for streamed media or has some other reasons but in case of Youtube clips this may give overhead and interruptions. So if somebody constantly has playback interruptions trouble, try this build: foo_youtube_0.0.6_(dev1).zip (http://threedyd.3dyd.com/beta/foo_youtube_0.0.6_(dev1).zip). Check in Preferences Use own downloader and say if this solves the problem. If this option enabled, component also takes role #2 from the list above (only for Youtube clips, any other downloading from the Internet (like Internet-radio) stays untouched). Difference with native implementation in general - it caches whole file in temp folder.
Title: Re: foo_youtube
Post by: nada on 2014-02-10 03:29:27
Thanks to all for feedback!

@Wolfbane
Well (http://www.hydrogenaudio.org/forums/index.php?showtopic=93650), foobar is an audio player, so I will probably not even try this.

Good component, but I have a problem. If you set any quality other than 32kbps, youtube sound have interruptions.
I have to adjust the playback output buffer length in 30000ms to avoid this.
But even then, some video sound  have interruptions..
Is there a way to fix this? Thanks.


Actually I've noted a kind of this problem (that's why WebM disabled by default). Now seems it is time to think about this.
What need to play Youtube clip in context of this component:
#1. get link to playable media
#2. provide access to this media for decoder (i.e. download it from the Internet)
#3. decode media file data and play.
Component by itself does only #1. Downloading the media and decode[/preprocess]/play depends on foobar. I.e. if clip started to play - component's job was done and done successfully.
What can be done. First and foremost, should be understood that most of the media files on Youtube are video clips. In this case, if foobar plays an audio from the clip, it anyway downloads video file and plays audio from it. If bitrate of whole media file is greater than your Internet speed then you'll get interruptions. You can move Playback Start slider in component Preferences page to Medium - in this case in History tab will be shown also size of each media file (note, this slows down playback start) so you can determine if it is the problem of media file size in your case.
But. Looking more deeply, foobar seems always downloads the media by small pieces (v1.3.1). This is probably good for streamed media or has some other reasons but in case of Youtube clips this may give overhead and interruptions. So if somebody constantly has playback interruptions trouble, try this build: foo_youtube_0.0.6_(dev1).zip (http://threedyd.3dyd.com/beta/foo_youtube_0.0.6_(dev1).zip). Check in Preferences Use own downloader and say if this solves the problem. If this option enabled, component also takes role #2 from the list above (only for Youtube clips, any other downloading from the Internet (like Internet-radio) stays untouched). Difference with native implementation in general - it caches whole file in temp folder.



Thank you I tested ver 0.0.6, this completely solves my problem. No playback interruption at all.
My settings are:
-Quality -best available
-Prefer youtube adaptive streams
-Use own downloader

Please add this as option in next ver.
I am happy that I now can listen youtube in foobar.
Thank's for your work, it's awesome
Title: Re: foo_youtube
Post by: mire777 on 2014-02-10 15:00:11
Just to confirm that this latest version works faster, even better than from browser, seekbar has faster response..

I have one more idea, if this can be done later..
Last.fm is now using YouTube as a radio player, maybe it can be used to play videos from youtube with recomendation,

Example:
On this url: (http://www.last.fm/listen/artist/Madonna/similarartists), you have radio based player, when it starts play, you can copy that url from youtube, and send it to playlist in foobar, then when video is finished it can trigger new url, and send it to playlist an so on..

this is url with similar artist recomendation: http://www.last.fm/listen/artist/Madonna/similarartists (http://www.last.fm/listen/artist/Madonna/similarartists)
this is url with genre tag: http://www.last.fm/listen/globaltags/rock (http://www.last.fm/listen/globaltags/rock)
url with user personal playlist: http://www.last.fm/listen/user/{username}/personal (http://www.last.fm/listen/user/{username}/personal)
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-10 20:46:10
Thank you I tested ver 0.0.6, this completely solves my problem. No playback interruption at all.
Please add this as option in next ver.

Cool. So will be as an option.

Last.fm is now using YouTube as a radio player, maybe it can be used to play videos from youtube with recomendation,

Well, this component adds possibility to play Youtube clips in foobar (with all related stuff like clip thumbnail in Album Art). My opinion is that it should do what it offers and not more. Implementing a kind of the radio using last.fm recommendations is out of its scope. I.e. for such purposes can be created some foo_lastfm_radio component, but those components should not be mixed.
Title: Re: foo_youtube
Post by: carpman on 2014-02-11 00:06:46
Thank you I tested ver 0.0.6, this completely solves my problem. No playback interruption at all.
Please add this as option in next ver.

Same here. 0.0.6 working really well for me. Nice work.

C.
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-12 20:19:38
Yep. Foobar downloads data by portions ~200-600KB, always making new request for next data portion (i.e. by establishing new connection on new source port). This does not depend of Buffer size from Networking preferences - seems this size used at some more top level. At least this is how it looks by traffic analysis, maybe this is the case of my computer only and my conclusions may be wrong because of not enough knowing foobar internals and its SDK. In case of WebM situation little worse - portions always not more than ~250KB and at any such request it also makes two requests to beginning of the file (second is with 'Range: bytes=48-'). This concerns also to WebM AO (aka Ogg in component).
In general, data retrieving designed for audio streams like HTTP radio and works great. In context of downloading and play single files this variant not very good (especially in case of playing audio from the video file), but who needed play files from the Internet :)
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-12 20:52:25
New version:
foo_youtube_0.0.6.zip (http://download.3dyd.com/foo_youtube_0.0.6.zip)

Changes:
- use own downloader for media files (optionally). Read below
- played clip info now cached (reduces clip opening count in some cases)
- show info about audio sample rate and channels count in History
- added tooltip with detailed quality info in History. Now tooltip shows only if mouse pointer over tree item icon. Tootip of parent item (where clip name placed) shows info about qualities count (count of usual, video-only, audio-only clips and total clips count)

About own downloader. You can enable WebM if you use it. Btw for now in most cases WebM is the only way to play clips in 128kbps (OGG 128kbps (WebM AO) currently present not in every clip, M4A 128kbps (MP4 AO) currently not supported, MP4 almost always 96kbps, 128kbps have only MP4 3D Youtube clips). 192kbps have 720p+ video which maybe too much for playing and it also present not everywhere.
Title: Re: foo_youtube
Post by: MaCs on 2014-02-12 21:50:00
Thanks for this great component! Would it be possible to add "youtube source" (with history and log) as a panel?
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-13 09:59:45
Well, History and Log keep info, which is not needed all the time and for any clip. So there was no strong reasons to implement them as a panel (which is harder than using own window). However, why not, when there will nothing left to do. But now highest priority is Search and support for M4A decoding (i.e. MP4 AO encoded by DASH codec).
Title: Re: foo_youtube
Post by: mire777 on 2014-02-13 12:47:09
New 0.0.6. is better than good, webm also work, and with 192kbs no problem. I had a problem earlier with webm, on large files, but now is ok.. i'm very satisfied how this done, component behaves the same as the browser(with ''use own downloader''), so this is great
Title: Re: foo_youtube
Post by: Wolfbane on 2014-02-14 00:15:36
*** Question 1 *** 
0.0.6 --- I went into FooBar and did "Check for updated components" and it dint find any updates, and it says its version 0.0.5

Off course I saw you have a link to 0.0.6 download. But still wanted to ask and make sure you know that it does not seem to update itself thru Foobar.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*** Question 2 *** 

Also you replied to my last question about showing the You Tube clip in a Foobar window, was not a good idea. Because you dont want this plugin to do several things. Could be messy for code I would assume and so on.

So my new question is that if you had any spare time to maybe do a new extra plugin that main purpose is to allow people to add you tube links in the playlist and if any video then it plays that video in the extra window, preferably in a new window of its own and not in "Album art"

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Either way, have a nice day and keep up the good work.
Title: Re: foo_youtube
Post by: MaCs on 2014-02-14 15:43:25
Have it checked... I have no idea why it doesn't work on my machine.

http://www.youtube.com/watch?v=7XcTyEKSnYg (http://www.youtube.com/watch?v=7XcTyEKSnYg) <-- this one works

http://www.youtube.com/watch?v=I0fObdhfbkQ (http://www.youtube.com/watch?v=I0fObdhfbkQ) <-- this one doesn't

Hi have exactly the same problem here. Any idea of what could be the problem? Here is the log:

Code: [Select]
10:39:33, #09, Page analysis, www.youtube.com/watch?v=7XcTyEKSnYg
10:39:33, #09, Opening given Youtube URL...
10:39:33, #09, Getting info about clip, processed 0 of 1 clip(s)...
10:39:33, #09, Getting info about clip, processed 0 of 2 clip(s)...
10:39:33, #09, Getting info about clip, processed 0 of 3 clip(s)...
10:39:33, #09, Getting info about clip, processed 0 of 4 clip(s)...
10:39:33, #09, Getting info about clip, processed 0 of 5 clip(s)...
10:39:33, #09, Getting info about clip, processed 0 of 6 clip(s)...
10:39:33, #09, Getting info about clip, processed 0 of 7 clip(s)...
10:39:33, #09, Getting info about clip, processed 0 of 8 clip(s)...
10:39:33, #09, MP4 240p 320×240 VO
10:39:33, #09, Getting info about clip, processed 1 of 8 clip(s)...
10:39:33, #09, M4A 128kbps AO
10:39:33, #09, Getting info about clip, processed 2 of 8 clip(s)...
10:39:33, #09, MP4 144p 192×144 VO
10:39:33, #09, Getting info about clip, processed 3 of 8 clip(s)...
10:39:33, #09, 3GP 144p 176×144
10:39:33, #09, Getting info about clip, processed 4 of 8 clip(s)...
10:39:33, #09, MP4 240p 320×240
10:39:33, #09, Getting info about clip, processed 5 of 8 clip(s)...
10:39:33, #09, 3GP 240p 320×240
10:39:33, #09, Getting info about clip, processed 6 of 8 clip(s)...
10:39:33, #09, WebM 240p 320×240
10:39:33, #09, Getting info about clip, processed 7 of 8 clip(s)...
10:39:33, #09, FLV 240p 320×240
10:39:33, #09, Getting info about clip, processed 8 of 8 clip(s)...
10:39:33, #09, Ready
10:39:40, #10, Page analysis, www.youtube.com/watch?v=I0fObdhfbkQ
10:39:40, #10, Opening given Youtube URL...
10:39:40, #10, Getting info about clip, processed 0 of 1 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 2 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 3 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 4 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 5 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 6 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 7 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 8 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 9 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 10 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 11 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 12 clip(s)...
10:39:40, #10, Getting info about clip, processed 0 of 13 clip(s)...
10:39:40, #10, MP4 240p 426×240 VO
10:39:40, #10, Getting info about clip, processed 1 of 13 clip(s)...
10:39:40, #10, MP4 360p 640×360 VO
10:39:40, #10, Getting info about clip, processed 2 of 13 clip(s)...
10:39:40, #10, MP4 480p 854×480 VO
10:39:40, #10, Getting info about clip, processed 3 of 13 clip(s)...
10:39:40, #10, MP4 720p 1280×720 VO
10:39:40, #10, Getting info about clip, processed 4 of 13 clip(s)...
10:39:40, #10, MP4 1080p 1920×1080 VO
10:39:40, #10, Getting info about clip, processed 5 of 13 clip(s)...
10:39:40, #10, M4A 128kbps AO
10:39:40, #10, Getting info about clip, processed 6 of 13 clip(s)...
10:39:40, #10, MP4 144p 256×144 VO
10:39:40, #10, Getting info about clip, processed 7 of 13 clip(s)...
10:39:40, #10, 3GP 144p 176×144
10:39:40, #10, Getting info about clip, processed 8 of 13 clip(s)...
10:39:40, #10, MP4 360p 640×360
10:39:40, #10, Getting info about clip, processed 9 of 13 clip(s)...
10:39:40, #10, MP4 720p 1280×720
10:39:40, #10, Getting info about clip, processed 10 of 13 clip(s)...
10:39:40, #10, 3GP 240p 320×240
10:39:40, #10, Getting info about clip, processed 11 of 13 clip(s)...
10:39:40, #10, WebM 360p 640×360
10:39:40, #10, Getting info about clip, processed 12 of 13 clip(s)...
10:39:40, #10, FLV 240p 320×240
10:39:40, #10, Getting info about clip, processed 13 of 13 clip(s)...
10:39:40, #10, Ready
10:39:41, #11, Page analysis, www.youtube.com/watch?v=I0fObdhfbkQ
10:39:41, #11, Opening given Youtube URL...
10:39:41, #11, Getting info about clip, processed 0 of 1 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 2 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 3 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 4 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 5 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 6 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 7 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 8 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 9 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 10 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 11 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 12 clip(s)...
10:39:41, #11, Getting info about clip, processed 0 of 13 clip(s)...
10:39:41, #11, MP4 240p 426×240 VO
10:39:41, #11, Getting info about clip, processed 1 of 13 clip(s)...
10:39:41, #11, MP4 360p 640×360 VO
10:39:41, #11, Getting info about clip, processed 2 of 13 clip(s)...
10:39:41, #11, MP4 480p 854×480 VO
10:39:41, #11, Getting info about clip, processed 3 of 13 clip(s)...
10:39:41, #11, MP4 720p 1280×720 VO
10:39:41, #11, Getting info about clip, processed 4 of 13 clip(s)...
10:39:41, #11, MP4 1080p 1920×1080 VO
10:39:41, #11, Getting info about clip, processed 5 of 13 clip(s)...
10:39:41, #11, M4A 128kbps AO
10:39:41, #11, Getting info about clip, processed 6 of 13 clip(s)...
10:39:41, #11, MP4 144p 256×144 VO
10:39:41, #11, Getting info about clip, processed 7 of 13 clip(s)...
10:39:41, #11, 3GP 144p 176×144
10:39:41, #11, Getting info about clip, processed 8 of 13 clip(s)...
10:39:41, #11, MP4 360p 640×360
10:39:41, #11, Getting info about clip, processed 9 of 13 clip(s)...
10:39:41, #11, MP4 720p 1280×720
10:39:41, #11, Getting info about clip, processed 10 of 13 clip(s)...
10:39:41, #11, 3GP 240p 320×240
10:39:41, #11, Getting info about clip, processed 11 of 13 clip(s)...
10:39:41, #11, WebM 360p 640×360
10:39:41, #11, Getting info about clip, processed 12 of 13 clip(s)...
10:39:41, #11, FLV 240p 320×240
10:39:41, #11, Getting info about clip, processed 13 of 13 clip(s)...
10:39:41, #11, Ready
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-14 19:13:36
0.0.6 --- I went into FooBar and did "Check for updated components" and it dint find any updates, and it says its version 0.0.5
Off course I saw you have a link to 0.0.6 download. But still wanted to ask and make sure you know that it does not seem to update itself thru Foobar.

Yes, I know. And it may well be that he will never get there because relates to Youtube. I have no more info about this.

So my new question is that if you had any spare time to maybe do a new extra plugin that main purpose is to allow people to add you tube links in the playlist and if any video then it plays that video in the extra window, preferably in a new window of its own and not in "Album art"

Looks like you think that all depends only of my desire. Actually I have no idea how to do this. And if it is possible to do at all. But probably will try anyway when will be done all things related to audio.


Have it checked... I have no idea why it doesn't work on my machine.
http://www.youtube.com/watch?v=7XcTyEKSnYg (http://www.youtube.com/watch?v=7XcTyEKSnYg) <-- this one works
http://www.youtube.com/watch?v=I0fObdhfbkQ (http://www.youtube.com/watch?v=I0fObdhfbkQ) <-- this one doesn't


Hi have exactly the same problem here. Any idea of what could be the problem? Here is the log:

Log is ok, so there are a questions. Which program version are you using? Clip does not play time to time or always? What error shows foobar? Which format selected to play? (This shows in History tab of component main window (menu View -> Youtube Source).) Did you checked 'Use own downloader' in component preferences?
Title: Re: foo_youtube
Post by: MaCs on 2014-02-14 19:36:46
Log is ok, so there are a questions.


Which program version are you using?

fb2k 1.3.1 with foo_youtube 0.0.6

Clip does not play time to time or always?

Always. Does it play on your system?

What error shows foobar?

Playback Error. Unable to open item for playback (Forbidden (403)):
"3dydfy://www.youtube.com/watch?v=I0fObdhfbkQ"

Which format selected to play? (This shows in History tab of component main window (menu View -> Youtube Source).)

MP4 720p 1280x720 M4A 192kbps

Did you checked 'Use own downloader' in component preferences?

No.
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-14 20:34:41
Ok. Important is this:
What error shows foobar?
Playback Error. Unable to open item for playback (Forbidden (403)):
"3dydfy://www.youtube.com/watch?v=I0fObdhfbkQ"

Next. Do you often see this error on other clips? At all, how about other clips? To what set Playback Start slider in Preferences? And for any case, try several times this clip in browser (http://www.youtube.com/watch?v=I0fObdhfbkQ (http://www.youtube.com/watch?v=I0fObdhfbkQ))
Title: Re: foo_youtube
Post by: carpman on 2014-02-14 20:42:00
FYI 3dyd, I've had the same error - but didn't think much of it, as I just double clicked the file ("link") and it played fine. Don't know if this is the same situation. If it happens again I'll post details.

C.
Title: Re: foo_youtube
Post by: MaCs on 2014-02-14 20:58:26
Next. Do you often see this error on other clips? At all, how about other clips? To what set Playback Start slider in Preferences?


Yes, I see this error on other clips. But it seems to happen only for newer clips. Maybe because there is an ad before the clip? The slider is set to "Fast".

Quote
And for any case, try several times this clip in browser (http://www.youtube.com/watch?v=I0fObdhfbkQ (http://www.youtube.com/watch?v=I0fObdhfbkQ))


It plays without any problem (always with the ad at the beginning.
Title: Re: foo_youtube
Post by: mire777 on 2014-02-14 22:43:33
I tried this link: www.youtube.com/watch?v=I0fObdhfbkQ , from my home and from work, on both comp. works without problem.
I reset page in preferences youtube source to default. This is log:

Code: [Select]
23:05:00, #06, Page analysis, www.youtube.com/watch?v=I0fObdhfbkQ
23:05:00, #06,     Opening given Youtube URL...
23:05:01, #06,     Getting info about clip, processed 0 of 1 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 2 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 3 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 4 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 5 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 6 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 7 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 8 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 9 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 10 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 11 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 12 clip(s)...
23:05:01, #06,     Getting info about clip, processed 0 of 13 clip(s)...
23:05:01, #06,     MP4 240p 426×240 VO
23:05:01, #06,     Getting info about clip, processed 1 of 13 clip(s)...
23:05:01, #06,     MP4 360p 640×360 VO
23:05:01, #06,     Getting info about clip, processed 2 of 13 clip(s)...
23:05:01, #06,     MP4 480p 854×480 VO
23:05:01, #06,     Getting info about clip, processed 3 of 13 clip(s)...
23:05:01, #06,     MP4 720p 1280×720 VO
23:05:01, #06,     Getting info about clip, processed 4 of 13 clip(s)...
23:05:01, #06,     MP4 1080p 1920×1080 VO
23:05:01, #06,     Getting info about clip, processed 5 of 13 clip(s)...
23:05:01, #06,     M4A 44100Hz Stereo 128kbps AO
23:05:01, #06,     Getting info about clip, processed 6 of 13 clip(s)...
23:05:01, #06,     MP4 144p 256×144 VO
23:05:01, #06,     Getting info about clip, processed 7 of 13 clip(s)...
23:05:01, #06,     3GP 144p 176×144
23:05:01, #06,     Getting info about clip, processed 8 of 13 clip(s)...
23:05:01, #06,     MP4 360p 640×360
23:05:01, #06,     Getting info about clip, processed 9 of 13 clip(s)...
23:05:01, #06,     MP4 720p 1280×720
23:05:01, #06,     Getting info about clip, processed 10 of 13 clip(s)...
23:05:01, #06,     3GP 240p 320×240
23:05:01, #06,     Getting info about clip, processed 11 of 13 clip(s)...
23:05:01, #06,     WebM 360p 640×360
23:05:01, #06,     Getting info about clip, processed 12 of 13 clip(s)...
23:05:01, #06,     FLV 240p 320×240
23:05:01, #06,     Getting info about clip, processed 13 of 13 clip(s)...
23:05:01, #06,     Ready


Format used in history: MP4 : 720p : 1280 x 720 : M4A : 44100 hz : stereo : 192 kbps

Video also work on 96 kbps(Mp4), 128kbps webm(ogg), 64kbps(flv)
Don't now if this helps..

But i noticed something else, in youtube source window, in history tab, info changes somethimes itself while i play video, info changes to some else video from my playlist even if that video not playing.
Example i play: ''madona - frozen'' , it starts collect info and display this correctly, and stays that, but after some 1min playing, it changes info to another track from my playlist: ''jennifer lopez - on the floor'' and display this instead of that one i play..
I have about 160 videos in playlist..

*About playing full video in foobar, except playing only audio, i think that this is not possible(because how foobar core is designed) without some 3rd softwer, like this is already been done with footube-foomci(but this crashes foobar and cant play sound trough foobar) - http://www.hydrogenaudio.org/forums/index....showtopic=93278 (http://www.hydrogenaudio.org/forums/index.php?showtopic=93278)
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-14 23:22:15
FYI 3dyd, I've had the same error - but didn't think much of it, as I just double clicked the file ("link") and it played fine. Don't know if this is the same situation. If it happens again I'll post details.

As for me - the same. I've seen this, but always next try was ok so also didn't think much of it. But here problem exist always so maybe has other reason.

@mire777
Do you have an advertisement when you play this video in a browser? Idea with ad is great and I can't suggest other explanation. Ads showing depending on user's geolocation so some users may not see them (including me) - in this case component works fine.

But i noticed something else, in youtube source window, in history tab, info changes somethimes itself while i play video, info changes to some else video from my playlist even if that video not playing.

History tab shows info about last requested clips. Any component can open some clip in playlist at any time (for example to get some info). If clip currently playing then component will return cached info about clip. If it is not then component will open clip as usual - and you'll see new clip info in History. So better to threat History as one more kind of log.
Title: Re: foo_youtube
Post by: mire777 on 2014-02-14 23:47:03
@mire777
Do you have an advertisement when you play this video in a browser? Idea with ad is great and I can't suggest other explanation. Ads showing depending on user's geolocation so some users may not see them (including me) - in this case component works fine.


I don't see advertisement here. I'll check some videos with ads and i will inform you.

But i noticed something else, in youtube source window, in history tab, info changes somethimes itself while i play video, info changes to some else video from my playlist even if that video not playing.

History tab shows info about last requested clips. Any component can open some clip in playlist at any time (for example to get some info). If clip currently playing then component will return cached info about clip. If it is not then component will open clip as usual - and you'll see new clip info in History. So better to threat History as one more kind of log.

thank's, i have many components, one of them is waveform-seekbar so this component might request info about clip, also this can be last.fm audio scrobbler or something else. Good to know that everything is ok
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-15 00:07:45
thank's, i have many components, one of them is waveform-seekbar so this component might request info about clip, also this can be last.fm audio scrobbler or something else. Good to know that everything is ok

I'm testing component on clean foobar and on my own (which also has not much components) so didn't realize such problem. Actually it can be reduced without any harm to playback, I'll add an option to next release.
Title: Re: foo_youtube
Post by: mire777 on 2014-02-15 00:43:54
On this video i have ads, but no problem to play them. Advertisment appear in first after 7sec , in others after 18sec..

www.youtube.com/watch?v=bdd2D-GF1qc
www.youtube.com:80/watch?v=B4PcV06hz9g&list=PLloHCGPJLVCtRvdchVHamKGSMJ7fw6i_v
www.youtube.com/watch?v=2USKhBZ8paQ&list=PLloHCGPJLVCtRvdchVHamKGSMJ7fw6i_v
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-15 12:28:28
No, here means video ad, which appears before video start play (example (https://googledrive.com/host/0B91yvwJ2rZruRnFBTE9aeWxZX28/youtube-video-ads.png))
Title: Re: foo_youtube
Post by: musikomaniak on 2014-02-16 10:00:31
...try several times this clip in browser (http://www.youtube.com/watch?v=I0fObdhfbkQ (http://www.youtube.com/watch?v=I0fObdhfbkQ))

You certainly know, it happens sometimes an error message
Quote
Unable to open item for playback (Forbidden (403)):
"3dydfy://www.youtube.com/watch?v=I0fObdhfbkQ"


If I click a second time, it's ok.
I have version 0.5
Title: Re: foo_youtube
Post by: mire777 on 2014-02-17 16:33:22
3dyd, maybe this can help you as idea, when you're work on search option: http://1nltui3li1cdki8kde21baj1igs7ekjc.ig...l&hl=en-GB# (http://1nltui3li1cdki8kde21baj1igs7ekjc.ig.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube_videos.xml&hl=en-GB#)
You can type artist name in search box, and see how work. I found this as part of some gadget -youtube player..
Title: Re: foo_youtube
Post by: eahm on 2014-02-17 16:37:40
musikomaniak, at this stage of the development you can't bother the developer with problems with old versions, try the last version.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-02-17 18:14:14
@eahm yes, you're wright. Sorry, I had not seen the 0.0.6 version. I remained thinking 0.0.6 dev was for nada who had a problem.
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-21 21:16:01
New version:
foo_youtube_0.0.7.zip (http://download.3dyd.com/foo_youtube_0.0.7.zip)

Changes:
- support for decoding using ffmpeg. Read note#1 below
- one more quality selection criteria (by max overall file bitrate)
- show overall file bitrate in History. Only if Playback Start slider from Preferences is Middle or Slow.
- reduce files openings count. Read note#2 below
- fixes for own downloader and several minor things

Note#1.
Going deeper. Now component can decode audio by itself. Main point of doing this - there is no other way to decode audio-only MP4 files from Youtube (aka M4A in component, they are MP4 files encoded using DASH codec). And in most cases this format is the best choice - is does not contain video stream (so files are palpably smaller), it (currently) present on every clip, it (currenly) present in 128kbps.
Decoding done using FFmpeg which should be downloaded separately. Use 32-bit shared builds from Zeranoe (http://ffmpeg.zeranoe.com/builds/). Should work with any 2.x build but better just to use the latest, tested on 2.1.3.
There was no reason to decode only m4a files so made any Youtube format be able decode by component ('Decode its own' edit box in Preferences).
Miracle happen not enough i.e. need scan m4a files to able seek though them. This is very slow (i.e. takes long time to open a file) so for m4a files seeking is explicitly disabled - this solves the problem. This also concerns flv files.
Previously two downloading variants was available (component own and internal foobar). Well, better to be armed, so for media, decoded by FFmpeg, now also available its internal downloading (using libavformat). See 'Media downloading' combo box in preferences.
Info about which downloader and decoder used now shows in Console at file opening.
Again about m4a and seeking. Seeking disabled (and playback start is fast) only if use foobar or internal downloader. If use FFmpeg downloader then seeking will be available but there will be this playback start slowing down I've talked above.

Note#2.
It relates to this (http://www.hydrogenaudio.org/forums/index.php?showtopic=104379&view=findpost&p=858144) post. Any component can request info about any playlist item. If this item is Youtube clip which not playing now then component need perform full analysis to retrieve info. Uncheck this option if you want prevent this (component will do nothing in this case). What is the right choice I don't know - it depends of other components and thus need more statistics.

-----------------

Problem with 'Forbidden (403)' error on playback start (for some clips and depending of user) still exist and not solved.

Search feature will be next.
Title: Re: foo_youtube
Post by: スラッシュ on 2014-02-22 03:48:24
This is a fantastic addition to foobar2000, thank you so much for the amazing work! I don't really have any feature requests or bug reports that anyone else hasn't already mentioned, but I just wanted to praise it!

(I wonder if the same kinda thing could be done for Soundcloud...)
Title: Re: foo_youtube
Post by: carpman on 2014-02-22 04:11:14
Hi 3dyd.

Using v.0.0.7 -- and really just after some advice.
I listen to a lot of lectures on youtube, like the one below (and they're often very long):
http://www.youtube.com/watch?v=oT7bTr5YEO4 (http://www.youtube.com/watch?v=oT7bTr5YEO4)

foo_youtube defaults to WebM (OGG):
The issue I'm having is with seeking, none of the formats seem good at seeking on long streams. This one is 1 hour 50 mins. If you jump to 50 mins in ... well, the wait is so long that I've never found out if it eventually gets there.

Any idea what might be the best settings for such streams? I've tried playing around with using foo_youtube to download, FFmpeg to decode etc ... but so far nothing I try seeks well on such long streams, whereas if I jump to 50 mins in on YouTube it's okay (generally).

Any advice much appreciated.

C.
Title: Re: foo_youtube
Post by: mire777 on 2014-02-22 10:11:40
am i doing something wrong. or everything is ok here?
It says: 'not loaded, configured for decode: no, analyse: yes'.
How to set this?
I noticed that with this work better, but don't know did i set this right...

(http://s30.postimg.org/5ozbz23z1/Capture2.jpg) (http://postimg.org/image/5ozbz23z1/)
Title: Re: foo_youtube
Post by: 3dyd on 2014-02-22 11:48:16
@carpman
Problem noted. I'll check what I can do. What can be done now. As for me, seeking works ok for mp4 and 3gp. It also works ok for webm (and probably ogg (WebM AO), clip haven't it to check) but for those formats - only if use ffmpeg for decode. So as quick solution, you can explicitly disable other formats. If not use ffmpeg, then in 'Formats to ignore' enter 'webm;ogg;flv;m4a'. If use ffmpeg then there should be only 'flv;m4a' and in 'Decode its own' all formats which you want to decode by ffmpeg (for example just enter all Youtube formats 'webm;ogg;mp4;m4a;flv;3gp'). In case of decoding by ffmpeg seems no matter which downloader to use, foobar's internal also works ok without interruptions to they seems depend of decoder. The one difference - if you often seek through file then better use component own downloader - it caches downloaded file so if seek to already listened part, it will not download it again.

@mire777
Seems you use ffmpeg static build (which contains only *.exe files) so component found only ffprobe.exe which used for analysis (i.e. when Playback Start slider is Slow). Check Setup window in 'FFmpeg status'->'Setup'. For decoding it need ffmpeg 32-bit shared build (with *.dll files e.g. avcodec-55.dll). For now I can't suggest the best preferences setup for any cases (and problem noted by @carpman is one more reason but not the only) so setup ffmpeg if you want to listen m4a which has the best quality-filesize ratio and present for every clip. Otherwise there are no strong reasons to use it.
Title: Re: foo_youtube
Post by: carpman on 2014-02-22 13:44:08
Excellent! That works really well. Thanks 3dyd.
Very nice component. Looking forward to searching when you get that sorted.

By the way, it works really well (for talks/lectures etc..) when combined with foo_128norm, foo_dsp_xgeq and foo_playlist_attributes. It's cool to be able to bung podcasts and youtube links into one playlist and not have to worry about any volume adjustments.

Thanks again,

C.
Title: Re: foo_youtube
Post by: mire777 on 2014-02-22 21:03:46
@mire777
Seems you use ffmpeg static build (which contains only *.exe files) so component found only ffprobe.exe which used for analysis (i.e. when Playback Start slider is Slow). Check Setup window in 'FFmpeg status'->'Setup'. For decoding it need ffmpeg 32-bit shared build (with *.dll files e.g. avcodec-55.dll). For now I can't suggest the best preferences setup for any cases (and problem noted by @carpman is one more reason but not the only) so setup ffmpeg if you want to listen m4a which has the best quality-filesize ratio and present for every clip. Otherwise there are no strong reasons to use it.


Thanks 3dyd, yes this is ffmpeg static, and use only ff.probe.exe. In setup it can't find anything else. I will download other version and see to set this.
It works well without this but i was think to listen m4a also...
Title: Re: foo_youtube
Post by: mire777 on 2014-02-23 16:11:22
I managed to set up everything, and works as expected.If you set that ffmpeg decode all formats: ''webm;ogg;mp4;m4a;flv;3gp'' seeking work incredibly fast for: ''ogg;mp4'' ,not tested but i think for ''flv'' and ''3gp'' also. The only thing i noticed, not so important is that: bitrate in kbs for ''webm;ogg;mp4'' or ''flv;3gp''(maybe) not displayed in playlist if ffmpeg decodes that format..
Other things is perfect, i'v set that priority formats for me is: ogg;m4a. Webm is disabled for now because i think it always contains 128kbs, but filesize is larger than these 2..
Maybe this will help others in the settings..
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-01 13:21:23
The only thing i noticed, not so important is that: bitrate in kbs for ''webm;ogg;mp4'' or ''flv;3gp''(maybe) not displayed in playlist if ffmpeg decodes that format..

Bitrate shows only if ffmpeg reported it after file opening. Some formats seems need more deep file analysis to get it which will reduce playing start speed. Bitrate is not so important thing to do this. There is also known some expected bitrate value after page analysis but as for me - better do not report it at all than report some estimated values which was not retrieved explicitly from the file by decoder.
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-01 13:23:38
New version:
foo_youtube_0.0.8.zip (http://download.3dyd.com/foo_youtube_0.0.8.zip)

Changes:
- Search feature. Currently as one more tab in component main window
- check for update. Can be accessed through Help menu (this can be removed using prefs). Checks for new component version and shows textual message with download link if new version is available. That is all what depends of me
- specific settings moved to Advanced preferences (Preferences -> Advanced -> Tools -> Youtube Source)

Changed opinion on default component settings. By default it should show best it can. So default options changed regarding to this (use album art, clip title parsing rule and others).
Title: Re: foo_youtube
Post by: neons on 2014-03-01 22:34:02
This is great! Thanks for search option! . Is it possible to set that: (add to current playlist and play) be default behaviour on double click in search.
If i want to have one video below other saved in playlist, then i must right click and select second option from menu.
Would like to be able to set my default double click behaviour from that menu. Thanks alot for your work..
Title: Re: foo_youtube
Post by: carpman on 2014-03-02 12:06:45
Like the new version 3dyd!

Don't know if this is practical options wise, but what I'd like is to be able to specify a particular playlist to add search results to (and play). If multiple are selected then play the top one first: Add to Playlist X and play.

Since the options panel is getting rather busy, perhaps such nuanced options could be set in File > Preferences > Advanced?

Thanks again, the search feature is very nice.

C.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-02 12:40:30
New 0.0.8 is perfect. Thank you for this

I really think that this is too perfect to stay on this now, i think that there should be last.fm integration, at least as experimental option.
With new tab, where you type artist and component use last.fm as recomendation service to find clips on youtube, open first found video and play in playlist, one by one..
It should work as youtube radio.

I make thread about this here(this is possible): http://www.hydrogenaudio.org/forums/index....howtopic=104818 (http://www.hydrogenaudio.org/forums/index.php?showtopic=104818)
However take a look...
Thanks...
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-02 19:25:45
@neons
Ok, default double click behaviour setup will be added in next version.

@carpman
In this context menu can be added popup menu 'Add to specific playlist and play' with all playlists inside - this don't need any options and will not bother users who don't need it. But is it really more convenient and faster than just activate particular playlist and use 'Add to current playlist and play'? Because as for me, I even don't know how my playlists are named. There are just active playlist, playing playlist (which most times equals to active) and other playlists. And instead of reading and finding some playlist in popup menu I'd better just activate it and use 'Add to current...'
Title: Re: foo_youtube
Post by: carpman on 2014-03-02 21:38:12
3dyd, I may not have been clear. I want to define "default double click behaviour", so that it always adds to a pre-specified playlist.  Alternatively, being able to click and drag search results to a playlist would be even better.

Anyway, your component is already doing a great job. I'm just saying what would make it better (but perhaps better only for me). 

C.
Title: Re: foo_youtube
Post by: MaCs on 2014-03-03 15:30:00
Problem with 'Forbidden (403)' error on playback start (for some clips and depending of user) still exist and not solved.


Is there any chance this might be fixed at some point?
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-04 07:12:25
Alternatively, being able to click and drag search results to a playlist would be even better.

Yep, drag&drop definitely should be there and it will be.

Problem with 'Forbidden (403)' error on playback start (for some clips and depending of user) still exist and not solved.

Is there any chance this might be fixed at some point?

I found where is the problem - there are a kind of protection for some clips. If they have region-aware video ads then this protection appears only for this region. Probably there are also other cases when it appears. Currently I have no solution for this.
Title: Re: foo_youtube
Post by: q-stankovic on 2014-03-04 13:15:39
a request:

3dyd, could you use the default ui fonts for the history tab. Now it looks like some geeky stuff from windows 98 era.


a hint:

There is an interesting modern app for Windows 8(.1) called "Youtube Fm" (http://apps.microsoft.com/windows/de-de/app/youtube-fm/b3fe3e99-7284-4d8d-abe3-d695ae231440). This app is indeed able - as you can see in the screenshots - to give back for any search term three lists (for title, album and artist) whereas the items of the lists lead to further entities (like album to its titles). However it works, maybe it is interestin also for this component. As far as i know "Youtube FM" i would say that it would be fantastic to have such a functionality for fb2k.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-04 16:56:19
a request:

3dyd, could you use the default ui fonts for the history tab. Now it looks like some geeky stuff from windows 98 era.


a hint:

There is an interesting modern app for Windows 8(.1) called "Youtube Fm" (http://apps.microsoft.com/windows/de-de/app/youtube-fm/b3fe3e99-7284-4d8d-abe3-d695ae231440). This app is indeed able - as you can see in the screenshots - to give back for any search term three lists (for title, album and artist) whereas the items of the lists lead to further entities (like album to its titles). However it works, maybe it is interestin also for this component. As far as i know "Youtube FM" i would say that it would be fantastic to have such a functionality for fb2k.


This is also good to aply in search, but you always recieve only one artist you type..
I was talk about similar thing, but this is i called: ''youtube radio'' , based on last.fm(radio) recomendation, it would be bether than this. Also with this metod you always recieve clips in format %artist% - %title% , and you have biography and lyrics for every clip.
You type artist in search tab, and it filled your playlist with clips (based on similarity) on every finished clip it trigger new..
This isn't hard to do, if you know html> http://www.hydrogenaudio.org/forums/index....howtopic=104818 (http://www.hydrogenaudio.org/forums/index.php?showtopic=104818)

It would be good to add this(or something similar), when everything else be done ..
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-04 22:30:27
a request:

3dyd, could you use the default ui fonts for the history tab. Now it looks like some geeky stuff from windows 98 era.

This is monospaced font (http://en.wikipedia.org/wiki/Monospaced_font) and it used to accommodate the equivalent quality parts on the same column for ease of their comparing. You can switch to default UI font by clicking on the link at top right corner and selecting Trim item.
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-05 19:18:30
For anyone who has a constant error 'Forbidden (403)' with some clips, check this build: foo_youtube_0.0.9_dev1.zip (http://threedyd.3dyd.com/beta/foo_youtube_0.0.9_dev1.zip). It may fix a problem (thanks to @MaCs). However it may fix the problem with not all clips and not for a long time - to determine this need more stats and time, that's why it's a beta.
Title: Re: foo_youtube
Post by: ytd on 2014-03-06 23:20:07
How could i miss this great plugin?Found it today.Works exelent.
I would like only to be able to right click in playlist on some artist, and then open this artist in search, to check new songs if possible. I noticed if type artist name in search ,it find about 500 songs. This is great..
Thank you for make this plugin, i needed this all time..
Thanks.
Title: Re: foo_youtube
Post by: eahm on 2014-03-06 23:42:24
For me they are almost all of them 403 (Phoenix, Arizona). Eminem for example, I can't play a single one. Pink Floyd almost all of them. No idea why and hope this helps. Please tell me what test I can try to help.
Title: Re: foo_youtube
Post by: Porcus on 2014-03-07 08:30:55
i think that there should be last.fm integration, at least as experimental option.


If the component is to have "external" sites support, then I'd vote/wish for setlist.fm - give a setlist.fm URL and retrieve Youtube URLs from it.
Title: Re: foo_youtube
Post by: MaCs on 2014-03-07 13:25:27
For me they are almost all of them 403 (Phoenix, Arizona). Eminem for example, I can't play a single one. Pink Floyd almost all of them. No idea why and hope this helps. Please tell me what test I can try to help.


Did you try foo_youtube_0.0.9_dev1?
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-07 16:55:51
@eahm
Yes, I see now. Well, as supposed, solution works not for all cases. At least, this will give more info to make more complex solution.

@ytd
Yes, seems current limit for search results is 500 items.

@Porcus
As covered by this post (http://www.hydrogenaudio.org/forums/index.php?showtopic=104379&view=findpost&p=857785), this is out of scope of this component.
Title: Re: foo_youtube
Post by: Porcus on 2014-03-07 19:32:32
Well, can I suggest then that it accepts multiple URLs, separated by space, tab and/or newline? The setlist.fm site will give me a lot of Youtube links, and there's always a browser add-on to grab them all, but as of now I have to add them one by one.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-08 01:46:58
Well, can I suggest then that it accepts multiple URLs, separated by space, tab and/or newline? The setlist.fm site will give me a lot of Youtube links, and there's always a browser add-on to grab them all, but as of now I have to add them one by one.

Can you tell me what add-on for browser do that? And how it recive links and grab them all? If i recieve youtube links in txt or similar, i can open them in foobar with WSH.
Marc and Romor can do this from html but seams that they dont interested. So i must find some solution for me...
Title: Re: foo_youtube
Post by: Porcus on 2014-03-08 08:34:57
There are lots of them. This for Firefox, for example: https://addons.mozilla.org/en-US/firefox/addon/multi-links/ (https://addons.mozilla.org/en-US/firefox/addon/multi-links/)
Mark a rectangle with the mouse and grab all links inside it.
Make a web search and find one which by default works the way you think you want to operate it, for your favourite browser. Here's one for Opera: https://addons.opera.com/en/extensions/deta...nks/?display=en (https://addons.opera.com/en/extensions/details/copy-selected-links/?display=en)
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-09 20:09:46
Well, can I suggest then that it accepts multiple URLs, separated by space, tab and/or newline? The setlist.fm site will give me a lot of Youtube links, and there's always a browser add-on to grab them all, but as of now I have to add them one by one.

Sure, this will be added. Anyway need make own 'Add' dialog due to few reasons.
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-09 20:13:24
New version:
foo_youtube_0.0.9.zip (http://download.3dyd.com/foo_youtube_0.0.9.zip)

Changes:
- log as UI element. This is first tab available as UI element. Each tab planned to be available as separated UI element
- default action setup for double click in search
- proxy support. For requests made by component. Placed in Advanced preferences group

This version also contains yet another try to fix 'Forbidden (403)'
Title: Re: foo_youtube
Post by: eahm on 2014-03-09 21:01:30
Not one single 403 even searching and playing Eminem. You can tell it's struggling getting around the issue and the seekbar appears after few seconds but it works

Why don't you work on a component for Grooveshark instead of YouTube?
Title: Re: foo_youtube
Post by: MaCs on 2014-03-09 21:26:20
It seems to work pretty well, thanks a lot! I have a feature request: drag and drop from the search tab to a playlist.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-10 09:31:38
New version:
foo_youtube_0.0.9.zip (http://download.3dyd.com/foo_youtube_0.0.9.zip)

Changes:
- log as UI element. This is first tab available as UI element. Each tab planned to be available as separated UI element
- default action setup for double click in search
- proxy support. For requests made by component. Placed in Advanced preferences group

This version also contains yet another try to fix 'Forbidden (403)'


What does proxy support do?
Title: Re: foo_youtube
Post by: carpman on 2014-03-10 12:50:37
I assume it allows you to use a proxy (https://en.wikipedia.org/wiki/Proxy_server) so that you can bypass region restrictions (this cannot be viewed in Country X) and/or remain anonymous to the all seeing Google-Eye etc ... But since you've been pushing for Last.fm support you perhaps aren't too worried about data-mining issues (http://www.hydrogenaudio.org/forums/index.php?showtopic=71311&view=findpost&p=628444)?   

C.
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-10 15:08:41
You can tell it's struggling getting around the issue and the seekbar appears after few seconds but it works

Need to download pretty more data in case of such clips so this delay appears. I'll add some caching to reduce it

I have a feature request: drag and drop from the search tab to a playlist.

Yep, this was mentioned before. Drag&drop will be in next ver

I assume it allows you to use a proxy (https://en.wikipedia.org/wiki/Proxy_server)

Yes, it is that proxy. Analogue of foobar setting from 'Preferences -> Networking -> Proxy server: Specify proxy address'. There are no official way to use settings from there so better was just add one more setting instead of trying to steal it from there.
Title: Re: foo_youtube
Post by: carpman on 2014-03-10 15:44:55
I assume it allows you to use a proxy (https://en.wikipedia.org/wiki/Proxy_server)

Yes, it is that proxy. Analogue of foobar setting from 'Preferences -> Networking -> Proxy server: Specify proxy address'. There are no official way to use settings from there so better was just add one more setting instead of trying to steal it from there.

Well that's sensible anyway, as you may want to use a different proxy for YouTube.

C.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-10 23:45:57
I assume it allows you to use a proxy (https://en.wikipedia.org/wiki/Proxy_server) so that you can bypass region restrictions (this cannot be viewed in Country X) and/or remain anonymous to the all seeing Google-Eye etc ... But since you've been pushing for Last.fm support you perhaps aren't too worried about data-mining issues (http://www.hydrogenaudio.org/forums/index.php?showtopic=71311&view=findpost&p=628444)?   

C.


I'm not  worried that someone might steal my information or follow my IP, i don't have nothing to hide, so...
Last.fm is based on your choice to share some information with your friends about what you listen..
Anyway i didn't talk that you must login to your acount to listen Radio-Youtube, this works offline..
What i'm talking is to use last.fm only as recomendation service, to receive youtube video links. Because youtube itself don't have such good recomendation service..

This is example, -can be used as offline(to play youtube-radio):  http://www.last.fm/music/Madonna/_/Hung+Up/+similar (http://www.last.fm/music/Madonna/_/Hung+Up/+similar)
*you recieve tracks, and on every new track played you recieve different artist and tracks..

If 3dyd don't want that metod, then i suggest something similar, with youtube service itself, but i prefer last.fm.

3dyd, question for you: can we expect, some 'youtube-radio' future, in this component?
Sorry if i bother you with that, i will not mention this again, i think maybe you will revise your decision..

It does not necessarily have anything to do with last.fm, it's just my suggestion, because they have milions tracks..
You can do this with youtube itself. It should not be a priority, but, would you consider this as a future?
Everything you've done so far is amazing. I really enjoy in this component..
I mean , for you, this is so easy, with your knowledge...

Btw.. I found way to play 'video in same time when foobar play audio' , so 'you have video and sound', this include WSH and portable browser besides. But my opinion is that this is not necessary because foobar is audio player..
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-11 18:20:38
Hi,
with foo_youtube_0.0.9 I tried a few clips and obtain for all of them:
Quote
Unable to open item for playback (Forbidden (403)

Example:
http://www.youtube.com/watch?v=o-Zo4AVL7AE (http://www.youtube.com/watch?v=o-Zo4AVL7AE)

I can listen to one clip, but without the artist image which was showed with version 0.0.6
Example:
http://www.youtube.com/watch?v=Rvi6a1Oiv4A (http://www.youtube.com/watch?v=Rvi6a1Oiv4A)
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-11 22:19:00
@musikomaniak
Ok, I see it. It's a pity! Will try to make more advanced way for such clips. For now problem stays opened and not need to mention it again.

@mire777
Main purpose of this component - add possibility to play audio from Youtube urls. Anything other (feeds support, Search, Art etc) - is additional stuff which added to same component because there are no reasons to make separated components for them. I do not have to, and would not like to decide what there will be in perspective and what will not. Things, explicitly related to Youtube, have first priority for me, and there are still may things which I'd like to add. Anything else - don't know now. Please don't mention this again.
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-11 22:24:00
New version:
foo_youtube_0.0.10.zip (http://download.3dyd.com/foo_youtube_0.0.10.zip)

Changes:
- added 'Add Youtube URLs...' dialog. Read note below
- added drag&drop from search results list
- added caching for some data. Should speed up work in some cases

Own Add dialog has few differences with 'Add location...'. If url was not recognized as valid Youtube clip/feed url then it will not be added to playlist. Also adding goes little faster because it bypasses standard url processing by foobar and goes immediately to a component. Multiple links allowed (resize window for this, each link should be on separated line). Supported both single clip urls and feed urls, they also can be mixed together. Who anyway prefer 'Add location...' - this way works as usual and new 'Add' command can be removed using Advanced settings group.
Title: Re: foo_youtube
Post by: starmajoris on 2014-03-11 23:57:49
New version:
foo_youtube_0.0.10.zip (http://download.3dyd.com/foo_youtube_0.0.10.zip)


I thank you very much for all your work. Each new version comes with new, very useful options.

Thank you. 
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-12 10:02:43
I made many trials with version 0.0.10 using add location, add url, changing slow/fast, changing media downloading, I have various errors:
Quote
Unable to open item for playback (3dydfy: found no media files for playback):
"3dydfy://www.youtube.com/watch?v=o-Zo4AVL7AE"

Unable to open item for playback (Unsupported format or corrupted file (array access out of range)):
"3dydfy://www.youtube.com/watch?v=o-Zo4AVL7AE"

Unable to open item for playback (Forbidden (403)):
"3dydfy://www.youtube.com/watch?v=o-Zo4AVL7AE"

Unable to open item for playback (I/O error (3dydfy: init)):
"3dydfy://youtube.com/watch?v=ritHAj_gjz4"


I also used the search tab in Youtube source - searching "Queen" - some clips work. It seems that those working display AAC codec. For others the tab codec is empty.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-13 16:59:53
Foobar with youtube(radio) recommendation.. testing.. video (https://www.youtube.com/watch?v=YW6_dNlez8w)
Thanks to Marc who help...
Title: Re: foo_youtube
Post by: ytd on 2014-03-17 11:18:04
*mire777
Looks good ,i would like to have this in component, not in wsh.
I don't like wsh.
--------------------------------------------------------------------------------------------------------------------------------------------------------------

3dyd, can this search window be separated from youtube source-window, to be smaller. When enter search query there to send all results to playlist 'youtube[search]'.
And if possible:
When click on some artist in any playlist, to have context menu:
-Search For Same Artist
-Search For Same Artist+Track
-Get Recommendatinos

All found clips to be send in diferent playlist named: youtube[%artist%], youtube[%artist%+%track%], youtube[%search query%] , youtube[%recommended%]...
Title: Re: foo_youtube
Post by: oluvko on 2014-03-17 22:01:01
With latest version i can play just few songs, i cant play https://www.youtube.com/watch?v=CcqQ69Bza6o...CAC2FEA2CC0658D (https://www.youtube.com/watch?v=CcqQ69Bza6o&list=PL9CAC2FEA2CC0658D) for example

Unable to open item for playback (I/O error (3dydfy: init)):
"3dydfy://www.youtube.com/watch?v=CcqQ69Bza6o&list=PL9CAC2FEA2CC0658D"
or
Unable to open item for playback (Forbidden (403)):
"3dydfy://www.youtube.com/watch?v=CcqQ69Bza6o&list=PL9CAC2FEA2CC0658D"
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-18 07:15:44
I cannot. I just see cover and biography.
Quote
Unable to open item for playback (I/O error (3dydfy: init)):
"3dydfy://www.youtube.com/watch?v=CcqQ69Bza6o&list=PL9CAC2FEA2CC0658D"
Title: Re: foo_youtube
Post by: mire777 on 2014-03-18 08:16:56
I cannot. I just see cover and biography.
Quote
Unable to open item for playback (I/O error (3dydfy: init)):
"3dydfy://www.youtube.com/watch?v=CcqQ69Bza6o&list=PL9CAC2FEA2CC0658D"


For me works..
Why don't you use proxy in preferences>advanced?
This problem you have is related on location, and your country.
Try some proxy, here you have some who works: http://hidemyass.com/proxy-list/ (http://hidemyass.com/proxy-list/)

Try if this solve your problem..
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-18 11:45:46
Hi mire777, but I have had youtube working with previous versions.
Sorry, I don't know how and were use proxy!
In Foobar>preferences>Advanced I have "Networking" with "Allow seeking over http" checked
Title: Re: foo_youtube
Post by: mire777 on 2014-03-18 12:08:28
Hi mire777, but I have had youtube working with previous versions.
Sorry, I don't know how and were use proxy!
In Foobar>preferences>Advanced I have "Networking" with "Allow seeking over http" checked


It is located in preferences>advanced>tools>youtube source>proxy
There you enter proxy, this is quick solution for you, until this be fixed...
But you have to find fast-working proxy..

For me all works well, don't have problem on any video, so far i played 2000 clips with all versions..
Also for me work's other videos too, not only from youtube but from other sites. Example from: https://vimeo.com/ (https://vimeo.com/)
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-18 13:14:11
I know nothing about proxy (and many other things).
I found tools and tried a few countries.
I just have to wright the ip address?
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-18 14:16:29
I deleted proxy and returned to previous settings.
I found one video I can see and listen. Codec is AAC
http://www.youtube.com/watch?v=3rLjzT9aNEc (http://www.youtube.com/watch?v=3rLjzT9aNEc)

It seems it works only with AAC!?
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-18 16:34:41
Unable to open item for playback (Forbidden (403)):
"3dydfy://www.youtube.com/watch?v=o-Zo4AVL7AE"

Unable to open item for playback (I/O error (3dydfy: init)):
"3dydfy://youtube.com/watch?v=ritHAj_gjz4"

As mentioned before, 403 error exist on some clips for some users depending of their geographic location. Working on it so wait.
Second error in this case seems is the same good old 403 but in case when own downloader is used. I'll add more descriptive error descriptions for this and other cases.
Other errors you've mentioned seems are because of improper component config (adding all formats to ignore list and using M4A without ffmpeg setup), so better you just reset component preferences page.

@ytd
Noted. Yep, there are many cool things related to search which can be added.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-18 17:20:00
@3dyd Sorry for so much distrurb.
I unfortunately clicked on "reset all" and lost...a part of Foobar :-( I retrieved some from a backup.
In Preferences>Youtube>Format to ignore I have "webm;flv".
I don't use ffmpeg.
I tried other clips and found one working with codec Vorbis.

Title: Re: foo_youtube
Post by: 3dyd on 2014-03-18 20:38:33
@musikomaniak
Click on 'Reset page' in component preferences page or at least enter 'webm;ogg;m4a;flv' in 'Formats to ignore'
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-18 20:42:17
New version:
foo_youtube_0.0.11.zip (http://download.3dyd.com/foo_youtube_0.0.11.zip)

Changes:
- history as UI element
- lyrics source (foo_uie_lyrics3 required). Read note below
- detailed errors descriptions and several other fixes

This version also contains 403 error fix, again. Now by other way.

About lyrics source. Youtube have ability to add external subtitles (closed captions) to clips by their uploader. In context of audio listening those subtitles can be used as timestamped lyrics. Check this clip (http://www.youtube.com/watch?v=IDc7zPiCgVg) for example. It will have two lyrics, original and translated to Portuguese. Imho disputable and rarely needed but very cute thing. Anyway by default it will be not used by foo_uie_lyrics3 so don't see any problems here.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-19 08:26:52
@3dyd it works fine with version 0.0.11! 

I made trials with clips previously not opening and now OK:
Unable to open item for playback (Forbidden (403)):
"3dydfy://www.youtube.com/watch?v=o-Zo4AVL7AE"

Unable to open item for playback (I/O error (3dydfy: init)):
"3dydfy://youtube.com/watch?v=ritHAj_gjz4"


For all clips codec AAC is shown.
I don't have the lyrics for Diamonds and Rust - SUBTITLED || TRADUZIDO - FULL HD, but for me it's not a problem (I have foo_uie_lyrics3).
Title: Re: foo_youtube
Post by: mire777 on 2014-03-21 10:00:35
All works well, but i found one video didn't work, this one:

http://www.youtube.com/watch?v=IfjPivYmV7Y (http://www.youtube.com/watch?v=IfjPivYmV7Y)


Log:

Code: [Select]
10:46:40, #188, Page analysis, www.youtube.com/watch?v=IfjPivYmV7Y
10:46:40, #188,     Opening given Youtube URL...
10:46:41, #188,     Getting info about clip, processed 0 of 1 clip(s)...
10:46:41, #188,     Getting info about clip, processed 0 of 2 clip(s)...
10:46:41, #188,     Getting info about clip, processed 0 of 3 clip(s)...
10:46:41, #188,     Getting info about clip, processed 0 of 4 clip(s)...
10:46:41, #188,     Getting info about clip, processed 0 of 5 clip(s)...
10:46:41, #188,     Getting info about clip, processed 0 of 6 clip(s)...
10:46:41, #188,     Getting info about clip, processed 0 of 7 clip(s)...
10:46:41, #188,     Getting info about clip, processed 0 of 8 clip(s)...
10:46:41, #188,     MP4 240p 360×240 VO
10:46:41, #188,     Getting info about clip, processed 1 of 8 clip(s)...
10:46:41, #188,     M4A 44100Hz Stereo 128kbps AO
10:46:41, #188,     Getting info about clip, processed 2 of 8 clip(s)...
10:46:41, #188,     MP4 144p 216×144 VO
10:46:41, #188,     Getting info about clip, processed 3 of 8 clip(s)...
10:46:41, #188,     3GP 144p 176×144
10:46:41, #188,     Getting info about clip, processed 4 of 8 clip(s)...
10:46:41, #188,     MP4 360p 640×360
10:46:41, #188,     Getting info about clip, processed 5 of 8 clip(s)...
10:46:41, #188,     3GP 240p 320×240
10:46:41, #188,     Getting info about clip, processed 6 of 8 clip(s)...
10:46:41, #188,     WebM 360p 640×360
10:46:41, #188,     Getting info about clip, processed 7 of 8 clip(s)...
10:46:41, #188,     FLV 240p 320×240
10:46:41, #188,     Getting info about clip, processed 8 of 8 clip(s)...
10:46:41, #188,     Ready
10:46:42, #189, Page analysis, www.youtube.com/watch?v=IfjPivYmV7Y
10:46:42, #189,     Opening given Youtube URL...
10:46:43, #189,     Getting info about clip, processed 0 of 1 clip(s)...
10:46:43, #189,     Getting info about clip, processed 0 of 2 clip(s)...
10:46:43, #189,     Getting info about clip, processed 0 of 3 clip(s)...
10:46:43, #189,     Getting info about clip, processed 0 of 4 clip(s)...
10:46:43, #189,     Getting info about clip, processed 0 of 5 clip(s)...
10:46:43, #189,     Getting info about clip, processed 0 of 6 clip(s)...
10:46:43, #189,     Getting info about clip, processed 0 of 7 clip(s)...
10:46:43, #189,     Getting info about clip, processed 0 of 8 clip(s)...
10:46:43, #189,     MP4 240p 360×240 VO
10:46:43, #189,     Getting info about clip, processed 1 of 8 clip(s)...
10:46:43, #189,     M4A 44100Hz Stereo 128kbps AO
10:46:43, #189,     Getting info about clip, processed 2 of 8 clip(s)...
10:46:43, #189,     MP4 144p 216×144 VO
10:46:43, #189,     Getting info about clip, processed 3 of 8 clip(s)...
10:46:43, #189,     3GP 144p 176×144
10:46:43, #189,     Getting info about clip, processed 4 of 8 clip(s)...
10:46:43, #189,     MP4 360p 640×360
10:46:43, #189,     Getting info about clip, processed 5 of 8 clip(s)...
10:46:43, #189,     3GP 240p 320×240
10:46:43, #189,     Getting info about clip, processed 6 of 8 clip(s)...
10:46:43, #189,     WebM 360p 640×360
10:46:43, #189,     Getting info about clip, processed 7 of 8 clip(s)...
10:46:43, #189,     FLV 240p 320×240
10:46:43, #189,     Getting info about clip, processed 8 of 8 clip(s)...
10:46:43, #189,     Ready


Selected format M4a. i'm using ffmpeg.

Console:

Code: [Select]
Opening track for playback: "3dydfy://www.youtube.com/watch?v=IfjPivYmV7Y"
3dydfy, opening m4a: download - foo_youtube, decode - ffmpeg
Unable to open item for playback (3dydfy: Server error (code #403)):
"3dydfy://www.youtube.com/watch?v=IfjPivYmV7Y"

Opening track for playback: "3dydfy://www.youtube.com/watch?v=IfjPivYmV7Y"
3dydfy, opening m4a: download - foobar2000, decode - ffmpeg
Unable to open item for playback (Forbidden (403)):
"3dydfy://www.youtube.com/watch?v=IfjPivYmV7Y"


In browser video work ok, no advertisement...
Maybe this can help...
Title: Re: foo_youtube
Post by: mire777 on 2014-03-21 12:04:17
This also didn't work:
www.youtube.com/watch?v=xwtdhWltSIg
www.youtube.com/watch?v=YYOKMUTTDdA
www.youtube.com/watch?v=YR5ApYxkU-U
www.youtube.com/watch?v=sZfZ8uWaOFI
Title: Re: foo_youtube
Post by: mire777 on 2014-03-21 14:12:45
This is my first attempt to make Youtube Radio (based on youtube recommendation).
(Script is only for testing, you should be careful, for me works fine, but who knows, so backup your foobar before you go..)

(http://s16.postimg.org/7x4h530bp/Capture.png) (http://postimage.org/)
screencapture (http://postimage.org/app.php)

How this work:

When you play video from youtube, it search recommended video from this page(example): http://www.youtube.com/watch?v=oYwL-FzFDKQ (http://www.youtube.com/watch?v=oYwL-FzFDKQ)
Then select random video from this list(on right), and send one(recommended) video to your playlist.
When first track is finished, foobar open new clip(this recommended video), trigger new, and so on..
You can specify in which playlist 'recommended videos' to be send. You can do this in: ''preferences>shell integration>always send new files to playlist''
If this field is uncheck, all files will be send in your active playlist.

You have option to:
-turn [on/off] ''Youtube Radio''(if you set 'off' you can manualy click on button and select: ''Get Next Video'' or ''Get All Videos'').

''Get All Videos''- will send all recommended videos to your playlist.
''Get Next Video'' - will send one random video to your playlist.
''Search Video'' - will open ''youtube source window'' where you can search for videos..


How to install:
You should first install Wsh plugin 1.5.6. ,
then download youtube buttons: https://www.mediafire.com/?x4n40mh48lpn183 (https://www.mediafire.com/?x4n40mh48lpn183)
put 'image' folder in foobar profile folder.
After that open new wsh panel and paste this script: http://pastebin.com/RUfuAVgd (http://pastebin.com/RUfuAVgd)

I would like to know if this is useful for you, i found many new artist with this script...
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-21 20:02:35
All works well, but i found one video didn't work, this one:

http://www.youtube.com/watch?v=IfjPivYmV7Y (http://www.youtube.com/watch?v=IfjPivYmV7Y)


For me also it does not work :-(

This also didn't work:
www.youtube.com/watch?v=xwtdhWltSIg
www.youtube.com/watch?v=YYOKMUTTDdA
www.youtube.com/watch?v=YR5ApYxkU-U
www.youtube.com/watch?v=sZfZ8uWaOFI

Only the first one works for me (AAC codec is shown)
For the others I have (3dydfy: Server error (code #403)):

@mire777 I don't dare to try your YouTube buttons. I'd love to, but I'm not clever enough
Title: Re: foo_youtube
Post by: mire777 on 2014-03-21 20:58:40
I would not even notice error #403 that i'v not used youtube radio.. but most video works, 95% work...

If you want to try script:
Just install new foobar in ''portable mod'' on desktop(this does not affect on your default installation at all). Put 'images' folder in portable 'foobar2000' folder on desktop.
Then download this wsh plugin: https://code.google.com/p/foo-wsh-panel-mod/downloads/list (https://code.google.com/p/foo-wsh-panel-mod/downloads/list)
Install WSH and foo_youtube.dll in portable foobar. Then run foobar, make new panel, edit layout>select WSH , and past this script.
It's simple.
Find some video, click play, then click on button - 'Get Next Video'. Or select that script do this automaticaly: check: ''Youtube Radio''.

Would like to know if this is useful, i have to work more on algorithm, to avoid same clips to be played again..
It uses 'random' but sometimes it stuck on same videos..
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-21 21:30:28
I'll try tomorrow.
Title: Re: foo_youtube
Post by: WilB on 2014-03-21 21:47:17
My main problem is still 403s

The improvements in v0.0.9 solved the problem for me for a few days, then the 403s came back. Same with v0.0.11. It was working fine up until yesterday. Today the 403s came back and affect ~80% of tracks - it always seems to affect the same tracks.

@mire777 - your wsh script's a nice idea. I struggled to get the buttons to show on a normal foobar2000 install. In the end I changed line 4242 to: var image_path = fb.ProfilePath + "image" + "\\";. But as stated above 403s affect ~80% of tracks making it difficult to test the script properly, though at least I can see that it is populating the playlist with recommended tracks.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-21 23:03:57
My main problem is still 403s

The improvements in v0.0.9 solved the problem for me for a few days, then the 403s came back. Same with v0.0.11. It was working fine up until yesterday. Today the 403s came back and affect ~80% of tracks - it always seems to affect the same tracks.

@mire777 - your wsh script's a nice idea. I struggled to get the buttons to show on a normal foobar2000 install. In the end I changed line 4242 to: var image_path = fb.ProfilePath + "image" + "\\";. But as stated above 403s affect ~80% of tracks making it difficult to test the script properly, but at least I can see that it is populating the playlist with recommended tracks.


Yes i'v used 'fb.FoobarPath' this should be changed to 'fb.ProfilePath' for normal install probably. I'v test this in portable mod, and works fine.
I will change this in next release.
When this error 403 be fixed, this will be useful..
This at last show what can be done..  If nothing similar will not be added in component, this script will be available for all users...
I'v made this for myself, hope this will be part of component, but if not, for me this is great also...
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-22 09:13:57
In case of 403 error check this build: foo_youtube_0.0.12_dev1.zip (http://download.3dyd.com/foo_youtube_0.0.12_dev1.zip)
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-22 11:36:18
In case of 403 error check this build: foo_youtube_0.0.12_dev1.zip (http://download.3dyd.com/foo_youtube_0.0.12_dev1.zip)

Hello, I have no more 403 errors with v.0.0.12_dev1 
I clicked on all videos. Now they all show AAC codec.
With two I do not se the cover image and for one I do not have the text (not a big problem for me):
Quote
3dydfy://www.youtube.com/watch?v=sZfZ8uWaOFI

<?xml version="1.0" encoding="UTF-8" ?>
<result errmsg="Search ID or Code error!" errcode="32006"></result>
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-22 14:39:23
It's simple.
Find some video, click play, then click on button - 'Get Next Video'. Or select that script do this automaticaly: check: ''Youtube Radio''.

Hi,
I can confirm that I'm the best Mrs dummy
After 5 trials I started to understand what, how and where "image", "script", "pastebin"
On portable Foobar I have the YouTube button, I made a search..."Mon Dieu" - "My God", found it and could listen with no error

The last big problem is that I'm not able to manage Whs panel. Look at the horror
(http://i.imgur.com/sC5mBKI.png)
Title: Re: foo_youtube
Post by: WilB on 2014-03-22 18:38:14
Currently, no more 403s with foo_youtube_0.0.12_dev1. Let's hope it stays that way! One thing I did notice is that tracks stop abruptly 4 sec from the end if there is no following track. If there is a following track there is a drop out in the sound 4 sec before the end then the track continues. I am using foo_youtube for media processing (too many interuptions if foobar2000 used) - other settings are at default. Issue with both CUI & DUI.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-22 19:00:05
It's simple.
Find some video, click play, then click on button - 'Get Next Video'. Or select that script do this automaticaly: check: ''Youtube Radio''.

Hi,
I can confirm that I'm the best Mrs dummy
After 5 trials I started to understand what, how and where "image", "script", "pastebin"
On portable Foobar I have the YouTube button, I made a search..."Mon Dieu" - "My God", found it and could listen with no error

The last big problem is that I'm not able to manage Whs panel. Look at the horror
(http://i.imgur.com/sC5mBKI.png)


What you mean with: ''not able to manage Wsh panel?
Now you have YT button. Just chek ''youtube Radio'' and script should automaticaly send recommended video to your playlist, or click ''Get Next''..
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-22 19:30:14
On mobile Foobar the button YT works very well, but I'm afraid to do the same on my full foobar installed in program files. Afraid to loose all configuration (of course I have backup, but I'm afraid).

I mean, if I go to Columns UI I wouldn't know what to do!
Example: Vertical splitter > Insert panel > Panels > VSH panel mod
or Horizontal splitter?
Or something else?

Edit
@mire777, don't you think it would be better to create a new topic about your button? Because we are in the topic made by 3dyd about foo_youtube component.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-22 19:53:34
On mobile Foobar the button YT works very well, but I'm afraid to do the same on my full foobar installed in program files. Afraid to loose all configuration (of course I have backup, but I'm afraid).

I mean, if I go to Columns UI I wouldn't know what to do!
Example: Vertical splitter > Insert panel > Panels > VSH panel mod
or Horizontal splitter?
Or something else?


I use this with Columns UI.
Panel Stack Splitter>insert panel>panels>Wsh panel mod
Click on Wsh Panel Mod>configure
Check 'pseudo transparent' and paste script.
Panel Stack splitter is set to: horizontal.
Works without problems on my, try this first on portable install in CUI mod..
Install columns UI in portable foobar..
If all is ok, then use it on default install..
Little chance is to loose all configuration, i said this because i didn't test this in DUI.
I use CUI only..

The worst that can happen is that Wsh panel experiences ''crash  message''.

Later i will clean code, test on both DUI and CUI, and relese new, when i be shure that on both works well.
So, this is only 'test vesion' ,which can work without problems, but also may have some errors..
Untill now i don't have any error in CUI..

*Yes, i will create new topic about this, but i wait to to see in which direction the further development of this component be..
If this be possible with component itself, then no need for this script..

3dyd - with foo_youtube_0.0.12_dev1 all video works fine, thanks
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-23 16:29:47
Hello,
@mire777
my first trial on portable foobar is not so bad
I have to find a good image and to understand how to with splitter settings to remove the white background under the YouTube image. I'd like YT image near my buttons.
(http://i.imgur.com/y7w6XdX.png)

About the image, I found in the script the size 24x20. Is there something else to change?
It should be useful to have the possibility to stop when clicking on search all videos....(I had so many videos!)
When re-opening foobar, sometimes covers disappear.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-23 17:07:05
Hello,
@mire777
my first trial on portable foobar is not so bad
I have to find a good image and to understand how to with splitter settings to remove the white background under the YouTube image. I'd like YT image near my buttons.
(http://i.imgur.com/y7w6XdX.png)

About the image, I found in the script the size 24x20. Is there something else to change?
It should be useful to have the possibility to stop when clicking on search all videos....(I had so many videos!)
When re-opening foobar, sometimes covers disappear.


You can change background:
splitter settings> uncheck pseudo transparency
custom background colour> set colour you want

For button, check your button size, then enter your:
on line 4232 - 4235
bw= 24;
bh= 20;

To move button you do this in splitter> pading: ''left'' , ''top'', ''right'' , ''bottom''. It is a little tricky..

For default install you must change one more thing:
on line:
4241 - 4242 replace this 2 line:

Code: [Select]
var image_path0 = window.GetProperty("Button Path", fb.FoobarPath + "image");
var image_path = (image_path0 + "\\");


with this:

Code: [Select]
var image_path0 = window.GetProperty("Button Path", fb.ProfilePath + "image");
var image_path = (image_path0 + "\\");


The last thing you said: ''to have the possibility to stop when clicking on search all videos'' , I assume you're talking about: ''Get All Videos''.
-you can abort this process when more times click ''abort''.
For now this is how work(untill i change this)..
It send about 15-30 tracks in playlist..
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-23 17:26:02
Sorry, how I modify the script on Foobar?

Edit: I found

Edit bis:
Thanks for your help.
I made the changes.
The abort button when click on "Get all videso" does not seem to work. All videos arrived
About the buttons background colour, I think it is due to my bad configuration on all colours.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-23 17:30:55
Sorry, how I modify the script on Foobar?

Edit: I found


Hold Shift + click button> configure
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-23 17:35:58
I'm mentally slow.
For me it is File > Preferences >Columns UI > WSH Panel Mod > Configure

Edit:
much better
(http://i.imgur.com/mQlvMz5.png)
Title: Re: foo_youtube
Post by: WilB on 2014-03-23 18:35:16
One thing I did notice is that tracks stop abruptly 4 sec from the end if there is no following track. If there is a following track there is a drop out in the sound 4 sec before the end then the track continues. I am using foo_youtube for media processing (too many interuptions if foobar2000 used) - other settings are at default. Issue with both CUI & DUI.

I think I have found the cause of this. I have been using Dynamic DSP to load the EBU R128 compressor for tracks that lack replay gain ( e.g. http://www.hydrogenaudio.org/forums/index....st&p=826334 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=99159&view=findpost&p=826334) ) so that replay gain is applied on the fly, which is useful for radio streams and YouTube tracks. Unfortunately this combination is causing the sound issues referred to above. Although I had never noticed issues with radio streams, I have just tested some flac files and they stop 4 sec from the end if there is no following track when Dynamic DSP is used to load the EBU R128 compressor. If I don't use the DSPs then the YouTube tracks play correctly.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-23 19:10:36
I had a complete crash of Foobar. Just after click on "Next videos", foobar freezed, mouse blocked and I had to restart Windows (7).
Opening foobar, all configuration was lost. Opening again, everything came back!
It happened on portable foobar.
Title: Re: foo_youtube
Post by: mire777 on 2014-03-23 19:58:37
I had a complete crash of Foobar. Just after click on "Next videos", foobar freezed, mouse blocked and I had to restart Windows (7).
Opening foobar, all configuration was lost. Opening again, everything came back!
It happened on portable foobar.


It doesn't happen to me. What video you last played, when you click ''get next''?
This can be caused by url. Or for some reason foobar can't open that clip, and it stuck..

You can open: 3dydfy://www.youtube.com/ , 3dydfy://youtube.com/ , www.youtube.com/ , youtube.com/ , http://www.youtube.com/ (http://www.youtube.com/) .

Foo_youtube, changes some url's when adding clips, so this can be reason.
When script looks in the url and cant open, it stuck..

*I must make new topic about this, this is not place to  discuss about script..

Edit:
Ok, new topic> all question post here: http://www.hydrogenaudio.org/forums/index....howtopic=105108 (http://www.hydrogenaudio.org/forums/index.php?showtopic=105108)
Title: Re: foo_youtube
Post by: mire777 on 2014-03-24 17:08:09
Now you have biography on youtube:

https://www.youtube.com/channel/UC8tw8d2POm...8t1bmgl9Q/about (https://www.youtube.com/channel/UC8tw8d2POmc3Lt8t1bmgl9Q/about)
https://www.youtube.com/channel/UCo6JijJGA3...PsawDK3Ww/about (https://www.youtube.com/channel/UCo6JijJGA3IvIiPsawDK3Ww/about)
https://www.youtube.com/channel/UCneqF6MKRD...4OzOhzikw/about (https://www.youtube.com/channel/UCneqF6MKRD7-V24OzOhzikw/about)
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-24 17:23:16
Thanks Mire777 for the links.

@3dyd
Today, on about 20 Youtube video I had two errors 500
Quote
Unable to open item for playback (3dydfy: Server error (code #500)):
"3dydfy://youtube.com/watch?v=zDJIQCXWZMc"
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-27 20:36:21
@mire777
Interesting thing, thanks for info.

@musikomaniak
It is HTTP error 500 and should be temporary. According to wiki (http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_Server_Error) need display some more descriptive info so left this as todo-thing.
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-27 20:42:27
New version:
foo_youtube_0.0.12.zip (http://download.3dyd.com/foo_youtube_0.0.12.zip)

Changes:
- search (integrated with active playlist) as UI component. Read note below
- added CC search filter, to search only videos with subtitles
- formats tip in preferences
- preferences splitted to two tabs. Reset page and Apply are separated for each tab. Tabs added because planned more things in Features tab espetially regarded to search by context menu commands (which will be next). Two radio buttons at top of prefs dialog added because not decided which UI is better and just made both.

Current search UI component uses active playlist for search results. Can be added multiple independent search components at same time. During the search playlist is locked. After search it also adds to playlist 'get more...' item for next portion search. At click on it will be added next portion of search results and playback will be stopped. But if item was started to play not explicitly (for example previous item was played and ended) - it will fill playlist with next portion of search results and continue play. This is not standard way to use playlist items so threat it as an experiment.  This search way is one of possible and any ideas are welcome.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-28 07:11:40
I do not understand what is CC search filter, to search only videos with subtitles Where ?
- formats tip in preferences. I did not find it.
- preferences splitted to two tabs. Not seen also.
Sorry for my stupid questions.
Anyway it works very well.
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-28 08:56:16
Formats tip shows when mouse is over 'Formats to ignore', 'Priority of formats' and 'Decode its own' edit boxes.
CC filter useful when using 'Youtube Source' lyric source in foo_uie_lyrics3

(https://googledrive.com/host/0B91yvwJ2rZruRnFBTE9aeWxZX28/ss00.png)
Title: Re: foo_youtube
Post by: musikomaniak on 2014-03-28 10:15:34
I found tabs and format tips, I don't have the window HD, CC subtitles filter.
Maybe because I don't use FFmpeg (!?)
Title: Re: foo_youtube
Post by: mire777 on 2014-03-28 19:49:28
New version:
foo_youtube_0.0.12.zip (http://download.3dyd.com/foo_youtube_0.0.12.zip)

Changes:
- search (integrated with active playlist) as UI component. Read note below
- added CC search filter, to search only videos with subtitles
- formats tip in preferences
- preferences splitted to two tabs. Reset page and Apply are separated for each tab. Tabs added because planned more things in Features tab espetially regarded to search by context menu commands (which will be next). Two radio buttons at top of prefs dialog added because not decided which UI is better and just made both.

Current search UI component uses active playlist for search results. Can be added multiple independent search components at same time. During the search playlist is locked. After search it also adds to playlist 'get more...' item for next portion search. At click on it will be added next portion of search results and playback will be stopped. But if item was started to play not explicitly (for example previous item was played and ended) - it will fill playlist with next portion of search results and continue play. This is not standard way to use playlist items so threat it as an experiment.  This search way is one of possible and any ideas are welcome.


Works great. Error 403 is gone..
First radio button is better(my opinion), is great that you have tabs in preferences. About 'youtube' lyrics, it also work fine..
I don't use DUI, i test integrated search with playlist in DUI, and works great.. It's pitty that this doesn't work in CUI.

When you work on context menu, if you want, you can add this mine there: http://www.hydrogenaudio.org/forums/index....howtopic=105108 (http://www.hydrogenaudio.org/forums/index.php?showtopic=105108) .
Would be great..
I test this metod for days now, and it's perfect to find new artist..
Title: Re: foo_youtube
Post by: nada on 2014-03-29 09:48:37
Hi, how to add playlist?
This doesnt work: http://www.youtube.com/playlist?list=PLyc7...DF4j-6se8bMmSnE (http://www.youtube.com/playlist?list=PLyc7d2FcLq38mo_0X5DF4j-6se8bMmSnE)
Title: Re: foo_youtube
Post by: WilB on 2014-03-29 11:24:38
Thanks for the new version. Still no more 403s. Mostly, its working very well but I did notice the following, all using foo_youtube as the media with everything else at default.
1) I still sometimes get interuptions in playback. I don't why as I thought, perhaps incorrectly, that the foo_youtube media setting downloaded the whole file before playing. It would be nice if this could be improved or what setting would you advise?
2) I see a fair number of playback write errors popping up, sometimes near the end of a track, or after seeking, e.g.:
Code: [Select]
Decoding failure at 5:15.954 (3dydfy: Write error):
                   "3dydfy://www.youtube.com/watch?v=dYc5tTvBlFE"
3) Youtube Source - Search (Integrated). I added this to DUI and it works. But the row height does not seem to change with font size, e.g. 18 pt font is cut off. I also wondered why it uses the console font rather than perhaps the playlist font or a user choice (e.g. as in lyrics3). It would be nice if the integrated search was available in CUI as well.
4) It may be advantageous to be able to specify the playist name used by the plug-in.
5) I prefer the 1st radio button option.
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-30 23:45:21
It's pitty that this doesn't work in CUI.

Huh. I don't use CUI so didn't know that it needs custom implementation for UI elements. I'll add this in next versions, hope there will be no problems.

Hi, how to add playlist?
This doesnt work: http://www.youtube.com/playlist?list=PLyc7...DF4j-6se8bMmSnE (http://www.youtube.com/playlist?list=PLyc7d2FcLq38mo_0X5DF4j-6se8bMmSnE)

Looks like you are doing all right but as for me - this playlist has 5 clips and all they was skipped at adding due do different reasons. Check component Log after playlist add (menu View -> Youtube Source -> Log tab), it should contain explanation for every clip why it was skipped. Reason like 'This video is not available in your region.' is obvious - you (as it was is for me) will just not be able to play it. But seems not all reasons are related to playback possibility. Videos with reason 'Syndication of this video was restricted.' are playable for me if add them manually. If somebody will see same reason - check if it is playable. Maybe just need make exception for this reason.

I did notice the following, all using foo_youtube as the media with everything else at default.
1) I still sometimes get interuptions in playback. I don't why as I thought, perhaps incorrectly, that the foo_youtube media setting downloaded the whole file before playing. It would be nice if this could be improved or what setting would you advise?

About foo_youtube downloader. It does not download whole file before play. It just downloads media to temporary file and when some data needs to decode and play - it reads data from this temp file. So difference with foobar downloader is that foobar downloads only data which need to play right now when foo_youtube just downloads a file to temp folder and when some piece of data need to play - it reads data from this temp file. At seeking forward it starts download from new pos (if yet not downloaded to this pos). At seeking backward it uses already downloaded data. So downloading and providing data to decoder are separated and independent things in this downloading method e.g. if you will pause playback then decoding will be stopped but downloading still continue. Regarding to Youtube (i.e. playling media file, not media stream like Internet radio) each method has own pros and cons.

About interruptions. Most info you probably know but I mention it for clean answer.
For any clip Youtube has many media files with different qualities. List of last played media files shows in History. Youtube provides video files. I.e. component downloads video file and plays audio from it. Audio quality on Youtube always correlates with the video - higher video quality comes with higher audio quality (read more (http://fy.3dyd.com/home/quality_youtube#audio_quality)). Best audio quality for now is 192kbps which is available for 720p videos. Let's see on example. By default, for this video (https://www.youtube.com/watch?v=pvkYwOJZONU), will be used 720p MP4, which is 122.66MB (btw video duration is only 5:34). This media file will be used because it has best audio quality (192kbps). Because of such big size you may have interruptions - file may just not download so fast to be able to play in realtime. But about a year ago Youtube made little big incredible revolution. It started to provide files with video and audio streams separately. Audio-only (AO) streams previously was available in different qualities but for now they are available only in 128kbps. They are wrapped (for now) by MP4 and (optionally) WebM file formats with single audio stream. In case of MP4 this is DASH format (audio stream there uses AAC codec) and in case of WebM this is Vorbis. Foobar in current version can't play MP4 files which use DASH format and there are also problems with WebM playback (interruptions mentioned in this thread before) so both those AO formats are disabled by default using 'Formats to ignore' edit box in component preferences (m4a and ogg there). Look at image below - this is History screnshot for clip mentioned above (at moment when this post was made). When media file containing best audio has 122.66MB size, AO files have only ~5MB size. They are 128kbps but this looks not so bad if compare file sizes. For now best advice - you need configure component to use FFmpeg to decode media. Download latest 32-bit shared build from Zeranoe (http://ffmpeg.zeranoe.com/builds/) and setup 'Path to FFmpeg' setting in component preferences (btw FFmpeg version with which component was tested mentioned in component About info, any other should work but if you got crash - better try version mentioned there). After this clear 'Formats to ignore' edit box and add to 'Decode its own' all Youtube formats. To see file size for each media file (as in screenshot below) you need to setup 'Playback Start' slider to medium position, this decreases playback start time, so I don't recommend to do this except for testing reasons.

(https://googledrive.com/host/0B91yvwJ2rZruRnFBTE9aeWxZX28/quality.png)

2) I see a fair number of playback write errors popping up, sometimes near the end of a track, or after seeking, e.g.:
Code: [Select]
Decoding failure at 5:15.954 (3dydfy: Write error):
                   "3dydfy://www.youtube.com/watch?v=dYc5tTvBlFE"

It's a pity. So for now I can suggest as best settings for any case - foobar as downloader and FFmpeg for decoding. Foobar's downloader uses most resources in case of downloading media files but at least it works in all cases.

3) Youtube Source - Search (Integrated). I added this to DUI and it works. But the row height does not seem to change with font size, e.g. 18 pt font is cut off. I also wondered why it uses the console font rather than perhaps the playlist font or a user choice (e.g. as in lyrics3).

Yep, wrong font and fixed controls size are just bugs, need to fix. DUI has 6 predefined fonts (list available in Preferences -> Default User Interface -> Fonts), probably need to use Default font from there.

4) It may be advantageous to be able to specify the playist name used by the plug-in.

If this is about where to put results of search from 'Youtube Source - Search (Integrated)' UI element, then as for me - this kind of search should not touch playlists list. If you want to have new playlist with search results - better to make new playlist manually, activate it and start search.
Title: Re: foo_youtube
Post by: nada on 2014-03-31 07:05:43
Hi, how to add playlist?
This doesnt work: http://www.youtube.com/playlist?list=PLyc7...DF4j-6se8bMmSnE (http://www.youtube.com/playlist?list=PLyc7d2FcLq38mo_0X5DF4j-6se8bMmSnE)

Looks like you are doing all right but as for me - this playlist has 5 clips and all they was skipped at adding due do different reasons. Check component Log after playlist add (menu View -> Youtube Source -> Log tab), it should contain explanation for every clip why it was skipped. Reason like 'This video is not available in your region.' is obvious - you (as it was is for me) will just not be able to play it. But seems not all reasons are related to playback possibility. Videos with reason 'Syndication of this video was restricted.' are playable for me if add them manually. If somebody will see same reason - check if it is playable. Maybe just need make exception for this reason.


All videos are playable manually, except these two:

http://www.youtube.com/watch?v=D1en8wb4jkk...DF4j-6se8bMmSnE (http://www.youtube.com/watch?v=D1en8wb4jkk&index=3&list=PLyc7d2FcLq38mo_0X5DF4j-6se8bMmSnE)
http://www.youtube.com/watch?v=BUXJz0RtpRA...DF4j-6se8bMmSnE (http://www.youtube.com/watch?v=BUXJz0RtpRA&index=6&list=PLyc7d2FcLq38mo_0X5DF4j-6se8bMmSnE)

Log for these two:

ERROR:  The uploader has not made this video available in your country. Sorry about that.


When add all playlist, this is Log:

07:58:05, #39, Page analysis, www.youtube.com/playlist?list=PLyc7d2FcLq38mo_0X5DF4j-6se8bMmSnE
07:58:06, #39,    Opening given Youtube URL...
07:58:06, #39,    Ready
07:58:06, #40, Retrieving feed, www.youtube.com/playlist?list=PLyc7d2FcLq38mo_0X5DF4j-6se8bMmSnE
07:58:06, #40,    Opening given Youtube URL...
07:58:06, #40,    SKIPPED: title: Emblem3 - Chloe (You're the One I Want), url: youtube.com/watch?v=Igk3MD7hltU, reason: restricted (Syndication of this video was restricted.)
07:58:06, #40,    SKIPPED: title: Serena Ryder - What I Wouldn't Do (Lyric), url: youtube.com/watch?v=D1en8wb4jkk, reason: restricted (This video is not available in your region.)
07:58:06, #40,    SKIPPED: title: Kelly Clarkson - People Like Us, url: youtube.com/watch?v=yWbMz_aBlMU, reason: restricted (Syndication of this video was restricted.)
07:58:06, #40,    SKIPPED: title: 24 Hours In The Life, Pt. 1 (VEVO LIFT): Brought To You B..., url: youtube.com/watch?v=fqqIBQRFCMc, reason: restricted (Syndication of this video was restricted.)
07:58:06, #40,    SKIPPED: title: Duke Dumont - Need U (100%) ft. A*M*E, url: youtube.com/watch?v=BUXJz0RtpRA, reason: restricted (This video is not available in your region.)
07:58:06, #40,    Ready
Title: Re: foo_youtube
Post by: 3dyd on 2014-03-31 21:47:40
All videos are playable manually, except these two:

I.e. 3 videos playable and 2 are not. With non-playable videos there is nothing can be done because of region limitation, you will can't play them in browser too. Other 3 videos have syndication restriction as skipping reason, I'll add exception for this reason in next ver.
Title: Re: foo_youtube
Post by: kraut on 2014-04-02 07:33:26
Thanks for the plug in.
With the newest version, all formats permitted and ffmpeg enabled I have no problem at all  playing back single files and you-tube playlists. Not a single error code.
Title: Re: foo_youtube
Post by: WilB on 2014-04-03 18:30:04
@3dyd – thanks for your detailed response (posts164, 165). With foobar2000 as the media and ffmpeg enabled, everything is now error free. If foo_youtube downloader is used instead of foobar2000 there are still some playback write errors, so I have stopped using that method. One minor thing I did notice is that some entries in preference page are cut off on my pc, i.e. “Formats to” instead of “Formats to ignore:” plus “Decode its” instead of “Decode its own:”. I guess it’s because I have windows set to use fonts of 125% size and this isn’t being taken into account. All your hard work is much appreciated.
Title: Re: foo_youtube
Post by: ArchCarrier on 2014-04-04 18:56:28
Thanks for this great plugin! Just small request: can you make it so that the cursor is in the search field when the dialog opens? I've defined a keyboard shortcut to it, but I always have to tab twice to get to the search field.
Title: Re: foo_youtube
Post by: 3dyd on 2014-04-04 21:39:53
@WilB
Yep, you are right, it's because of 125% font size, I'll fix this. Thanks for notifying of such details.

@ArchCarrier
Sure, will be in next ver.
Title: Re: foo_youtube
Post by: 3dyd on 2014-04-04 23:32:10
New version:
foo_youtube_0.0.13.zip (http://download.3dyd.com/foo_youtube_0.0.13.zip)

Changes:
- Search (Integrated), History and Log elements for CUI
- appearance bugfixes
Title: Re: foo_youtube
Post by: ArchCarrier on 2014-04-05 06:57:48
Wow, you're fast! Thanks!

Two more additions would make it even faster for keyboard fans like me:
- press 'down arrow' to jump from the search field to the results list
- press 'enter' to add the song to a playlist (using the default action) and (optionally?) close the search dialog
Title: Re: foo_youtube
Post by: mire777 on 2014-04-05 08:34:24
New version:
foo_youtube_0.0.13.zip (http://download.3dyd.com/foo_youtube_0.0.13.zip)

Changes:
- Search (Integrated), History and Log elements for CUI
- appearance bugfixes



Thanks for CUI integration.
There are some problems:

History doesn't keep black background even i have selected this in: splitter settings.
Scrollbar disappears in some cases and then shows again:

(http://s8.postimg.org/bwnyxik6d/Capture.png) (http://postimage.org/)
image ru (http://postimage.org/)




In ''search (integrated)'', window is cut when resize window:

(http://s10.postimg.org/ihodj6dbt/Capture2.png) (http://postimage.org/)
posted image (http://postimage.org/)

I also have crash, after remove: history,search (integrated), or log, from panel.

Anyway, 'search integrated' works well in playlist..
Title: Re: foo_youtube
Post by: 3dyd on 2014-04-05 11:45:24
- press 'down arrow' to jump from the search field to the results list

Down arrow in combo boxes (which search field is) has its own default action - it adds to edit box next item from drop-down list. So to switch to next control (results list) need press Tab. But there are probably better idea: it will switch to results list automatically after press Enter in search field.

- press 'enter' to add the song to a playlist (using the default action) and (optionally?) close the search dialog

Emitting default search list action by Enter definitely need to do. Strange that I missed this, currently on Enter reacts only 'get more...' item.


@mire777
Can't reproduce anything. You can send me portable foobar configured to see all issues. Also about Search cut - where is the cut on your image?
Title: Re: foo_youtube
Post by: musikomaniak on 2014-04-05 14:34:03
If you mean View > Youtube History - Search - Log
I do not have this problem with last version 0.0.13

Edit
I notice something strange I hope I can explain.
I'm on tab playlists "Youtube".
I open File > Add Youtube URL's, copy the link address and the clip goes under the previous ones, with no new cover. All clips are from different artists.
Before I had each clip with it's own cover.
Title: Re: foo_youtube
Post by: mire777 on 2014-04-05 19:57:33
@mire777
Can't reproduce anything. You can send me portable foobar configured to see all issues. Also about Search cut - where is the cut on your image?


I think i have found what causes this problem.
I have WSH 1.4.2 for windows 7. This is some hack version that support aero transparency on windows 7.
And is essential for this skin to work properly..

You have that WSH for download here: https://sites.google.com/site/jk7800/foobar2000 (https://sites.google.com/site/jk7800/foobar2000)

------------------------------------------------------------------------------------------------------
WSH i use on my work is made for XP. Also from link above.
On my work(in this skin) i don't have any problem, all works well, because this XP version, don't support transparency.
------------------------------------------------------------------------------------------------------

Problem is that if i switch to XP ver on windows 7, then i loose some posibility WSH panel mode i think.
And also loose aero transparency, for that skin.

I'm on work now, so i can't upload my last config.
This is my old config with same WSH: http://www.mediafire.com/download/4990nz12...ar2000_xch4.rar (http://www.mediafire.com/download/4990nz12mroerec/foobar2000_xch4.rar)

You can test.
If this doesn't happen there, then i send you my new config, when i go home.

Title: Re: foo_youtube
Post by: 3dyd on 2014-04-12 15:38:37
New version:
foo_youtube_0.0.14.zip (http://download.3dyd.com/foo_youtube_0.0.14.zip)

Changes:
- transparent background and few other options for CUI elements. Thanks mire777 for helping
- search window usage improvements
- ignoring limited syndication restriction reason
Title: Re: foo_youtube
Post by: ArchCarrier on 2014-04-12 20:20:38
Thank you!
Title: Re: foo_youtube
Post by: 3dyd on 2014-04-19 14:43:47
New version:
foo_youtube_0.0.15.zip (http://download.3dyd.com/foo_youtube_0.0.15.zip)

Changes:
- customizable search context menu. To customize it use new Search tab in component Preferences
- thumbnails cache control. For now disabled by default to save same behaviour as was without it
- possibility of metadata overriding for individual clips (read more (http://fy.3dyd.com/home/metadata_filling))

Component now has own context menu group Youtube Source. In addition to search items it has Watch on Youtube item - open current link in browser (enabled only if single Youtube clip selected). 'Now playing' context menu also has Watch on Youtube from current pos item.
Context menu search items enabled only if single item selected and search query for this item is not empty string.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-04-19 16:43:04
Thanks.
How can I send video directly to my Youtube playlist?
Clips go to "Auto" and I need to move them.
In preferences > Youtube source there is :
Quote
[YouTube] %artist%

(the name of my playlist is YouTube).
Title: Re: foo_youtube
Post by: 3dyd on 2014-04-19 17:07:18
For all needed search presets change Destination to 'Specific playlist' and set playlist name just to 'Youtube' (without quotes)
Actually I realized that search presets have several mistakes :( If specific playlist used, it supposed to have name '[YouTube] sometext' but this [Youtube] part removes because of title formatting (should be '$char(91)Youtube$char(93)'. Also 'Search instrumental' will work not properly - Youtube does not know OR operator (should be '[[\"%artist%\"] [\"%title%\"] intitle:instrumental]' and one more for karaoke). Default presets will be revised. Also will be added search for live, cover. Any other suggestion are welcome
Title: Re: foo_youtube
Post by: eahm on 2014-04-19 18:06:18
Can we add this component here at least? http://wiki.hydrogenaudio.org/index.php?ti...2000:Components (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components)
Title: Re: foo_youtube
Post by: musikomaniak on 2014-04-19 21:00:03
@3dyd Sorry, before I said a wrong thing. My playlist is not named YouTube, it is the folder's name!

I modified Specified playlist > [YouTube]%artist%
by
Specific playlist > youtube
and search arrived in a new playlist called youtube.
I'm not sure I understand what you wrote (my english is very poor).

Now it's as before, searches arrive in new playlists and I move them.



Title: Re: foo_youtube
Post by: mire777 on 2014-04-20 07:12:55
For all needed search presets change Destination to 'Specific playlist' and set playlist name just to 'Youtube' (without quotes)
Actually I realized that search presets have several mistakes  If specific playlist used, it supposed to have name '[YouTube] sometext' but this [Youtube] part removes because of title formatting (should be '$char(91)Youtube$char(93)'. Also 'Search instrumental' will work not properly - Youtube does not know OR operator (should be '[[\"%artist%\"] [\"%title%\"] intitle:instrumental]' and one more for karaoke). Default presets will be revised. Also will be added search for live, cover. Any other suggestion are welcome


Works great
If i can suggest to add> Search for Similar Artist.
For other don't know this is perfect.
Title: Re: foo_youtube
Post by: 3dyd on 2014-04-20 12:22:33
@musikomaniak
Now even more unclear. Will talk via PM to do not flood here.

@mire777
Context menu search items are helpers which make it easier to perform search requests with playlist item metadata. E.g. using Search acoustic version on song AC/DC - Highway to Hell  is the same as perform search using next query:
"AC/DC" "Highway to Hell" INTITLE:acoustic
(quotes to force exact phrase match, INTITLE - Youtube search operator which forces specific phrase to appear in the video title)
So there are no way to make what you suggested using context menu search items
Title: Re: foo_youtube
Post by: kraut on 2014-04-20 19:10:05
Thanks, the search function works great (i just do simple searches by artist).
Excellent plug in - now all we need is the plug in to play the video within foobar2000 screen...there was one some years ago, but it did not work all the time and support was abandoned.

One thing - among the options the first choice cleans out the existing Youtube playlist...please make "add to playlist" first choice. I wiped out my playlist by not paying close attention to the wording.
Title: Re: foo_youtube
Post by: mire777 on 2014-04-20 21:55:27
now all we need is the plug in to play the video within foobar2000 screen...there was one some years ago, but it did not work all the time and support was abandoned.


You don't need plugin to see video in same time when sound is playing in foobar.
You can use WSH to start video in portable browser on playback start.

If you talk about fomci or footube- this script never use foobar screen..
What this plugin do, is that only sticks another flash player window inside foobar panel and fixate it with pixel.
So far no one has succeeded to make foobar to play video itself.
Maybe just maybe, this is possible in the way how 'shpeck' visualization plugin work.
Title: Re: foo_youtube
Post by: 3dyd on 2014-04-21 08:01:26
One thing - among the options the first choice cleans out the existing Youtube playlist...please make "add to playlist" first choice. I wiped out my playlist by not paying close attention to the wording.

If destination playlist exist, component initialtes it's undo backup before any change. If you want restore previous playlist items, you can use Undo action from Edit menu or Ctrl+Z in default configuration.
Title: Re: foo_youtube
Post by: 3dyd on 2014-04-21 21:55:31
New version:
foo_youtube_0.0.15.1.zip (http://download.3dyd.com/foo_youtube_0.0.15.1.zip)

Changelog:
- fixed mistakes in search context menu items and added few more items

There will be no new versions for a while (except emergency). However it looks more or less complete.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-04-22 14:19:13
There will be no new versions for a while (except emergency). However it looks more or less complete.


As for a while you'll not be present, I want to say : thank you for your work.
Title: Re: foo_youtube
Post by: Erich_2 on 2014-04-22 17:37:45
- fixed mistakes in search context menu items and added few more items

One of these items are very important for me:
I have adjusted SPACE button as  keyboard shortcut for "play or pause".
At last I can use space in search input without going mad. 

Thank you!
Title: Re: foo_youtube
Post by: robgil on 2014-04-23 13:18:36
Can this be controlled via Foobarcon?
Title: Re: foo_youtube
Post by: WilB on 2014-04-25 18:08:32
Thank you, 3dyd, for adding the metadata handling. This is greatly appreciated and works extremely well giving tidy playlists with the correct track details.

A panel utilising this dynamic renaming is available here (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=105522&view=findpost&p=864128). It offers the ability to play artist, genre or artists and similar artists tracks in radio mode. There is also an album mode which enables album searching and loading of individual album tracks – properly grouped and named. See the link for screenshots.

Please put any discussion of this panel in the Foobar Youtube Radio (http://www.hydrogenaudio.org/forums/index.php?showtopic=105108) thread.






Title: Re: foo_youtube
Post by: mire777 on 2014-04-26 01:43:18
3dyd , i just want to thank you for all your hard work and time invested in this component.
For me this is now became main component in foobar.
I hope that we'll see you soon in some new project
Title: Re: foo_youtube
Post by: zeremy on 2014-04-30 08:49:40
3dyd, I would like to thank you also for the component.

If I may suggest a possibility in playing video with your component.

Using Shpeck , Advanced Visualization Studio  and VFX Avi player (ape for avs) from here http://goebish.free.fr/vfx/ (http://goebish.free.fr/vfx/) it is possible to view an avi file as a visualization.

Maybe we could pipe the video stream to the visualization window???

My programming skills are limited ,If anyone is interested check it out.

Title: Re: foo_youtube
Post by: 3dyd on 2014-05-15 14:05:21
New version:
foo_youtube_0.0.16.zip (http://download.3dyd.com/foo_youtube_0.0.16.zip)

Changelog:
- using dynamic track info at search by context menu. So for example in case of online radio it will use currently playing song info
- search autocomplete. Can be disabled through Features preferences tab
- clip opening process optimized. History now will show only clips opened for decoding and without duplicates. Advanced prefs 'Open files at file info requests' removed.
- clips now have custom meta field %3dydfy_title% - original Youtube clip title
- reduced needed FFmpeg binaries count

Clip title parsing rule moved to Decoding prefs - it actually decoder feature, before there was just no free space for it.
Also thumbnails cache control enabled by default.
Title: Re: foo_youtube
Post by: MaCs on 2014-05-15 15:08:29
Well it just keeps getting better! Thanks a lot 3dyd!
Title: Re: foo_youtube
Post by: mire777 on 2014-05-17 10:12:45
Thanks for new version, 'add location processing' in youtube radio is now faster, also custom ''3dydfy_title'' tag is useful.
Thanks...

Edit: Uh i again have crash on close 'search integrated panel'.
Other's is ok..
Title: Re: foo_youtube
Post by: 3dyd on 2014-05-17 20:49:36
New version:
foo_youtube_0.0.16.1.zip (http://download.3dyd.com/foo_youtube_0.0.16.1.zip)

Changelog:
- crash fix related to Search CUI element. Thanks to Wilb
- clip length override (URL param 3dydfy_alt_length (http://fy.3dyd.com/home#alt_length))
- skip analysis at clip info retrieving if fb2k_ fields used
Title: Re: foo_youtube
Post by: mire777 on 2014-05-18 07:52:11
New version:
foo_youtube_0.0.16.1.zip (http://download.3dyd.com/foo_youtube_0.0.16.1.zip)

Changelog:
- crash fix related to Search CUI element. Thanks to Wilb
- clip length override (URL param 3dydfy_alt_length (http://fy.3dyd.com/home#alt_length))
- skip analysis at clip info retrieving if fb2k_ fields used


Thanks it work without problems
Title: Re: foo_youtube
Post by: 3dyd on 2014-05-30 21:00:38
This time not much updates. Actually only one :)

New version:
foo_youtube_0.0.17.zip (http://download.3dyd.com/foo_youtube_0.0.17.zip)

Changelog:
- video playback

It should be explicitly enabled through Features tab. Without it anything related to video is disabled so component works as usual.
Playback tested with LAV filters and limited to be used only with them.
After enabling in View -> Visualizations menu appears 'Youtube Video' item. Video playing can be started only manually by using this item.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-05-30 23:21:41
As usually I did not understand how it works :-(
I downloaded a zip file LAVFilters 0.61.2-x64 with inside many .dll files (do I have to bring them in foobar components ?)
and .ax files (?)
I clicked on install.bat (audio, splitter and video).

I checked "enable video".
After that I clicked on a song, went to view > visualisation > Youtube video.
Once I had message
Quote
Can't start playback
Creating LAV splitter: Classe non enregistrée


For following tests, nothing happened.

I think I made all wrong
Title: Re: foo_youtube
Post by: 3dyd on 2014-05-31 08:59:41
You did everything almost right. But need to use x86 filters, not x64. More info here (http://fy.3dyd.com/home#video), had no time to update it yesterday.

Title: Re: foo_youtube
Post by: mire777 on 2014-05-31 12:31:15
This time not much updates. Actually only one

New version:
foo_youtube_0.0.17.zip (http://download.3dyd.com/foo_youtube_0.0.17.zip)

Changelog:
- video playback

It should be explicitly enabled through Features tab. Without it anything related to video is disabled so component works as usual.
Playback tested with LAV filters and limited to be used only with them.
After enabling in View -> Visualizations menu appears 'Youtube Video' item. Video playing can be started only manually by using this item.


Wow, video works!
I didn't have to install anything.

Edit:
On some videos there are problem:

Console:

Code: [Select]
Opening track for playback: "3dydfy://www.youtube.com/watch?fb2k_title=Something%20Deep%20Inside&3dydfy_alt_length=217&fb2k_artist=Billie%20Piper&v=ADfEf3BlWuY"
3dydfy, opening m4a: download - foobar2000, decode - foobar2000
Unable to open item for playback (Unsupported format or corrupted file (array access out of range)):
"3dydfy://www.youtube.com/watch?fb2k_title=Something%20Deep%20Inside&3dydfy_alt_length=217&fb2k_artist=Billie%20Piper&v=ADfEf3BlWuY"
Title: Re: foo_youtube
Post by: musikomaniak on 2014-05-31 12:44:21
You did everything almost right. But need to use x86 filters, not x64. More info here (http://fy.3dyd.com/home#video), had no time to update it yesterday.

Yesss! It works  Thanks 3dyd.
I have a windows with the video
Before I installed x64 files because I have Windows 7 x64!
Now I have to find how to with my other foobar portable mod, where there is not "View..." I suppose I have to create a shortcut.
Title: Re: foo_youtube
Post by: スラッシュ on 2014-05-31 17:01:18
wow! Thank you for this feature, it works perfectly here! Are you planning to be able to use this as a panel (on columns_ui at least I don't see a way to add it)?
Title: Re: foo_youtube
Post by: 3dyd on 2014-05-31 23:24:44
In comparing with current variant, implementing video playback as UI element has several conceptual differences, each of which needs additional work and may produce additional problems. So don't know, maybe (at least as new challenge), but for now need check the current variant and try to fix potential problems before adding new stuff.
On other hand, as for me, foobar is for audio listening. Sometimes it interesting to see video of the playing audio, but waste of bandwidth and cpu resources to play video for _any_ Youtube audio (which would be so in case of UI element) is absolutely unnecessary.
Title: Re: foo_youtube
Post by: 3dyd on 2014-05-31 23:44:26
On some videos there are problem:

Console:

[code]
3dydfy, opening m4a: download - foobar2000, decode - foobar2000
Unable to open item for playback (Unsupported format or corrupted file (array access out of range)):

Here (http://fy.3dyd.com/home#tr01)

Now I have to find how to with my other foobar portable mod, where there is not "View..." I suppose I have to create a shortcut.

(somewhat offtopic) As for me shortcuts are better in any case. In my case they are Ctrl+Y for 'View -> Youtube Source', Ctrl+Shift+Y for 'File -> Add Youtube URL(s)...' and Ctrl+Alt+Y for 'View -> Visualizations -> Youtube Video'.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-06-01 06:42:42
Thanks for the useful offtopic
Title: Re: foo_youtube
Post by: mire777 on 2014-06-01 08:01:52
On some videos there are problem:

Here (http://fy.3dyd.com/home#tr01)



I think i have ffmpeg properly configured:

Playback Start: fast.
Prefer a media file: with best available audio.
Formats to ignore: None.
Priority of formats: None.
Prefer audio-only media files regardless of their quality: checked.

Processing:

Media downloading: foobar 2000
Decode its own: all formats(mp4;m4a;webm;ogg;3gp;flv)

libavformat - yes
libavcodec - yes
libavutil - yes
libswresample - yes

I didn't have problem with this settings in previous version.
When i turn off video in features, i have same error again.
When i back to previous version, there are no problems..

Don't know which settings to use?
Maybe in Features>Video formats to ignore to enter: m4a?


*If i can suggest that: video window -always remains open, when you click play, to show next video?
Title: Re: foo_youtube
Post by: 3dyd on 2014-06-02 14:06:36
Found the problem (thanks @mire777 for helping), will be fixed in next version. For now, if somebody has the same problem, swith to FFmpeg version not newer than 2.2.2.

*If i can suggest that: video window -always remains open, when you click play, to show next video?

Something like this will be, but I can't say how soon.
Title: Re: foo_youtube
Post by: mire777 on 2014-06-05 09:46:53
I found that some resized videos, like this: http://www.youtube.com/watch?&v=D_mw5cdF4WM (http://www.youtube.com/watch?&v=D_mw5cdF4WM)  ,cant be played.
Can this be fixed?

Console:

Code: [Select]
Opening track for playback: "3dydfy://www.youtube.com/watch?&v=D_mw5cdF4WM"
3dydfy, opening ogg: download - foobar2000, decode - ffmpeg
Unable to open item for playback (Internal Server Error (500)):
"3dydfy://www.youtube.com/watch?&v=D_mw5cdF4WM"
Title: Re: foo_youtube
Post by: musikomaniak on 2014-06-05 14:29:59
I found that some resized videos, like this: http://www.youtube.com/watch?&v=D_mw5cdF4WM (http://www.youtube.com/watch?&v=D_mw5cdF4WM)  ,cant be played.

For me it works. Tested with your video.
(I don't use FFmpeg).
Title: Re: foo_youtube
Post by: mire777 on 2014-06-06 11:16:20
Sorry, my mistake, some ''resized'' youtube videos work, but some don't...
It seems that all videos on youtube is now in that format.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-06-06 12:14:44
What do you mean by "resize" ? A new/different audio format or size in pixels ?
Title: Re: foo_youtube
Post by: mire777 on 2014-06-06 16:23:18
What do you mean by "resize" ? A new/different audio format or size in pixels ?


Window for video on youtube site, has different size, it is larger now..
Or it is only for me, don't know?
Title: Re: foo_youtube
Post by: musikomaniak on 2014-06-06 18:38:13
I don't know how it is in Youtube, because I wath them in Foobar
My setting in Youtube source is 360p
Title: Re: foo_youtube
Post by: 3dyd on 2014-06-07 20:35:50
I found that some resized videos, like this: http://www.youtube.com/watch?&v=D_mw5cdF4WM (http://www.youtube.com/watch?&v=D_mw5cdF4WM)  ,cant be played.
Can this be fixed?

Console:

Code: [Select]
Opening track for playback: "3dydfy://www.youtube.com/watch?&v=D_mw5cdF4WM"
3dydfy, opening ogg: download - foobar2000, decode - ffmpeg
Unable to open item for playback (Internal Server Error (500)):
"3dydfy://www.youtube.com/watch?&v=D_mw5cdF4WM"


This condole output relates to audio playback i.e. it does not matter if you watch video at this time or not. According to the meaning of HTTP error 500 (http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_Server_Error) this error is not on your side. You can disable OGG format through settings if problem relates only to it (I've seen same problem, maybe it is temporary or there can be some experiments like it was recently at switching from VP8 to VP9 codec for webm video).

Window for video on youtube site, has different size, it is larger now..
Or it is only for me, don't know?

Video size on Youtube and in component are independent.
Also playing audio and playing video by the component are independent by each other i.e. they are in most cases from different sources/files.
Title: Re: foo_youtube
Post by: mire777 on 2014-06-08 09:15:41
This condole output relates to audio playback i.e. it does not matter if you watch video at this time or not. According to the meaning of HTTP error 500 (http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_Server_Error) this error is not on your side. You can disable OGG format through settings if problem relates only to it (I've seen same problem, maybe it is temporary or there can be some experiments like it was recently at switching from VP8 to VP9 codec for webm video).


Video size on Youtube and in component are independent.
Also playing audio and playing video by the component are independent by each other i.e. they are in most cases from different sources/files.


Thanks for the explanation. Error 500 is very rare.
About video window size, this is probably because of my settings on site, or because browser.
Title: Re: foo_youtube
Post by: WilB on 2014-06-20 11:24:20
Unfortunately the "Unable to open item for playback (Forbidden (403)" issue has just come back for me big time. This affects the majority of tracks (>80% of tracks won't play).  I am using v0.0.17.

Up until ~ 2 days ago all tracks would play just fine, so I hope this issue can be fixed. Thanks for all your efforts on this plug-in.
Title: Re: foo_youtube
Post by: 3dyd on 2014-06-20 11:55:53
Ok, noted. I'll check what can be done
Title: Re: foo_youtube
Post by: ArchCarrier on 2014-06-20 17:17:53
Yep, same here. It started yesterday so I guess Youtube did an update.
Title: Re: foo_youtube
Post by: 3dyd on 2014-06-20 18:20:28
For now can be used this build (thanks @WilB for helping): foo_youtube_0.0.18_dev1.zip (http://download.3dyd.com/foo_youtube_0.0.18_dev1.zip)
403 error there seems fixed. But this build is without video, complete build will be in the coming days.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-06-20 18:43:59
I don't have these errors.
Can somebody give me a link, so I could try?
Title: Re: foo_youtube
Post by: WilB on 2014-06-20 22:56:56
For whatever reason you presumably are unaffected, since nearly all tracks wouldn't play.

One example that failed for me in 0.0.17 and plays in 0.0.18dev1 is:

3dydfy://youtube.com/watch?v=79fzeNUqQbQ
Title: Re: foo_youtube
Post by: musikomaniak on 2014-06-21 09:07:59
Very strange! Before asking a link to make a trial I made a test and I did not notice any problem.
Today I cannot open any Youtube on all my foobars portable and installed!
Messages are "Insupported file", error 403, "Crash location:
Module: foo_youtube
Offset: 47DAh.

Edit
Ok with  0.0.18dev1.
Waiting for video window
Title: Re: foo_youtube
Post by: mire777 on 2014-06-21 09:45:58
In 0.0.16.1 version, all works fine...

Edit:
Ok, i didnt test enough, same is with 0.0.16.1.
I download 0.0.18dev1
Works ok.
Title: Re: foo_youtube
Post by: dreadroach on 2014-06-21 12:31:34
Awesome plugin, thanks.

Can the same be done with Grooveshark? It has much better audio quality than youtube (many songs from youtube are below 128kbps) and the tags are far more accurate, that's especially important if someone is using last.fm for scrobbling.

It even has songs sorted by albums and so on, but streaming songs alone would be amazing.
Title: Re: foo_youtube
Post by: mire777 on 2014-06-21 14:18:28
Awesome plugin, thanks.

Can the same be done with Grooveshark? It has much better audio quality than youtube (many songs from youtube are below 128kbps) and the tags are far more accurate, that's especially important if someone is using last.fm for scrobbling.

It even has songs sorted by albums and so on, but streaming songs alone would be amazing.


If you don't have API for Grooveshark, then this is not possible.
On web page source, you don't have mp3, mp4 - nothing..
So i don't think that this is possible.
Maybe Jango.com can be used?

Youtube audio quality is always 128 kbps as i see in my foobar from tracks i use.

About Tags, you can also use WSH to tag Youtube tracks.
Foobar Youtube Radio(based on last.fm) use 'track naming' from last.fm:
http://mire777.deviantart.com/art/Foobar-Y...Radio-447296512 (http://mire777.deviantart.com/art/Foobar-Youtube-Radio-447296512)

WilB also have script based on same 'track naming': http://www.hydrogenaud.io/forums/index.php...t=0&start=0 (http://www.hydrogenaud.io/forums/index.php?showtopic=105522&st=0&start=0)

Edit:
Ok i found API for Grooveshark > http://developers.grooveshark.com/ (http://developers.grooveshark.com/)
Someone can investigate this...
Title: Re: foo_youtube
Post by: dreadroach on 2014-06-21 15:36:51
Youtube audio quality is always 128 kbps as i see in my foobar from tracks i use.

About Tags, you can also use WSH to tag Youtube tracks.
Foobar Youtube Radio(based on last.fm) use 'track naming' from last.fm:
http://mire777.deviantart.com/art/Foobar-Y...Radio-447296512 (http://mire777.deviantart.com/art/Foobar-Youtube-Radio-447296512)

WilB also have script based on same 'track naming': http://www.hydrogenaud.io/forums/index.php...t=0&start=0 (http://www.hydrogenaud.io/forums/index.php?showtopic=105522&st=0&start=0)

Edit:
Ok i found API for Grooveshark > http://developers.grooveshark.com/ (http://developers.grooveshark.com/)
Someone can investigate this...


Thanks for info, i will check that out. I rarely found some good audio quality tracks, especially when videos are few years old.

As for grooveshark, it is possible.. some other audio players already have grooveshark plugin and there are even unofficial standalone grooveshark players, but i don't know if they are using official API or some other ones like this one (https://github.com/sosedoff/grooveshark) or this one (https://github.com/koehlma/pygrooveshark).

I'm not dev so i don't know if links provided are any helpful so..
Title: Re: foo_youtube
Post by: mire777 on 2014-06-21 15:57:21
Youtube audio quality is always 128 kbps as i see in my foobar from tracks i use.

About Tags, you can also use WSH to tag Youtube tracks.
Foobar Youtube Radio(based on last.fm) use 'track naming' from last.fm:
http://mire777.deviantart.com/art/Foobar-Y...Radio-447296512 (http://mire777.deviantart.com/art/Foobar-Youtube-Radio-447296512)

WilB also have script based on same 'track naming': http://www.hydrogenaud.io/forums/index.php...t=0&start=0 (http://www.hydrogenaud.io/forums/index.php?showtopic=105522&st=0&start=0)

Edit:
Ok i found API for Grooveshark > http://developers.grooveshark.com/ (http://developers.grooveshark.com/)
Someone can investigate this...


Thanks for info, i will check that out. I rarely found some good audio quality tracks, especially when videos are few years old.

As for grooveshark, it is possible.. some other audio players already have grooveshark plugin and there are even unofficial standalone grooveshark players, but i don't know if they are using official API or some other ones like this one (https://github.com/sosedoff/grooveshark) or this one (https://github.com/koehlma/pygrooveshark).

I'm not dev so i don't know if links provided are any helpful so..


This is based on python.
Did you try this:
http://www.hydrogenaud.io/forums/index.php...c=91538&hl= (http://www.hydrogenaud.io/forums/index.php?showtopic=91538&hl=)
http://www.hydrogenaud.io/forums/index.php...p;p=824633& (http://www.hydrogenaud.io/forums/index.php?showtopic=99550&st=0&p=824633&)

You also have this with echonest: http://www.hydrogenaud.io/forums/index.php...mp;#entry822408 (http://www.hydrogenaud.io/forums/index.php?showtopic=96792&st=0&p=822408&#entry822408)

Doesn't know what exactly this scripts do, maybe only create playlist from your library?
Title: Re: foo_youtube
Post by: dreadroach on 2014-06-21 16:22:38
This is based on python.
Did you try this:
http://www.hydrogenaud.io/forums/index.php...c=91538&hl= (http://www.hydrogenaud.io/forums/index.php?showtopic=91538&hl=)
http://www.hydrogenaud.io/forums/index.php...p;p=824633& (http://www.hydrogenaud.io/forums/index.php?showtopic=99550&st=0&p=824633&)

You also have this with echonest: http://www.hydrogenaud.io/forums/index.php...mp;#entry822408 (http://www.hydrogenaud.io/forums/index.php?showtopic=96792&st=0&p=822408&#entry822408)

My bad then.  Thought it might be useful.

As for second link, it does not work for me (crashes when i search something) but that's not foobar component, it's a standalone app.

But those are not exactly what i was looking for. Thanks anyway.

I used this (https://github.com/nobodyzzz/foo_vksearch) component until year or so ago but it doesn't work anymore for some reason. It was streaming songs from vk.com, audio quality was ok and it had huge selection of songs, comparable to grooveshark, deezer or other streaming services.

EDIT: i thing that those scripts only generates playlist from your library, yes.. i believe i've tried some of them some time ago, not sure.
Title: Re: foo_youtube
Post by: 3dyd on 2014-06-22 19:02:34
New version:
foo_youtube_0.0.18.zip (http://download.3dyd.com/foo_youtube_0.0.18.zip)

Changes:
- additional variants how to show video window. See 'Features -> Video -> Show video' combobox in preferences
- video window resizing in no-border mode
- custom video window size. Read note#1 below
- optional video window separation from main window. Read note#2 below
- optional preventing video window activation on show. Read note#3 below
- fixes for search autocomplete list. Most important - possibility to select variant from the list using mouse
- fix for supporting new ffmpeg versions. Now should work with any version greater or equal to 2.1.

Note#1.
Placed in video window context menu, 'Fix to current' item. Initial video size variants were 50%, 100% and 200%. Now added one more - current video window size (at option applying time). If selected, always will be used this size regardless of original video size.

Note#2.
See video window context menu 'Window -> Separate with main window'. If checked, video window activation does not produce main foobar window activation i.e. main window does not show if it was invisible.

Note#3.
See video window context menu 'Window -> Activate when showing'. If checked, on showing video window will not become active and thus will not deactivate current window and will not steal keyboard focus.
Title: Re: foo_youtube
Post by: musikomaniak on 2014-06-22 21:45:55
It seems ok with a quick trial
Note 1: ok
Note 2: ok
Note 3: I did not tried all functions.
Thanks a lot.
Title: Re: foo_youtube
Post by: mire777 on 2014-06-22 23:24:38
Works great.
I am still amazed how this video work.
Thanks.
Title: Re: foo_youtube
Post by: mire777 on 2014-06-23 09:03:40
Doesn't know if only i have this problem? When from menu: View>Youtube Source
In Search box i type something- click enter. Search box desapear, and nothing isn't loaded in playlist?
Title: Re: foo_youtube
Post by: 3dyd on 2014-06-23 16:14:15
Ok, see it. Update will be tomorrow if no other problems will be found.
Title: Re: foo_youtube
Post by: MaCs on 2014-06-23 17:07:36
Just out of curiosity, is Youtube continually trying to prevent things like your plugin from working?
Title: Re: foo_youtube
Post by: musikomaniak on 2014-06-24 10:50:27
I love feature Show video automatically when Youtube clip starts to play 
Title: Re: foo_youtube
Post by: 3dyd on 2014-06-25 11:07:09
Just out of curiosity, is Youtube continually trying to prevent things like your plugin from working?

Well, of course it has few tricks for preventing such things from working but changes usually not relate to them. Youtube is constantly evolving even if not all the changes visible from outside. Some of those changes may break such things from working. So without continuous support they are dying more or less fast. This fact plus only VO for best quality plus few security tricks plus TOS (https://www.youtube.com/static?template=terms) seems enough for them.
Title: Re: foo_youtube
Post by: 3dyd on 2014-06-25 11:08:59
New version:
foo_youtube_0.0.18.1.zip (http://download.3dyd.com/foo_youtube_0.0.18.1.zip)

Changes:
- fix for component window closing after search
Title: Re: foo_youtube
Post by: mire777 on 2014-06-25 12:36:03
New version:
foo_youtube_0.0.18.1.zip (http://download.3dyd.com/foo_youtube_0.0.18.1.zip)

Changes:
- fix for component window closing after search


Thanks, it works now..
Title: Re: foo_youtube
Post by: ArchCarrier on 2014-07-01 14:24:42
Feature request: a playlist maker. I'd love to be able to paste a list of titles and/or YouTube URLs to create a playlist. For a list of titles, the first search result could be played.
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-01 20:06:39
List of Youtube URLs already can be added through menu File -> 'Add Youtube URL(s)...' Resize the window to enable multiline edit box and fill with URLs (one link per line).
About list of titles - noted, however I can't imagine the use case. Also first search result is not always the best one.
Title: Re: foo_youtube
Post by: ArchCarrier on 2014-07-01 22:31:36
List of Youtube URLs already can be added through menu File -> 'Add Youtube URL(s)...' Resize the window to enable multiline edit box and fill with URLs (one link per line).

Awesome!!!

The list of titles would be handy so that you could copy-paste (for example) a top 10 list without having to search for every YouTube video first.
Title: Re: foo_youtube
Post by: Mosyris on 2014-07-02 23:18:02
Hi, Im big fun of this component and im using it all the time. I just got one request: Can you add a tab in youtube source with saved playlists ? I use 'send by ..' playlist from youtube's channels so they are updated once a day or two so standard foobar playlist save wont work (I mean it wont add new clips to a playlist). I have to open 'Add new youtube url' dialog window and add it everytime. Ofc there are my previous links but if there are 3 or 4 channels i just dont know which is the one im looking for so I have to open browser everytime. Thanks  Also sometimes audio struggles even when im not downloading anything or do anything that could slow my pc (its not only my problem, 2 friends sometimes got same). Sry for my english, I hope you understand what I was trying to say
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-03 20:02:03
Can you add a tab in youtube source with saved playlists?

Ok, noted.

Also sometimes audio struggles even when im not downloading anything or do anything that could slow my pc (its not only my problem, 2 friends sometimes got same).

Ensure that you are using audio-only streams (ffmpeg required). There is nothing else that I can suggest.
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-03 20:04:13
New version:
foo_youtube_0.0.19.zip (http://download.3dyd.com/foo_youtube_0.0.19.zip)

Changes:
- subtitles support in video playback. See 'Show subtitles' option in Features tab
- possibility to add list of titles (first search result will be used). See 'Add Youtube URL(s)...' dialog.
- ffmpeg related, avresample can be used instead of swresample
Title: Re: foo_youtube
Post by: musikomaniak on 2014-07-04 17:44:33
What is this message shown together with Youtube video window,
Quote
Creating VSFilter: Classe non enregistrée
Title: Re: foo_youtube
Post by: Mosyris on 2014-07-05 12:42:52
Quote
Ensure that you are using audio-only streams (ffmpeg required). There is nothing else that I can suggest.

Thanks, it works better now.

Oh and one more thing, I also started to watch video via your component. Could youtube video window stay same size whole time when I change it once? Everytime I start new clip it resizes to its native size.
Title: Re: foo_youtube
Post by: mire777 on 2014-07-05 12:57:17
Quote
Ensure that you are using audio-only streams (ffmpeg required). There is nothing else that I can suggest.

Thanks, it works better now.

Oh and one more thing, I also started to watch video via your component. Could youtube video window stay same size whole time when I change it once? Everytime I start new clip it resizes to its native size.


Check ''Fix to current''.
Title: Re: foo_youtube
Post by: onirwai on 2014-07-11 17:33:03
Feature Request: Soundcloud support

(http://i.imgur.com/T7MY3Eo.png)

I don't know if you've considered it yet (I can't find this addressed in this topic) or if it's still feasible.
I used to queue up Soundcloud songs with foo_run and foo_scrap (http://www.hydrogenaud.io/forums/index.php?showtopic=92381&mode=threaded&pid=779738)
Title: Re: foo_youtube
Post by: Mosyris on 2014-07-15 18:11:58
Thanks for help with windows size, its great now. Two more questions: why sometimes when I add a clip into my playlist and try to play it it says "forbidden 403" or "unsuported file format" (when using ffmpeg) it only happens in few clips. Also why when i change "clip title parsing rule" it always comes back to
Quote
(?:%artist% - )?%title%(?:\s+[\(\[].+?[\)\]]\s*)?
Often im listening to electronic music so i would like to have "somebody remix" in title but plug just skip s this.
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-15 22:05:12
@onirwai
Component is already quite a big to mix it with other services and eventually it called foo_youtube. So no Soundcloud, Spotify or any other services or sites will be supported within this component.

why sometimes when I add a clip into my playlist and try to play it it says "forbidden 403" or "unsuported file format" (when using ffmpeg) it only happens in few clips.

Need more details, I can't say why 'sometimes some clips' don't work. Is it constantly happens on particular clips? Give then clips URLs (espetially for 'unsuported file format' when using ffmpeg). Which ffmpeg version are you using? If you changed some settings in Decoder tab then also provide them. When such problem happens also check Log tab in main component window, it already may have explanation for your case.

Also why when i change "clip title parsing rule" it always comes back to
Quote
(?:%artist% - )?%title%(?:\s+[\(\[].+?[\)\]]\s*)?
Often im listening to electronic music so i would like to have "somebody remix" in title but plug just skip s this.

It's a bug, noted. Currently clicking on OK does not apply settings if only this rule was changed. So as temporary solution also change some other setting in Decoder tab (Apply button should become active). Also note that regex currently is case-sensitive (will be also fixed).
Title: Re: foo_youtube
Post by: Clauu on 2014-07-16 19:46:49
Hello and thanks for the plugin  About the 403 error it's back again? Cause i try to play this link https://www.youtube.com/watch?v=GrpHqu_8ihI (https://www.youtube.com/watch?v=GrpHqu_8ihI) and
Unable to open item for playback (Forbidden (403)):
"3dydfy://www.youtube.com/watch?v=GrpHqu_8ihI"
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-17 08:05:34
Yep, it's back. Thanks for reporting, working on it.
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-17 15:11:59
For all who has 403 error, check this build: foo_youtube_0.0.20_dev1 (http://download.3dyd.com/foo_youtube_0.0.20_dev1.fb2k-component)
If all will be ok after few days will be release.
Title: Re: foo_youtube
Post by: Clauu on 2014-07-17 15:26:06
Thank you, no more 403    but what it is happening with this particular error since it keep coming back?
Title: Re: foo_youtube
Post by: discopig on 2014-07-18 07:10:27
Awesome plugin! I was looking for something exactly like it.
Title: Re: foo_youtube
Post by: mire777 on 2014-07-18 12:45:24
I was have 403 only in few tracks , now it's gone..
Thanks.
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-18 18:27:24
New version:
foo_youtube_0.0.20 (http://download.3dyd.com/foo_youtube_0.0.20.fb2k-component)

Changes:
- fixes for clip title parsing rule
- fix for 403 error
Title: Re: foo_youtube
Post by: Clauu on 2014-07-18 22:01:20
Many thanks for the update
Title: Re: foo_youtube
Post by: WilB on 2014-07-24 12:56:43
Unfortunately the "Unable to open item for playback (Forbidden (403)" issue has returned for me again. I am using v0.0.20. Yesterday all tracks played fine. Today most tracks give the error. I hope you can fix it. Once again thanks for all your hard work on this plug-in which is much appreciated
Title: Re: foo_youtube
Post by: Clauu on 2014-07-24 15:37:10
Yep.. unfortunately it's back again
Unable to open item for playback (3dydfy: Server error (code #403)):
"3dydfy://www.youtube.com/watch?v=SYM-RJwSGQ8"
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-25 09:12:58
Ok, working on it. Btw, better to threat this as an attribute of this component: periodically it just stops to work because of changes on Youtube. So no need to thank but don't forget to notify.
Title: Re: foo_youtube
Post by: mire777 on 2014-07-25 11:49:25
Ok, working on it. Btw, better to threat this as an attribute of this component: periodically it just stops to work because of changes on Youtube. So no need to thank but don't forget to notify.


It would be good, if we can send notify for error 403 trough component, or that component do this automaticaly(if number of errors 403 is high to analyze that URL's and send info)...
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-25 23:24:50
Collecting something in background and sending automatically imho is not good. But centralize notifications in one place (so others will see that problem already known) and possibility for quick and simple notification (to decrease fixing time) is a good idea.
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-25 23:28:23
New version:
foo_youtube_0.0.21 (http://download.3dyd.com/foo_youtube_0.0.21.fb2k-component)

Changelog:
- no subtitles preloading at video opening. Instead of downloading all subtitles at opening now particular subtitle downloads at the time when it was selected
- possibility to use synced lyrics as video subtitles. Placed in Subtitles popup of video context menu. Uses synced lyrics from Lyric Show 3, works only if there used default search pattern and lyrics are saving to configuration folder. Becomes enabled only if appropriate lyrics exist in the folder (checks every time when video context menu shows)
- problem reporting through Help menu. For centralization of the reports and problem solving status. Known issues will be also shown there
- removed 'show menu item <...>' options from Advanced preferences
Title: Re: foo_youtube
Post by: Clauu on 2014-07-27 00:56:13
Big thanks for the update
Title: Re: foo_youtube
Post by: WilB on 2014-07-27 22:36:36
Just to confirm that I have not had any 403s with version 0.0.21.
Title: Re: foo_youtube
Post by: mire777 on 2014-07-28 11:26:23
Unable to open item for playback (DNS error : could not resolve "r18---sn-c0q7ln7k.googlevideo.com"):
"3dydfy://www.youtube.com/watch?fb2k_title=Jack%20in%20The%20Box&3dydfy_alt_length=144&fb2k_artist=Jessica%20Sutta&v=8ZYCoKUVvE8"

what this error mean?
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-28 21:17:24
DNS error relates to Internet connection, not to Youtube or this component. I.e. probably you had some temporary problem with your Internet connection or it was on server side.
Title: Re: foo_youtube
Post by: mire777 on 2014-07-29 02:17:59
DNS error relates to Internet connection, not to Youtube or this component. I.e. probably you had some temporary problem with your Internet connection or it was on server side.


thank's, problem is gone by itself after 10 min..
Title: Re: foo_youtube
Post by: Bratman on 2014-07-31 15:05:10
This component is sick! 3dyd you great great man!
Just one thing, some videos don't start video playback I get this error.

Can't start playback
Loading a file: Unspecified error

Does it just not work with every video?
Title: Re: foo_youtube
Post by: 3dyd on 2014-07-31 21:55:41
some videos don't start video playback I get this error.

Can't start playback
Loading a file: Unspecified error

Does it just not work with every video?


Hmm, if audio playback starts successfully then video should work. Does it always happens on particular clips? Or the same clip from time to time may produce this error when at other times it plays without errors? Have you did something at the time of opening the video? (don't know, switching to other video from Source popup menu in video context menu, pressing Next / Previous / Stop etc).
Title: Re: foo_youtube
Post by: mire777 on 2014-08-01 09:29:10
some videos don't start video playback I get this error.

Can't start playback
Loading a file: Unspecified error

Does it just not work with every video?


Hmm, if audio playback starts successfully then video should work. Does it always happens on particular clips? Or the same clip from time to time may produce this error when at other times it plays without errors? Have you did something at the time of opening the video? (don't know, switching to other video from Source popup menu in video context menu, pressing Next / Previous / Stop etc).


This happens to me also, but if i click play again for same video then it starts playback.
Don't know what cause this..
Maybe playback for sound and video not start in same time?
My window is set to stay open all time..

ex. this video wont start at first playback:
3dydfy://www.youtube.com/watch?fb2k_title=Single&3dydfy_alt_length=184&fb2k_artist=Shawn%20Desman&v=qxk0djj062o
3dydfy://www.youtube.com/watch?fb2k_title=Girlfight&3dydfy_alt_length=245&fb2k_artist=Brooke%20Valentine&v=qb4W18svcxE
3dydfy://www.youtube.com/watch?fb2k_title=Gucci%20Gucci&3dydfy_alt_length=156&fb2k_artist=Neon%20Hitch&v=z_qwoEq1xy0
3dydfy://www.youtube.com/watch?fb2k_title=Stranger&3dydfy_alt_length=190&fb2k_artist=Kay&v=iIECprG-Z8I


This component is sick! 3dyd you great great man!


Yes, this is best component, ever made.
I put YT-video window  on front of Foobar window, so with Youtube Radio it looks like i watch VH1 or MTV

(http://s13.postimg.org/8m2s1v59j/Capture.png)
Title: Re: foo_youtube
Post by: Clauu on 2014-08-02 09:29:50
Not really a problem but after this song ends i see
Code: [Select]
Decoding failure at 12:58.379 (3dydfy: Write error):
"3dydfy://www.youtube.com/watch?v=BzP6vSFeqXE"
Title: Re: foo_youtube
Post by: WilB on 2014-08-02 13:13:25
I used to see some of these errors when I used the foo_youtube downloader method (decoder tab). I switched to using the foobar2000 method and haven't seen any since ( http://www.hydrogenaud.io/forums/index.php...st&p=862173 (http://www.hydrogenaud.io/forums/index.php?s=&showtopic=104379&view=findpost&p=862173) ). May be this will help, but if you already using the foobar2000 method then I don't know...
Title: Re: foo_youtube
Post by: Clauu on 2014-08-02 22:43:54
Well indeed i'm using the foo_youtube method  I'll switch to the foobar2000, thanks for the tip
Title: Re: foo_youtube
Post by: Clauu on 2014-08-03 17:41:05
Ok so using foobar2000 method or 'ffmped for decode its on, foobar2000 or others' i'm experiencing song interruptions at every ~ 2seconds.. do not why but this isn't happening with  foo_youtube or 'ffmped for decode its on, foo_youtube or others'
Title: Re: foo_youtube
Post by: WilB on 2014-08-03 17:59:40
The reason I originally used the foo_youtube downloader method was because of interruptions in playback with the foobar2000 method. But I then tried using the foobar2000 method and checking prefer audio-only media to stop the much larger video files loading, and no interruptions ( http://www.hydrogenaud.io/forums/index.php...st&p=861891 (http://www.hydrogenaud.io/forums/index.php?s=&showtopic=104379&view=findpost&p=861891) ). More recently I have unchecked prefer audio-only media and no longer see interruptions in playback with the foobar2000 method. So either 3dyd made some changes to improve the plug-in or my internet improved. You could try checking prefer audio-only media if you are only interested in the music- but it's not likely be a lot of use if you want to watch the videos. Otherwise see if 3dyd has any suggestions...
Title: Re: foo_youtube
Post by: dragex on 2014-08-03 18:08:07
I put YT-video window  on front of Foobar window, so with Youtube Radio it looks like i watch VH1 or MTV


How to do it?
Title: Re: foo_youtube
Post by: mire777 on 2014-08-05 16:05:09
I put YT-video window  on front of Foobar window, so with Youtube Radio it looks like i watch VH1 or MTV


How to do it?


I just move video window on front of Foobar window, so it looks like it was in panel..
Video window is not integrated..
Title: Re: foo_youtube
Post by: dragex on 2014-08-06 10:50:04
I get it. I thought that the window integrated
Title: Re: foo_youtube
Post by: Clauu on 2014-08-09 09:16:37
The reason I originally used the foo_youtube downloader method was because of interruptions in playback with the foobar2000 method. But I then tried using the foobar2000 method and checking prefer audio-only media to stop the much larger video files loading, and no interruptions ( http://www.hydrogenaud.io/forums/index.php...st&p=861891 (http://www.hydrogenaud.io/forums/index.php?s=&showtopic=104379&view=findpost&p=861891) ). More recently I have unchecked prefer audio-only media and no longer see interruptions in playback with the foobar2000 method. So either 3dyd made some changes to improve the plug-in or my internet improved. You could try checking prefer audio-only media if you are only interested in the music- but it's not likely be a lot of use if you want to watch the videos. Otherwise see if 3dyd has any suggestions...

Well 'prefer audio-only media' was by default checked, video is disabled in 'features' and still i have interruptions with foobar2000 method.. as an update now even with the foo_youtube method i have issues.. do not why
Title: Re: foo_youtube
Post by: mire777 on 2014-08-09 15:34:18
The reason I originally used the foo_youtube downloader method was because of interruptions in playback with the foobar2000 method. But I then tried using the foobar2000 method and checking prefer audio-only media to stop the much larger video files loading, and no interruptions ( http://www.hydrogenaud.io/forums/index.php...st&p=861891 (http://www.hydrogenaud.io/forums/index.php?s=&showtopic=104379&view=findpost&p=861891) ). More recently I have unchecked prefer audio-only media and no longer see interruptions in playback with the foobar2000 method. So either 3dyd made some changes to improve the plug-in or my internet improved. You could try checking prefer audio-only media if you are only interested in the music- but it's not likely be a lot of use if you want to watch the videos. Otherwise see if 3dyd has any suggestions...

Well 'prefer audio-only media' was by default checked, video is disabled in 'features' and still i have interruptions with foobar2000 method.. as an update now even with the foo_youtube method i have issues.. do not why


Then you must use ffmpeg? Download shared build here: http://ffmpeg.zeranoe.com/builds/ (http://ffmpeg.zeranoe.com/builds/)
Put files in some folder.
In ''preferences>youtube source>decoder>path to ffmpeg'' navigate to your folder..
Title: Re: foo_youtube
Post by: WilB on 2014-08-09 18:09:20
There is also foo_youtube_0.0.21_preconf ( http://fy.3dyd.com/download (http://fy.3dyd.com/download) ) which includes ffmpeg, although I thought Clauu had indicated it was already being used (post #281)??? Importantly foo_youtube_0.0.21_preconf comes with all the settings already optimised by 3dyd & so may be worth trying if there is any doubt over the settings.
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-09 21:15:12
New version 1.0

Changelog:
- recent tasks log for problem reporting. Helper for adding task log to problem report. Available for last 10 tasks, placed in Help -> Youtube Source -> Report with log
- settings can be copied to the Clipboard. Should be useful for problems description. Placed in Help -> Youtube Source -> Copy settings to Clipboard
- %3dydfy_title% sets also at searching and feeds loading

There are few organizational changes.
From now in new version message will be only changelog. Link to the download page available in the topic header.
Also to bring more sense to version number now minor version (second number) will be changed if something new added and build version (3rd number) will be increased if just some mistakes or 403 error was fixed. Major version changed to 1, it is high time to do this.
Title: Re: foo_youtube
Post by: mire777 on 2014-08-10 09:41:28
Nice...
I left the report with log.. I don't know how this should works, or whether the report arrived?
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-10 20:47:07
Yes, it arrives successfully. Known issues will be listed there above problem description field. According to my plan this should help to get actual problems info and post new problems faster than using forum thread. However if it will be not so useful as expected, it probably will be removed.
Title: Re: foo_youtube
Post by: Decalicatan_Decalicatan on 2014-08-10 23:20:25
@ 3dyd,

Do you think it is possible to add the YT clip just after the current track in the selected playlist, instead of adding it at the end of the selected playlist (as it is now) ?

Thanks in advance
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-11 09:10:18
Do you think it is possible to add the YT clip just after the current track in the selected playlist, instead of adding it at the end of the selected playlist (as it is now) ?

Add from where? (from 'Add...' dialogs / from search (of main window / context menu / ui element)?) Also describe your case more detailed, maybe there are other solution do get what you want.


@Bratman, @mire777
About video playback error "Can't start playback. Loading a file: Unspecified error". Seems since some time Youtube started to provide video via HTTPS too (previously was HTTP only). And it selects protocol randomly i.e. same clip at different time may have https or http. LAV filters can't handle https (more info (http://code.google.com/p/lavfilters/issues/detail?id=425)) thus this error appears. I'll check what can be done.
Title: Re: foo_youtube
Post by: Decalicatan_Decalicatan on 2014-08-11 22:51:59
Add from where? (from 'Add...' dialogs / from search (of main window / context menu / ui element)?) Also describe your case more detailed, maybe there are other solution do get what you want.


I mean using File/Add YouTube URL(s) and copy-pasting a URL, it adds the youtube track at the last position of the active playlist.

I guess I'm expecting this command not to add but to insert the youtube before what is currently selected in the playlist. Maybe it's just not possible or not the behaviour people prefer.
I'm using CUI if it's relevant

Thank for your component anyway it is really great.
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-12 13:10:03
I guess I'm expecting this command not to add but to insert the youtube before what is currently selected in the playlist. Maybe it's just not possible or not the behaviour people prefer.

All other Add... commands (Add file, Add folder, Add location) are adding items to the end of the active playlist. Making behaviour of 'Add Youtube URL(s)' command different with others looks inappropriate, sorry.
Title: Re: foo_youtube
Post by: mire777 on 2014-08-12 18:11:25
Add from where? (from 'Add...' dialogs / from search (of main window / context menu / ui element)?) Also describe your case more detailed, maybe there are other solution do get what you want.


I mean using File/Add YouTube URL(s) and copy-pasting a URL, it adds the youtube track at the last position of the active playlist.

I guess I'm expecting this command not to add but to insert the youtube before what is currently selected in the playlist. Maybe it's just not possible or not the behaviour people prefer.
I'm using CUI if it's relevant

Thank for your component anyway it is really great.


Maybe you can do this with WSH, there was a discussion about this: http://www.hydrogenaud.io/forums/index.php...883&st=3075 (http://www.hydrogenaud.io/forums/index.php?showtopic=77883&st=3075)
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-13 12:45:46
New version 1.1

Changelog:
- added video data downloading by foobar instead of source filter. See Preferences -> Youtube Source -> Features -> Video -> Media downloading. By default downloading now done using foobar instead of LAV Filters. This should solve problem with video playback start
- fixed wrong seeking after video source change
- fixed subtitles appearance in video source menu
Title: Re: foo_youtube
Post by: mire777 on 2014-08-13 17:18:55
3dyd , thank you , video work now
Title: Re: foo_youtube
Post by: zeremy on 2014-08-14 07:51:07
Could you help me with showing lrc as subtitles. I have installes xy-vsfilter, which gets loaded on playback, and added youtube source to lyrics show3, but no subtitles are shown even though lyrics show displays the synced lrc.
Subtitles from youtube work.
Am I missing something??
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-14 19:56:41
This feature works only with default Lyrics Show 3 (LS3) settings (save lyrics to profile subfolder 'lyrics', use "$if(%artist%,%artist% - )$if2(%title%,%_filename%)" as lyrics file name and 'lrc' as lyrics file extension). Component checks if lyrics file exist (and enables appropriate menu item in Subtitles popup menu) when video context menu shows. All this make this feature not very useful (especially because there are no timeshift adjustment), however why not, I like an idea.
So, check that you are using default LS3 settings if you want to see subtitles and ensure that lrc files exist (don't know exactly but seems LS3 does not save lrc files right after it found them which is ok because not relates to proper lyrics showing by LS3 but in context of this feature it must be kept in mind).
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-14 22:09:18
Ah, one more thing

<.....> and added youtube source to lyrics show3, but no subtitles are shown <.....>

'Youtube Source' in LS3 under 'Available sources' list is completely different thing. LS3 has a way to add external lyrics sources to fetch lyrics from. So by this source LS3 can obtain subtitles from Youtube (if Youtube clip have some) and use them as timestamped lyrics. In other words, you can view subtitles of Youtube clip in LS3 window as timestamped lyrics. Btw according to this thing I need remind that LS3 starts searching only if Artist and Title search parameters from LS3 'Lyric Searching' preferences tab are available. By default they are %artist% and %title% and for Youtube clips in default component configuration %artist% meta field is available not always (for more info read about 'Clip title parsing rule' from Decoder tab preferences).

At the end of this and previous post need to say that in search filter available 'CC' option (Closed Captions) i.e. search clips only with subtitles. If song is famous enough then there are always can be found clip with its lyrics as subtitles. If very famous then there might be also translations to other language (as subtitles i.e., in this context, a timestamped lyrics).
Title: Re: foo_youtube
Post by: dragex on 2014-08-15 05:49:59
3dyd , thank you!
Title: Re: foo_youtube
Post by: zeremy on 2014-08-15 09:09:16
Thanks for the clarifications on the usage.
Got it working by creating a symbolic link from c:\lyrics where I save all my lyrics (from LS3 and minilyrics) to  profile subfolder 'lyrics'.
I really appreciate the search option for clips with CC, making it much easier to find clips with CC.
(and my kids also because they like singing along with the clips).
Keep up the great work!!!
Title: Re: foo_youtube
Post by: Wolfbane on 2014-08-15 19:53:22
I see that you have added the feature I asked for really early of the plugin. You-Tube- Video possebility.

Really awesome, big thx and great work.

I was gonna ask for a few small features, if it is possible or not is up to you.

I know that most videos are in widescreen, but there is still a few 4:3 ration videos.
Is it possible to get an option to when it plays 4:3 videos or any other ratio that it somehow forces the video to be in 4:3 ratio, and just have black color at the sides ? (or even better one monotone color possible to set in options.)

Also when there is no video to display instead of the "No Youtube video" text, to have an option to also have it totally black instead or option to set it to one monotone color.

Also option to not have info during the loading of the video.
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-15 22:13:01
I know that most videos are in widescreen, but there is still a few 4:3 ration videos.
Is it possible to get an option to when it plays 4:3 videos or any other ratio that it somehow forces the video to be in 4:3 ratio, and just have black color at the sides ? (or even better one monotone color possible to set in options.)

Component uses video window size basing on original video size (the only way to override this is set 'Fit to current' option from video window context menu). If there are some black areas then this is part of the video. For example this video (https://www.youtube.com/watch?v=h54-WWqlSt4) is 4:3 (and component shows 4:3 window) but video image has black areas on left and right sides.
When resize video window black area appear on empty space. This cannot be customized.

Also when there is no video to display instead of the "No Youtube video" text, to have an option to also have it totally black instead or option to set it to one monotone color.

All Youtube clips have video. If there are only audio then uploader just creates video with one image (as it is with link above. There are 43 minutes of video with just one picture. On Youtube are terabytes of videos with just one picture, amazing waste of space). So don't know how you get this, maybe in your case clip had video with "No Youtube video" picture?

Also option to not have info during the loading of the video.

I'll add this in next version.
Title: Re: foo_youtube
Post by: Wolfbane on 2014-08-16 14:14:20
Component uses video window size basing on original video size (the only way to override this is set 'Fit to current' option from video window context menu). If there are some black areas then this is part of the video. For example this video (https://www.youtube.com/watch?v=h54-WWqlSt4) is 4:3 (and component shows 4:3 window) but video image has black areas on left and right sides.
When resize video window black area appear on empty space. This cannot be customized.

"Fit to current" worked perfectly, dint know about this feature, thx.

All Youtube clips have video. If there are only audio then uploader just creates video with one image (as it is with link above. There are 43 minutes of video with just one picture. On Youtube are terabytes of videos with just one picture, amazing waste of space). So don't know how you get this, maybe in your case clip had video with "No Youtube video" picture?

If one goes into settings in your plugin, and under "Features" and then in "Show Video" change to "Manualy and do not close" then when you press STOP on the music. Then there is an grey/white info that no song is playing atm.
That is the image/info Im refering to. Would be nice to be abel to make it 100% black empty screen.

BTW, What is the button to open the video manually?

And also when I swap from one song to another, it sometimes writes the same info "No You Tube Video" before it loads it, seems to even be a delay before it starts to download it.

I'll add this in next version.

Cool, thx

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Also, EVERY times I swap song/video. There seem to be artifacts/pixel problems with the video, like the first 5sec of the video.
It can be a video that is just having a black screen. So its not graphics chaining to fast or something like that.

I did a local recording and uploaded you You-Tube.
https://www.youtube.com/watch?v=pvKHVtSSPiQ...eature=youtu.be (https://www.youtube.com/watch?v=pvKHVtSSPiQ&feature=youtu.be)

Im aware that the pixel thing might not be related to your plugin. But you probably know more if it is or not.

Also my drivers are up to date.
And my hardware are the following if it matters.
CPU: Intel i7 - 2600K, Quad Core - 3,4 GHz
GPU: Radeon 7970 3GB
PSU: Fractal Deisgn Newton R2 1000W
Motherboard: ASUS P8Z68-V LX
RAM: 16GB Vengeance 1866 MHz
Soundcard: Asus Xonar Essence ST

Windows 7 64bit,
ISP: 100/25+ BBB ( Sweden )
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-16 19:10:31
If one goes into settings in your plugin, and under "Features" and then in "Show Video" change to "Manualy and do not close" then when you press STOP on the music.

Ah, sorry, I missed this. Yes, it also relates to option I've promised in previous post, any info there will be removed and window will be filled with monotone color.

BTW, What is the button to open the video manually?

Probably not clear what you mean. Keyboard shortcut to open video can be created as usual using Preferences -> Keyboard Shortcuts. If you mean 'What is the point to open the video manually?' then different people have different needs. Personally I prefer Youtube as additional audio source and would like to see video in rare cases.

And also when I swap from one song to another, it sometimes writes the same info "No You Tube Video" before it loads it, seems to even be a delay before it starts to download it.

Video becomes available after clip was opened i.e. after audio playback was started. To analyze clip page and open clip need few seconds, at this time there are no info about video thus appears this message.

Also, EVERY times I swap song/video. There seem to be artifacts/pixel problems with the video, like the first 5sec of the video.
It can be a video that is just having a black screen. So its not graphics chaining to fast or something like that.

I did a local recording and uploaded you You-Tube.
https://www.youtube.com/watch?v=pvKHVtSSPiQ...eature=youtu.be (https://www.youtube.com/watch?v=pvKHVtSSPiQ&feature=youtu.be)

Im aware that the pixel thing might not be related to your plugin. But you probably know more if it is or not.

It relates to video playback after seeking. I.e. if you will seek within the clip then in most cases you'll see same artifacts for few seconds. This relates to LAV Filters, not to component. But as for me, it is great that video just works so such details are not very important. Also I've seen this only for WebM video, for Mp4 all is ok so you can disable WebM and WebM-VO through 'Formats to ignore' in Features -> Video, this may solve the problem.
At all, why it relates to video playback after seeking - there are several problems to play video in foobar (at least for me) and one of workarounds is the need to synchronize after playback start. So after 2 seconds from playback start component emits Synchronize action from video context menu (which actually means 'seek to current position').
Title: Re: foo_youtube
Post by: Wolfbane on 2014-08-16 21:23:48
Thx for the reply...

I wondered if there was any button set, Im not so used to Foobar, so still learning.
Preferences -> Keyboard Shortcuts.... Ill look into that, thx

Regarding the pixel problem early songs.
I have already "WebM" on Ignore (It was that from default). I guess Ill test to put Mp4 as priority, and see if that solves it.
(edit. Nope mp4 as priority dint solve it either... No big deal, Ill live with it.)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I got some more new questions/problems for yha



*** 1 ***
I did play a song, then rebooted computer...

Then turned on Foobar, played another song, then the second song came on that I played previous to the reboot.

It started playing the audio from the start of the song, but the video was not in sync from the start, was rather strange.
Paused the song, put on record, but when unpaused the video it started from beginning, it was both audio and video in sync from start. Only happened once sofar.



*** 2 ***

Possible to get the Foobar You-Tube video window to remember my last settings when I used it. So if I closed down FooBar with the You-Tube player up and running. It will start the video player when I start FooBar.
Or have an option (on/off) to always open the you tube player when I start FooBar ?



*** 3 ***

So I left the playlist going with only you-tube songs, went to make some food, came back and noticed videos stopped loading, audio was still going.

Did a new recording with some more "Problems" reg video stops loading.
https://www.youtube.com/watch?v=SsLG4QZEv3E (https://www.youtube.com/watch?v=SsLG4QZEv3E)

What I have noticed it sees to happen after a few songs. But as soon as I double click on a song, or use my media keys to open next song, then it gets it working again.



*** 4 ***

Since all youtube, songs have rather strange and dumb names.
Also I tried to Right click the files/link.... in the "playlist" and went into properties.
Edited the artist and Track title. but just got an error message instead.

Could not update tags (Unsupported file format) on:
"3dydfy://www.youtube.com/watch?v=l2S4GTD-AAw"

Im guessing this has to do with that its not actually a file on my computer that I can do changes to.
But would it be possible to go around this somehow and actually name the "files" in playlist with better names ?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

And btw, awesome nice work on the plugin. Keep up the awesome work.
Title: Re: foo_youtube
Post by: mire777 on 2014-08-17 11:58:03
Thx for the reply...

I wondered if there was any button set, Im not so used to Foobar, so still learning.
Preferences -> Keyboard Shortcuts.... Ill look into that, thx


If you want to set button to open video manualy:

Right click on your buttons>customize buttons,
Then go to: main>visualizations>youtube video
Add this as button..

Then if you want you can -download this my image: Link (https://www.dropbox.com/s/xor5t7knh2nhrms/YT.ico)
It's look like this:
(http://s3.postimg.org/o1fvw2ugf/image.png)


Regarding the pixel problem early songs.


I don't have this problem with pixel, but sometimes video wont start, or video go fast and stop.
But if i change source from mp4 to other format it work fine. This  also happening earlier with LAV filters.
Must see on which video this happens, and I'll report..
Title: Re: foo_youtube
Post by: mire777 on 2014-08-19 09:00:20
As i said ,this is video that wont start at first play: 3dydfy://www.youtube.com/watch?fb2k_title=Till%20the%20World%20Ends&3dydfy_alt_length=237&fb2k_artist=Britney%20Spears&v=qzU9OrZlKb8

I receive message in Youtube video window: STOPPED MP4 360p 640x360 | M4A 44100Hz Stereo 96kbps
In console i didn't receive any error message..
In browser video work fine..

After i stop video, and play it again it works fine..
I was left report for this problem...
Title: Re: foo_youtube
Post by: Wolfbane on 2014-08-19 14:23:11
As i said ,this is video that wont start at first play: 3dydfy://www.youtube.com/watch?fb2k_title=Till%20the%20World%20Ends&3dydfy_alt_length=237&fb2k_artist=Britney%20Spears&v=qzU9OrZlKb8


First I Dont why you wou,ld try and implement sutch strange links.
Take this link instead. Its not a differnt video, its the EXACT same video, just with a better string if URL
https://www.youtube.com/watch?v=qzU9OrZlKb8 (https://www.youtube.com/watch?v=qzU9OrZlKb8)
Look at the last letters and symbols of your string, then compare it to the last symbols of my string. = Same

I receive message in Youtube video window: STOPPED MP4 360p 640x360 | M4A 44100Hz Stereo 96kbps
In console i didn't receive any error message..
In browser video work fine..

After i stop video, and play it again it works fine..
I was left report for this problem...


This is exactly what I reported in the thread above your, In number 3 and recorded a video of it.
Strange that you dint notice that since you did reply to my thread.

It seems to stop middle of songs, and after when it goes to next song by itself it will not load any future songs (video) untill you manually do something.
Title: Re: foo_youtube
Post by: mire777 on 2014-08-19 17:38:34
First I Dont why you wou,ld try and implement sutch strange links.
Take this link instead. Its not a differnt video, its the EXACT same video, just with a better string if URL
https://www.youtube.com/watch?v=qzU9OrZlKb8 (https://www.youtube.com/watch?v=qzU9OrZlKb8)
Look at the last letters and symbols of your string, then compare it to the last symbols of my string. = Same



This link is from my 'Youtube Radio': http://mire777.deviantart.com (http://mire777.deviantart.com/art/Foobar-Youtube-Radio-447296512)
Because it use 'track naming' from last.fm it have different URL than standard Youtube video.
It works in foobar and this possibility is added by 3dyd. Info here: clip-title_parsing_rule (http://fy.3dyd.com/home#title_parsing_rule)
What is important is the last symbols of string, and yes this is same video..

This is exactly what I reported in the thread above your, In number 3 and recorded a video of it.
Strange that you dint notice that since you did reply to my thread.


Sorry i missed this in a hurry.
I have same problem...
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-19 21:01:04
@Wolfbane, @mire777
Ok, see it. Seems it is one of basic video playback issues in foobar and concerns to current playing time. Details: exact current playing time in foobar is known only from last playback start or seeking. This time value is very important for audio and video synchronization. Foobar has great feature called gapless playback. But in this context it means that if playback comes to next clip without user request (i.e. just last clip was ended and next clip was started to play) then current playing time does not change. Video playback at its showing performs seeking to current playing time which in case of the next clip is not the next clip playing time: if the next clip is shorter that current playing time then you'll see 'Stopped' message; if longer - then you'll see not synchronized video. Currently this can be solved only by manual clip restart or manual seeking within the clip (both these actions will reset current playing time). I'll look for some workaround, but not now, for a while there will be no updates except emergency cases (i.e. audio playback problems), sorry.
Title: Re: foo_youtube
Post by: mire777 on 2014-08-20 09:53:47
@Wolfbane, @mire777
Ok, see it. Seems it is one of basic video playback issues in foobar and concerns to current playing time. Details: exact current playing time in foobar is known only from last playback start or seeking. This time value is very important for audio and video synchronization. Foobar has great feature called gapless playback. But in this context it means that if playback comes to next clip without user request (i.e. just last clip was ended and next clip was started to play) then current playing time does not change. Video playback at its showing performs seeking to current playing time which in case of the next clip is not the next clip playing time: if the next clip is shorter that current playing time then you'll see 'Stopped' message; if longer - then you'll see not synchronized video. Currently this can be solved only by manual clip restart or manual seeking within the clip (both these actions will reset current playing time). I'll look for some workaround, but not now, for a while there will be no updates except emergency cases (i.e. audio playback problems), sorry.


3dyd, thank you for your answer.
Seems that i was found solution in WSH..
You can do this also in your code, just call ''foobar seek command'' from main menu, in this way:

Code: [Select]
function on_playback_new_track() {
fb.RunMainMenuCommand("Playback/Seek/Ahead by 1 second");
}
Title: Re: foo_youtube
Post by: Wolfbane on 2014-08-20 14:18:12
@3dyd

Oki...
Did you read my other 2 questions ?



*** 2 ***
Possible to get the Foobar You-Tube video window to remember my last settings when I used it. So if I closed down FooBar with the You-Tube player up and running. It will start the video player when I start FooBar.
Or have an option (on/off) to always open the you tube player when I start FooBar ?





*** 4 ***
Since all youtube, songs have rather strange and dumb names.

Also I tried to Right click the files/link.... in the "playlist" and went into properties.
Edited the artist and Track title. but just got an error message instead.

Could not update tags (Unsupported file format) on:
"3dydfy://www.youtube.com/watch?v=l2S4GTD-AAw"

Im guessing this has to do with that its not actually a file on my computer that I can do changes to.
But would it be possible to go around this somehow and actually name the "files" in playlist with better names ?



-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -

@mire777
If you found a way to solve the stopping of video, that that is great news.
Title: Re: foo_youtube
Post by: mire777 on 2014-08-20 20:36:32
It seems that even that not working, only on a few tracks. Sorry...
Title: Re: foo_youtube
Post by: 3dyd on 2014-08-21 17:39:31
Possible to get the Foobar You-Tube video window to remember my last settings when I used it. So if I closed down FooBar with the You-Tube player up and running. It will start the video player when I start FooBar.

Actually if think about it, option 'Show video -> Manually and do not close' should behave exactly that way. I'll fix this in next version.

Also I tried to Right click the files/link.... in the "playlist" and went into properties.
Edited the artist and Track title. but just got an error message instead.

Could not update tags (Unsupported file format) on:
"3dydfy://www.youtube.com/watch?v=l2S4GTD-AAw"

Im guessing this has to do with that its not actually a file on my computer that I can do changes to.
But would it be possible to go around this somehow and actually name the "files" in playlist with better names ?

Yes, probably this is possible but edited tags will be available only until the clip remains in playlists.
Title: Re: foo_youtube
Post by: Wolfbane on 2014-08-24 20:58:25
Possible to get the Foobar You-Tube video window to remember my last settings when I used it. So if I closed down FooBar with the You-Tube player up and running. It will start the video player when I start FooBar.

Actually if think about it, option 'Show video -> Manually and do not close' should behave exactly that way. I'll fix this in next version.


Well If I leave the "you-Tube" video open, and have the settings on "Manually and do not close", once I close down the FooBar, then next time I open Foobar then it will not open the You-Tube video window automaticly.

Also I tried to Right click the files/link.... in the "playlist" and went into properties.
Edited the artist and Track title. but just got an error message instead.

Could not update tags (Unsupported file format) on:
"3dydfy://www.youtube.com/watch?v=l2S4GTD-AAw"

Im guessing this has to do with that its not actually a file on my computer that I can do changes to.
But would it be possible to go around this somehow and actually name the "files" in playlist with better names ?

Yes, probably this is possible but edited tags will be available only until the clip remains in playlists.


Oki, nice looking forward to next update.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Also reguarding the videos stoping to playing.

Is it not possiblet o just go around it in something like this.
So when its 0.5 seconds left of the song then you program it so it forces a "next song keypressing"
Title: Re: foo_youtube
Post by: yeahman on 2014-08-30 08:29:17
Just discovered this plugin. I too look forward to being able to edit metadata.

Is there any way to offset the start and end times? There are music videos with long non-music intros and endings.
Title: Re: foo_youtube
Post by: omjack on 2014-08-30 09:56:12
Just discovered this plugin. I too look forward to being able to edit metadata.

Is there any way to offset the start and end times? There are music videos with long non-music intros and endings.


I was interested in that too, and the only way i found is using skip track (http://www.foobar2000.org/components/view/foo_skip), but it uses <SKIP> tag to work and we can't edit those for now.
Title: Re: foo_youtube
Post by: WilB on 2014-08-30 19:08:55
With regard to a number of recent posts, its worth pointing out that YouTube Track Manager already has automatic track renaming and a blacklist engine. It works as a companion to foo_youtube. To use it install wsh_panel_mod (http://www.hydrogenaud.io/forums/index.php?showtopic=70363&hl=wsh_panel_mod) into your layout in the usual way (you have to disable safe mode in wsh_panel_mode preferences) and then import the YouTube Track Manager script. foo_youtube must also be installed.

It has two modes. The first is called radio mode, because that's what last.fm, deezer & spotify etc call it. Do not be put off by the "radio" name as its not a particularly apt name. In "radio mode" you can set the radio type to artist and it will play the top tracks by a particular artist. If the song hotness is set to 3 then it mainly plays from the top 50 tracks by the artist. Lesser hotness settings use a bigger pool of tracks.


The second mode is album mode. Here the album manager displays the albums of the playing artist. So if you want more of an artist, then double click an album to load the tracks and then play them.

Tracks are correctly named. If you find poor versions of a track, e.g. long non-music intros before the music starts, the video can be blacklisted based on the video id, so that the next time the track is loaded into a playlist the blacklisted version is skipped and a different video version will load.

If you like the style of an artist but want more variety then in "radio mode", you can choose to play tracks by the artist and similar artists. You can also choose to play tracks by specific genres.

There is a new version of YouTube Track Manager here. (http://www.hydrogenaud.io/forums/index.php?s=&showtopic=105522&view=findpost&p=873119)
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-01 21:16:38
New version 1.2

Changelog:
- metadata edit possibility. Now metadata can be edited as usual, for more details available here (http://fy.3dyd.com/home#metadata_editing)
- added support of Opus (WebM AO) decoding. Great news, there now can be three more audio-only qualities for the clip. They using Opus in WebM container, quality is 48000Hz Stereo with different bitrates. For now it appears very rarely
- youtube title moved from metadata to track technical info
- added youtube description field to track technical info. More info about this and previous are here (http://fy.3dyd.com/home#youtube_metadata)
- fixed max subtitles count. You can check out the power of subtitles in this clip (http://www.youtube.com/watch?v=vfW5e6jVsMs).
Title: Re: foo_youtube
Post by: yeahman on 2014-09-02 05:44:13
The metadata edits disappear when the song is played again.
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-02 08:03:17
Strange, maybe I missed something but it works for me. The only way I can suggest to get this is the case when edited metadata length is greater than size limit for tech info fields. Check your limit (value of infoMax in LargeFieldsConfig.txt from foobar app data folder).
Title: Re: foo_youtube
Post by: Wolfbane on 2014-09-02 10:41:06
New update awesome. Keep up the awesome work.

*1* Renameing the files seems to work for me, and does NOT lose name when I play next song or when I play the song again later. So to the person who had this problem. It does not seem to be like that for all users.

*2* I tried to "check for updates" inside FooBar. and got the info back "no updates available". So I downloaded it manually, but just wanted to let you know about this, if you care ;O)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Now to some other things. These are things you have said would come in the "next" update.
I totally understand that you could not have had time, or was bigger coding then you tought and will deal with it in next patch or whatever.
Im not being a douchbag. But just letting you know that if you tried to implement them as you said you would, that they are not working for me.


"When I close down foobar and I have you-tube window open, it still does not remember to open it by default."

"Also option to NOT have info during the loading of the video. "

"Also when there is no video to display instead of the "No Youtube video" text, to have an option to also have it totally black instead or option to set it to one monotone color."
(more and less want it to be the classic greenscreen color, same with all text that is ever written in the window to have same color. More and less want one monocolor and not be able to see any text EVER)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I also asked if it would be possible to add a feature, that when its like 0.5 left of the song, that the program forces a "next song" keypressing. And that way the program will think it was done manually and that way the video would work without problems.
Title: Re: foo_youtube
Post by: mire777 on 2014-09-02 11:07:50
The metadata edits disappear when the song is played again.


Works fine for me. Also ''check for updates'' works..

I also asked if it would be possible to add a feature, that when its like 0.5 left of the song, that the program forces a "next song" keypressing. And that way the program will think it was done manually and that way the video would work without problems.


It's better to forse on 0.1
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-02 22:45:00
It's better to forse on 0.1

There must be a way to do this properly, without workarounds. However, this is not emergency and there are still left one (cool) thing related to audio sources.
About performing seeking on the end of the track - you can check component log activity, foobar starts next tract decoding a few seconds before the end of previous track (to buffer some data which prevents the pause between the tracks playback and makes possible gapless playback). Seek performing will probably result in huge delay between tracks (delay equal to the delay at opening track at stopped state).
Title: Re: foo_youtube
Post by: onirwai on 2014-09-04 13:18:51
Thank you for implementing %youtube_description% !
This is super useful when playing mixes that have the tracklist written in the description.

It showed up truncated so I went into the Foobar app data folder, edited LargeFieldsConfig.txt and changed
infoMax=2000
Now I can see most YouTube mix tracklists under <song> Properties menu option > Properties tab > YouTube Source group > YouTube Description. But the field is tiny and hard to reach.

Does anyone know how I can display it somewhere (multi-line)?
Like a panel, or some place easier to reach...?
Title: Re: foo_youtube
Post by: marc2003 on 2014-09-04 13:49:06
you can try foo_textdisplay if using default UI: http://www.foobar2000.org/components/view/foo_textdisplay (http://www.foobar2000.org/components/view/foo_textdisplay)

if you use columns UI, then the built-in item details panel should do. just add it your layout.

edit: i don't use the component so haven't tested this but i'd assume it will work.
Title: Re: foo_youtube
Post by: Daeron on 2014-09-04 13:54:15
Does anyone know how I can display it somewhere (multi-line)?
Like a panel, or some place easier to reach...?

Text Display (http://www.foobar2000.org/components/view/foo_textdisplay) should do the job. If you are using Columns UI item details panel should also work.

Edit: changed the link to marc2003's as mine was pointing to an outdated version anyway (the developer's homepage).
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-06 22:52:39
New version 1.3

Changelog:
- additional audio qualities now available. Youtube has additional way to get media qualities with additional qualities there. Somehow I missed this :( Relating to the audio there additionally can be (depending of the clip) AAC 256kbps and 64kbps (MP4 AO aka M4A) and Vorbis 192kbps (WebM AO aka OGG). But note, AAC 256kbps is tricky, it appears even for the clips which definitely haven't such quality so I'd recommend to use option 'with bitrate of audio stream nearest to <192kbps>' in Preferred Quality -> Prefer a media file, it will use OGG if clip has it. OGG also preferred because it is seekable when seeking over dash mp4 (MP4 AO on Youtube) currently is not supported by FFmpeg (https://trac.ffmpeg.org/ticket/3842)
- video window background customization when no video is playing. See Video group in preferences Features tab to configure it
- fix for long play video synchronization. May not fix the problem completely but at least should fix it in some cases
- fixed video window show after program restart
Title: Re: foo_youtube
Post by: Wolfbane on 2014-09-07 01:03:36
New version. Nice nice...

Well I wrote it before in thread, that the auto updater in Foobar is not working for me. Last I Wrote that I got an reply that it worked for someone els, I have my doubts that it does work for him. But I guess I have to take his workd for it.

So because of it seem to work for some people and not for me, I recorded a really short video of it not finding 1.3 update thrue the FooBar Preferenses.

https://www.youtube.com/watch?v=8VZKvDSmR0U...eature=youtu.be (https://www.youtube.com/watch?v=8VZKvDSmR0U&feature=youtu.be)

Downloaded 1.3 and did some fast tests, seems to work nice.
Only thing I found was that the "apply" button does not change the mono color or the image, you have to restart the Foobar for it to actually get it working.
No big deal at all, just letting all the other people know, if they dont get it working. Just do the settings close down Foobar and when you start it again the settings will work reguarind Mono-Color or the Image.
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-07 12:02:53
So because of it seem to work for some people and not for me, I recorded a really short video of it not finding 1.3 update thrue the FooBar Preferenses.

Component is not the part of the official 3rd party components so it cannot be updated in this manner. People talked about 'Check for updates' from component preferences page or from menu Help -> Youtube Source.

Only thing I found was that the "apply" button does not change the mono color or the image, you have to restart the Foobar for it to actually get it working.

Background settings change takes effect at next video window show. So not need to restart the program, just reopen video window.
Title: Re: foo_youtube
Post by: Wolfbane on 2014-09-07 15:49:53
Component is not the part of the official 3rd party components so it cannot be updated in this manner. People talked about 'Check for updates' from component preferences page or from menu Help -> Youtube Source.


Background settings change takes effect at next video window show. So not need to restart the program, just reopen video window.


"Check for updates."
Oki. Dint know. Cool.
Is there any way to get the plugin check for update by itself, like each week or each month, or something like that ?

"Change takes effect"
Ahh oki.
Since I want the You-Tube window to always be in "widescreen mode" and the only way to do that is to, have it set on "Manually and do not close" and inside the You-Tube window settings I have "Fix to current"
That way it is always same size (widescreen). And only time it closes is when I turn the program on/off.

Anyway, keep up the awesome job with the plugin.
Title: Re: foo_youtube
Post by: Wolfbane on 2014-09-07 18:29:10
Also noticed that when it goes to next song, that it will automaticly play the video (no longer forced to press NEXT ).
I dont know how you fixed it, but awesome work ;O)
Title: Re: foo_youtube
Post by: musikomaniak on 2014-09-08 20:18:07
Hi,
what does mean this message when opening a video Youtube?
Quote
Creating VSFilter: Classe non enregistrée


Edit.
I found! I installed xy-VSFilter Installer (32-bit) for my Windows 7 64-bit.
It is in C:\Program Files (x86)\xy-VSFilter
I did not understand about:
Quote
replace this path with the directory of your choice

Should I move it else where?
Sorry, my english is so bad.
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-08 22:22:03
I found! I installed xy-VSFilter Installer (32-bit) for my Windows 7 64-bit.
It is in C:\Program Files (x86)\xy-VSFilter
I did not understand about:
QUOTE
replace this path with the directory of your choice

Should I move it else where?

32-bit installer is exactly what is need. Bit depth of needed binaries depends of program when it need, not of your Windows bit depth. Component (and foobar2000) is 32-bit so need 32-bit VSFilter. If you installed it with Installer (i.e. not just copied its binary files somewhere), then the place where you istalled it does not matter.
If you still have problems, you can try _preconf version from Download page, however I'm not sure in libav codecs currently used in it (versus FFmpeg in manually configured decoding which I'd prefer and recommend).
Title: Re: foo_youtube
Post by: musikomaniak on 2014-09-09 11:11:31
Thank you 3dyd.
It seems quite perfect

I did not use _preconf version.

I opened Administrative Command Prompt and made:

regsvr32 "C:\Program Files (x86)\xy-VSFilter\VSFilter.dll".

Some videos give message STOPPED...
With others sound and video are jerky (I'm not sure it's the wright word, I mean is not fluid - it breaks).
Title: Re: foo_youtube
Post by: Wolfbane on 2014-09-09 11:57:07
Also I wrote before that I tought that playing next song without using NEXT song would still play the video. Not sure what it was, but it seemed to work when I wrote it. But does not seem to work now.
SO Im guessing that I must have been wrong about that. Sorry.

-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -

I hav enoticed that a lot of songs have stutter in them.
I dont know why some songs have alot of stutter/lagg/delay problems

Did record, should be 1080p, with Task Manager "Networking" and "Performance" info in the video and also a "www.speedtest.net" test, during hte recording.
Also goes thru the options in FooBar You-Tube plugin settings
When I put ont he recording then the video in it is alot of stuttering, and also later in the video ==> 05:30 in the video at Beasty Boys - Fight for your rights to party
http://vidble.com/review/edit-gQuRb (http://vidble.com/review/edit-gQuRb)


It prob could do a few tests on differnt settings on what video to priority and all that. Problem is that I really dont know what the differnt "Media files"
So if anyone els have some suggestions on what settings I could do to not have this stutter all the time ?



Title: Re: foo_youtube
Post by: carpman on 2014-09-09 12:13:08
I hav enoticed that a lot of songs have stutter in them.
I dont know why some songs have alot of stutter/lagg/delay problems

Yes, I've noticed the same thing and it's always AAC streams (at least for me), Vorbis seems okay.

C.
Title: Re: foo_youtube
Post by: onirwai on 2014-09-10 10:36:55
For me the update to 1.3 broke the Seekbar (no seeking possible) and the green progress indicator in the taskbar has stopped working as well (it shows continual loading like when listening to radio).

Aside from that, if I may, a feature suggestion:
Subreddit Playlists!
Here is a thread about Reddit Players (http://redd.it/2c84ko) to get you started

Oh and thanks everyone for your help on displaying %youtube_description%!
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-10 22:39:37
Oh, so many problems :( Most of them I don't see so can only make assumptions, need more info. So lets do this.

@musikomaniak, @Wolfbane, @carpman, @onirwai
First of all general actions. Paste here your settings (Help -> Youtube Source -> Copy settings to Clipboard). If problems constantly appear on particular clips (using those pasted settings) then paste few links here. Any investigation of particular problem reasons is appreciated: when problem appears  currently playing format in case of audio can be viewed via View -> Youtube Source -> History (I remind that played audio marks with 'play' (▶) icon).

And here are few suggestions.
Breaks in playback can be because of too big source file so download speed is less than playback speed. If FFmpeg is not configured, for audio playback in default configuration is used best video which may be big enough to produce this problem. Active Internet usage (like torrents) also can make this possible. Playing a video with the audio is also may require big piece of bandwidth depending of video quality.

If video playback turned on, after seeking there can be silence in playback even up to 5-10 seconds which might be threated as delays. It required to provide accurate seeking (for audio+video synchronization). Seeking also performs automatically (and may produce this) at every Youtube track start (if video is enabled). So maybe this is threated as the problem in some cases.

@musikomaniak
>> Some videos give message STOPPED...
Looks like video synchronization problem, as @Wolfbane mentioned it is still opened.

@Wolfbane
>> Did record, should be 1080p, <....> http://vidble.com/review/edit-gQuRb (http://vidble.com/review/edit-gQuRb)
Not sure what you mean, by this url I see only one picture.

@carpman
>> Yes, I've noticed the same thing and it's always AAC streams (at least for me), Vorbis seems okay.
As I mentioned, yours current settings can give some info (if this depends or particular clips). Also I wonder, is problem appeared only with the last version or it appeared previously with long time videos after some long playing time. At all, does long playing time has some problems or not.

@onirwai
>> For me the update to 1.3 broke the Seekbar (no seeking possible)
At least for this I probably have the solution. With last update it is possible to play 256kbps AAC streams. It is the best available audio quality so by default it will be used for playback. Audio-only AAC streams on Youtube are shipped within MP4 DASH format which currently is not seekable using FFmpeg. So you can disable it (add M4A to component preferences Decoder tab -> Formats to ignore) or more elegant way - set 'Prefer a media file' to "with bitrate of audio stream nearest to" ...180 kbps which according to currently available formats (http://fy.3dyd.com/#audio_quality) will use seekable OGG stream (OGG 192kbps and if don't have - OGG 128kbps) and only if don't have any of them then some of available AAC streams.
Title: Re: foo_youtube
Post by: carpman on 2014-09-11 13:59:07
@carpman
>> Yes, I've noticed the same thing and it's always AAC streams (at least for me), Vorbis seems okay.
As I mentioned, yours current settings can give some info (if this depends or particular clips). Also I wonder, is problem appeared only with the last version or it appeared previously with long time videos after some long playing time. At all, does long playing time has some problems or not.

Okay, have been trying to reproduce this but it's a little tiresome; I've watched parts of old streams that were problematic but they tend to be very long and so far I can't reproduce. However, I know this is not a connection problem, because I've switched at the time to Vorbis and it's been okay. So I'll get back to you when I can find a hard and fast example.

In the meantime here are my settings. These have been played around with a little as I tried to solve the issue by adjusting settings. Any feedback on a better setup would be much appreciated. Thanks. Let me know if you need system spec or any other details.

Most of the streams I listen to (and now watch -- nice update) are lectures and documentaries so they tend to be between 10 mins up to 3 hours. So very long. On the surface this appears to be a buffering (/youtube buffering?) issue. Generally it'll start off fine and then a long stream may start to suffer drop outs after 5+ mins or longer.

Sorry I can't be more specific. Like I say, so far it's always been ~192 AAC streams.

SETTINGS:
Code: [Select]
Start: fast, quality: best, ignore:flv;m4a, priority: ogg;opus;webm;mp4;m4a, prefer-audio-only: no
Downloading: foo_youtube+ffmpeg, decode: mp4;m4a;webm;ogg;opus;3gp;flv, FFmpeg: no
Search-autocomplete: yes, album-art: no, proxy: no
Video: yes, resolution: 360p, subtitles: yes, ignore:mp4-vo, priority: , show: auto


Great component! It's so good to be able to use foobar2000's EBU 128 Compressor on YouTube (for non music material) since the volume levels even within streams are often so up and down. This sorts it all out.

Thanks.

C.
Title: Re: foo_youtube
Post by: mire777 on 2014-09-12 02:51:29
@Carpman
I didn't know for EBU R128 Compressor (http://www.hydrogenaud.io/forums/index.php?showtopic=86444&st=0) - seems that this work in same way - as replay gain scan, but it work on the fly. Nice.
All my songs are now on the same level including youtube videos..
Thank you for mention this..
Title: Re: foo_youtube
Post by: Wolfbane on 2014-09-12 04:25:57
@Wolfbane
>> Did record, should be 1080p, <....> http://vidble.com/review/edit-gQuRb (http://vidble.com/review/edit-gQuRb)
Not sure what you mean, by this url I see only one picture.


Sorry must have had wrong link in the COPY+PASTE memory.

Here is the correct link.
https://www.youtube.com/watch?v=RNgLrdTbbAg (https://www.youtube.com/watch?v=RNgLrdTbbAg)

Did record, should be 1080p, with Task Manager "Networking" and "Performance" info in the video and also a "www.speedtest.net" test, during the recording.
Also goes thru the options in FooBar You-Tube plugin settings
When I put ont he recording then the video in it is alot of stuttering, and also later in the video ==> 05:30 in the video at Beasty Boys - Fight for your rights to party
Title: Re: foo_youtube
Post by: musikomaniak on 2014-09-12 11:58:28
Oh, so many problems  Most of them I don't see so can only make assumptions, need more info. So lets do this.

@musikomaniak, @Wolfbane, @carpman, @onirwai
First of all general actions. Paste here your settings (Help -> Youtube Source -> Copy settings to Clipboard). If problems constantly appear on particular clips (using those pasted settings) then paste few links here. Any investigation of particular problem reasons is appreciated: when problem appears  currently playing format in case of audio can be viewed via View -> Youtube Source -> History (I remind that played audio marks with 'play' (?) icon).

@musikomaniak
>> Some videos give message STOPPED...
Looks like video synchronization problem, as @Wolfbane mentioned it is still opened.

Hello,
I'm glad to announce you that I had no problem today.
I tested about 10 videos. No STOP messages, sound fluid. No errors shown in history.
My settings:
Quote
Start: fast, quality: best, ignore:webm;ogg;m4a;flv, priority: , prefer-audio-only: yes
Downloading: foo_youtube, decode: , FFmpeg: no
Search-autocomplete: yes, album-art: yes, remove-black: yes, limit: no, proxy: no
Video: yes, resolution: 720p, subtitles: yes, ignore:, priority: , show: auto



I can imagine that all problems were due to my computer Windows 7. I used a program to clean before making tests.
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-12 19:02:52
@carpman
You disabled 'Prefer audio-only' option from Decoder tab so video files are comparing with the audio-only files by the same rules. I.e. if some video file has better audio quality then it will be used instead of available audio-only files. AAC 192kbps quality on Youtube has only 720p video. It is usually ~10x larger than audio in it. In addition if you are watching video at this time then another big stream downloads at the same time. Maybe it is too much for the bandwidth. Btw, if you are using for example Waveform seekbar, it will download 3rd stream at the same time - to draw waveform basing on it.
Also I'd recommend to configure ffmpeg and use foobar2000 as downloader, foo_youtube as downloader was good alternative only before decoding through ffmpeg was added.

@Wolfbane
According to video problems - try set Features -> Video -> 'Priority of formats' to mp4, looks like decoding WebM VP9 (which goes in your case) has some problems in LAV Filters. Also unless you need to see media files sizes, also turn back Decoder -> 'Playback Start' to Fast, it will increase opening speed because will don't get filesize for any available media (btw because of known files sizes in your case was used WebM VP9 because it usually has smaller size than mp4 which used by default if filesizes are unknown and quality are equal). Mp4 also has much less problems with synchronisation.
About audio playback stutting - foobar has some problems at native decoding WebM AO (i.e. OGG in component). In your config decoding goes by foobar and ogg is preferred quality. So turn back ogg to 'Formats to ignore' or configure ffmpeg and select ogg to decode by it using Decoder -> 'Decode its own' field.
Title: Re: foo_youtube
Post by: mire777 on 2014-09-12 20:45:45
I have audio playback interruption only on AAC usualy on track end, VORBIS is ok.
From earlier explanations how component works, and how to set 'decoder preferences' , this is expected, not big problem..

3dyd, about video , on my system if i set video quality larger than 360p, then video have interruption and problem with synchronization, even if i manualy click play. I assume that this is because internet speed. My speed is 1.5mb, is possible to do something about that?
Title: Re: foo_youtube
Post by: carpman on 2014-09-12 21:25:30
@3dyd

Thanks for your patience. Have adjusted settings and things seem better. I have a decent broadband connection - so to test I downloaded some stuff in background and watched an AAC based stream and it played fine (whereas prior to changing settings it was experiencing dropout problems).

Seems I didn't fully understand the settings' implications. So thanks for the clear explanation.

As for Waveform Seekbar, I use it, but not with this installation of foobar2000 - so that wouldn't be an issue for me -- but still good to know.

Settings now:
Code: [Select]
Start: fast, quality: best, ignore:flv;m4a, priority: ogg;opus;webm;mp4;, prefer-audio-only: yes
Downloading: foobar2000+ffmpeg, decode: mp4;webm;3gp;ogg, FFmpeg: no
Search-autocomplete: yes, album-art: no, proxy: no
Video: yes, resolution: 360p, subtitles: yes, ignore:mp4-vo, priority: , show: auto


Not sure why it says "FFmpeg: no" above in settings? I have FFmpeg installed and component points to the correct place and the component can see (Found = Yes) all the required *.dlls.

C.
Title: Re: foo_youtube
Post by: WilB on 2014-09-14 17:17:35
I am enjoying 1.3, especially as it now appears that most audio is now at AAC 256kbs.

However, I am confused by what the following means: "AAC 256kbps is tricky, it appears even for the clips which definitely haven't such quality".

So can the bitrates displayed in properties or status bar be relied upon as being correct; i.e. if it says its 254kbps the playing track is at this bitrate and not say 64kbps (setting is "Prefer a media file with best available audio")?

Incidentally one minor point is that in properties and status bar it always says 254kbps and not 256kbps (it is correct in youtube source history) - but may be that's due to foobar200 analysing the track for properties/status bar display and you have no control.

Another minor point is the priority with the setting "Prefer a media file with best available audio". It seems that audio at 48000Hz is always preferred to 44100Hz regardless of the bitrate. Thus Opus 48000Hz 160kbps is chosen instead of M4a 44100Hz 256kbps, while I thought the bitrate might have higher priority when the Hz aren't that different.

All the above applies to audio playback only. Video playback is not enabled.
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-15 12:49:34
3dyd, about video , on my system if i set video quality larger than 360p, then video have interruption and problem with synchronization, even if i manualy click play. I assume that this is because internet speed.

It is not necessary because of Internet speed. As for me, more or less problems have all formats except regular mp4 (i.e. mp4 with aac, it differs with video-only mp4), even if mp4 filesize is noticeably greater than filesize of video-only streams with equivalent quality. So my current recommendation regarding video - use only mp4 and disable all others through Features -> Video -> 'Formats to ignore'.

About mp4 quality. Available mp4 qualities are 360p (always) and 720p (if clip has such quality). Qualities greater than 720p on Youtube presented only via video-only streams. Between 360p and 720p there are only 480p quality and it also almost always presented only via video-only streams (except rare cases with 3D videos).

Also note about video & audio synchronisation. If audio stream is not seekable (e.g. m4a) then synchronisation workarounds will not work. So if video playback is important then better to disable m4a. As for me in this case is better to just disable all except ogg which now available for all clips.

Not sure why it says "FFmpeg: no" above in settings? I have FFmpeg installed and component points to the correct place and the component can see (Found = Yes) all the required *.dlls.

Which FFmpeg binaries you are using? I've checked by different ways and cannot reproduce this. If it says no, then FFmpeg will be not used. Btw, info about what are used for decoding and downloading shows in foobar console at track opening. The same is with video at its opening.

Also you better select in Downloading only foobar2000. Since some time content on Youtube can appear also via https from time to time (instead of http) and ffmpeg builds on Windows can't use https.

However, I am confused by what the following means: "AAC 256kbps is tricky, it appears even for the clips which definitely haven't such quality".

Actually this concerns OGG 192kbps too. Look for example on this clip (https://www.youtube.com/watch?v=XCGQiGEYl4Y). Before the moment when audio-only qualities appeared the max audio quality within available video files there was 96-128kbps. Now there are also 192kbps ogg and 256kbps AAC. So can be two possibilities. They have original quality with audio bitrate >=256kbps. Or they transcoded available source to aac/ogg with higher bitrate. Personally I not really believe in the first variant.

So can the bitrates displayed in properties or status bar be relied upon as being correct;

Most likely you have there actual bitrate info from the decoder i.e. it is definitely correct.

Incidentally one minor point is that in properties and status bar it always says 254kbps and not 256kbps (it is correct in youtube source history)

History shows expected bitrate of the stream which may differ with the actual bitrate. More info about quality estimation are here (http://fy.3dyd.com/home#playback_start).

It seems that audio at 48000Hz is always preferred to 44100Hz regardless of the bitrate. Thus Opus 48000Hz 160kbps is chosen instead of M4a 44100Hz 256kbps, while I thought the bitrate might have higher priority when the Hz aren't that different.

Yeah, frequency currently has first priority along with the channels count. I agree, need to do something with this.
Title: Re: foo_youtube
Post by: carpman on 2014-09-16 02:18:58
Not sure why it says "FFmpeg: no" above in settings? I have FFmpeg installed and component points to the correct place and the component can see (Found = Yes) all the required *.dlls.

Which FFmpeg binaries you are using? I've checked by different ways and cannot reproduce this. If it says no, then FFmpeg will be not used. Btw, info about what are used for decoding and downloading shows in foobar console at track opening. The same is with video at its opening.

Also you better select in Downloading only foobar2000. Since some time content on Youtube can appear also via https from time to time (instead of http) and ffmpeg builds on Windows can't use https.

Console shows it's using foobar2000 to decode:
Code: [Select]
Opening track for playback: "www.youtube.com/watch?v=T_1ACA-fFJ8"
3dydfy, opening mp4: download - foobar2000, decode - foobar2000
3dydfy, video opening (http): download - LAV Filters

As for FFmpeg version:
Code: [Select]
FFmpeg version: 2014-02-21 git-8c55ff3
  libavutil      52. 65.100 / 52. 65.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  1.103 /  4.  1.103
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100


Settings:
Code: [Select]
Start: fast, quality: best, ignore:flv;m4a, priority: ogg;opus;webm;mp4;, prefer-audio-only: yes
Downloading: foobar2000+ffmpeg, decode: mp4;webm;3gp;ogg, FFmpeg: no
Search-autocomplete: yes, album-art: no, proxy: no
Video: yes, resolution: 360p, subtitles: yes, ignore:mp4-vo, priority: , show: auto

Useful to know about https incompatibility as I use HTTPS Everywhere from EFF (https://www.eff.org/https-everywhere) so from now when I paste a youtube url from browser I'll just paste the www.address without the https://.

C.
Title: Re: foo_youtube
Post by: boolz on 2014-09-16 09:11:11
Hello, im having strange problem with the plugin, it stops right after 1:03 on each video that i listen, seeking is also unavailable
Plugin version - foo_youtube_1.3_preconf
Foobar 1.3.3

Console output:

Components loaded in: 0:00.131226
Configuration read in: 0:00.006035
Watching: D:\Music
Watching: D:\Download\Music
User Interface initialized in: 0:00.096200
w7shell: init started
w7shell: GDI+ initialized
w7shell: COM initialized
w7shell: running on Windows NT 6.1.7601 Service Pack 1
w7shell: DWM composition enabled
w7shell: WA_DISALLOW_PEEK successfully set
w7shell: WA_DISALLOW_PEEK successfully set
w7shell: WA_HAS_ICONIC_BITMAP successfully set
w7shell: WA_FORCE_ICONIC_REPRESENTATION successfully set
w7shell: WA_FLIP3D_POLICY successfully set
Skype playing notifications: Pending authorization.
Skype playing notifications: Connection successful.
w7shell: all green
3dydfy, ffmpeg inited: Lavf 55.43.100, Lavc 55.66.100, Lavu 52.89.100, Lavr 1.3.0
Startup time : 0:00.816661
w7shell: taskbar button create notification got
Opening track for playback: "3dydfy://youtube.com/watch?v=U-uMfPrP-2g"
3dydfy, opening m4a (http): download - foo_youtube, decode - ffmpeg
Unable to resume decoding at 1:03.274 (Unsupported format or corrupted file):
"3dydfy://youtube.com/watch?v=U-uMfPrP-2g"
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-16 15:35:28
As for FFmpeg version:
Code: [Select]
FFmpeg version: 2014-02-21 git-8c55ff3

Thanks for info! Minimal required ffmpeg version seems was changed after adding some stuff previously and checking if ffmpeg version is too old or not currently is incorrect so in your case ffmpeg is too old but component does not report this. I'll fix this but anyway you need to update ffmpeg to some newer version (2.2 and above, any starting from 2014-02-25 git-a8ad7e4 if be exact).

@boolz, I'll place here conclusion of your mail to not leave this problem opened.
In his case problem was solved by full reset of component preferences via deleting component CFG file.

UPD:

Useful to know about https incompatibility as I use HTTPS Everywhere from EFF so from now when I paste a youtube url from browser I'll just paste the www.address without the https://.

No, it is not about this. Component downloads page and related stuff by itself, protocol here is not important, it can use any of them. Final result of downloading and analysis is url to audio/video file which will be passed then (depending of 'Media downloading' preferences) to ffmpeg / foobar / foo_youtube in case of audio and to LAV Filters / foobar in case of video. Important is protocol of this media file because ffmpeg and LAV Filters can't use https. And protocol of this file does not depend of the original clip page url.
Title: Re: foo_youtube
Post by: carpman on 2014-09-16 15:56:32
@ 3dyd

Excellent. Thanks for the clarification and info. Have updated ffmpeg and now console confirms ffmpeg is the decoder and also your component no longer says "FFmpeg: no".
So thanks again for your patience and I'm glad you'll include an FFmpeg version check in a future release.

C.
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-17 11:20:46
New version 1.3.1

Changelog:
- fixed checking of minimal required ffmpeg version
- fixed audio quality comparing (no priority for higher frequency in case of Opus)
- changed default settings for preferred and ignored video formats
Title: Re: foo_youtube
Post by: musikomaniak on 2014-09-17 13:17:45
New version 1.3.1


Thanks 3dyd.
No problem for me
Title: Re: foo_youtube
Post by: themis on 2014-09-17 18:10:16
so i tested this, works great

one problem though, i cant jump within the file if its AAC Codec. any help please?
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-18 08:41:00
Currently this is not possible. If this is critical, consider using Vorbis/Opus instead of AAC.
Title: Re: foo_youtube
Post by: mobyduck on 2014-09-20 10:37:26
Would it be possible to add an option so that searches from UI element send results to the specified playlist instead of the active playlist?

Thanks.

Alessandro
Title: Re: foo_youtube
Post by: foobar_newbie on 2014-09-22 06:49:47
great stuff!
I have a problem though - it fails randomly if using "foobar2000" processing, like not just stutters but completely shuts off and won't resume playback.
with "foo_youtube" it works great so far, but when I start 10 hour sea shore sounds it just "starting" foreeeever  so I can't watch long videos.

my connection is 100 mbps DL/UP and my PC is gaming rig, so it's beefy
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-22 12:50:06
Would it be possible to add an option so that searches from UI element send results to the specified playlist instead of the active playlist?

Maybe search within component main window can help? (menu View -> Youtube Source -> Search tab) It has more options related to destination playlist, check there context menu of the search results. In any case itegrated search will remain to use only active playlist but I can extend options in this context menu if need.

it fails randomly if using "foobar2000" processing

Randomly at all? I.e. it may fail, for example, in the first minute? Or it stops after noticeable time from playback start?

like not just stutters but completely shuts off and won't resume playback.

Does it show any message? Or just goes to the next song?

with "foo_youtube" it works great so far, but when I start 10 hour sea shore sounds it just "starting" foreeeever

Ok, I'll check this. Also, if you didn't yet, try preconf version from download page (after install hit 'Reset page' in Decoder tab from component preferences).
Title: Re: foo_youtube
Post by: foobar_newbie on 2014-09-22 18:27:37
Would it be possible to add an option so that searches from UI element send results to the specified playlist instead of the active playlist?

Maybe search within component main window can help? (menu View -> Youtube Source -> Search tab) It has more options related to destination playlist, check there context menu of the search results. In any case itegrated search will remain to use only active playlist but I can extend options in this context menu if need.

it fails randomly if using "foobar2000" processing

Randomly at all? I.e. it may fail, for example, in the first minute? Or it stops after noticeable time from playback start?

like not just stutters but completely shuts off and won't resume playback.

Does it show any message? Or just goes to the next song?

with "foo_youtube" it works great so far, but when I start 10 hour sea shore sounds it just "starting" foreeeever

Ok, I'll check this. Also, if you didn't yet, try preconf version from download page (after install hit 'Reset page' in Decoder tab from component preferences).

I had my playback errors turned off.
anyway so I enabled error showing again and here's what I got (with foobar2000 decoder):
Quote
Playback error
Decoding failure at 3:16.766 (Connection error):
"3dydfy://youtube.com/watch?v=g2AKB7g3hr0"

I was using foo_youtube all day yesterday and it failed me too (just one time though, so still much better than other decoder, but still can't watch long videos.. so here's that)
and I did install preconf version from the beginning, in fact the only setting I've changed is "play best available audio" because well.. I want to listen to high quality - maybe that's the problem (can't imagine why though, considering my internet speed).
also I checked history tab and it's always "m4a only audio 256" any time I look (which is good I presume?)
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-24 17:35:48
Ok, let see from other side. Paste here yours component preferences (Help -> Youtube Source -> Copy settings to Clipboard) and the link which starting forever. Also which Windows version do you have?

>> also I checked history tab and it's always "m4a only audio 256" any time I look (which is good I presume?)
Yes, it the best available audio quality on Youtube (but it is not seekable)
Title: Re: foo_youtube
Post by: epix on 2014-09-28 09:11:19
Hi, im wondering how can i load more than 100 songs from playlist?
i know that its limited by youtube by default but i know how to bypass it but i cant do it without source code of this component.
If u wanna try it, this is url im trying to parse > https://www.youtube.com/playlist?list=FLG_q...ddpEgMgsv6de_Tg (https://www.youtube.com/playlist?list=FLG_q0PJSddpEgMgsv6de_Tg)

Thanks for any response and yeah i would be thrilled to have source of this great component
Title: Re: foo_youtube
Post by: epix on 2014-09-28 19:13:35
Hi, im wondering how can i load more than 100 songs from playlist?
i know that its limited by youtube by default but i know how to bypass it but i cant do it without source code of this component.
If u wanna try it, this is url im trying to parse > https://www.youtube.com/playlist?list=FLG_q...ddpEgMgsv6de_Tg (https://www.youtube.com/playlist?list=FLG_q0PJSddpEgMgsv6de_Tg)

Thanks for any response and yeah i would be thrilled to have source of this great component

Omg im retard, i had bad setting in foobar because i didnt push apply and it was acting weirdly, now i have all songs loaded.
Title: Re: foo_youtube
Post by: 3dyd on 2014-09-29 13:31:43
Youtube limit is 1000 clips from the feed. Component by default returns first 100 playable clips (clips which cannot be played due any reason are ignored and not counted). This default value (100 clips) can be changed through component preferences Features -> Max feed items count.
Title: Re: foo_youtube
Post by: ArchCarrier on 2014-10-03 07:42:13
Like other users, I also have lots of dropouts in the sound (I don't use the video function). This video (http://youtube.com/watch?v=_w7lkQoJmqY) stutters exactly every ten seconds: so when the timer jumps from 0:09 to 0:10 (and 0:19 to 0:20, etc.), it hangs a moment and then plays on. My settings are below. Any suggestions?
Code: [Select]
Start: fast, quality: audio-bitrate 128 kbps, ignore:webm;flv;opus, priority: , prefer-audio-only: yes
Downloading: foobar2000, decode:
FFmpeg: Lavf 55.43.100, Lavc 55.66.100, Lavu 52.89.100, Lavr 1.3.0
Search-autocomplete: yes, album-art: no, proxy: no
Video: no
Title: Re: foo_youtube
Post by: 3dyd on 2014-10-03 08:39:25
You configured ffmpeg but have not selected any format to decode by it. So decoding goes by foobar. According to your settings component selects to play audio-only WebM files with Vorbis codec (they called Ogg in the component). And foobar have some problems with playing such media files with your current settings. Solutions which I can suggest (preferred come first): select all formats in 'Decode its own' OR add ogg to 'Formats to ignore' OR select foo_youtube in 'Media downloading'.

Btw, if you can, please check last 1.3.4 beta, there are some fix for Matroska in changelog, maybe it relates also to this problem (WebM is subset of Matroska).
Title: Re: foo_youtube
Post by: ArchCarrier on 2014-10-03 08:54:30
Thanks! Select all formats in 'Decode its own' did the trick. Where can I find the beta? It's not on the download page.
Title: Re: foo_youtube
Post by: 3dyd on 2014-10-03 09:34:43
>> Where can I find the beta? It's not on the download page.
Sorry, I meant last foobar beta, not the component.
Title: Re: foo_youtube
Post by: Clauu on 2014-10-08 13:17:42
I'm also having sound dropouts on some links although i selected ffmpeg for decodes it;s own, foo_youtube for others, decode it's own mp4;m4a;webm;ogg;opus;3gp;flv
Title: Re: foo_youtube
Post by: 3dyd on 2014-10-08 20:26:36
This info is not enough to suggest solution, paste your settings here (menu Help -> Youtube Source -> Copy settings to Clipboard).
Title: Re: foo_youtube
Post by: Clauu on 2014-10-11 12:28:21
Code: [Select]
Start: fast, quality: best, ignore:webm;ogg;m4a;flv, priority: , prefer-audio-only: yes
Downloading: foo_youtube+ffmpeg, decode: mp4;m4a;webm;ogg;opus;3gp;flv, FFmpeg: no
Search-autocomplete: yes, album-art: yes, remove-black: yes, limit: 100, proxy: no
Video: yes, resolution: 720p, subtitles: yes, ignore:mp4-vo, priority: , show: auto

I'm trying to watch a 8min clip, on a 4min it;s working there are no interrupts but the video is delayed from the sound..
Title: Re: foo_youtube
Post by: ernstblaauw on 2014-10-16 19:55:47
Hi, first of all: thanks for this great extension!
I got a problem fetching a playlist: it only adds the first song to the playlist. It is http://youtu.be/BPtdSr6OwJA?list=RDBPtdSr6OwJA (http://youtu.be/BPtdSr6OwJA?list=RDBPtdSr6OwJA).

My settings are:
Code: [Select]
Start: fast, quality: best, ignore:webm;ogg;m4a;flv, priority: , prefer-audio-only: yes
Downloading: foobar2000, decode: , FFmpeg: no
Search-autocomplete: yes, album-art: yes, remove-black: yes, limit: 100, proxy: no
Video: no
Title: Re: foo_youtube
Post by: 3dyd on 2014-10-17 08:10:35
@Clauu
In default configuration without FFmpeg for audio playback used best available audio from formats suported by foobar. This is your case because FFmpeg is not configured - not enough to setup 'Decode it's own', need also provide FFmpeg binaries. For HD videos best available audio will be within huge 720p videos so they are used as audio sources at playback. And separately one more 720p video used at video playback by your settings. So maybe this is just bandwidth problems. If the only problem is audio/video synchronisation - try 'Synchronize video' and 'Synchronize playback' actions in video window context menu. Otherwise select smaller quality for audio and video and select foobar2000 in 'Media downloading'. Or download preconfigured component version and reset Decoder and Features tabs.

@ernstblaauw
If URL contains both playlist id and single clip id then the component treats it as a single clip URL (more info (http://fy.3dyd.com/#feeds_playlist)).  In your case http://youtu.be/BPtdSr6OwJA (http://youtu.be/BPtdSr6OwJA) is a single clip URL so component adds just this clip. For youtu.be shortener I don't know a way for shortening a playlist URL without single clip id so the only way I can suggest - use canonical playlist URL. In this case it will be http://youtube.com/playlist?list=RDBPtdSr6OwJA (http://youtube.com/playlist?list=RDBPtdSr6OwJA)
Title: Re: foo_youtube
Post by: onirwai on 2014-10-23 21:45:12
Where should I report the following problems?

Resume playback should re-load video if the break was long
If I'm listening to a long mixtape and I pause playback and forget about it for a few minutes, resuming playback will play a little longer (what's buffered) then skip to the next track. I should mention that I have Foobar set to Save playback state, and when I close and restart Foobar playback resumes from where I left off without a hitch.

Can't save .m3u/.m3u8 playlist
When I create a playlist in foobar filled with YouTube songs (3dydfy:// paths) and try to save it as my-playlist.m3u it produces an empty file. Saving as .fpl works, so I guess it's a paths issue. Manually pasting the song URLs in a text file and saving it as my-playlist.m3u also works!

In closing, I'd like to reinstate my plea for a new feature: subreddit playlists!
Thank you for the component!!
Title: Re: foo_youtube
Post by: onirwai on 2014-10-24 04:06:13
Subreddit Playlists
Subreddit to YouTube Source Bookmarklet - Play YouTube music from subreddits in Foobar (https://gist.github.com/akaleeroy/b3de63c46ee43d413913)
Generates .M3U playlist of all YouTube videos in current subreddit listing for use in foobar2000 with the foo_youtube component.

How to install

How to use


Thanks again @3dyd for the component and I hope this humble hack makes it into a proper feature!
Title: Re: foo_youtube
Post by: mobyduck on 2014-10-25 07:46:27
Would it be possible to add an option so that searches from UI element send results to the specified playlist instead of the active playlist?

Maybe search within component main window can help? (menu View -> Youtube Source -> Search tab) It has more options related to destination playlist, check there context menu of the search results. In any case itegrated search will remain to use only active playlist but I can extend options in this context menu if need.
Hi and apologies for the late reply.

I wasn't aware of that menu entry, but I'm afraid it's not what I was looking for. I would like to give the possibility to search YT from fb2k to a non-tech savvy user and, at the same time, be sure that no playlists are accidentally wiped.

A tab with a dedicated panel seemed to me the most user friendly option: if forcing a destination playlist there is not possible, I think I'll stick with the context menu search (right click on a song -> Yoututbe Source -> Search artist songs), although this solution is not as flexible as a free text search.

Thanks anyway.

Alessandro
Title: Re: foo_youtube
Post by: 3dyd on 2014-10-25 22:16:53
If I'm listening to a long mixtape and I pause playback and forget about it for a few minutes, resuming playback will play a little longer (what's buffered) then skip to the next track.

Yes, it plays what was buffered before you hit pause. And does not continue playing because connection after some time becomes invalid. It's the same as for example with online radio. Decoder does not know when next audio portion requested from it - after long pause or at usual playback workfow or by any other scenario. So this cannot be fixed without uncertain workarounds.

Can't save .m3u/.m3u8 playlist

Interesting. If save playlist with 3 tracks (file, online radio URL and 3dydfy:// Youtube link) then resulting file will contain 2 tracks: local file path and online radio URL. Unofficial m3u specification (as I googled) allows local file paths and URLs so probably this is the explanation.

I'd like to reinstate my plea for a new feature: subreddit playlists!

Nothing else than Youtube itself within this component, sorry. But I glad to add any stuff which will help to make other things over this component, as it was with metadata overriding (http://fy.3dyd.com/#metadata_overriding) (feature request for last.fm Youtube radio [1] (http://www.hydrogenaud.io/forums/index.php?showtopic=105108), [2] (http://www.hydrogenaud.io/forums/index.php?showtopic=105522))

I wasn't aware of that menu entry, but I'm afraid it's not what I was looking for. I would like to give the possibility to search YT from fb2k to a non-tech savvy user and, at the same time, be sure that no playlists are accidentally wiped.

I think this is not a problem. If playlists was accidentally wiped then you always can turn it back by menu Edit -> Undo (or Ctrl+Z in default configuration).
Title: Re: foo_youtube
Post by: Ribtin on 2014-10-29 13:26:29
Sorry if this has been asked before, but is it possible to use this plugin and search and play youtubevideos within foobar, whilst controlling foobar through an ipad remote app?

I'm trying to figure out how I can sit in my livingroom (where my stereo is) and play music from my computer (which is in another room). Everything works perfect when I control foobar through a remote app, but I'm not sure what to do if I want to play something off youtube.
Title: Re: foo_youtube
Post by: AlphaWave on 2014-10-29 19:20:29
This plugin works for me and I hear audio.  But where is the video output played back (I don't see any video clip - just static album art in my album art viewer)?  Is there a video display window that I am not seeing for some reason?
Title: Re: foo_youtube
Post by: 3dyd on 2014-10-30 10:38:03
Sorry if this has been asked before, but is it possible to use this plugin and search and play youtubevideos within foobar, whilst controlling foobar through an ipad remote app?

I'm trying to figure out how I can sit in my livingroom (where my stereo is) and play music from my computer (which is in another room). Everything works perfect when I control foobar through a remote app, but I'm not sure what to do if I want to play something off youtube.

If Youtube clips are already in the playlist then there will be no problems, they are usual tracks so remote app does not need anything additional to control them (play, pause, retrieve album art etc).
About Search on Youtube - this is not standard thing thus it cannot be controlled from the outside.

This plugin works for me and I hear audio.  But where is the video output played back (I don't see any video clip - just static album art in my album art viewer)?  Is there a video display window that I am not seeing for some reason?

Video displaying is separated, independent of audio thing which should be enabled explicitly. Use checkbox 'Enable video playback' in Preferences -> Youtube Source -> Features. After this video window will be available in View -> Visualizations -> Youtube Video.
Title: Re: foo_youtube
Post by: ieee754 on 2014-10-31 12:20:28
Amazing plugin, thank you for your work! The best thing is that I can finally use my sound effects from foobar in youtube playback.

It would be really great if it also could record and cache previously played songs instead of downloading them every time.
Title: Re: foo_youtube
Post by: Steve Forte Rio on 2014-11-01 19:06:07
Hi, 3dyd!

Recently I did some tests of YouTube audio encoding quality (http://audiophilesoft.ru/publ/my/youtube_audio_quality/11-1-0-285) (in Russian; also see: Google-translated version (https://translate.google.com/translate?hl=ru&sl=ru&tl=en&u=http%3A%2F%2Faudiophilesoft.ru%2Fpubl%2Fmy%2Fyoutube_audio_quality%2F11-1-0-285)). First time I couldn't get VP9 encoding (especially WebM Vorbis AO), but then I got it by quickly rising the popularity of my test video.

In your manual you write:

Quote
Also note that not every format may be present on particular clip page, it depends of original quality of the video and few other reasons.


Do you know what this reasons exactly are?

Because also you are saying about Opus AO files, but I have not encountered them at the service at all. And if conditions for VP9 encoding are something like enough traffic (as I understand), then what may be the conditions for Opus encoding?

Also do you have some examples of videos with Opus AO?

Thanks!
Title: Re: foo_youtube
Post by: Steve Forte Rio on 2014-11-01 22:29:21
And some feedback.

foobar2000 1.3.4 + foo_youtube 1.3.1_preconf with this video (http://www.youtube.com/watch?v=o4wWfkzBND0).

1. Plugin can't find MP4 stream when Playback Start: Slow is selected. There is also some strange behavior with Fast and Medium: if I select to prefer MP4, it plays M4A, but when I additionaly select to ignore everything but MP4, it finally begins to play MP4.

(Prefer AO is disabled)

2. You say that for FFmpeg Media downloading M4A seeking should work, but actually it doesn't. With foo_youtube or FFmpeg Medi downloading type I'm able to seek MP4, but not M4A (MP4 AO). Console shows 3dydfy, opening m4a (http): download - ffmpeg, decode - ffmpeg, but seeking is not available.


Hopefully you will fix it.

Thanks.


P.S. Where do foo_youtube and FFmpeg cache downloaded files?
Title: Re: foo_youtube
Post by: 3dyd on 2014-11-05 15:55:59
It would be really great if it also could record and cache previously played songs instead of downloading them every time.

Noted, however I would not expect this anytime soon, sorry.

Recently I did some tests of YouTube audio encoding quality (http://audiophilesoft.ru/publ/my/youtube_audio_quality/11-1-0-285) (in Russian; also see: Google-translated version (https://translate.google.com/translate?hl=ru&sl=ru&tl=en&u=http%3A%2F%2Faudiophilesoft.ru%2Fpubl%2Fmy%2Fyoutube_audio_quality%2F11-1-0-285)).

Interesting article!

In your manual you write:

Quote
Also note that not every format may be present on particular clip page, it depends of original quality of the video and few other reasons.


Do you know what this reasons exactly are?

Nope. Also Youtube changes available formats quite often. It is additional reason for so many options for playback source tuning.

Because also you are saying about Opus AO files, but I have not encountered them at the service at all.

It appears randomly for the same clip. I.e. you can open the clip 20 times and see it just once. The same thing was with VP9 codec when it just started. After few months VP9 become constantly available for the clips where it presented. Maybe it is a kind of beta testing in real conditions by Youtube. This also means that Opus may just stop to appear (or already stopped) as it currently seems so for soft-made 3D versions of the clips and for many usual (video+audio) qualities.

Also do you have some examples of videos with Opus AO?

Not much, anyway look in PM.

foobar2000 1.3.4 + foo_youtube 1.3.1_preconf with this video (http://www.youtube.com/watch?v=o4wWfkzBND0).

1. Plugin can't find MP4 stream when Playback Start: Slow is selected.

I.e. no MP4 at all (check View -> Youtube Source -> History tab) or component just does not select it for playback?

There is also some strange behavior with Fast and Medium: if I select to prefer MP4, it plays M4A, but when I additionaly select to ignore everything but MP4, it finally begins to play MP4.

(Prefer AO is disabled)

'Priority of formats' used if there are more than one media with best match to preferred quality. E.g. you selected to play 'nearest to 128kbps audio' and there are two streams AAC and Vorbis with this bitrate. Probably in your case source determines before 'Priority of formats' used because best MP4 there has only 96kbps quality.

2. You say that for FFmpeg Media downloading M4A seeking should work, but actually it doesn't. With foo_youtube or FFmpeg Medi downloading type I'm able to seek MP4, but not M4A (MP4 AO). Console shows 3dydfy, opening m4a (http): download - ffmpeg, decode - ffmpeg, but seeking is not available.

Thanks for report, I'll check this. But note that with seeking it also gives big delay at opening (depends of clip duration, e.g. in my case approximately +1 second for every 2 minutes of duration).

P.S. Where do foo_youtube and FFmpeg cache downloaded files?

Temp files used only by foo_youtube from Media downloading combobox. They are '3dydfy<number>.tmp' files in temp folder of current user.
Title: Re: foo_youtube
Post by: AlphaWave on 2014-11-05 20:58:17
Got video working great.  Been waiting for someone to make a plugin like this for years - respect to you 

One further question - is it possible to scrub the playing track with video (preferably with waveform seekbar, but if not, with the built in scrubber)?
Title: Re: foo_youtube
Post by: Steve Forte Rio on 2014-11-06 20:41:54
Thanks for reply.

foobar2000 1.3.4 + foo_youtube 1.3.1_preconf with this video (http://www.youtube.com/watch?v=o4wWfkzBND0).

1. Plugin can't find MP4 stream when Playback Start: Slow is selected.

I.e. no MP4 at all (check View -> Youtube Source -> History tab) or component just does not select it for playback?


It shows that there is MP4 360p Audio+Video stream:

(https://dl.dropboxusercontent.com/u/93067701/snap222.PNG)

but in the console I see:

Quote
3dydfy, opening matroska (http): download - foo_youtube, decode - foobar2000
Unable to open item for playback (3dydfy: unexpected media format (matroska|ogg)):
"3dydfy://www.youtube.com/watch?v=o4wWfkzBND0"


Note that I selected to download and decode everything with ffmpeg:

(https://dl.dropboxusercontent.com/u/93067701/snap123.PNG)
Title: Re: foo_youtube
Post by: 3dyd on 2014-11-07 12:50:09
One further question - is it possible to scrub the playing track with video (preferably with waveform seekbar, but if not, with the built in scrubber)?

Scrub - you mean seek simultaneously with moving some slider or dragging the mouse? Yet not sure that this is possible and will work well with online resources, need check. And it can be done only using some built in solution.


@Steve Forte Rio
Now all clear. At 'Playback Start -> Slow' component probes each media file with FFmpeg to get its exact quality info. FFmpeg from LAV returns little different (unexpected, I'll fix this) format string for WebM so component just uses first part of format string as is (and you see 'matroska'). But this format works as others: you can manually add 'matroska' in 'Formats to ignore' to disable it or in 'Decode its own' to decode it with FFmpeg. Currently by your settings is is not ignored so it selects for playback (because has better audio bitrate, 128 vs 96 in mp4). And it is not selected to decode by FFmpeg so decodes by foobar and you see this error (in this case component need provide for foobar MIME type and it can do this only for known formats).

Btw, you can use 'Help -> Youtube Source -> Copy settings to Clipboard' to do not waste your time with making a screenshot.
Title: Re: foo_youtube
Post by: Steve Forte Rio on 2014-11-11 18:56:15
Thank you. I added matroska to "Decode it's own" and to the preferred formats. But  ffmpeg also doesn't want to deocde it:

Quote
3dydfy, opening matroska (https): download - ffmpeg, decode - ffmpeg
Unable to open item for playback (Unsupported file format):
"3dydfy://www.youtube.com/watch?v=o4wWfkzBND0"
Title: Re: foo_youtube
Post by: 3dyd on 2014-11-12 13:38:30
This is another issue. In 'Media downloading' you select how to download the data. In 'Decode its own' - how to decode it. FFmpeg can decode it. But it cannot download from https (at least builds from Zeranoe and LAV Filters). Since some time the same clip may return http at first opening and https and next, I don't know any reasons or the way to control this (even check your Console quotation in this thread, in last one was https when in previous http). So select in 'Media downloading' foobar2000 or foo_youtube, they both can use https.
Title: Re: foo_youtube
Post by: Steve Forte Rio on 2014-11-13 08:32:52
So select in 'Media downloading' foobar2000 or foo_youtube, they both can use https.


But I need MP4 seeking

Quote
Seeking disabled (and playback start is fast) only if use foobar2000 or foo_youtube in option Media downloading described above.

Title: Re: foo_youtube
Post by: ArchCarrier on 2014-11-13 08:43:09
Since last night I get a lot of errors like these:
Code: [Select]
Unable to open item for playback (Forbidden (403)):
"3dydfy://youtube.com/watch?v=_w7lkQoJmqY"

It happens with old items as well as tracks that I've just added.
Title: Re: foo_youtube
Post by: 3dyd on 2014-11-13 13:33:04
@Steve Forte Rio
Ok. I'll add checkbox to allow this in Advanced preferences. I thought that all prefer fast playback start than seeking possibility.

@ArchCarrier
Not seen it for a long time. Ok, checking.
Title: Re: foo_youtube
Post by: 3dyd on 2014-11-13 18:01:57
New version 1.4

Changelog:
- additional formats for Youtube and several fixes (including 403 error)
- option for allow seeking over M4A in Advanced preferences
- video playback completely rewritten in more proper way. Should be more stable and allows to add new stuff more easely. Video window UI moved to main UI thread (video opening goes in another thread)
- video background settings extended and moved to separated dialog. See video context menu Window -> Appearance
- possibility to lock video window relative to the main window. See video context menu Window -> 'Lock relative to main window'
- simple seekbar in video fullscreen. Shows when mouse is at the bottom of the window

Also note that minimal required FFmpeg version now is 2.3
Title: Re: foo_youtube
Post by: mire777 on 2014-11-14 09:24:47
Like new version  video window now stays in foobar panel.
Only i would like to see solution for 'playback stop' when go to next track..
Title: Re: foo_youtube
Post by: Wolfbane on 2014-11-14 10:32:57
Seems like the new patch fixed the broken You-Tube songs that just recently popped up.
Awesome fast work... Keep up the awesome work.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Still it seems like 30% of the songs in my playlist have "Artist" as "?", tried to edit song, change info, save and next time that song comes in the playlist it resets the saved song artist and replaces it with "?"

Here is a song that does not work for me reg renaming ( 3dydfy://www.youtube.com/watch?v=AH9L5I6N-ZU )
Title: Re: foo_youtube
Post by: 3dyd on 2014-11-14 11:20:01
Still it seems like 30% of the songs in my playlist have "Artist" as "?", tried to edit song, change info, save and next time that song comes in the playlist it resets the saved song artist and replaces it with "?"

Such manually edited fields are stored in tech info fields of the track, thereby they exist only until exist the track. If remove the edited track from all playlists and close the program then manually edited tags will be lost (if not close the program then they will be available till it keeps data for Undo).
Title: Re: foo_youtube
Post by: Steve Forte Rio on 2014-11-14 23:09:46
New version 1.4

Changelog:
- additional formats for Youtube and several fixes (including 403 error)
- option for allow seeking over M4A in Advanced preferences
- video playback completely rewritten in more proper way. Should be more stable and allows to add new stuff more easely. Video window UI moved to main UI thread (video opening goes in another thread)
- video background settings extended and moved to separated dialog. See video context menu Window -> Appearance
- possibility to lock video window relative to the main window. See video context menu Window -> 'Lock relative to main window'
- simple seekbar in video fullscreen. Shows when mouse is at the bottom of the window

Also note that minimal required FFmpeg version now is 2.3


Thank you! Now foo_youtube downloading through HTTPS works well with seeking.
Title: Re: foo_youtube
Post by: emte on 2014-11-16 15:56:15
I can't load a video and get this error.

Can't start playback
Loading a file: Unspecified error

I get the window saying playback stopped. My media downloader is lav filters.

And when I set it to foobar2000 video window is just black.

Do you know what could be the problem?
Title: Re: foo_youtube
Post by: mire777 on 2014-11-17 05:35:46
On windows xp sp2 , i have this:
''Can't start playback
Connect source to the splitter: The owner SID on a per-user subscription doesn't exist''
(Video don't work. Sound is ok)

On windows 7 all works fine.


I use preconf. version on both computers..
Maybe this is because windows xp sp2 can't use latest lav filters...
Title: Re: foo_youtube
Post by: emte on 2014-11-17 10:33:48
I have preconfigured version of the component too. Yes, audio loads just fine, tough a bit too long (about 10-15 seconds?) and I don't have m4a seeking enabled. I'm using Windows 8.1 so it's probably something different.
Title: Re: foo_youtube
Post by: 3dyd on 2014-11-17 11:52:52
Would be better if you post exact use case to test it i.e. your settings (Help -> Youtube Source -> Copy settings to Clipboard) + some link which loads 10-15 sec and shows black screen in video (for video use foobar2000 in Features->Media downloading).
Title: Re: foo_youtube
Post by: emte on 2014-11-17 13:32:11
Code: [Select]
Start: fast, quality: audio-bitrate 180 kbps, ignore:, priority: ogg;opus, prefer-audio-only: yes
Downloading: foobar2000, decode: mp4;m4a;webm;ogg;opus;flv;3gp
FFmpeg: Lavf 56.4.103, Lavc 56.1.101, Lavu 54.7.100, Lavr 2.1.0
Search-autocomplete: yes, album-art: yes, remove-black: yes, limit: 100, proxy: no
Video: yes, resolution: 720p, subtitles: yes, ignore:mp4-vo;webm;webm-vo;flv, priority: mp4, show: manual-until-youtube


Every link loads this long (even 20 seconds - I've just measured) and I've always got black screen if downloading media is foobar. If LAV filters is selected it just says stopped and shows the error mentioned in my earlier post.
Title: Re: foo_youtube
Post by: 3dyd on 2014-11-17 15:49:09
Settings are ok. I can also advise install fresh portable foobar, install preconf component there (change only one setting - enable video playback) and try.
Also maybe issue relates to firewall or system proxy?

Every link loads this long (even 20 seconds - I've just measured)

I.e. this (https://www.youtube.com/watch?v=eZ69wyaIGMs) vs this (https://www.youtube.com/watch?v=vjnv4c2-NNE) opening the same time? (30 seconds vs 3 hours)
Title: Re: foo_youtube
Post by: emte on 2014-11-17 17:24:36
Installed fresh portable version and nothing changed. Both clips you gave took 10 seconds to open.
I don't know whether it's firewall or proxy related and I don't know how to check it.
Title: Re: foo_youtube
Post by: WilB on 2014-11-21 16:43:58
I have noticed that the latest version, 1.4, but not previous versions, seems to interact badly with the EBU R128 Normalizer (http://www.hydrogenaud.io/forums/index.php?showtopic=86444&hl=EBU+128). The EBU R128 Normalizer is useful for applying replay gain on the fly. I get sound dropouts and freezes of the visualisations within the last few seconds of track playback. I can reproduce this on a fresh portable foobar2000 1.3.5 install with all foo_youtube settings at install default (tested with both preconfig and non preconfig with resetting of configuration file when changed type). The only other plug-in installed is the EBU R128 Normalizer. Issue occurs as soon as EBU R128 Normalizer is added to the DSP chain; stops when remove. Issue occurs just before track change and during the last few seconds of the playing track when the next track to be played is a youtube track but not if it's a flac. Its not a big deal if its difficult to fix since its near the end of the track, but seeing as I spotted it I thought I would report it.

Like emte, I have noticed that youtube tracks are slower to load in 1.4. Tracks take ~8 secs after double clicking before the music starts as opposed to ~2 secs on previous versions. Again this is using a fresh portable foobar2000 1.3.5 install with all foo_youtube settings at install default (tested with both preconfig and non preconfig with resetting of configuration file when changed type) and has nothing to do with the EBU R128 Normalizer. Seeking over M4A is not enabled. This is on windows 8.1. Perhaps the two issues are related.
Title: Re: foo_youtube
Post by: mire777 on 2014-11-21 21:49:01
Just to confirm, as other says video load on double click is slower in v. 1.4.
m4a seeking work but i don't use this.
There is also problem with R 128 on track end.


Title: Re: foo_youtube
Post by: ArchCarrier on 2014-11-24 09:20:00
I can confirm the slow loading of clips since 1.4. I'm on XP SP3 and I have video and seeking disabled.

I also like to request a download feature. What I'd really like is a function that will download the file (by right-clicking and/or a keyboard shortcut) to a folder with the same audio quality as specified in the prefs, using the same metadata. It would be even greater if the downloaded file would automatically replace the YouTube version in a playlist.
Title: Re: foo_youtube
Post by: Wolfbane on 2014-11-24 14:29:49
Confirm, slower loading on clicking on songs, but I think it is even slower if you use "next song" button. So for me it seems to just be longer time when you simply change/load songs.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Also as mentioned an option to set "Download songs" and have it set to whatever folder you want.
And also what previously person wrote, so when a song starts then a downloaded version would have priority over online, You-Tube.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I sometimes get broken links "Not allowed in your country" is there any way to dissable country check ?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Is there any way to give us option to see the URL of songs prefered to notepad (songlist.txt) ?
For example, "export playlist to "notepad++" or some other text editing program
Also if you added this then have an option to import songlist from txt files.

Unable to open item for playback (Youtube Source:  This video has been removed by the user. Sorry about that.):
"3dydfy://www.youtube.com/watch?v=hXbwNUkaXtw"

Unable to open item for playback (Youtube Source:  This video is not available in your country. Sorry about that.):
"3dydfy://www.youtube.com/watch?v=SFR2IE2KiAs"


Reason for this is a few of these errors I get from time to time, where it is hard to find out what songs are the ones that are "broken"
But if I could export the entire playlist to notepad++ and use the search funktion there, then that would be easy.
Also importing "playlist" from pure txt files would also be nice.

So the exported/imported playlist would only look something like this in notepad.

www.youtube.com/watch?v=hXbwNUkaXtw
www.youtube.com/watch?v=SFR2IE2KiAs
www.youtube.com/watch?v=fZLv2G0Hhn4
www.youtube.com/watch?v=hfgGSLj1SPc

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Still it seems like 30% of the songs in my playlist have "Artist" as "?", tried to edit song, change info, save and next time that song comes in the playlist it resets the saved song artist and replaces it with "?"

Such manually edited fields are stored in tech info fields of the track, thereby they exist only until exist the track. If remove the edited track from all playlists and close the program then manually edited tags will be lost (if not close the program then they will be available till it keeps data for Undo).


So it is not possible to change the displayed "Artist" and "Title" in my playlist ?
You explained why doing the way I did it does not work. But you did not say if it was possible for me to do any other way so I Actually can see the correct Artist/Title in my songlist. So even if you explained it, you did not say if it was possible and if so how.
Title: Re: foo_youtube
Post by: Wolfbane on 2014-11-24 15:35:27
or maybe even make the export look like this, so you can actually search for some songs easier, add/remove/edit songs/list, and then export to Foobar.
But when you import songs to the playlist, it only takes the first line untill the first " "(space) is used, and all into like Artist/title info after is optional in settings before you hit the export button.


www.youtube.com/watch?v=SFR2IE2KiAs    @@@    AC/DC - The Furor
www.youtube.com/watch?v=fZLv2G0Hhn4    @@@    Iron Maiden - Be Quick Or Be Dead
www.youtube.com/watch?v=hfgGSLj1SPc    @@@    Iron Maiden - Fear Of The Dark (1992) Official Video HQ480p


Also this could be a nice way to send an entire playlist to another person, without forced to add all songs one at the time manually.
Title: Re: foo_youtube
Post by: 3dyd on 2014-11-26 07:18:11
Yeah, I see the opening delay increase. In new version switched to https everywhere. Using https instead of http takes more time at establishing the connection. Component also does now more requests to the server at opening - in some cases this gives more qualities and allows to play some restricted clips. All this together produces such a big delay. I'll try to optimise this, too big delay on Playback Start - Fast is definitely inappropriate!

I have noticed that the latest version, 1.4, but not previous versions, seems to interact badly with the EBU R128 Normalizer (http://www.hydrogenaud.io/forums/index.php?showtopic=86444&hl=EBU+128).

It is because of this delay. Normalizer waits for new data at opening new Youtube track so the pause appears (no matter current track is Youtube clip or not). And pause sounds at end of current track because normalizer has internal buffer few seconds length (depends of its latency value). Actually I see the delay even in previous component version if audio appears by https instead of http. Increasing playback buffer length (Preferences -> Playback -> Output -> Buffer length) to value greater than opening delay seems solves the issue.

I also like to request a download feature. What I'd really like is a function that will download the file (by right-clicking and/or a keyboard shortcut) to a folder with the same audio quality as specified in the prefs, using the same metadata. It would be even greater if the downloaded file would automatically replace the YouTube version in a playlist.

Noted, but as with similar caching (http://www.hydrogenaud.io/forums/index.php?act=findpost&pid=879077) request  I would not expect this anytime soon.

I sometimes get broken links "Not allowed in your country" is there any way to dissable country check ?

No, it checks on Youtube side and message is also from Youtube. If you anyway need the clip, you can use proxy to access it from allowed country.

Is there any way to give us option to see the URL of songs prefered to notepad (songlist.txt) ?

I definitely sure there already exist many ways to export tracks info from foobar. One of the ways - you can use Copy command on selected tracks in the playlist. How to generate text for copying can be configured through Preferences -> Advanced -> Display -> Legacy title formatting settings -> Copy command. Simple example:
Code: [Select]
$replace(%path%,3dydfy:/,http:/)


Also importing "playlist" from pure txt files would also be nice.

So the exported/imported playlist would only look something like this in notepad.

www.youtube.com/watch?v=hXbwNUkaXtw
www.youtube.com/watch?v=SFR2IE2KiAs
www.youtube.com/watch?v=fZLv2G0Hhn4
www.youtube.com/watch?v=hfgGSLj1SPc

Multiple links adding already possible (http://fy.3dyd.com/#add_dlg).
Title: Re: foo_youtube
Post by: Wolfbane on 2014-12-04 16:01:53
Not sure if you missed my question, so Ill write it again.

Still it seems like 30% of the songs in my playlist have "Artist" as "?", tried to edit song, change info, save and next time that song comes in the playlist it resets the saved song artist and replaces it with "?"


Such manually edited fields are stored in tech info fields of the track, thereby they exist only until exist the track. If remove the edited track from all playlists and close the program then manually edited tags will be lost (if not close the program then they will be available till it keeps data for Undo).


And then I replied this that I never got an answer to.
So it is not possible to change the displayed "Artist" and "Title" in my playlist ?
You explained why doing the way I did it does not work. But you did not say if it was possible for me to do any other way so I Actually can see the correct Artist/Title in my songlist. So even if you explained it, you did not say if it was possible and if so how.
Title: Re: foo_youtube
Post by: 3dyd on 2014-12-08 13:19:45
@Wolfbane
Edited metadata of playlist item stores in its technical info (kind of storage which foobar provides for playlist items). It exist while exist the item. You can edit metadata but you will lose it if remove item from the playlist. Maybe there exist some component which can store metadata or tech info outside of the playlist item but within component this is not possible now.
Title: Re: foo_youtube
Post by: 3dyd on 2014-12-08 13:23:35
New version 1.4.1

Changelog:
- playback start speed optimisation and settings extending. Along with optimisation Playback Start - Fast was splited to three variants. Each additional of them produces more requests to Youtube. At this moment using #2 gives more AO qualities (selected by default) and #3 sometimes gives additional regular videos, mostly soft-made 3D variants for the clips (this one was used in Fast from v1.4)
- removed ffmpeg media downloading. Youtube may provide media data using HTTPS instead of HTTP and at this moment FFmpeg builds on Windows cannot use HTTPS so selecting ffmpeg in Media downloading may result in error at the playback start. At other hand it has no special advantages over other downloading methods so decided to just remove it
Title: Re: foo_youtube
Post by: Wolfbane on 2014-12-08 17:57:36
@Wolfbane
Edited metadata of playlist item stores in its technical info (kind of storage which foobar provides for playlist items). It exist while exist the item. You can edit metadata but you will lose it if remove item from the playlist. Maybe there exist some component which can store metadata or tech info outside of the playlist item but within component this is not possible now.


Hmm..

"You can edit metadata but you will lose it if remove item from the playlist."

For me, the renaming does not work, and I never remove them from my playlist.
Everythime I play a song it seems to reload the info from You-Tube and overwrite anything I have edited.

- - - - - - - - - - - - - - - - - - - - - - - -

Run program in Admin mode.
I go to properties of a song, edit the "Artist" and "Title" press "Apply"
Close down the properties.
"Save playlist"
Close down FooBar, open up foobar.
next time that songs comes on, then it resets it.

Ofc this would happen without closing down FooBar and all other extra stuff I did.
So just change artist/title and next second put on song resets the info displayed.

And songs where never removed from the playlist

- - - - - - - - - - - - - - - - - - - - - - - -

Recorded a short video of me just doing that.
https://www.youtube.com/watch?v=rh7uVlv1BaI (https://www.youtube.com/watch?v=rh7uVlv1BaI)

- - - - - - - - - - - - - - - - - - - - - - - -

This is with the latest version v1.4.1
And also seems like the music starts before the video.
Title: Re: foo_youtube
Post by: 3dyd on 2014-12-09 08:03:36
For me, the renaming does not work, and I never remove them from my playlist.

Strange, it should work. Did you edit LargeFieldsConfig.txt ? Because the only thing I can suggest - info does not store to tech fileds because their length limit is too small. You can also try fresh portable foobar with just this component to check if all works.

And also seems like the music starts before the video.

For me this seems always so in case of WebM files. And MP4-VO takes too much time to open. So as for me better to disable all formats except MP4 and 3GP. MP4 is bigger than VO and has 720p max but opens fast and has no problems with audio synchronisation.
Title: Re: foo_youtube
Post by: carpman on 2014-12-09 12:29:20
This is with the latest version v1.4.1
And also seems like the music starts before the video.

Yeah, I'm getting the same thing. The sound comes first and then video and they're not in sync - if I select a different format (so far I've only selected higher quality) the audio and video are in sync. But playing from playlist the first play is always out of sync (and synchronize video or synchronize playback do not have any effect).

This wasn't the case in the previous versions I'd used. Sometime after playing item 1, item 2 would be out of sync, but synchronize video would work.

C.
Title: Re: foo_youtube
Post by: 3dyd on 2014-12-09 13:34:09
Not sure what is this. Would be good if you pasted your settings and for any case some clip link. You also can reset Features tab, reenable video and try again.
Title: Re: foo_youtube
Post by: carpman on 2014-12-09 13:52:09
I'd changed my settings in line with what you suggested to Wolfbane. So the problem seems to be with webm.

UPDATE: I switched settings to force webm and prevent mp4 and now I can't reproduce it (typically!). So, please ignore until perhaps someone else has the same problem and can submit console and settings data.

If there is a problem it seems to be able to be accidentally fixed by messing around with the preferred formats. I'll keep you informed if this issue resurfaces.

C.
Title: Re: foo_youtube
Post by: Steve Forte Rio on 2014-12-11 17:26:22
Hi. You've removed video downloading with LAV filters. And for foobar2000 I always get an error:

Quote
Can't start playback
Connect source to the splitter: The owner of the security identifier (SID) for the subscription "to user" was not found

(translated from Russian)
Title: Re: foo_youtube
Post by: 3dyd on 2014-12-12 10:03:42
I getting error text wrong. This is actualally error VFW_E_CANNOT_CONNECT (No combination of intermediate filters could be found to make the connection).

Anyway. I don't see it. Does it appear on particular clips? Particular qualities? Does it appear in prev 1.4 version if select ffmpeg in Media downloading? (and does not appear if select there LAV?) Does Features page reset help? Any other clues?
Title: Re: foo_youtube
Post by: Steve Forte Rio on 2014-12-15 11:46:57
Now it appears for all clips and qualities. It did not appear whan I was selecting downloading via LAV (I don't remeber if there was downloading video with ffmpeg). Reset does not help.
Title: Re: foo_youtube
Post by: 3dyd on 2014-12-15 13:52:30
Maybe it relates to version of LAV Filters. If you have them installed in the system, which version are you using? Because even in preconf, if LAV Filters are installed in the system, it uses installed filters instead of embedded regardless of their version.
Title: Re: foo_youtube
Post by: Wolfbane on 2014-12-20 07:36:09
Im no sure whats wrong with this link.

But adding this link 100% crashes FooBar for me.

https://www.youtube.com/watch?v=roRcksH2_HQ (https://www.youtube.com/watch?v=roRcksH2_HQ)
Title: Re: foo_youtube
Post by: 3dyd on 2014-12-20 07:59:34
Wow. Thanks for info, I'll fix this as soon as I can.
Title: Re: foo_youtube
Post by: 3dyd on 2014-12-20 09:15:44
New version 1.4.2

Changelog:
- fixed crash at adding some clips
Title: Re: foo_youtube
Post by: Master13 on 2015-01-08 03:04:13
I just installed this yesterday and I've noticed that on every video it stops at like 12-14 seconds before it ends. It seems to happen regardless of how long the video is.
Title: Re: foo_youtube
Post by: 3dyd on 2015-01-08 13:23:06
Try 'foo_youtube' from Preferences -> Tools -> Youtube Source -> Decoder -> Media downloading.
Title: Re: foo_youtube
Post by: army1349 on 2015-01-10 16:57:23
Hi, thanks for this component, it is great.
Would it be possible to add and option to specify integrated search component output playlist?
Thank you very much for your answer.
Title: Re: foo_youtube
Post by: 3dyd on 2015-01-12 11:16:58
If you need this in order to do not accidentally wipe playlist, you can use foobar Undo command, it cancels any change that component does in the playlists.

But this has been asked several times so seems to be the reason for the above is not the only one. So yes, there will be an option to specify integrated search component output playlist.
Title: Re: foo_youtube
Post by: Master13 on 2015-01-12 11:49:19
Try 'foo_youtube' from Preferences -> Tools -> Youtube Source -> Decoder -> Media downloading.

Seems to have fixed it. Thank You very much.
Title: Re: foo_youtube
Post by: army1349 on 2015-01-12 17:41:51
If you need this in order to do not accidentally wipe playlist, you can use foobar Undo command, it cancels any change that component does in the playlists.

But this has been asked several times so seems to be the reason for the above is not the only one. So yes, there will be an option to specify integrated search component output playlist.


You are right, there is another reason. Let me explain.
I would like to connect youtube search with an instance of ELPlaylist (bound to the specific playlist).
That would allow me to create my own youtube search panel.
From there I could send whichever tracks I want to the active playlist by non-invasive manner.

I figured similar solution for library searching, it works great and looks compact.

Thanks very much again
Title: Re: foo_youtube
Post by: Wolfbane on 2015-01-19 00:25:22
Any chanse to maybe add vimeo.com to the possible options to add songs from ?
Example http://vimeo.com/13302903 (http://vimeo.com/13302903)
Title: Re: foo_youtube
Post by: 3dyd on 2015-01-20 21:46:28
The main (and the only) problem is that component designed for Youtube. So this word (Youtube) is everywhere in UI and also in the component title. At other hand, creation of an additional component for the other site is also not the solution - there are a lot of common things which will be duplicated in this case. I'll add it.
Title: Re: foo_youtube
Post by: 3dyd on 2015-01-21 22:31:15
New version 1.5

Changelog:
- Vimeo support. Playlists and search are not supported, all other should work
- destination playlist setup for integrated search. Because of this need re-add integrated search UI elements, sorry about that. Added config versioning to prevent this in future
- upload time search filter
- additional youtube-specific metadata (uploader, rating, view count, upload date)
- auto reset decoding settings when switching between standalone and preconfigured component variants. Read about the problem here (http://fy.3dyd.com/home/#Component_variants) (at least 3rd paragraph)
- youtube-specific metadata prefix changed. Because now it not only Youtube clips metadata, prefix changed from youtube_ to 3dydfy_. For existing items metadata will reset at next item play. To force reset use Properties -> Tools -> Reload info in playlist items context menu (does not require Internet access). Sorry for possible inconvenience
- video window fallback text changed according to new metadata. At first start value will be reset to the new
Title: Re: foo_youtube
Post by: 3dyd on 2015-02-04 17:02:38
New version 1.6

Changelog:
- optional own downloader for video (foo_youtube in Features -> Video -> Media Downloading)
- temporary directory selection for own downloader (both audio and video). See Preferences -> Advanced -> Youtube Source -> Temporary directory. Empty value (default) means Windows Temp directory. Any other string threats as path. If entered not absolute path, it threats as relative to foobar user profile directory. If directory does not exist, component creates it at first use. If directory cannot be accessed (invalid path or not enough rights to access it) decoding error will occur.
- own downloader fixed and little improved to bypass several temporary connection problems
- ffmpeg path was not reset at standalone/preconf switch, fixed
Title: Re: foo_youtube
Post by: mire777 on 2015-02-07 09:49:40
New version 1.6

Changelog:
- optional own downloader for video (foo_youtube in Features -> Video -> Media Downloading)
- temporary directory selection for own downloader (both audio and video). See Preferences -> Advanced -> Youtube Source -> Temporary directory. Empty value (default) means Windows Temp directory. Any other string threats as path. If entered not absolute path, it threats as relative to foobar user profile directory. If directory does not exist, component creates it at first use. If directory cannot be accessed (invalid path or not enough rights to access it) decoding error will occur.
- own downloader fixed and little improved to bypass several temporary connection problems
- ffmpeg path was not reset at standalone/preconf switch, fixed


Wow this is great, video start is fast, and there is no delay, even for large videos..
Sinhoronization is better between video and audio now..
I'm using audio: foobar2000, ffmpeg ; video: foo_youtube.
Thanks for update
Title: Re: foo_youtube
Post by: 3dyd on 2015-02-08 20:16:28
New version 1.6.1

Changelog:
- fixed program hang at clip playback start in rare cases
Title: Re: foo_youtube
Post by: torteusz on 2015-02-18 13:14:20
Can anyone know whether it is possible to foobar2000 text wrapping, and if so, what is the syntax. I use the plug-in Columns UI and Foo_Youtube and now needs to wrap the text for the field [%3dydfy_description%] or description of the video downloaded from Youtube.

Many thanks for a great plugin.
Title: Re: foo_youtube
Post by: marc2003 on 2015-02-18 13:35:53
have you tried the item details panel? that's part of columns UI and supports wrapping text.
Title: Re: foo_youtube
Post by: torteusz on 2015-02-20 15:24:39
have you tried the item details panel? that's part of columns UI and supports wrapping text.

Thanks a lot, that's has just the point.
Title: Re: foo_youtube
Post by: torteusz on 2015-02-22 13:43:32
Is it possible to improve the speed of loading a file with the option "allow seeking over M4A", because now it works very slowly. That would be great - amazes me every day this plugin.
Title: Re: foo_youtube
Post by: 3dyd on 2015-02-23 14:10:55
AFAIK no, that's why for allowing this used separated checkbox, disabled by default. Additional info: About MP4 DASH files (http://fy.3dyd.com/home/#About_MP4_DASH_files).
Title: Re: foo_youtube
Post by: Wolfbane on 2015-02-24 05:38:50
Just another small request, to expand the plugin to more sites. "DailyMotion"
Example http://www.dailymotion.com/video/xeiil_hat...-for-this_music (http://www.dailymotion.com/video/xeiil_hatebreed-live-for-this_music)

Could not find this musicvideo on any you-tube, so might be alot of other songs with same "problem"....
Well if you add it, THX, if not I understand.

Either way. tested out the latest version and things are really working nice. Awesome work.
Title: Re: foo_youtube
Post by: 3dyd on 2015-02-28 01:17:36
New version 1.7

Changelog:
- Dailymotion support. Supported single clips and feeds
- analysis improvements to bypass several temporary connection problems. All requests now provide retrying at connection problems
Title: Re: foo_youtube
Post by: widerock on 2015-03-02 08:24:52
Thank you for your great plug-in.

Is there any method to change the edge style when I insert "Youtube Source - Search (Integrated)" in the UI panel?

I'm using every plugin components with egge style-none. But, I couldn't find that option with "Youtube plugin".
Title: Re: foo_youtube
Post by: 3dyd on 2015-03-02 09:25:02
This option exist for CUI panel. Right click within panel area (but outside search edit box) and uncheck 'Static edge' menu item. For DUI there are no such option however I not seen that DUI elements worried much about window edge.
Title: Re: foo_youtube
Post by: widerock on 2015-03-03 04:18:37
This option exist for CUI panel. Right click within panel area (but outside search edit box) and uncheck 'Static edge' menu item. For DUI there are no such option however I not seen that DUI elements worried much about window edge.

I'm now using foo_Razor skin from Br3tt.
As you can see from the attached image, I managed to set all plugins with "none" edge styles except for foo_youtube.
I guess that it might need a lot of effort and your valuable time. But, if possilbe, please consider to implement it with this option.
(http://i58.tinypic.com/2wppf7d.jpg)
Title: Re: foo_youtube
Post by: 3dyd on 2015-03-03 13:31:42
As you can see from the attached image, I managed to set all plugins with "none" edge styles except for foo_youtube.

Panel edge removing:

(https://googledrive.com/host/0B91yvwJ2rZruRnFBTE9aeWxZX28/static_edge.png)

Or you actually want to remove edge of search edit box?
Title: Re: foo_youtube
Post by: widerock on 2015-03-03 16:53:36
As you can see from the attached image, I managed to set all plugins with "none" edge styles except for foo_youtube.

Panel edge removing:

(https://googledrive.com/host/0B91yvwJ2rZruRnFBTE9aeWxZX28/static_edge.png)

Or you actually want to remove edge of search edit box?

I can't see 'Static egde / Transparent' option by right clicking in every place within the panel area.
I can't understand why there is no pop-up with right click.

Would you mind trying this with fooRazor skin from Br3tt? fooRazor (http://br3tt.deviantart.com/art/fooRazor-303120391)
Title: Re: foo_youtube
Post by: widerock on 2015-03-03 22:51:19
As you can see from the attached image, I managed to set all plugins with "none" edge styles except for foo_youtube.

Panel edge removing:

(https://googledrive.com/host/0B91yvwJ2rZruRnFBTE9aeWxZX28/static_edge.png)

Or you actually want to remove edge of search edit box?

I can't see 'Static egde / Transparent' option by right clicking in every place within the panel area.
I can't understand why there is no pop-up with right click.

Would you mind trying this with fooRazor skin from Br3tt? fooRazor (http://br3tt.deviantart.com/art/fooRazor-303120391)

I guess that I found the reason. fooRazor is the skin under DUI. That's why I can't find right click option.
Title: Re: foo_youtube
Post by: 3dyd on 2015-03-04 11:03:40
I guess that I found the reason. fooRazor is the skin under DUI. That's why I can't find right click option.

That's correct.
By your screen shot I actually thought you are using Columns UI. I'll add edge control for DUI panels in next version.
Title: Re: foo_youtube
Post by: mire777 on 2015-03-04 12:07:31
3dyd did you find some workaround to fix ''stop video'' message error on next track playing?
Title: Re: foo_youtube
Post by: widerock on 2015-03-04 12:51:35
I guess that I found the reason. fooRazor is the skin under DUI. That's why I can't find right click option.

That's correct.
By your screen shot I actually thought you are using Columns UI. I'll add edge control for DUI panels in next version.

That will be great. Thank you for considering it.
Title: Re: foo_youtube
Post by: 3dyd on 2015-03-04 17:08:40
3dyd did you find some workaround to fix ''stop video'' message error on next track playing?

Not yet.
Title: Re: foo_youtube
Post by: widerock on 2015-03-04 17:28:45
I guess that I found the reason. fooRazor is the skin under DUI. That's why I can't find right click option.

That's correct.
By your screen shot I actually thought you are using Columns UI. I'll add edge control for DUI panels in next version.

That will be great. Thank you for considering it.

If possible, please make the border a little grey color.
Title: Re: foo_youtube
Post by: musikomaniak on 2015-03-06 13:12:01
Hello! I did not worry about foobar updates for a few months and today I decided to. Wow! I had version 1.3.1, now updated to 1.7.
No problems except:
Quote
Unable to open item for playback (Youtube Source:  This video contains content from Believe Music, who has blocked it in your country on copyright grounds. Sorry about that.):
"3dydfy://www.youtube.com/watch?v=o-Zo4AVL7AE"

"Believe Music" fault
Title: Re: foo_youtube
Post by: 3dyd on 2015-03-06 13:41:18
This message (and 'sorry') is from Youtube. Video clip has regional restriction, it does not depend of the component version. The only way to bypass this is to use proxy from allowed country.
Title: Re: foo_youtube
Post by: musikomaniak on 2015-03-06 14:24:55
This message (and 'sorry') is from Youtube. Video clip has regional restriction, it does not depend of the component version. The only way to bypass this is to use proxy from allowed country.

Yes I know. That's why I wrote in bad english "Believe Music" fault.
My message is to say thanks to you for all the news since my last visit.
Title: Re: foo_youtube
Post by: 3dyd on 2015-03-13 21:18:57
New version 1.8

Changelog:
- video synchronization improvements. Read note below.
- retry on reading errors (for 'Media downloading' -> foo_youtube). Previously retry was only on connection initiation.
- settings for Internet requests retry on fail. Also retry now goes not immediately but after a pause. Delay time and the retry count are configurable through Advanced preferences.
- panels border control. Border on DUI panels now can be removed (in CUI panels this already was). Border of search edit box in 'Search (Integrated)' panel now removable too. Also added switch to use theme color for border instead of drawing it by the system (in CUI used 'Active item frame' color, in DUI - background color with this rule (http://www.hydrogenaud.io/forums/index.php?showtopic=78644)).
- SOCKS proxy support. Proxy type can be specified using URL scheme e.g. socks5://127.0.0.1:80, default is http.

About synchronization. Finally gave up with trying to do this transparently for the program. Now when playback switches to the next clip (in regular way, not by the user request), component explicitly restarts playback. Note, component intervenes in playback only if the next track is Youtube clip and only if video playback is enabled. Below is details of how it is done.

The start of clip playback consist of two stages: analysis of the page(s) to retrieve links to media files and actual media file opening for decode. Now because of playback restart, the same clip starts to play twice. To optimize this, info of the playing track now is cached so at the second start can be skipped analysis stage. At other hand, at first start is not need decoding so there skipped the file opening stage: decoder just waits until it will be closed and does not give any data. With this also solved the case when small portion of audio data from the first start is played before the second start was completed. All this concerns only to opening for playback, if track opened for other purposes (for example by Waveform seekbar), decoding will be done in the usual way.

Also, while did all this, accidentally found a way to reduce silence after seek.

__________
ATTENTION
Youtube public Data API v2 is deprecated (https://developers.google.com/youtube/youtube-api-list) and as Youtube promises API will stop work within a month. After that search and feeds support will not work for a while, playback should work.
Title: Re: foo_youtube
Post by: mire777 on 2015-03-14 19:32:17
New version 1.8

Changelog:
- video synchronization improvements. Read note below.
- retry on reading errors (for 'Media downloading' -> foo_youtube). Previously retry was only on connection initiation.
- settings for Internet requests retry on fail. Also retry now goes not immediately but after a pause. Delay time and the retry count are configurable through Advanced preferences.
- panels border control. Border on DUI panels now can be removed (in CUI panels this already was). Border of search edit box in 'Search (Integrated)' panel now removable too. Also added switch to use theme color for border instead of drawing it by the system (in CUI used 'Active item frame' color, in DUI - background color with this rule (http://www.hydrogenaud.io/forums/index.php?showtopic=78644)).
- SOCKS proxy support. Proxy type can be specified using URL scheme e.g. socks5://127.0.0.1:80, default is http.

About synchronization. Finally gave up with trying to do this transparently for the program. Now when playback switches to the next clip (in regular way, not by the user request), component explicitly restarts playback. Note, component intervenes in playback only if the next track is Youtube clip and only if video playback is enabled. Below is details of how it is done.

The start of clip playback consist of two stages: analysis of the page(s) to retrieve links to media files and actual media file opening for decode. Now because of playback restart, the same clip starts to play twice. To optimize this, info of the playing track now is cached so at the second start can be skipped analysis stage. At other hand, at first start is not need decoding so there skipped the file opening stage: decoder just waits until it will be closed and does not give any data. With this also solved the case when small portion of audio data from the first start is played before the second start was completed. All this concerns only to opening for playback, if track opened for other purposes (for example by Waveform seekbar), decoding will be done in the usual way.

Also, while did all this, accidentally found a way to reduce silence after seek.

__________
ATTENTION
Youtube public Data API v2 is deprecated (https://developers.google.com/youtube/youtube-api-list) and as Youtube promises API will stop work within a month. After that search and feeds support will not work for a while, playback should work.


Thanks for update.
Playback error on next track is gone.
I tested for 5 hours, and no ''stopped video''
Title: Re: foo_youtube
Post by: torteusz on 2015-03-15 00:21:08
I updated to the latest version and what is throwing the first eye is foo_youtube not displayed: codec, bitrate, sample rate and an identifier (stereo / mono) on all supported three pages, the rest works OK.

Win XP (x86) SP3 - Foobar 1.3.7.
Title: Re: foo_youtube
Post by: widerock on 2015-03-31 09:32:16
New version 1.8

Changelog:
- panels border control. Border on DUI panels now can be removed (in CUI panels this already was). Border of search edit box in 'Search (Integrated)' panel now removable too. Also added switch to use theme color for border instead of drawing it by the system (in CUI used 'Active item frame' color, in DUI - background color with this rule (http://www.hydrogenaud.io/forums/index.php?showtopic=78644)).


Thanks for the above update.
Now, my foobar looks much much better.
Title: Re: foo_youtube
Post by: 3dyd on 2015-04-16 09:32:35
foo_youtube not displayed: codec, bitrate, sample rate and an identifier (stereo / mono)

The case is in the decoder. For ffmpeg decoder dynamic info is not implemented.  It is available only when using foobar decoder. So if you have not changed decoder manually, it probably was changed at switching between standalone and preconfigured (http://fy.3dyd.com/home/#Component_variants).

You can reset decoding to foobar in component preferences Decoder tab if this is critical for you. Dynamic info for ffmpeg decoder will be in next version.
Title: Re: foo_youtube
Post by: mire777 on 2015-04-19 08:52:23
I would suggest only one thing for ''search integrated''. There should be some text when search box is empty, something like this:

(http://www.uiparade.com/wp-content/uploads/2011/12/search_box-ui-design-free-psd.jpg)
Title: Re: foo_youtube
Post by: 3dyd on 2015-04-19 21:16:16
Ok, will be the same as in search edit box from Search tab of component main window.
Title: Re: foo_youtube
Post by: mire777 on 2015-04-22 21:07:55
Ok, will be the same as in search edit box from Search tab of component main window.


Thanks..
Title: Re: foo_youtube
Post by: Wolfbane on 2015-04-28 13:26:57
Suggestion/Question

Would it be possible to implement a feature to "Auto Press Next" certain time from end of song ?

Reason for this is, that some you tube songs have talk/commerical in the end of the clip. (Go and look at my other clips shit talk...)
So you can edit it, and manually set variable that 10,50 sec before song is over it presses "next" for me automaticly.

Example of a song that has "shit" in the end of it, that would be nice to skip.
www.youtube.com/watch?v=39oGCTAJ9Vw

Sure even some songs have none wanted talk before a song. So 2nd question would be possible to add a feature that allows what part the clip is ment to start and where it is ment to end then that would even be better.

For example a link like this
This is not a link to song, but just wanted to give an example how it is possible to at least edit when song/link starts.
www.youtube.com/watch?v=N45YVFRv29c#t=23m15s (http://www.youtube.com/watch?v=N45YVFRv29c#t=23m15s)
Would make the link start 23min and 15sec into the video
Title: Re: foo_youtube
Post by: 3dyd on 2015-04-29 12:17:22
Sounds good but I doubt this cannot be done with the help of some existing foobar component (setting permanent start and/or end time of the track). However implementing this on decoder level may result in less bandwidth usage and greater decoding speed on start/end. Thus yes, need think about this, but not in next version - it  has lot of changes already, and I'm trying to finish it for quite long time.
Title: Re: foo_youtube
Post by: 3dyd on 2015-04-30 10:13:33
New version 1.9

New:
- preferred audio quality setup depending of opening reason. When opening a media file, it is known whether it opens for playback or for other reason. Which quality to use in these cases now can be configured separately. Most common non-playback opening reason - wave seek bar. By default configured to use smallest stereo (will use 50kbps Opus if available and 128kbps AAC/Vorbis in other cases). Other reasonable variants: allow use mono (3gp generally smaller than 128kbps DASH audio) or prevent opening for non-playback at all (put all formats to 'formats to ignore')
- UI element Activity. Shows info about all media files currently opened by the component and only while they are opened (example (http://fy.3dyd.com/home/activity.png)). Displayed info: original Youtube title, selected quality, opening reason (audio.playback/audio.other/video) and usage progress. Last one displays file reading pos and approximated playing pos. For 'foo_youtube' media downloading it also shows currently downloaded parts of the file and downloading position
- additional Youtube-specific metadata %3dydfy_like_count%, %3dydfy_dislike_count%, %3dydfy_like_ratio%. First two are count of likes/dislikes. Last one is ratio of likes to dislikes filtered to prevent unfair values. Filter is simple but imho more effective than plain ratio: IF (dislikes > 10 OR likes > 100) ratio = MIN(likes/dislikes, 999)

Fixes, enhancements, technical details:
- History now also used as clip info cache: if clip available in History, it will not be analysed at playback start
- added missing dynamic info for FFmpeg decoding
- any Youtube specific metadata now returns '?' if not present and not enclosed in square brackets
- added tip for search edit box in UI element Search (Integrated)
- all UI elements moved to separated group (this will not break layout)
- fixed playback freeze if (with enabled video) seek from the end of file (i.e. after decoding of next file started)
- switched to Youtube APIv3
- integrated search playlist item now haven't 'p' param (search page index, with new API this can't be done)
- max search results portion is 50 (was 25); feeds also added by portions of 50 tracks now
- additional (i.e. not available though Youtube-specific metadata) tech info fields: channel id (channel which holds the video) and list of thumbnail URLs separated by '|' (from best quality to lowest) trimmed (to stay valid) to be less than max tech info field length
- in Album Art now used max available thumbnail resolution. If available, used URLs from tech info field (faster, not need to ask Youtube for thumbnails list)
- %3dydfy_uploaded% now may contain only date without time (previously in this case it was empty)
- rating now does not store in tech info field (calculates from likes and dislikes)
Title: Re: foo_youtube
Post by: WilB on 2015-04-30 19:17:24
Thanks for the update. In audio only playback, I have "prefer a media file with best available audio". Previously nearly all files played showed as AAC 254 kbps (whether or not they were always this). With 1.9 none appear, and I have not seen any 256 kbps AAC media files listed in history. Please can you clarify if this has changed or is due to a better analysis of the media files or is a bug or if I am missing something with the new settings?
Title: Re: foo_youtube
Post by: zeremy on 2015-04-30 21:50:56
@3dyd
Great update, I really appreciate UI element Activity .

@WilB
Change,

Decoding > Playback Start slide down to  "and make one more request for additional media."

&

Prefered Quality for playback with bitrate nearest to 256kbps.

gives me 256.
Title: Re: foo_youtube
Post by: WilB on 2015-04-30 22:03:17
@ zeremy - thanks for the tip - adjusting the slider to make an extra request has solved the issue.
Title: Re: foo_youtube
Post by: luucasalves on 2015-05-01 06:00:32
Thanks for the update. In audio only playback, I have "prefer a media file with best available audio". Previously nearly all files played showed as AAC 254 kbps (whether or not they were always this). With 1.9 none appear, and I have not seen any 256 kbps AAC media files listed in history. Please can you clarify if this has changed or is due to a better analysis of the media files or is a bug or if I am missing something with the new settings?


donwload link for 1.9?? dont appear on site
Title: Re: foo_youtube
Post by: Wolfbane on 2015-05-01 11:17:14
Thanks for the update. In audio only playback, I have "prefer a media file with best available audio". Previously nearly all files played showed as AAC 254 kbps (whether or not they were always this). With 1.9 none appear, and I have not seen any 256 kbps AAC media files listed in history. Please can you clarify if this has changed or is due to a better analysis of the media files or is a bug or if I am missing something with the new settings?


donwload link for 1.9?? dont appear on site


In FooBar at the top...
Help ==> Youtube Source ==> "Check for Updated version"
Title: Re: foo_youtube
Post by: mire777 on 2015-05-01 11:38:32
Just to report what happens if you use EBU R128 Compressor  with foo_youtube, new ver, and how to set DSP..
With new version i must use Crossfader set to 200ms if i want to use EBU R128 Compressor with foo_youtube, with this setup, all works fine..
But if i use this setup without Crossfader, then video stuck on 5-6 seconds before end..
Why this happen?

Anyway here is my settings:

(http://i.imgur.com/zFxYzUK.png)
Title: Re: foo_youtube
Post by: zeremy on 2015-05-01 19:16:48
Is it only me or does the right click context menu search entries in the new version  e.g (Youtube Source > Search artist songs) crash foobar2000 for anyone else ?
Title: Re: foo_youtube
Post by: mire777 on 2015-05-02 08:21:57
Is it only me or does the right click context menu search entries in the new version  e.g (Youtube Source > Search artist songs) crash foobar2000 for anyone else ?


I have crash also..
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-05 14:35:25
New version 1.9.1

- fixed crash when using context menu search
- fixed playback stuck at switching to next track with enabled video. Problem was because of video synchronisation workaround. Component performs actions Stop and Play after starting of next track. Before they apply, a small part of the next track is played. If track starts not from silence, this may annoy. To solve this was used fake track with silence, but it seems gives more problems than benefits, thus removed now. If this small part of audio at next track start annoys, can be used Crossfader, with default duration (2000ms) all sounds ok. But note that Crossfader seems expects the same sample rate of both tracks so on switching AAC/Vorbis<=>Opus (i.e. 44100Hz<=>48000Hz) need to use Resampler before Crossfader to make it work.
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-05 15:09:33
About AAC 256kbps. Playback Start slider has five positions: fast#1, fast#2, fast#3, medium, slow. For AAC 256kbps is enough to use fast#2, it retrieves DASH manifest with this audio quality and additional VO qualities. To retrieve 128kbps AAC/Vorbis and all Opus qualities is enough to use fast#1. Fast#3 usually does not give additional qualities, but if it gives then there will be soft-made 3D clips and additional VO qualities. Soft-made 3D clips are regular video+audio files with 3D video programmatically made from 2D. They also have different AAC bitrates (360p 3D has 128kbps when usual 96; 720p 3D has ~152kbps when usual 192). Not to be unfounded, here is an example (https://www.youtube.com/watch?v=_A4f-Ax3EHE) with different number of qualities at fast#1/#2/#3: 21/27/36 qualities, respectively.
Title: Re: foo_youtube
Post by: carpman on 2015-05-05 15:15:53
Hi 3dyd

I got:
Quote
Creating VSFilter: The specified module could not be found.


Prior to upgrade fine - no VSFilter message.

Fixed with:
regsvr32 "C:\Program Files (x86)\foobar2000\1\foobar2000\user-components\foo_youtube\xy-VSFilter\VSFilter.dll"

But is it not possible to get your component to look for VSFilter from the root of the foobar2000 installation?
I assume it didn't find it initially due to the fact that my foobar2000 is installed in a non default location.

This happened after upgrading to version 1.9.1 (foo_youtube_1.9.1_preconf).

ps. Thanks for update -- perhaps might solve my crash issue too. Will update on that if anything to report.

C.
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-05 15:47:13
Thanks for quick response. It is my bad. In preconf.ini should be "subtitles=xy-VSFilter\VSFilter.dll" instead of "subtitles=VSFilter\VSFilter.dll". I removed 1.9.1_preconf, please update to 1.9.1.1_preconf (http://download.fy.3dyd.com/foo_youtube_1.9.1.1_preconf.fb2k-component) (uploaded without version notification) or edit preconf.ini manually.
Title: Re: foo_youtube
Post by: rds_correia on 2015-05-08 03:29:04
First of all, many thanks to 3dyd for this wonderful foobar2k component.
I use this mainly to listen to rock full albums that can be found on youtube and I have 2 questions:
1-This doesn't have anything to do with foo_youtube but I think that without foo_youtube there wouldn't be a way to experience this issue. When listening to full albums I often get lyrics only from the 1st song or from the song that named the album. Is there any workaround so that can have lyrics on all songs?
2-Similarly, when listening to full albums I can't find a way to easily fast forward to the next song. Is there any workaround? What if the album has CC? would there be a way to "teach" foo_youtube to advance to the next big gap in the CC's?
Keep up this excellent work.
Cheers

PS: how about adding "new" grooveshark (http://grooveshark.io)? Maybe still to early, right?
Title: Re: foo_youtube
Post by: carpman on 2015-05-08 12:19:48
One minor annoyance for me (which might be due my own incompetence), is that the foo_youtube doesn't stay in full screen mode after switching tracks. I often cue up a load of news items and want to watch them one after the other. But each time I have to get up and go to full screen again. Is there a setting I'm missing?

C.
Title: Re: foo_youtube
Post by: mire777 on 2015-05-08 15:56:44
First of all, many thanks to 3dyd for this wonderful foobar2k component.
I use this mainly to listen to rock full albums that can be found on youtube and I have 2 questions:
1-This doesn't have anything to do with foo_youtube but I think that without foo_youtube there wouldn't be a way to experience this issue. When listening to full albums I often get lyrics only from the 1st song or from the song that named the album. Is there any workaround so that can have lyrics on all songs?
2-Similarly, when listening to full albums I can't find a way to easily fast forward to the next song. Is there any workaround? What if the album has CC? would there be a way to "teach" foo_youtube to advance to the next big gap in the CC's?
Keep up this excellent work.
Cheers

PS: how about adding "new" grooveshark (http://grooveshark.io)? Maybe still to early, right?


I can add this in Youtube Radio (http://mire777.deviantart.com/art/Foobar-Youtube-Radio-447296512?ga_submit_new=10%253A1426337994&ga_type=edit&ga_changes=1), it seems that foobar can play this url.
Paste this in foobar in 'add location' : http://dl.grooveshark.io/t/a/l/talking-bod...veshark.IO).mp3 (http://dl.grooveshark.io/t/a/l/talking-body-tove-lo+talking-body-tove-lo.mp3?talking-body-tove-lo-talking-body-tove-lo(grooveshark.IO).mp3)

It works. I must decide would i add this in Foobar Youtube radio, or i make new script...

what you can tell me about this new grooveshark?
Title: Re: foo_youtube
Post by: rds_correia on 2015-05-09 13:17:19
what you can tell me about this new grooveshark?

In all honesty, nothing.
I read somewhere that grooveshark was back and they mentioned the new URL.
All I can see is that the interface is a lot different and lacks a whole lot of features.
But what I was really after was a way to skip to the next song on youtube full albums...
Cheers
Title: Re: foo_youtube
Post by: mire777 on 2015-05-09 14:05:06
what you can tell me about this new grooveshark?

In all honesty, nothing.
I read somewhere that grooveshark was back and they mentioned the new URL.
All I can see is that the interface is a lot different and lacks a whole lot of features.
But what I was really after was a way to skip to the next song on youtube full albums...
Cheers


I see. I was read about some legal problems here, so i will wait to see how this site is developed..
I don't want to waste my time on something that will be off tomorrow..
Thanks..
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-09 22:24:13
1-This doesn't have anything to do with foo_youtube but I think that without foo_youtube there wouldn't be a way to experience this issue. When listening to full albums I often get lyrics only from the 1st song or from the song that named the album. Is there any workaround so that can have lyrics on all songs?

2-Similarly, when listening to full albums I can't find a way to easily fast forward to the next song. Is there any workaround?

So in general case we have album in one file, artist name and album name. Need to make set of tracks from this (similar to cue sheets) so foobar will be able to show lyrics in usual manner. Tracks duration and titles can be retrieved from MusicBrainz. It looks possible, need to do. Interesting that this probably also relates to ability to specify start/end playback positions requested previously.

What if the album has CC? would there be a way to "teach" foo_youtube to advance to the next big gap in the CC's?

Probably situation when whole album has CC is very rare. Anyway bigger gaps there often will be in instrumental solo parts of songs than between songs. So it is more like seeking between song elements (http://en.wikipedia.org/wiki/Song_structure#Elements), not bad feature but more fits to lyrics viewer than this component.

PS: how about adding "new" grooveshark (http://grooveshark.io)? Maybe still to early, right?

Unfortunately I have not enough free time for developing and support additional music platform.

One minor annoyance for me (which might be due my own incompetence), is that the foo_youtube doesn't stay in full screen mode after switching tracks. I often cue up a load of news items and want to watch them one after the other. But each time I have to get up and go to full screen again. Is there a setting I'm missing?

No, it's a bug. If in component preferences Features -> Show video selected 'Manually and dot not close until Youtube clips are playing' or 'Auto' then video window anyway closes when track switching to the next (need do not close if next is Youtube clip). In case of 'Auto' (in your case) then it restores when next clip starts to play, and at restoring always used last non-fullscreen state. Before it will be fixed, you can use 'Manually and do not close' which hasn't this problem.
Title: Re: foo_youtube
Post by: rds_correia on 2015-05-10 11:07:24
So in general case we have album in one file, artist name and album name. Need to make set of tracks from this (similar to cue sheets) so foobar will be able to show lyrics in usual manner.

Yep, you took those words right out of my mind. I had been giving it a thought and I said to myself "seems like what I need are cue sheets or something similar".

Tracks duration and titles can be retrieved from MusicBrainz. It looks possible, need to do.

The only problem is that most of the time these full albums have additional tracks that were not in the original product or which are on a remastered version that was only released on a subset of countries/markets. When those additional tracks appear in the end of the album, that's not a problem. But when they appear in the middle of the album...what could be done in those cases? Maybe I could create releases on musicbrainz that match those albums and their added tracks, right?
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-11 16:01:21
MusicBrainz usually has a lot of album release variants so I believe in most cases such problem will not arise. Anyway there will be a way to correct track position within release manually, so there will be no need for such radical actions as adding release to MusicBrainz.
Title: Re: foo_youtube
Post by: rds_correia on 2015-05-11 21:44:42
Interesting...
If you're not gonna use musicbrainz or CC (where available), what exactly will you use for track adjustment? Silence spots?
I would be more than happy if you came up with any kind of track adjustment solution but I would be thrilled if such solution would not only fix the track adjustment but that it would also allow for proper lyrics between "tracks" in a full album. 
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-11 22:19:29
No no, I meant retrieve info from MusicBrainz but to allow to manually adjust track positions before applying if this needs. Instead of one file after applying will be a set of tracks as with cue sheets so there should be no problems with lyrics (if no problem will occur, I may promise too much when even yet not being started to do this).
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-14 11:08:37
New version 1.9.2

Changelog:
- massive build environment update. Most important are move to VS2013, latest foobar SDK and native SSL backend (Secure Channel instead of OpenSSL). In the best case, nothing has to change, but it is need before moving on.
Title: Re: foo_youtube
Post by: torteusz on 2015-05-14 15:23:25
I updated the plugin to version 1.9.2 and after installation shows "Failed load module foo_youtube.dll unknown error"

System: Win XP SP3
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-14 20:26:02
Strange. I tested on two XP SP3 machines before release, all worked fine.

Looks like some dependency cannot be loaded and additional dependency (comparing to 1.9.1) is wldap32.dll. Can you check this build (https://f89cc6cbe628d42f486840595c2a2242ad188954.googledrive.com/host/0B91yvwJ2rZruWmRIQlFLVEp2c1k/fy/foo_youtube_1.9.2_dev1.fb2k-component)? Dependency removed here.
Title: Re: foo_youtube
Post by: torteusz on 2015-05-15 02:00:46
I checked this version and it is the same message:

Code: [Select]
Failed to load DLL: foo_youtube.dll
Reason: Unknown error code (3221225501)

Can it comes to processor SSE instructions?
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-15 10:35:53
Ah, SSE, yes. Pls try this (https://f89cc6cbe628d42f486840595c2a2242ad188954.googledrive.com/host/0B91yvwJ2rZruWmRIQlFLVEp2c1k/fy/foo_youtube_1.9.2_dev2.fb2k-component) build (in hope do not recompile boost).
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-15 18:31:28
New version 1.9.3

Changelog:
- fixed inability to run on non-SSE-capable CPU
- fixed Vimeo analysis
Title: Re: foo_youtube
Post by: rds_correia on 2015-05-15 19:22:06
No no, I meant retrieve info from MusicBrainz but to allow to manually adjust track positions before applying if this needs.

Oh, I didn't think that would be possible.

Instead of one file after applying will be a set of tracks as with cue sheets so there should be no problems with lyrics (if no problem will occur, I may promise too much when even yet not being started to do this).

Makes sense.
Don't worry, I will gladly welcome any improvements in that area even if in the end it doesn't look as pretty as I am currently imagining it .

BTW, you will excuse me if it's been asked here but the topic is very large to easily spot it: is it possible to have foo_youtube upgrade through the "Components" - "get updates" button?
Cheers
Title: Re: foo_youtube
Post by: rds_correia on 2015-05-19 20:41:20
Again, this may have been asked and answered here before but the topic is very big and difficult to properly search.
Maybe we should come up with a FAQ specifically for foo_youtube?
Okay, let's suppose that I want to find some music by my favorite band on youtube. I go down to youtube.com, I use the search and type "van halen". They're not really my favorite band but they come close .
Ok. So, some of the search results come from an account named #vanhalen that has been auto-generated by Youtube. Cool.
Now, is there any way that I can search (using foo_youtube) only for playlists on auto-generated accounts?
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-20 12:06:58
Component has very basic support of Youtube features (actually Search is the only feature which is not directly related to the playback). Current focus is 'how to play' (and there are still a lot of things to do), leaving 'what to play' to the user or 3rd-party solutions like [1 (http://www.hydrogenaud.io/forums/index.php?showtopic=105108)], [2 (http://www.hydrogenaud.io/forums/index.php?showtopic=105522)], [3 (https://gist.github.com/akaleeroy/b3de63c46ee43d413913)]. Relating to your post - it has search support only for videos but it can retrieve playlists or channels content directly. In case of Van Halen example you can copy URL of this autogenerated #vanhalen (https://www.youtube.com/channel/UCPi7wU0ppI6ad7EEpHs7lHg) channel and add it using File -> Add Youtube URL(s). If you need some explicit playlists from autogenerated channel then again you currently need manually go to channel playlists page (https://www.youtube.com/channel/UCPi7wU0ppI6ad7EEpHs7lHg/playlists) and add playlist URLs from there to foobar.

is it possible to have foo_youtube upgrade through the "Components" - "get updates" button?

Unfortunately seems no. Also there will be probably no way to maintain preconfigured versions in this case.

Would it be possible to implement a feature to "Auto Press Next" certain time from end of song ?

Reason for this is, that some you tube songs have talk/commerical in the end of the clip.
So you can edit it, and manually set variable that 10,50 sec before song is over it presses "next" for me automaticly.

Sure even some songs have none wanted talk before a song. So 2nd question would be possible to add a feature that allows what part the clip is ment to start and where it is ment to end then that would even be better.

Skip Track (http://www.foobar2000.org/components/view/foo_skip) can be used as I just seen here: Skip Beginning AND End of track (http://www.hydrogenaud.io/forums/index.php?showtopic=109187). Checked on Youtube clips, works great (without predownloading skipping parts).
Title: Re: foo_youtube
Post by: Wolfbane on 2015-05-23 21:03:05
Skip Track (http://www.foobar2000.org/components/view/foo_skip) can be used as I just seen here: Skip Beginning AND End of track (http://www.hydrogenaud.io/forums/index.php?showtopic=109187). Checked on Youtube clips, works great (without predownloading skipping parts).


Nice. Sorry but did not understand where I should put that "code". where do I put that information ?
Title: Re: foo_youtube
Post by: nexus1991 on 2015-05-24 19:02:16
Hi,

before all, thanks for your great useful plugin 

I have 2 suggestions about it :

Clicking on "get more 25 for" stop playback, is this necessary ? My use case is while a music is playing, i would like to search without stopping the current music (which works currently, doing a search does not stop current playback) and also be able to get more results from a search by clicking on "get more 25 for" without stopping playback either.
What people think about that ?

The second suggestion is about a compatibility issue with Linux (and wine). Wine does not support well secure channel and it gives "SSL connect error (35)" error in logs (because of unimplemented function). This cause versions above 1.9.2 to fail with wine on Linux. Is it possible to use openssl instead of secure channel or there is a reason to use it ?

thanks
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-26 08:41:07
Sorry but did not understand where I should put that "code". where do I put that information ?

Here are detailed description.
Skip Track provides support of custom tag SKIP. Suppose you have track 5 minutes length and want to skip 30 seconds at begin and one minute at end (i.e. all that after 00:04:00). Go to track properties (right click on the track in playlist view and select Properties menu item). You'll see dialog box with Metadata tab active. Double click on empty space in metadata list (or press button Tools -> Add new field). Will appear 'Add New Field' dialog. In 'Field name' enter 'SKIP' (without quotes). In 'Field value' enter '-30;4:00-'. Timecode format is [hh:][mm:]ss i.e. unnecessary parts can be omitted (-30 is the same as -00:00:30). From foo_skip help, possible combinations (in previous example used 4th variant):

Code: [Select]
-<time>     to skip from the beginning to <time>.
<time>-     to skip from <time> to the next track.
<a>-<b>     to skip from position <a> to later position <b>.
-<a>;<b>-   to skip from start to <a> and from <b> to next track.

But need to keep in mind that this will not work for nonseekable streams (as was noticed with help of @torteusz), so if you are using M4A quality with ffmpeg decoder (and did not checked in this case 'Allow seeking over M4A' in Advanced preferences) then this solution will not work.

Clicking on "get more 25 for" stop playback, is this necessary ? My use case is while a music is playing, i would like to search without stopping the current music (which works currently, doing a search does not stop current playback) and also be able to get more results from a search by clicking on "get more 25 for" without stopping playback either.

By clicking on track foobar at first stops playback and then starts to play this track. I.e. when 'get more' track takes action, playback is already stopped. This behaviour cannot be overridden (unless autoplaylists are used, but this is not an option in this case). But can be provided other way: 'get more' item will have additional menu item in Youtube Source context menu group, which will perform request without playback interruption. Actually request of additional feed portion should be made similarly instead of retrieving number of items limited by the settings Features -> Miscellaneous -> Max feed items count.

The second suggestion is about a compatibility issue with Linux (and wine). Wine does not support well secure channel and it gives "SSL connect error (35)" error in logs (because of unimplemented function). This cause versions above 1.9.2 to fail with wine on Linux. Is it possible to use openssl instead of secure channel or there is a reason to use it ?

First of all, it is great to know that it even worked under wine. Using Secure Channel somehow gives much higher downloading speed, but in context of main component use case (i.e. sequential reading for playback) this is not very noticeable since for all qualities (except _regular_ MP4 and WebM, which are almost not used) Youtube limits bandwidth by itself. One more reason of using Security Channel was slightly smaller binary size but this is not important. So probably yes, for foo_youtube will be used OpenSSL since there is no strong reason not to do so.
Title: Re: foo_youtube
Post by: torteusz on 2015-05-26 15:29:50
At every artist I have a grayed option "Search full album" in the context menu - Foo_youtube 1.9.3
search query: [$if"(%album%,%artist%,)"] ["%album%"]

In the "Youtube Source" and normally the playlist typed the phrase "full album" and displays only 500 results continue when you click 'get more' shows last 25 results and so on - is this a bug? whether that be. Max feed items count: 1000
Title: Re: foo_youtube
Post by: 3dyd on 2015-05-28 08:54:54
At every artist I have a grayed option "Search full album" in the context menu - Foo_youtube 1.9.3
search query: [$if"(%album%,%artist%,)"] ["%album%"]

Any option in search context menu is grayed if resulting search query is empty. In case of "Search full album" search query will be empty if there are no %album% tag in the track. Youtube tracks haven't %album% tag in default config, only %title% and (not always) %artist%. So this context menu item is useful on regular (not Youtube) music tracks.

In the "Youtube Source" and normally the playlist typed the phrase "full album" and displays only 500 results continue when you click 'get more' shows last 25 results and so on - is this a bug? whether that be. Max feed items count: 1000

'Max feed items' relates to feeds i.e. playlists, channels, user uploads. For search results max number of items is 500 (Youtube limit).  If you are about Yotube Source window -> Search tab, then yes, after 500 items 'get more' should disappear but does not, it's a bug.
Title: Re: foo_youtube
Post by: 3dyd on 2015-06-02 21:59:05
New version 1.10

Changelog:
- added 'Make album' feature. Read note below
- context menu item 'Watch from current pos' now available in all context menus (was only in context menu of now playing). Disabled for non-playing items. On click the playback will be paused
- added 'Copy URL' context menu item
- added preconf_audio variant. Includes custom ffmpeg build with all needed to decode audio. In comparing to preconf_video it has smaller size and up to date ffmpeg (2.6.2), will try to always use latest version at the moment of release
- switched back to OpenSSL SSL backend in respect to Linux users. Although Wine has Secure Channel emulation (through GnuTLS), there are some problems with using it with libcurl, need check more deeply but for now will be used OpenSSL. Checked on Ubuntu 14.10
- clips marked as 'unlisted' now not ignored at the feed processing
- 'get more' item removed from Search tab when there are no more results
- fixed context menu shortcuts mapping possibility

About 'Make album'. Feature available in playlist item context menu Youtube Source -> Make album. In simple case press Search -> select album -> press Finish. Albums list has additional columns (right click on the list header). Offsets of the tracks can be edited manually - press Next and edit generated cuesheet.

About requirements. To make it work, %cuesheet% tag field should not be marked as spam in LargeFieldsConfig.txt from foobar settings directory and field size limit should be large enough to keep the cuesheet. Component will show appropriate warnings if this is not so. Another requirement - original playlist item should be kept anywhere in the playlists or you will get error at playback start.

Users often place tracks list in Youtube clip description (even with time offsets), this is very useful at selecting appropriate release, so it is also recommended to increase infoMax value from LargeFieldsConfig.txt because description stores in tech info fields and component cuts description to not overflow this limit (clipped description appends with '(...)').

Source media file at switching between album tracks will be reused for audio and for video. If video is disabled, you even will have gapless playback between album tracks.
Title: Re: foo_youtube
Post by: WilB on 2015-06-03 00:10:50
Thanks for the update. I appreciate the ability to split full albums into individual tracks and the way you have done it seems very well thought out. I tried it with a few main albums and it worked well. However, is it possible to permanently enter a query with titleformatting or a regex expression? In particular, I would like always to be able to automatically remove " (Full Album)" and similar which often appear in the title and stop the musicbrainz look up from finding results. For now I can do it manually each time.

Another problem is that 1.10 has completely broken the YouTube Track Manager wsh script; essentially it can no longer load any youtube tracks into playlists in radio or album modes. The script adds links through the foobar2000 commandline. The script still gets the correct youtube links, but they are not being loaded by foo_youtube 1.10 into playlists. foo_youtube 1.9.3 still loads them correctly, so there seems to be a broken interaction with 1.10 or perhaps its no longer recognising the metadata overriding. I hope that this can be fixed or am I overlooking a changed setting?
Title: Re: foo_youtube
Post by: mire777 on 2015-06-03 10:28:34
Youtube Radio script also doesn't work with latest version.
Script use ''add location'' for adding track, but even manualy track adding doesn't work in new ver..

Title: Re: foo_youtube
Post by: 3dyd on 2015-06-03 22:00:20
I see, it's a bug. To use native foobar multitrack and cuesheet stuff was added simple filesystem service implementation for 3dydfy:// proto. Seems too simple, need improve it a little.
Title: Re: foo_youtube
Post by: 3dyd on 2015-06-05 16:39:09
New version 1.10.1

Changelog:
- clip link files support, draft. Physical file (simple XML, specification (http://fy.3dyd.com/home/#Clip_link_files)) which recognized by foobar as Youtube clip. Unlike m3u, from foobar point of view this is audio file, not playlist. Have several ideas for it in further versions.
- fixed inability to add URLs with component protocol. As a bonus - now clip URL will be displayed without protocol part in places like clip properties or selection properties panel.
- removed custom UI for single URL adding. Now adding a single URL from 'Add Youtube URL(s)...' command works the same as 'Add location...' so it is removed and command renamed to 'Add multiple URLs...'
- fixed video window autoshow. Window will be not closed&reopened at switching between Youtube clips. It will also not turn off fullscreen mode in this case.
- fixed lack of info about audio quality after playback start.
Title: Re: foo_youtube
Post by: rds_correia on 2015-06-17 11:31:22
Hi 3dyd.
I can't thank you enough for this foobar addon. This is amazing stuff, really.

I'm sorry if this may have been answered here already (I swear I searched but didn't find) but can someone tell me if I can run a search only for playlists using foo_youtube? I mean when doing a "Youtube Source > Search". I put the artist and album name in there but then is there some kind of filter that I could use to get only Youtube's playlists results?
Thanks in advance.
Title: Re: foo_youtube
Post by: 3dyd on 2015-06-17 12:43:52
For now search is performed only for videos i.e. it is the same as if select on Youtube in search filters Type -> Video.
Title: Re: foo_youtube
Post by: rds_correia on 2015-06-17 19:56:34
For now search is performed only for videos i.e. it is the same as if select on Youtube in search filters Type -> Video.

Okay. Since the Youtube website search filters also include Playlist besides Video, should I assume that this might become a future feature? Or it's not that easy?
Title: Re: foo_youtube
Post by: 3dyd on 2015-06-17 21:47:06
Yes, this is possible, and yes, it's not that easy, so I cannot assume yet when and how this will be available.
Title: Re: foo_youtube
Post by: rds_correia on 2015-06-18 05:51:35
Thanks a bunch mate.
Title: Re: foo_youtube
Post by: zeremy on 2015-06-21 08:40:43
Is it possible to remove video activity , when you close the video window in progress, to save bandwidth ?
It seems that the video keeps on downloading even when you close the video window.
Title: Re: foo_youtube
Post by: 3dyd on 2015-06-22 11:17:48
Oh, it's a bug (probably side effect of switching to multitrack in 1.10). Until the problem is fixed, you can use 1.9.3 which does not have this problem.
Title: Re: foo_youtube
Post by: WilB on 2015-06-27 12:51:04
Unfortunately, I have another issue with 1.10.1. 1.9.3 behaves correctly.

This only concerns adding tracks with metadata overriding. It does not occur when tracks are added by other ways or if metadata overriding is disabled.

The problem is disapearing Youtube source fields such as %3dydfy_title% or %3dydfy_view_count% (all the youtube source fields disappear). If add a track to a playlist all is fine when the track is played. If the same track is re-added to a playlist, often upon playing, all the youtube source fields disappear from properties for both copies - typically I would add the second copy to a different playlist that I also want the track in, but it can be the same playlist. May be this is related to the skipping of analysis at clip info retrieving by foo_youtube - a feature that is very important (so please don't remove it) - and caching effects.

For example, compare the two images below which illustrates the disappearing view count (the times are the playback time remaining and it is the same track).

(http://i.imgur.com/ArLmmxw.png)


(http://i.imgur.com/hufvkz9.png)
Title: Re: foo_youtube
Post by: 3dyd on 2015-06-29 14:51:56
Found where it is. Will be fixed in next ver.
Title: Re: foo_youtube
Post by: 3dyd on 2015-07-09 22:26:15
New version 1.11

Changelog:
Title: Re: foo_youtube
Post by: DrPizza on 2015-07-21 16:36:29
I have a YouTube playlist: https://www.youtube.com/playlist?list=PL61E2DF1CC1D32C9A (https://www.youtube.com/playlist?list=PL61E2DF1CC1D32C9A)

When I added it only the first 25 songs (up to Midnight City) get added. Everything after gets ignored. Is this a known limitation?
Title: Re: foo_youtube
Post by: 3dyd on 2015-07-22 16:45:00
There should appear 'get more' item to retrieve next portion of the feed but seems this does not work for playlists but works for channels and user uploads (which actually are channels too). I'll try to fix this in the coming days. For now, for this particular playlist (it has 30 videos) you can bypass the problem by increasing 'Feed portion' (from Features component preferences tab) to 30+ items.
Title: Re: foo_youtube
Post by: Starbucks on 2015-07-25 08:19:05
This is a really handy feature, but I have just one question.
It takes ages for a song to start playing.

I usually stream playlists into Foobar, and it takes at least 30 seconds for it to start playback of a song.
Is there any way I can improve this time? The reason I got this component was so that I didn't have to download songs 
Title: Re: foo_youtube
Post by: 3dyd on 2015-07-26 00:25:52
Probably M4A selected for playback (i.e. MP4 DASH AAC). You can disable m4a using 'Formats to ignore' in component preferences Audio tab or better hit 'Reset page' there (ensure you have the latest 1.11 ver). More about this issue here (http://fy.3dyd.com/home/#About_MP4_DASH_files).
Title: Re: foo_youtube
Post by: Starbucks on 2015-07-26 07:11:22
That seemed to do the trick! Thanks so much. 
Title: Re: foo_youtube
Post by: Wolfbane on 2015-07-28 18:31:10
Would it be a lot of work to implement "Twitch.tv" channels as a source ?
Or would a stream be really complex or maybe even impossible to implement into this plugin ?
Title: Re: foo_youtube
Post by: Wolfbane on 2015-07-28 19:52:33
Im getting this info popup all the time.

Youtube Source: VideoSourceStreamFb2k->Read: Connection error
Title: Re: foo_youtube
Post by: 3dyd on 2015-07-29 12:24:23
Would it be a lot of work to implement "Twitch.tv" channels as a source ?
Or would a stream be really complex or maybe even impossible to implement into this plugin ?

Too complex.

Im getting this info popup all the time.
Youtube Source: VideoSourceStreamFb2k->Read: Connection error

Select own downloader (foo_youtube) in component preferences Video tab -> 'Media downloading'.
Title: Re: foo_youtube
Post by: Raballus on 2015-07-31 12:05:06
Could you maybe increase the max value for the "Feed portion" and "Search portion" options?
I regularly scan whole channels with several hundred videos and it is somewhat annoying to click on the add more videos all the time.

Explanation why I do this:
  My main playlist includes more than 3000 items right now, most of them being Youtube videos from 12 mainly huge music channels (~300 vids each).
  In order to get the newest songs I re-scan all those channels every few days and then remove the duplicates. This gets quite tedious when I have to load 3000 songs in batches of at most 50.

So could you maybe increase the max portion size to something like 1000 (somewhat like it was before), or even add an option to fully switch off the scanning in portions?
I would really appreciate it as it would make things much easier. 

Title: Re: foo_youtube
Post by: 3dyd on 2015-07-31 23:24:01
New version 1.11.1

Changelog:
- at fetching the feed can be specified number of portions to retrieve. Available only in 'Add multiple URL(s)' window
- show generated album end time in Make Album tracks list
- 'add ffdshow raw video filter to graph' advanced option. This makes it possible to use SVP (http://www.svp-team.com/) at video playback. SVP-related stuff (and ffdshow) should be downloaded and configured separately
- video background image path can be relative to user profile directory
- columns in search window can be hidden
- fix retrieving next portion of playlists
Title: Re: foo_youtube
Post by: WilB on 2015-08-10 18:33:46
@3dyd
Please can you consider adding full support for foo_tags (http://www.foobar2000.org/components); i.e. youtube videos referenced from within m_TAGS files? Why? Well they provide a convenient way of adding albums loaded through my youtube track manager script to the media library, which then offers all the benefits of using the media library. I have much of this working well already. Music playback is fine. But there are a few more specific foo_youtube things that do not work.

1. Video playback doesn't seem to work
2. Youtube Source fields are absent, and consequently thumbnails do not display
3. Make Album is greyed out and so full albums cannot be processed

I am hoping this is just a simple detection issue, e.g. the path in properties points to the m-TAGs file rather than directly to the video path. The video path can be accessed using: $info(@). The m_TAGS files are in json format. Full foo_tags documentation is here (http://m-tags.org/) (it's sometimes offline).

Below are two examples. One is an album with individual tracks and the other is a full album. Just save the text in a text editor with a .tags extension (it may be necessary to save it as utf-8). If foo_tags is installed, then the resulting file can be dropped in a foobar2000 playlist.

Album with individual tracks

Code: [Select]
[
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=1&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Life%20on%20Mars%3F&3dydfy_alt_length=242&fb2k_artist=David%20Bowie&v=v--IqqusnNQ|0",
      "ALBUM" : "iSELECT",
      "ARTIST" : "David Bowie",
      "DATE" : "2008",
      "DURATION" : "242.0000000",
      "TITLE" : "Life on Mars?",
      "TRACKNUMBER" : "1",
"TRACKSOURCE" : "YouTube Track Manager",
      "TRACKTYPE" : "m-TAGS - YouTube Video"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=2&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Sweet%20Thing%20%2F%20Candidate%20%2F%20Sweet%20Thing%20(reprise)&3dydfy_alt_length=519&fb2k_artist=David%20Bowie&v=5cDJoiNa_F4|0",
      "DURATION" : "519.0000000",
      "TITLE" : "Sweet Thing / Candidate / Sweet Thing (reprise)",
      "TRACKNUMBER" : "2"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=3&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=The%20Bewlay%20Brothers&3dydfy_alt_length=328&fb2k_artist=David%20Bowie&v=aDRi30GNFMc|0",
      "DURATION" : "328.0000000",
      "TITLE" : "The Bewlay Brothers",
      "TRACKNUMBER" : "3"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=4&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Lady%20Grinning%20Soul&3dydfy_alt_length=235&fb2k_artist=David%20Bowie&v=6fHoMw8tCzo|0",
      "DURATION" : "235.0000000",
      "TITLE" : "Lady Grinning Soul",
      "TRACKNUMBER" : "4"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=5&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Win&3dydfy_alt_length=285&fb2k_artist=David%20Bowie&v=fdlWUQedW9I|0",
      "DURATION" : "285.0000000",
      "TITLE" : "Win",
      "TRACKNUMBER" : "5"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=6&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Some%20Are&3dydfy_alt_length=272&fb2k_artist=David%20Bowie&v=fuPcbPaME5w|0",
"DURATION" : "272.0000000",
      "TITLE" : "Some Are",
      "TRACKNUMBER" : "6"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=7&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Teenage%20Wildlife&3dydfy_alt_length=416&fb2k_artist=David%20Bowie&v=jVAJsu8Xnwc|0",
      "DURATION" : "416.0000000",
      "TITLE" : "Teenage Wildlife",
"TRACKNUMBER" : "7"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=8&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Repetition&3dydfy_alt_length=182&fb2k_artist=David%20Bowie&v=l2c73wQH73U|0",
      "DURATION" : "182.0000000",
      "TITLE" : "Repetition",
"TRACKNUMBER" : "8"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=9&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Fantastic%20Voyage&3dydfy_alt_length=182&fb2k_artist=David%20Bowie&v=3tD6FayGPyw|0",
      "TITLE" : "Fantastic Voyage",
      "TRACKNUMBER" : "9"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=10&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Loving%20the%20Alien&3dydfy_alt_length=283&fb2k_artist=David%20Bowie&v=65EJCzqOzdc|0",
      "DURATION" : "283.0000000",
      "TITLE" : "Loving the Alien",
      "TRACKNUMBER" : "10"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=11&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Time%20Will%20Crawl%20(MM%20remix)&3dydfy_alt_length=296&fb2k_artist=David%20Bowie&v=ojBFJkbTzaA|0",
      "DURATION" : "296.0000000",
      "TITLE" : "Time Will Crawl (MM remix)",
      "TRACKNUMBER" : "11"
  },
  {
      "@" : "3dydfy://www.youtube.com/watch?fb2k_tracknumber=12&fb2k_album=iSELECT&fb2k_date=2008&fb2k_title=Hang%20Onto%20Yourself%20-%20Live%20%5BHang%20On%20to%20Yourself%20(live)%5D&3dydfy_alt_length=186&fb2k_artist=David%20Bowie&v=4AI48_309KQ|0",
      "DURATION" : "186.0000000",
      "TITLE" : "Hang On to Yourself (live)",
      "TRACKNUMBER" : "12"
  }
]

Full Album

Code: [Select]
[
  {
      "@" : "3dydfy://www.youtube.com/watch?&fb2k_album=Adrenalize&fb2k_date=2008&fb2k_title=Adrenalize%20(Full%20Album)&3dydfy_alt_length=2727&fb2k_artist=Def%20Leppard&v=BTs98_pjwL4|0",
      "ALBUM" : "Adrenalize",
      "ARTIST" : "Def Leppard",
      "DATE" : "2008",
      "DURATION" : "2727.0000000",
      "TITLE" : "Adrenalize (Full Album)",
      "TRACKSOURCE" : "YouTube Track Manager",
      "TRACKTYPE" : "m-TAGS - YouTube Video"
  }
]

I hope you can help - you have done a great job so far.


Title: Re: foo_youtube
Post by: 3dyd on 2015-08-12 21:10:18
Ok. Yes, these things probably refer to the track path, thus these tracks are ignored. I'll check what can be done.
Title: Re: foo_youtube
Post by: torteusz on 2015-08-18 17:20:37
@3dyd

I think on Dailymotion totally changed the links to the clips because I can not play anything eg: http://www.dailymotion.com/video/x2589ul_e...ull-album_music (http://www.dailymotion.com/video/x2589ul_eloy-1971-full-album_music) - the browser works in Foobar not, check for yourself.
Title: Re: foo_youtube
Post by: 3dyd on 2015-08-18 17:50:54
Yep. It's actually already fixed but I'd like to finish with m-TAGS before release
Title: Re: foo_youtube
Post by: 3dyd on 2015-08-20 16:58:07
New version 1.11.2

Changelog:
- additional columns in search window. All new columns represent clip properties (uploader, like/dislike count, rating and view count) i.e. they are the same as in site-specific metadata (http://fy.3dyd.com/home/#Site_specific_metadata) so additional info can be found there
- fix for Dailymotion
- clip link files removed. m-TAGS supposed to be used instead.
- switched to SDK 2015-08-03

Proper support of m-TAGS consists in avoiding of explicit m-TAGS support (e.g. do not refer to '@'). This will take more time so will be in the next release.
Title: Re: foo_youtube
Post by: WilB on 2015-08-26 17:56:40
Thanks. I eagerly look forward to the next release.
Title: Re: foo_youtube
Post by: 3dyd on 2015-09-09 00:52:49
New version 1.11.3

Changelog:
- AMR support. Youtube added 3GP quality with AMR audio (AMR-NB codec, 8000Hz Mono). Not a revolution but anyway, component should support decoding of all available qualities
- switched to native SSL backend. Again. For Windows users there should be no difference. Linux users should read a note (http://fy.3dyd.com/home/#Note_for_Linux_users)
- feed urls can be (but not intended to be) placed in search query editbox
- fixed using custom fields as filenames. Now properly dealing with slashes in these fields - they will be replaced as in regular meta fields
- fixed slow working on active simultaneous tracks using
- for cached album art files now used canonical urls and different filenaming
Title: Re: foo_youtube
Post by: cu9map on 2015-09-09 18:50:46
Thank you so much for this plugin!...I hope there will be an option for "full screen" in the video setting, if possible.

Title: Re: foo_youtube
Post by: rds_correia on 2015-09-12 20:31:25
I know this is not the scope of this amazing addon, but would it be possible to download a song from YT using foo_youtube?
Thanks a lot, 3dyd.
Title: Re: foo_youtube
Post by: mystNZ on 2015-09-13 09:35:42
I just discovered this component today. I am blown away.
Very cool to have music videos playing in foobar, thank you very much!!
Hope you continue to support it down the track as things change, wouldn't want to loose this functionality 

Only request I have, is to have the video window automatically close when stopping a track. It's great that it auto pops-up when starting, would be great to auto close as well.

Cheers mate!
Title: Re: foo_youtube
Post by: 3dyd on 2015-09-13 13:54:17
Thank you so much for this plugin!...I hope there will be an option for "full screen" in the video setting, if possible.

You mean when video window becomes visible, show it in full screen? Because currently it already can be displayed in full screen but this should be initiated manually (right click on video window and select 'Full screen')

I know this is not the scope of this amazing addon, but would it be possible to download a song from YT using foo_youtube?

In this context it works and will work only as regular decoder in foobar.

Only request I have, is to have the video window automatically close when stopping a track. It's great that it auto pops-up when starting, would be great to auto close as well.

Option 'Show video frame -> Automatically' actually supposed to work this way. And it really will close the window if next track is not Youtube. But if press stop, it remains opened. It's a bug, thanks for report.
Title: Re: foo_youtube
Post by: cu9map on 2015-09-13 22:19:38
Thank you so much for this plugin!...I hope there will be an option for "full screen" in the video setting, if possible.

You mean when video window becomes visible, show it in full screen? Because currently it already can be displayed in full screen but this should be initiated manually (right click on video window and select 'Full screen')



Yes, that is correct...I would like the video window showing in full screen automatically when playing.  Again, thanks for this youtube add on,  it is my favorite one!
Title: Re: foo_youtube
Post by: mystNZ on 2015-09-14 09:53:05
Hi 3dyd, possibly another small bug... when right clicking on a song in the library/playlist, then context menu youtube source, then selecting "'artist - song' (auto)", the expected behavior is that that would initate a search for the music video of that selected song.. But what it does, is REPLACE the actual song in the playlist with a link to the video. If this is your desired function, then could you at least add a "search youtube" option for a song. The idea is to be able to right click any normal song in the library and have a video window automatically popup with it's music video (if found on YT of course). If you could allow a shortcut (foobar preferences/keyboard shortcuts) to be made for this auto search it would be perfect.

Thanks!
Title: Re: foo_youtube
Post by: 3dyd on 2015-09-15 21:24:41
Yes, 'Search replacement' intended to _replace_ track with 'get more (http://fy.3dyd.com/home/#Integrated_search_playlist_item)' item. When started, this item will perform search on Youtube and will replace itself with first search result. What to search (i.e. search query) generates from track metadata using titleformatting by the rule specified in advanced component preferences -> Search replacement pattern.

'Search replacement' can be applied to multiple tracks at once. 'Expand get more' - not. Tracks for 'Search replacement' are not have to be from Youtube, you can replace regular tracks too.

Quote
The idea is to be able to right click any normal song in the library and have a video window automatically popup with it's music video
This request is too specific. And it has no extra functionality over existing, just saves few clicks.

Quote
(if found on YT of course)
As you can see from description above, it will have result almost always. But depending of search query this result could be quite not what you expected.

Quote
If you could allow a shortcut (foobar preferences/keyboard shortcuts) to be made for this auto search it would be perfect.
Shortcuts for 'Search replacement' and 'Expand 'get more'' actually should be there, it's a bug, well, thanks again.
Title: Re: foo_youtube
Post by: mire777 on 2015-09-22 16:13:49
Small problem for me, if i move mouse pointer over the video, pointer disapear after 3 seconds of inactivity.
Even if i select never in settings mouse disapear.
Can you add option that mouse always be visible?
Title: Re: foo_youtube
Post by: 3dyd on 2015-09-22 20:10:41
Ok, noted.
Title: Re: foo_youtube
Post by: MaCs on 2015-09-23 01:53:22
When doing a search in the "Youtube Search" panel, the results appear in that window and the tracks can then be dragged in a playlist. However, with the "Youtube Search (Integrated)" panel, the results are sent to the active playlist, instead of being displayed in the Search window. Would it be possible to get the same behaviour as the "Youtube Search" panel?

Thanks.
Title: Re: foo_youtube
Post by: 3dyd on 2015-09-23 10:52:13
Yes, "Youtube Search (Integrated)" UI panel does not have its own list for search results and uses playlist for this. It can be active playlist or some specific playlist (configured through search context menu of the panel).

So, what do you mean? To have its own results list in the panel? Or to use list from "Youtube Source" window when searching using "Youtube Search (Integrated)" UI panel?
Title: Re: foo_youtube
Post by: MaCs on 2015-09-23 15:10:30
I would like the Integrated panel to show results inside the panel, instead of sending them automatically to a playlist. If it's possible,of course.
Title: Re: foo_youtube
Post by: 3dyd on 2015-09-23 15:22:51
Ok, noted. But probably not in the next version.
Title: Re: foo_youtube
Post by: MaCs on 2015-09-23 19:57:30
Thanks!
Title: Re: foo_youtube
Post by: renega on 2015-09-23 21:56:24
I put a lot of annotations in a tag inside the mp3 I found interesting, so it would be great if I could save as files those Youtube tunes greatly provided by your plugin.

If you are not interested in adding this, for ex. as a context choice, maybe you can suggest some scripting ideas to achieve it.
Title: Re: foo_youtube
Post by: widerock on 2015-09-24 08:47:48
Thank you for the great plug-in for foobar.

Is there any chance of playing the local media file (video + audio) with foo_youtube?
It would be great if the media files in the special playlist (for exameple, "Music Video" something like that) can be palyed with foo_youtube.
Title: Re: foo_youtube
Post by: 3dyd on 2015-09-24 13:33:31
New version 1.11.4

Changelog:
- Twitter's link service (t.co) support. Might be useful when t.co link points to supported site - now don't need to manually determine actual URL using the browser. More info: About Twitter's link service (https://support.twitter.com/articles/109623#)
- check LAV Filters version before use. Includes checking for minimum required version and checking for newer version. Last one is for case when has internal filters (preconf_video) and filters installed in the system. Previously was used installed filters regardless of their version, now will be used filters with newer version
- fix for Youtube due to change on the site, relates to "Write error" at the page analysis. This is emergency fix, release issued right now only because of it
Title: Re: foo_youtube
Post by: 3dyd on 2015-09-24 14:42:03
@renega
Not quite understand what you mean.

@widerock
No chance within this component, sorry.
Title: Re: foo_youtube
Post by: renega on 2015-09-24 16:36:40
I simply want to save a youtube tune I'm listening with your plugin as an mp3 file on my hdd.
(or mp4 or any other audio file readable by foobar)
Title: Re: foo_youtube
Post by: mire777 on 2015-09-24 17:16:15
I simply want to save a youtube tune I'm listening with your plugin as an mp3 file on my hdd.
(or mp4 or any other audio file readable by foobar)


You can already save all videos as mp3 using ''context menu>convert '', you need lame for mp3(default is saved as wav) search google, download lame, then configure this in converter.. You can also make button for this..
Title: Re: foo_youtube
Post by: mystNZ on 2015-09-25 12:55:45
New version 1.11.4

Hi 3dyd, I thought you mentioned that the window not auto-closing on stop bug has been fixed ... I am still experiencing it with this update..
"Show video frame: automatically..." is selected in the settings.
Title: Re: foo_youtube
Post by: 3dyd on 2015-09-25 14:04:03
No, I only confirmed the bug. It is not fixed yet. This intermediate release was because of critical fix for Youtube. And it contains only changes described in changelog. Except one - I forgot to mention that now keyboard shortcuts for 'expand get more' and 'search replacement' are available too.
Title: Re: foo_youtube
Post by: mire777 on 2015-10-02 21:40:56
3dyd, I have tag script, that writes tags(on track play), after tags are updated, if video plays, playback stop.
Can this be somehow avoided? This happens because foobar reopen file..
Title: Re: foo_youtube
Post by: 3dyd on 2015-10-05 10:41:25
Not sure, maybe. You can send me the script to reproduce this so I'll be able to check what happens in the component.
Title: Re: foo_youtube
Post by: mire777 on 2015-10-05 13:48:05
Not sure, maybe. You can send me the script to reproduce this so I'll be able to check what happens in the component.

Ok, paste this script in WSH panel:
(Script will update genre tag from Last.fm).

Code: [Select]
// ==PREPROCESSOR==
// @name "Auto Tag"
// @author "Mire777"
// @feature "v1.4"
// @feature "watch-metadb"
// ==/PREPROCESSOR==

//Properties
var api_key = window.GetProperty("Last.fm Api", "f21088bf9097b49ad4e7f487abab981e");
var AutoTag = window.GetProperty("Tag Auto", "1");
var Overwrite = window.GetProperty("Tag Overwrite", "0");
var objXMLHTTP = new ActiveXObject("MSXML2.XMLHTTP");
var top_tags_values;
var UpdateTags;
var text = "";

function on_playback_time (time) {
metadb = fb.GetNowPlaying();
if (!metadb) {return;}
if(AutoTag==1 && time==1)
{
top_tags_values=""; getTags();
}}

function RGB(r, g, b) {
    return (0xff000000 | (r << 16) | (g << 8) | (b));
}

ButtonStates = {
    normal: 0,
    hover: 1,
    down: 2,
    hide: 3
}

var DT_TOP = 0x00000000;
var DT_CENTER = 0x00000001;
var DT_VCENTER = 0x00000004;
var DT_WORDBREAK = 0x00000010;
var DT_CALCRECT = 0x00000400;
var DT_NOPREFIX = 0x00000800;

var g_theme = window.CreateThemeManager("Button");
var g_font = gdi.Font("Tahoma",11);

function SimpleButton(x, y, w, h, text, fonClick, state) {
    this.state = state ? state : ButtonStates.normal;
    this.x = x;
    this.y = y;
    this.w = w;
    this.h = h;
    this.text = text;
    this.fonClick = fonClick;

    this.containXY = function(x, y) {
        return (this.x <= x) && (x <= this.x + this.w) && (this.y <= y) && (y <= this.y + this.h);
    }

    this.changeState = function(state) {
        var old = this.state;
        this.state = state;
        return old;
    }

    this.draw = function(gr) {
        if (this.state == ButtonStates.hide) return;

        switch (this.state) {
            case ButtonStates.normal:
                g_theme.SetPartAndStateId(1, 1);
                break;

            case ButtonStates.hover:
                g_theme.SetPartAndStateId(1, 1);
                break;

            case ButtonStates.down:
                g_theme.SetPartAndStateId(1, 3);
                break;

            case ButtonStates.hide:
                return;
        }

        g_theme.DrawThemeBackground(gr, this.x, this.y, this.w, this.h);
        gr.GdiDrawText(this.text, g_font, RGB(0, 0, 0), this.x, this.y, this.w, this.h, DT_WORDBREAK | DT_CENTER | DT_VCENTER | DT_CALCRECT | DT_NOPREFIX);
    }

    this.onClick = function() {
        this.fonClick && this.fonClick();
    }
}

function drawAllButtons(gr) {
    for (var i in $buttons) {
        $buttons[i].draw(gr);
    }
}

function chooseButton(x, y) {
    for (var i in $buttons) {
        if ($buttons[i].containXY(x, y) && $buttons[i].state != ButtonStates.hide) return $buttons[i];
    }

    return null;
}

$buttons = {
    FindTags: new SimpleButton(0, 0, (window.Height) - (window.Height)+27, (window.Height) - (window.Height)+22, "Tag", function() {
        rbtn_up(24, 17);
       
    }),

}

var cur_btn = null;
var g_down = false;

function on_size() {
ww = window.Width;
wh = window.Height;
    window.Repaint();
}

function on_paint(gr) {
    this.dui = window.InstanceType;
   
    if (this.dui) {
    col = window.GetColorDUI(1);
    gr.FillSolidRect(0, 0, ww, wh, col);
    }
    else
    {
    col = window.GetColorCUI(3);   
    }
   
    myfont = gdi.Font("Segoe UI", 12, 0)
    gr.FillSolidRect(0, 0, window.Width, window.Height, col);
    gr.GdiDrawText(text, myfont, col, 0, 40, window.Width, window.Height, DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
    drawAllButtons(gr);
}

function on_mouse_move(x, y) {
    var old = cur_btn;
    cur_btn = chooseButton(x, y);

    if (old == cur_btn) {
        if (g_down) return;
    } else if (g_down && cur_btn && cur_btn.state != ButtonStates.down) {
        cur_btn.changeState(ButtonStates.down);
        window.Repaint();
        return;
    }

    old && old.changeState(ButtonStates.normal);
    cur_btn && cur_btn.changeState(ButtonStates.hover);
    window.Repaint();
}

function on_mouse_leave() {
    g_down = false;

    if (cur_btn) {
        cur_btn.changeState(ButtonStates.normal);
        window.Repaint();
    }
}

function on_mouse_lbtn_down(x, y) {
    g_down = true;

    if (cur_btn) {
        cur_btn.changeState(ButtonStates.down);
        window.Repaint();
    }
}

function on_mouse_lbtn_up(x, y) {
    g_down = false;

    if (cur_btn) {
        cur_btn.onClick();
        cur_btn.changeState(ButtonStates.hover);
        window.Repaint();
    }
}

//Menu
this.rbtn_up = function(x, y) {
var _menu = window.CreatePopupMenu();
var q = window.CreatePopupMenu();
var MF_GRAYED = 0x00000001;
var MF_STRING = 0x00000000;
var MF_SEPARATOR = 0x00000800;
var MF_POPUP = 0x00000010;
var idx;

if(AutoTag==1) _menu.AppendMenuItem(MF_STRING, 1, "Auto Tag");
if(AutoTag==0) _menu.AppendMenuItem(MF_STRING, 2, "Auto Tag");
_menu.CheckMenuItem(1, AutoTag?1:0);

_menu.AppendMenuSeparator();

if(Overwrite==1) _menu.AppendMenuItem(MF_STRING, 3, "Overwrite");
if(Overwrite==0) _menu.AppendMenuItem(MF_STRING, 4, "Overwrite");
_menu.CheckMenuRadioItem(3, 4, 4-1);

_menu.AppendMenuSeparator();

_menu.AppendMenuItem(MF_STRING, 5, "Get Tags...");

_menu.AppendMenuSeparator();

_menu.AppendMenuItem(MF_STRING, 6, "Properties...");

if (utils.IsKeyPressed(0x10)) _menu.AppendMenuItem(MF_STRING, 7, "Configure...");

        idx = _menu.TrackPopupMenu(x, y);
        switch(idx) {
         
          case 1:
                AutoTag = 0;
                window.SetProperty("Tag Auto", "0");
break;
               
          case 2:
                AutoTag = 1;
                window.SetProperty("Tag Auto", "1");
break;
               
          case 3:
                Overwrite = 0;
                window.SetProperty("Tag Overwrite", "0");
break;
               
          case 4:
                Overwrite = 1;
                window.SetProperty("Tag Overwrite", "1");
break;
               
          case 5:
                UpdateTags = 1;
                getTags();
break;

          case 6:
                window.ShowProperties();
break;
         
          case 7:   
                window.ShowConfigure();
                break;
               
            }
              _menu.Dispose();
          }

function getTags() {
    if (objXMLHTTP != null) {
    {
        metadb = fb.IsPlaying ? fb.GetNowPlaying() : fb.GetFocusItem();
        if (!metadb) {return;}
        genre = fb.TitleFormat("%Genre%").EvalWithMetadb(metadb);
        artist = fb.TitleFormat("%artist%").EvalWithMetadb(metadb);
        title = fb.TitleFormat("%title%").EvalWithMetadb(metadb);
        file = fb.TitleFormat("%path%").EvalWithMetadb(metadb);
       
        {if (Overwrite==0 && genre>"?" && !UpdateTags) return;}
        if (artist == "" || artist == "?" || title == "" || title == "?") return;

        url = "https://ws.audioscrobbler.com/2.0/?method=track.getInfo&api_key=" + api_key + "&artist=" + encodeURIComponent(artist) + "&track=" + encodeURIComponent(title) + "&format=json";
       
        try {
            objXMLHTTP.open("GET", url, false);
            objXMLHTTP.setRequestHeader('User-Agent', "foobar2000_script");
            objXMLHTTP.send("");
            urlreadyState = (objXMLHTTP.readyState);
            urlstatus = (objXMLHTTP.status);
           
            if (urlreadyState == "4" && urlstatus == "200") {
            data = objXMLHTTP.ResponseText;
            objXMLHTTP.Close;
            }
           
            json_data = JSON.parse(data);

            artist_name = json_data.track.artist.name;
            title_name = json_data.track.name;

            top_tags = json_data.track.toptags.tag;
            top_tags_values = [];

            items = top_tags.length;

            if (top_tags.length > 0) {
            for (i = 0; i < items; i++) {
            name = json_data.track.toptags.tag[i].name.replace(/&amp;/g, " \& ");
            top_tags_values.push(name);
                }
            }
           
            fb.trace("Tags:" + top_tags_values);
            objXMLHTTP.Close;
           
          } catch (err) {
          objXMLHTTP.Close;
          }     
 
          if (top_tags_values>"")
          {
          tags = top_tags_values.toString();
          tags = tags.replace(/,/g, "/");
          metadb.UpdateFileInfoSimple("GENRE", tags);
          window.Repaint();
          UpdateTags = "";
          }
          else {getTags2();}
}}}

function getTags2() {
    if (objXMLHTTP != null) {
    {
        metadb = fb.IsPlaying ? fb.GetNowPlaying() : fb.GetFocusItem();
        if (!metadb) {return;}
        genre = fb.TitleFormat("%Genre%").EvalWithMetadb(metadb);
        artist = fb.TitleFormat("%artist%").EvalWithMetadb(metadb);
        title = fb.TitleFormat("%title%").EvalWithMetadb(metadb);
        file = fb.TitleFormat("%path%").EvalWithMetadb(metadb);
   
        {if (Overwrite==0 && genre>"?" && !UpdateTags) return;}
        if (artist == "" || artist == "?" || title == "" || title == "?") return;

        url = "https://ws.audioscrobbler.com/2.0/?method=artist.getTopTags&api_key=" + api_key + "&artist=" + encodeURIComponent(artist) + "&format=json";
       
        try {
            objXMLHTTP.open("GET", url, false);
            objXMLHTTP.setRequestHeader('User-Agent', "foobar2000_script");
            objXMLHTTP.send("");
            urlreadyState = (objXMLHTTP.readyState);
            urlstatus = (objXMLHTTP.status);
            if (urlreadyState == "4" && urlstatus == "200") {
            data = objXMLHTTP.ResponseText;
            objXMLHTTP.Close;
            }

            json_data = JSON.parse(data);

            top_tags = json_data.toptags.tag;
            top_tags_values = [];

            if (top_tags.length > 0) {
            var lng;
            if (top_tags.length>5) {lng = 5;}
            if (top_tags.length<5) {lng = top_tags.length;}
               
            for (i = 0; i < lng; i++) {
            name = json_data.toptags.tag[i].name.replace(/&amp;/g, " \& ");
            top_tags_values.push(name);
                }
            }
           
            fb.trace("Tags:" + top_tags_values);
            objXMLHTTP.Close;
           
          } catch (err) {
          objXMLHTTP.Close;
          }     
       
          if (top_tags_values>"")
          {
          tags = top_tags_values.toString();
          tags = tags.replace(/,/g, "/");
          metadb.UpdateFileInfoSimple("GENRE", tags);
          window.Repaint();
          UpdateTags = "";
          }
}}}


function on_playback_stop() {
    tags = "";
    window.Repaint();
}

function on_mouse_rbtn_up(x, y) {
return true;
}

Try this url: www.youtube.com/watch?fb2k_title=All%20I%20Need&3dydfy_alt_length=217&fb2k_artist=Koffee%20Brown&v=87H4sBbik6s
For me it stops after 10 sec.
Title: Re: foo_youtube
Post by: 3dyd on 2015-10-05 16:31:18
Checked on clean portable install (fb2k 1.3.9b4, WSH 1.5.6, fy_preconf_video 1.11.4). Added URL, opened video window and started playback. All ok, tags were updated, playback (audio and video) has not been interrupted. The same was with my regular config. Can you check on clean installation?
Title: Re: foo_youtube
Post by: mire777 on 2015-10-06 08:49:43
Checked on clean portable install (fb2k 1.3.9b4, WSH 1.5.6, fy_preconf_video 1.11.4). Added URL, opened video window and started playback. All ok, tags were updated, playback (audio and video) has not been interrupted. The same was with my regular config. Can you check on clean installation?


Yes all works fine on clean install.
I reset youtube source page in my config and now it's ok.
No interruptions, even works better then earlier..
I think that this is because of ffmpeg i used, maybe it's too old..
Thank you for this. Sorry i bothered you with no reason..
Title: Re: foo_youtube
Post by: widerock on 2015-10-06 16:18:48
Thank you for the great plugin.
I should have known this one earlier.

I have one question about video playing.
When I set the video frame to be palyed "Automatically when the clip starts to play", it plays in a framed window.
The Question is :
When I set it to be played "Manually for each clip", is it possible to play the video in a framed window, not in a web-browser?
Title: Re: foo_youtube
Post by: 3dyd on 2015-10-06 17:28:50
Video playback always goes in framed window. Option "Show video frame" specifies how to show and hide this framed window. 'Manually for each clip' means that not need to show it automatically - you will do this by yourself when you want - but need to hide it automatically after one clip playback was ended. Auto hiding option will be separated in next version from this option, so they become more understandable.
Title: Re: foo_youtube
Post by: widerock on 2015-10-06 17:38:03
Video playback always goes in framed window. Option "Show video frame" specifies how to show and hide this framed window. 'Manually for each clip' means that not need to show it automatically - you will do this by yourself when you want - but need to hide it automatically after one clip playback was ended. Auto hiding option will be separated in next version from this option, so they become more understandable.


Thank you for the answer. I find a menu to open the video in a window under the view menu.

I have another question or request.
When there is a CC, I'd like to play the video with CC as a default.
I tried to find if there is any option about this, but unfortunately I failed.
If this is not possible at this moment, could you consider to implement this function in the next release?
Title: Re: foo_youtube
Post by: 3dyd on 2015-10-06 17:58:27
Yes, there are no such option at this moment. I'll add it.
Title: Re: foo_youtube
Post by: lostinthenet on 2015-10-10 22:33:46
great feature,thx. i just have 2 questions...

im using the "audio only" version of the plugin, and , speaking of bandwitdh, am i saving it since video is off?

not sure i understood what is m-tags used for, since the files are not stored in my pc i cant use replaygain to set each youtube link, so... will mtags let me set the volume for the entire playlist or per single link or both?  or i totally misunderstood what mtags is?

thx in advance

cheers
Title: Re: foo_youtube
Post by: WilB on 2015-10-11 00:14:43
You'll  save bandwidth if video is not enabled.

You  don't need m-TAGS for that. You need to install the EBU R128 Compressor which  applies replay gain on the fly.

Install the R128Norm - EBU R128 Compressor (http://www.foobar2000.org/components/tag/DSP) as you would  any component. In preferences\playback\DSP manager add EBU R128 Compressor to the  list of ActiveDSPs.

However,  a better but more complicated way is to use the R128Norm - EBU R128 Compressor (http://www.foobar2000.org/components/tag/DSP) in  conjunction with DynamicDSP v2 (https://www.hydrogenaud.io/forums/index.php?showtopic=108904)  so that R128Comp kicks in just for tracks lacking  replay gain. You can do it as follows

Install  the DynamicDSP and EBU R128 Compressor components in the usual way.

In preferences\playback\DSP  manager add DynamicDSP to the list of ActiveDSPs. Highlight and click configure  selected. Enter e.g. $if(%replaygain_track_gain%,,R128Comp) titleformat script  in the large textbox at the top of the DynamicDSP configure window; enter the  DSP chain name R128Comp in the little textbox to the left of the "New  Chain" button then click that button; doubleclick the chain name in the  list box and add the EBU R128 Compressor.

There  are some other examples here (https://www.hydrogenaud.io/forums/index.php?s=&showtopic=96094&view=findpost&p=826073). This may also be useful if my instructions aren't clear.

The  EBU R128 Compressor automatically matches to the ReplayGain standard 89 dB  using the standard R-128 algorithm and a reasonable look-ahead. The EBU R128  Compressor should be at the top of the DSP chain if other DSPs are included.

Title: Re: foo_youtube
Post by: lostinthenet on 2015-10-11 10:18:01
that's very helpful, thanks WilB!
Title: Re: foo_youtube
Post by: lostinthenet on 2015-10-11 14:42:05
sorry i couldnt edit last msg.

@WilB the volume is fine, but i need to fix, if possible, the glitch happening at the end of each track. looking at the seekbar i can see it goes silence for 3-4 secs, then it goes back whre the silence began and play it again  till the end of the track.
Title: Re: foo_youtube
Post by: WilB on 2015-10-11 17:41:27
I have been using DynamicDSP v2 with the EBU R128  Compressor for quite a long time and I have not encountered any problems with my normal foo_youtube set-up. You could try switching to foobar2000 for media downloading in preferences\youtube source\audio to see if that makes any difference.

But the problem sounds similar to this (https://www.hydrogenaud.io/forums/index.php?s=&showtopic=104379&view=findpost&p=861194) and this (https://www.hydrogenaud.io/forums/index.php?s=&showtopic=104379&view=findpost&p=861288). That issue was resolved a long time ago by an update to DynamicDSP (https://www.hydrogenaud.io/forums/index.php?s=&showtopic=96094&view=findpost&p=862190). So the only other thing I can suggest is to make sure that you are using either the updated DynamicDSP or DynamicDSP v2 that I linked. If you are just using the EBU R128  Compressor that should work fine, but again it is worth trying switching to foobar2000 for media downloading to see if that makes a difference.

HTH


Title: Re: foo_youtube
Post by: lostinthenet on 2015-10-11 19:55:57
the problem is exactly the one described in those 2 links, i tried both DynDSP and DynDSP v2, but nothing has changed.
changing media downloading from foo_youtube to foobar2000 in youtube source preferences seemed to work after restart... but it is not. the silence could last from 0,5 to 4 secs on the same track, in different moments. this is making me crazy.
i will try again later or tomorrow.

thx.
Title: Re: foo_youtube
Post by: mire777 on 2015-10-12 02:14:15
sorry i couldnt edit last msg.

@WilB the volume is fine, but i need to fix, if possible, the glitch happening at the end of each track. looking at the seekbar i can see it goes silence for 3-4 secs, then it goes back whre the silence began and play it again  till the end of the track.


Just use crossfader in DSP(200ms or higher), should work...
Title: Re: foo_youtube
Post by: lostinthenet on 2015-10-13 13:08:07
it worked! thx!
Title: Re: foo_youtube
Post by: 3dyd on 2015-10-14 00:08:00
New version 1.12

Changelog:
- changes in tagging mechanism. All metadata now threats as custom metadata (i.e. mirrored in tech fields and searched only there). Metadata filling in regular case now goes only on track add: _if_ track does not exist yet then used meta overriding _or_ title parsing rule. After this the clip URL changes to - and stores in - the canonical form that planned to be used as a key in the storages of common clip data (already working example of one of these - thumbnails cache). This is a step toward the switch in further versions to custom database storage for properties (all these properties which currently are stored in tech fields)
- option for video frame show/hide was separated to two options (for show and for hide), provided actions was extended. 'Manual' there means that appropriate action will never be initiated automatically i.e. can be initiated only manually by the user. 'Hide after first track' means hide at end of the current track whatever the track type is. 'Hide after last video track' means keep it visible while the site clips are playing and hide if playback was switched to any other track type or if playback was stopped
- option to control mouse auto-hide in video frame
- option to initially turn on subtitles. Will turn on only embedded subtitles (i.e. lyrics from foo_uie_lyrics3 are not taken into account in this case)
- option for selecting fullscreen monitor i.e. which monitor to use when video enters full screen mode. Available only for multi-monitor environment. Can be selected explicit monitor or 'Current' which means monitor where the video frame was placed before going to full screen
- video-related titleformatting fields. Added %video_playback_state% ('Opening...', 'Stopped' etc) and %video_file_stats% (quality info of the video selected for playback). Video frame fallback text now generates only using titleformatting. Option to turn it off removed (specify empty rule instead this)
- video turn on/of without restart. Playback restart on next track still goes only when video is enabled so after turn on it may be unsynchronised
- in video context menu added command to stop video without window close. Also at manual video reopen (through Source popup menu in video context menu) now can be selected previously selected quality
- prevent monitor turn off while video is playing. Can be disabled through component Advanced preferences
- video support for m-TAGS files. Thus both audio and video playback in these files are available now. Album Art absence does not relate to component. Other features refer to custom tech fields, m-TAGS ignores tech info fields ('by design') so they will not be available
- removed switch to runtime config in LAV Filters (as not required currently). In terms of usage this means that LAV Filters will use current settings instead of default so now can be used H/W decoding as well as other embedded LAV Filters features
- respect foobar2000 quiet mode
- fixed inability to play clips after several hours of the first time when they was opened. Background: The info displayed in 'Youtube Source - History' intended not only for theoretical purposes. Since some version ago it represents analysis cache - several recent clips for which URLs to media files already determined and will not be determined again if these clips will be opened. It had no expiration control so after some time the info becomes outdated and refuses by the server. Now this is fixed, the info has lifetime period (which can be changed though Advanced component preferences)
- fixed crash at opening in specific case and freeze at opening in two other specific cases
Title: Re: foo_youtube
Post by: widerock on 2015-10-14 01:40:36
New version 1.12

- option to initially turn on subtitles.

Thank you very much for the subtitle on/off option.
Your great foo_youtube makes my foobar life more enjoyable.
Title: Re: foo_youtube
Post by: Wolfbane on 2015-10-16 15:55:36
Im not sure why I Cant see any video after last update, image of my settings.

(http://oi60.tinypic.com/znx35g.jpg)

I tested around with many settings and I could not get it to work.

When I installed the new patch, I had the "video window" but it never played any videos. So fiddled around and then it closed the video and now there is no way for me to get the window back it seems.

Running windows 7x64

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Also seems like all my tracks in the list, each time I play the tracks now, it dont remember the names of the songs. and lenght of song.
Like the "Properties are resetted by each song. So all time I spent renaming songs and doing other extra settings are now gone.
Title: Re: foo_youtube
Post by: zeremy on 2015-10-16 18:17:32
I had a black video window after updating to 1.12

Uninstalling LavFilters x64 version that was installed in my system and installing x32 version only solved my problem.

Maybe a conflict with the improvements in the changelog:
"usage this means that LAV Filters will use current settings instead of default so now can be used H/W decoding as well as other embedded LAV Filters features"

I now enjoy H/W acceleration with this improvement.
Title: Re: foo_youtube
Post by: Wolfbane on 2015-10-17 19:40:42
Hmm..

Seems like all old songs I had in the playlist is not working with video.
But any new song I add to the playlist works.

Also the new added songs I can edit and it saves the settings.
But if I play any of the old songs, then all info I had edited is reset, and even if I edit them again and save them it resets each time I play them.

But any of the new songs I edit they are saved info,even if I play the songs.
Title: Re: foo_youtube
Post by: 3dyd on 2015-10-17 20:50:49
Confirmed. This refers to the songs whose paths contain not canonical URL. I'll make fix not later than tomorrow.
Title: Re: foo_youtube
Post by: 3dyd on 2015-10-18 16:03:45
New version 1.12.1

Changelog:
- fixed inability to play video or edit tags for the tracks with not canonical URLs
Title: Re: foo_youtube
Post by: cu9map on 2015-10-19 19:33:38
New version 1.12.1

Changelog:
- fixed inability to play video or edit tags for the tracks with not canonical URLs


Just download the new update, everything is working fine.  Thank you so much for your hard work.


Title: Re: foo_youtube
Post by: nexus1991 on 2015-10-25 00:27:15
Hi,

I found one issues (if this is not expected behavior) :

The first is about the search feature, some videos are not returned in the results, it seems to be related to captions.
For example, searching the text "Fragilité LoLienne (parodies d'animes)" does not return the video "https://www.youtube.com/watch?v=0LCSzaVCLlA" if the "Features" "CC" is not enabled
(Adding the video manually works, it's only related to the search feature) (I use integrated search panel with these settings: Order by "relevance", Destination: "Library Viewer Selection")

The second issue is minor: sometimes, I see a negative "uploaded" field in a video properties. This video has also this issue ("https://www.youtube.com/watch?v=0LCSzaVCLlA"), the uploaded date is "-1437955200". The correct value is same without negative sign (1437955200).
This seems to occur only when adding the video manually (via the menu File -> Add location) and when the video properties has not been already cached.

anyway, thanks for your updates
Title: Re: foo_youtube
Post by: CHEF-KOCH on 2015-10-26 13:43:11
Seems useful plugin, thanks. I get the problem that I can't get it working, (I used foo_youtube_1.12.1_preconf_audio) it find the stuff I'm looking for and after that I click on it and it loads endless, if I press the stop button it still loads so that I must the fb2k process. Maybe I have a wrong configuration or something like that but I use the defaults (win10 x64 + latest stable 1.38 fb2k).  According to the document it should work just out-of-the-box.

Btw I'm using MPC-HC which comes wih lavfilters, is it possible to detect this version so that I don't need to install an separate version? And a similar problem with xy-vsfilters, I'm using the same x64 version (also because MPC-HC) which will be not detected, I guess because it's x64.dll. So a workaround would be good or to include this into your packages.

Console:
Code: [Select]
init groups delay = 8 ms /handleList count=26 
init groups delay = 5 ms /handleList count=26
Opening track for playback: "youtube.com/watch?v=rDnUIXF2ly8"
Opening track for playback: "youtube.com/watch?v=b2Zcym44dBQ"


Config:
Code: [Select]
fb2k 1.3.8, fy 1.12.1, preconf-id: audio2
Start: fast1, quality: best, ignore: m4a;flv, priority: opus;ogg, prefer-ao: yes
Quality-other: audio-bitrate 50 kbps, ignore: flv, priority: , prefer-ao: yes
Downloading: foo_youtube, decode-ff: mp4;m4a;webm;ogg;opus;flv;3gp
FFmpeg: Lavf 56.40.101, Lavc 56.60.100, Lavu 54.31.100, SwR 1.2.101
Search-ac: yes, album-art: yes, remove-black: yes, limit: 100, proxy: no
Video: no
Temp-dir: :default:, m4a-seek: no, inet-retry: 5/2000/20


Thanks for help!
Title: Re: foo_youtube
Post by: 3dyd on 2015-10-26 21:37:34
The first is about the search feature, some videos are not returned in the results, it seems to be related to captions.

Thanks for clue. Yes, when 'CC' is off, it searches only videos without subtitles instead of searching any videos. This is not expected behavior and will be fixed.

The second issue is minor: sometimes, I see a negative "uploaded" field in a video properties. This video has also this issue ("https://www.youtube.com/watch?v=0LCSzaVCLlA"), the uploaded date is "-1437955200". The correct value is same without negative sign (1437955200).
This seems to occur only when adding the video manually (via the menu File -> Add location) and when the video properties has not been already cached.

Yes, this happens only on manual adding and this is expected. You see value of tech info fields which are used by component internally. Accessing via %3dydfy_uploaded% will still give correct results. Component uses negative value to indicate (for itself) that this info is incomplete. In case of manual adding there are no way to retrieve upload date+time (without API request but I'd prefer do not waste it just for this one thing), only date can be retrieved.

Seems useful plugin, thanks. I get the problem that I can't get it working, (I used foo_youtube_1.12.1_preconf_audio) it find the stuff I'm looking for and after that I click on it and it loads endless, if I press the stop button it still loads so that I must the fb2k process.

It's just a guess, but do you use NOD32 ver.9?

Btw I'm using MPC-HC which comes wih lavfilters, is it possible to detect this version so that I don't need to install an separate version? And a similar problem with xy-vsfilters, I'm using the same x64 version (also because MPC-HC) which will be not detected, I guess because it's x64.dll. So a workaround would be good or to include this into your packages.

It is impossible to use 64-bit binaries in any 32-bit program and foobar2000 is 32-bit. Also AFAIK MPC-HC uses internal LAV Filters which are not registered in the system. So there are no correct way to find them.
Title: Re: foo_youtube
Post by: CHEF-KOCH on 2015-10-27 08:59:28
Quote
It's just a guess, but do you use NOD32 ver.9?


I'm with stupid, yes on my test machine, I disabled it and viola it works. Don't know it that is because SSL scanning feature but I will made an exclusion. Btw. maybe we / you can add such a notice, just in case to help other peoples in the document.
On my other machine without any AV I solved it because it was an old .ini (removed it and replaced with yours and also works now). Thanks!

Quote
It is impossible to use 64-bit binaries in any 32-bit program and foobar2000 is 32-bit. Also AFAIK MPC-HC uses internal LAV Filters which are not registered in the system. So there are no correct way to find them.


Okay, thanks for this information. I once saw on an other discussion thread that we may get an x64 build soon (was from 2011...). So, sadly no new hope on it. But anyway is it possible then that you add the x86 files into your packages to get it easier out-of-the-box working with less user interaction (if possible?). 

Again many thanks for the quick feedback!
Title: Re: foo_youtube
Post by: 3dyd on 2015-10-27 11:28:56
Don't know it that is because SSL scanning feature but I will made an exclusion. Btw. maybe we / you can add such a notice, just in case to help other peoples in the document.

I also nod32 user and switched back to v8 for a while. There are nothings special related to SSL or similar security stuff. V9 just have problem in filesystem monitoring module, so component stucks at working with regular files (just temp files created for its own purposes in Windows temp directory). AFAIK this will be fixed in further nod32 modules micro-updates. It relates only to v9 and only if filesystem protection is turned ON (specifically scan on file creation/open). On component side - it relates to all component versions and variants.

But anyway is it possible then that you add the x86 files into your packages to get it easier out-of-the-box working with less user interaction (if possible?).

preconf_video variant already has LAV and xy-VSFilter inside. Like MPC-HC it also uses local filters without need to register them in the system.

Instead of manual replace ini, better to install particular variant in usual way and (if still have some problems) reset component settings pages.
Title: Re: foo_youtube
Post by: Fivves on 2015-11-11 00:26:45
Hi, first time here on this forum, thanks to all the devs who worked on this plugin. I use it almost every day.

Anyway, the other day all of a sudden most of my songs in my playlists started giving me a 403 error. I saw in these forums that this used to be an issue in earlier versions but was fixed, so I upgraded to 1.12.1 (from 1.11.x, iirc) and it still didn't fix my problem.

Was wondering if anybody could help me figure out this issue, as I'm unable to listen to 90% of my playlists currently.

Thanks in advance
Title: Re: foo_youtube
Post by: widerock on 2015-11-11 01:49:13
New version 1.12

- option to initially turn on subtitles.

Thank you very much for the subtitle on/off option.
Your great foo_youtube makes my foobar life more enjoyable.


Another request.
It would be great if I can adjust the font size of subtitles.
Title: Re: foo_youtube
Post by: omjack on 2015-11-11 05:10:09
Hi, first time here on this forum, thanks to all the devs who worked on this plugin. I use it almost every day.

Anyway, the other day all of a sudden most of my songs in my playlists started giving me a 403 error. I saw in these forums that this used to be an issue in earlier versions but was fixed, so I upgraded to 1.12.1 (from 1.11.x, iirc) and it still didn't fix my problem.

Was wondering if anybody could help me figure out this issue, as I'm unable to listen to 90% of my playlists currently.

Thanks in advance


Same here, since 2-3 days 90% of playlist started to throw out:

Code: [Select]
Unable to open item for playback (Youtube Source: Server error (code #403)):
"youtube.com/watch?v=YbAhn7iKLPc"


The only unusual thing that shows in log:

Code: [Select]
06:04:53, #01,     WARNING: Page analysis, Write completion error
06:04:53, #01,     Total time consumed: 0.827 seconds
06:04:53, #01,     Ready
06:04:53, Activity#1 (audio.play): MP4 720p 1280×720 | M4A 44100Hz Stereo 192kbps
06:04:53, Activity#1: Retry after 2000ms (#1/5):
06:04:55, Activity#1: Retry after 2000ms (#2/5):
06:04:57, Activity#1: Retry after 2000ms (#3/5):
06:04:59, Activity#1: Retry after 2000ms (#4/5):
06:05:01, Activity#1: Retry after 2000ms (#5/5):
06:05:04, Activity#1 removed (lifetime 10.920s)
Title: Re: foo_youtube
Post by: 3dyd on 2015-11-11 06:51:55
403 error fixing now, should be today.

@widerock
Font size is up to VSFilter, but currently component resets its settings to default before using it, this need for managing which subtitles to show initially. I'll check if this can be done without reseting.
Title: Re: foo_youtube
Post by: 3dyd on 2015-11-11 11:28:13
New version 1.12.2

Changelog:
- do not prevent xy-VSFilter icon from showing in system tray. Also added 'Configure' menu item to subtitles popup menu in case system tray icon is disabled in xy-VSFilter settings. So subtitles appearance can be configured now through xy-VSFilter property pages
- fixed 403 error
- fixed youtu.be URLs. They was wrongly threated as feed URLs
- fixed searching without CC flag. Previously instead of search for any video it was restricted to videos without CC
Title: Re: foo_youtube
Post by: WilB on 2015-11-11 19:45:35
Thanks  for fixing the 403s. Unfortunately a couple of bugs seem to have been  introduced. I hope you can fix them.

Metadata  overriding seems to be broken with some urls,  resulting in incorrect artist and titles. For me  the following urls fail if pasted directly into the add locations  dialogue box for a simple test.

Code: [Select]
3dydfy://www.youtube.com/watch?fb2k_title=Deep%20Blue%20Day&3dydfy_alt_length=239&fb2k_artist=Brian%20Eno&v=mZnRe6e20xE
3dydfy://www.youtube.com/watch?fb2k_title=Office&3dydfy_alt_length=253&fb2k_artist=DJ%20Bodo&v=aqFxY4CLvEQ
3dydfy://www.youtube.com/watch?fb2k_title=Fallin'%20In%20Love&3dydfy_alt_length=298&fb2k_artist=La%20Bouche&v=X-Z-yKcXwtw
3dydfy://www.youtube.com/watch?fb2k_title=With%20Our%20Love&3dydfy_alt_length=211&fb2k_artist=Talking%20Heads&v=PMHA4UeWXE8
3dydfy://www.youtube.com/watch?fb2k_title=Miracle%20Man&3dydfy_alt_length=214&fb2k_artist=Elvis%20Costello&v=Uacxy1gQUYY
3dydfy://www.youtube.com/watch?fb2k_title=Jerkin'%20Crocus&3dydfy_alt_length=241&fb2k_artist=Mott%20the%20Hoople&v=bQXcwogHe6g


Some  urls with metadata overriding are correctly loaded. It seems these have an exact match for " -  " in the original youtube title.

The add locations box has started appearing. It seems that processing by the  component occurs before addition to the playlist with some urls resulting in  the said appearance. This is with metadata overriding enabled. An example url that shows this for  me on first addition to a playlist is:

Code: [Select]
3dydfy://www.youtube.com/watch?fb2k_title=Orange%20Crush&3dydfy_alt_length=231&fb2k_artist=R.E.M.&v=_mSmOcmk7uQ


If you need more info please let me know.
Title: Re: foo_youtube
Post by: 3dyd on 2015-11-11 20:02:09
Sorry, it was quite quick fix so some things seems have been left unattended. I will be able to check (and fix I think) this issue tomorrow.
Title: Re: foo_youtube
Post by: Fivves on 2015-11-12 04:04:01
The latest update fixed the 403s, thanks a ton!
Title: Re: foo_youtube
Post by: 3dyd on 2015-11-12 22:19:32
New version 1.12.3

Changelog:
- seeking over MPEG DASH (i.e. M4A in component). Read note below
- fix for metadata overriding

Well, last bug was for good. New FFmpeg version has just been released and great news is that it contains desired changes.

Currently only preconf_audio has last FFmpeg version. In preconf_video used FFmpeg from LAV Filters - need to wait for next LAV Filters release or configure FFmpeg manually.

Advanced option 'Allow seeking over M4A' added to list of options which will be reset at component variants (http://fy.3dyd.com/home/#Component_variants) switching. Also since in preconf_audio situation (and default values) changed, these options are forced to reset at first use in this component variant.
Title: Re: foo_youtube
Post by: WilB on 2015-11-13 17:54:25
Thanks, all is now working correctly. A new version of YouTube Track Manager (v2.1) that requires foo_youtube 1.12.3 is now available. (https://www.hydrogenaud.io/forums/index.php?s=&showtopic=105522&view=findpost&p=910797)
Title: Re: foo_youtube
Post by: 3dyd on 2015-11-15 18:53:45
Info for those who uses video. LAV Filters 0.67 has just been released. They have latest ffmpeg (with MPEG DASH seeking) so now 'mp4-vo' format finally can be used.
Title: Re: foo_youtube
Post by: 3dyd on 2015-12-08 22:34:09
Accidentally found this (https://googledrive.com/host/0B91yvwJ2rZruRnFBTE9aeWxZX28/youtube-5.1.png) (source (https://www.youtube.com/watch?v=4iJ4KE9PicI)). This looks like good news
Title: Re: foo_youtube
Post by: zeremy on 2015-12-09 18:10:40
Accidentally found this (https://googledrive.com/host/0B91yvwJ2rZruRnFBTE9aeWxZX28/youtube-5.1.png) (source (https://www.youtube.com/watch?v=4iJ4KE9PicI)). This looks like good news


Nice find !!
Title: Re: foo_youtube
Post by: 3dyd on 2015-12-14 23:37:49
New version 1.13

Changes:
Title: Re: foo_youtube
Post by: nexus1991 on 2015-12-19 00:03:21
Thanks for your updates on m4a seeking

About 403 errors I have encountered 403 error with some youtube videos (before version 1.12.3, not sure when this appeared, but still here with 1.13) (most work and don't have this issue).
Here is a dump of requests made (using a http proxy) on the video https://www.youtube.com/watch?v=8OqHjfS_vpA&hl=en (https://www.youtube.com/watch?v=8OqHjfS_vpA&hl=en) on which I have this error :
Code: [Select]
   GET [url=https://www.youtube.com/watch?v=8OqHjfS_vpA&hl=en]https://www.youtube.com/watch?v=8OqHjfS_vpA&hl=en[/url]
      ← 200 text/html 42.17kB 483ms
  GET [url=http://s.ytimg.com/yts/jsbin/player-en_US-vflXJM_5_/base.js]http://s.ytimg.com/yts/jsbin/player-en_US-vflXJM_5_/base.js[/url]
      ← 200 text/javascript 1.06MB 5.79s
  GET [url=https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/playback_host/r4---sn-25g7sn76.googlevideo.com/mt/1450480874/mn/sn-25g7sn76/nh/IgpwcjAzLnBhcjEwKgkxMjcuMC4wLjE/key/yt6/]https://manifest.googlevideo.com/api/manife...C4wLjE/key/yt6/[/url]
      hfr/1/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm_sd_hd_clear%2Cwebm2_sd_hd_clear/fexp/9416126%2C9420452%2C9422596%2C9423662/ip/2.90.0.189/mv/m/pl/16/ipbits/0/ms/a
      u/source/youtube/expire/1450502532/mm/31/id/o-AL8AFxycEDus8-jP2cRo8LY7-AkcVgXTtCsc5D_AAXi5/itag/0/upn/mhwp-clGZng/sver/3/signature/51FD1F2B2408FD4DDB98F97E8109F9769DA7F55C1D8.B10F16B920
      50B31A0D5357D26A69C052FD67B8C68C6/sparams/as%2Chfr%2Cid%2Cip%2Cipbits%2Citag%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cplayback_host%2Crequiressl%2Csource%2Cexpire
      ← 403 text/html 2.16kB 76ms
  HEAD [url=https://r4---sn-25g7sn76.googlevideo.com/videoplayback?initcwndbps=2078750&requiressl=yes&mt=1450480874&keepalive=yes&nh=IgpwcjAzLnBhcjEwKgkxMjcuMC4wLjE&key=yt6&gir=yes&mime=audio%2Fwe]https://r4---sn-25g7sn76.googlevideo.com/vi...mime=audio%2Fwe[/url]
        bm&clen=3442346&fexp=9416126%2C9420452%2C9422596%2C9423662&lmt=1449647557852591&source=youtube&mv=m&pl=16&ipbits=0&mn=sn-25g7sn76&ms=au&ip=2.90.0.189&expire=1450502532&mm=31&id=o-AL8A
        FxycEDus8-jP2cRo8LY7-AkcVgXTtCsc5D_AAXi5&itag=171&upn=mhwp-clGZng&dur=219.601&sver=3&sparams=clen%2Cdur%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn
        %2Cms%2Cmv%2Cnh%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&signature=44AD4A7A5B02DD775DF8E1A61CF494195ACE1C31E3B.AD7FE6BB8C086E981F60F1B4B121C4938339976576
5
        ← 403 text/plain [no content] 98ms
  HEAD [url=https://r4---sn-25g7sn76.googlevideo.com/videoplayback?initcwndbps=2078750&requiressl=yes&mt=1450480874&keepalive=yes&nh=IgpwcjAzLnBhcjEwKgkxMjcuMC4wLjE&key=yt6&gir=yes&mime=audio%2Fwe]https://r4---sn-25g7sn76.googlevideo.com/vi...mime=audio%2Fwe[/url]
        bm&clen=3442346&fexp=9416126%2C9420452%2C9422596%2C9423662&lmt=1449647557852591&source=youtube&mv=m&pl=16&ipbits=0&mn=sn-25g7sn76&ms=au&ip=2.90.0.189&expire=1450502532&mm=31&id=o-AL8A
        FxycEDus8-jP2cRo8LY7-AkcVgXTtCsc5D_AAXi5&itag=171&upn=mhwp-clGZng&dur=219.601&sver=3&sparams=clen%2Cdur%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn
        %2Cms%2Cmv%2Cnh%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&signature=44AD4A7A5B02DD775DF8E1A61CF494195ACE1C31E3B.AD7FE6BB8C086E981F60F1B4B121C4938339976576
5
        ← 403 text/plain [no content] 105ms
  HEAD [url=https://r4---sn-25g7sn76.googlevideo.com/videoplayback?initcwndbps=2078750&requiressl=yes&mt=1450480874&keepalive=yes&nh=IgpwcjAzLnBhcjEwKgkxMjcuMC4wLjE&key=yt6&gir=yes&mime=audio%2Fwe]https://r4---sn-25g7sn76.googlevideo.com/vi...mime=audio%2Fwe[/url]
        bm&clen=3442346&fexp=9416126%2C9420452%2C9422596%2C9423662&lmt=1449647557852591&source=youtube&mv=m&pl=16&ipbits=0&mn=sn-25g7sn76&ms=au&ip=2.90.0.189&expire=1450502532&mm=31&id=o-AL8A
        FxycEDus8-jP2cRo8LY7-AkcVgXTtCsc5D_AAXi5&itag=171&upn=mhwp-clGZng&dur=219.601&sver=3&sparams=clen%2Cdur%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn
        %2Cms%2Cmv%2Cnh%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&signature=44AD4A7A5B02DD775DF8E1A61CF494195ACE1C31E3B.AD7FE6BB8C086E981F60F1B4B121C4938339976576
5
        ← 403 text/plain [no content] 108ms
  HEAD [url=https://r4---sn-25g7sn76.googlevideo.com/videoplayback?initcwndbps=2078750&requiressl=yes&mt=1450480874&keepalive=yes&nh=IgpwcjAzLnBhcjEwKgkxMjcuMC4wLjE&key=yt6&gir=yes&mime=audio%2Fwe]https://r4---sn-25g7sn76.googlevideo.com/vi...mime=audio%2Fwe[/url]
        bm&clen=3442346&fexp=9416126%2C9420452%2C9422596%2C9423662&lmt=1449647557852591&source=youtube&mv=m&pl=16&ipbits=0&mn=sn-25g7sn76&ms=au&ip=2.90.0.189&expire=1450502532&mm=31&id=o-AL8A
        FxycEDus8-jP2cRo8LY7-AkcVgXTtCsc5D_AAXi5&itag=171&upn=mhwp-clGZng&dur=219.601&sver=3&sparams=clen%2Cdur%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn
        %2Cms%2Cmv%2Cnh%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&signature=44AD4A7A5B02DD775DF8E1A61CF494195ACE1C31E3B.AD7FE6BB8C086E981F60F1B4B121C4938339976576
5
        ← 403 text/plain [no content] 56ms
  HEAD [url=https://r4---sn-25g7sn76.googlevideo.com/videoplayback?initcwndbps=2078750&requiressl=yes&mt=1450480874&keepalive=yes&nh=IgpwcjAzLnBhcjEwKgkxMjcuMC4wLjE&key=yt6&gir=yes&mime=audio%2Fwe]https://r4---sn-25g7sn76.googlevideo.com/vi...mime=audio%2Fwe[/url]
        bm&clen=3442346&fexp=9416126%2C9420452%2C9422596%2C9423662&lmt=1449647557852591&source=youtube&mv=m&pl=16&ipbits=0&mn=sn-25g7sn76&ms=au&ip=2.90.0.189&expire=1450502532&mm=31&id=o-AL8A
        FxycEDus8-jP2cRo8LY7-AkcVgXTtCsc5D_AAXi5&itag=171&upn=mhwp-clGZng&dur=219.601&sver=3&sparams=clen%2Cdur%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn
        %2Cms%2Cmv%2Cnh%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&signature=44AD4A7A5B02DD775DF8E1A61CF494195ACE1C31E3B.AD7FE6BB8C086E981F60F1B4B121C4938339976576
5
        ← 403 text/plain [no content] 55ms
Title: Re: foo_youtube
Post by: 3dyd on 2015-12-19 15:56:44
New version 1.13.1

Changelog:
- filter for History tree. To show only certain types of media streams. Available in context menu of History UI element
- do not turn off fullscreen on program deactivation. Usefull for multi-monitor environment. Available as an option in Advanced component preferences
- fix for Youtube
Title: Re: foo_youtube
Post by: nexus1991 on 2015-12-19 17:40:08
thanks for your update, works perfectly  (including on linux, that's great ^^ )
Title: Re: foo_youtube
Post by: WilB on 2015-12-21 12:29:01
Thanks for the update. I have noticed some issues with metadata overriding.

If load a track with say artist & title metadata, then the artists & title are shown. This would happen, e.g with YouTube Track manager in radio mode where only artist & title data are available. All is OK so far.

Then if load the same link through an album with more metadata in the url, i.e tracknumber, album name and date then that extra metadata is not shown. This also results in incorrect gouping of the tracks within albums. [This applies when an m-TAGS container is not used].

The plug-in always used to remember the metadata independently, and I am not sure when this change happened.

You can see this effect with the below links for example using add locations.

3dydfy://www.youtube.com/watch?fb2k_title=Hung%20Up&3dydfy_alt_length=327&fb2k_artist=Madonna&v=EDwb9jOVRtU

3dydfy://www.youtube.com/watch?fb2k_tracknumber=1&fb2k_album=Confessions%20on%20a%20Dance%20Floor&fb2k_date=2005&fb2k_title=Hung%20Up&3dydfy_alt_length=327&fb2k_artist=Madonna&v=EDwb9jOVRtU

Are you able to reinstate the previous independent metadata behaviour? Else as a workaround, I can require users to install m-TAGS and always load albums through that route since that method still seems to ensure metadata is remembered independently. Radio tracks, top50s & top tracks etc, where there is consistently only artist, title & length metadata would not use the m-TAGS container. Please let me know.
   

Title: Re: foo_youtube
Post by: 3dyd on 2015-12-22 23:07:20
This behavior was changed in 1.12. As track path now is used canonical URL (youtube.com/watch?v=XXXXXXXXXXX in case of Youtube) no matter of which params URL had initially. Params (and thus metadata overriding) is used at the first adding of the clip. If the clip is being added second time, metadata stays unchanged (to not override possible changes made by some other way). This was done to uniformly deal with different ways of metadata obtaining (via title parsing rule / metadata overriding / manual change by the user). Other reason is to use the same resources for different URLs representing the same clip (e.g. "youtu.be/XYZ" and "htTPS://wwW.youtube/com/watch?v=XYZ"). Path is also used as an unique key, very useful after all. Foobar works in similar way, there cannot be two different tracks with the same location.

By your use case the same XYZ clip can be Nth track of album A and Mth track of album B or even do not have album/track in other place of the same program instance. Current approach tries to avoid this, however in your case this behavior is intentional. The only solution that comes to mind is to add additional custom URL param (say 3dydfy_key) which will be recognized by the component and kept in the path after adding, so you will be able to make different tracks for the same clip. Or you can use m-TAGS with all its pros and cons in this context.

Title: Re: foo_youtube
Post by: WilB on 2015-12-23 13:08:23
The only solution that comes to mind is to add additional custom URL param (say 3dydfy_key) which will be recognized by the component and kept in the path after adding, so you will be able to make different tracks for the same clip.

Thanks for your response. I think that your way with the additional custom URL param (say 3dydfy_key) is the best. I hope that you can implement it.
Title: Re: foo_youtube
Post by: 3dyd on 2016-01-06 18:53:37
New version 1.14

Changelog:
- LAV Filters have got HTTPS support in 0.67 so appropriate downloader was turned back to Media downloading option of Video tab. Note, downloading in this case is completely controlled by LAV Splitter so it will not be displayed in Activity. For HTTPS access LAV Filters use libavformat from ffmpeg, SSL backend is Secure Channel (was added to ffmpeg few months ago, not available in 2.8.x versions, only in dev version)
- switched to last ffmpeg development version. FFmpeg build config has been revised to keep only what is really need and nothing more, (surprisingly) that significantly reduced binary size. Internal ffmpeg now also being compiled with HTTPS support, media downloader based on it was added both to audio and video. Downloader has native support of reconnection at network errors, it was turned on (Youtube periodically breaks connection). Minimal version of external ffmpeg was increased accordingly. Btw, now will work with actuall builds from Zeranoe (which use GnuTLS as SSL backend)
- metadata overriding params in track path now are not being removed. There are still a way to get short URL without any extra params, and it is used for 'display path' (which you can see in Properties or obtain by %path% field), but canonical path now will keep all allowed params (and only them) in constant order (btw, canonical path can be retrieved by %_path_raw% field)
Title: Re: foo_youtube
Post by: 3dyd on 2016-01-08 16:37:40
New version 1.14.1

Changelog:
- fixed crash at video opening
Title: Re: foo_youtube
Post by: FichteFoll on 2016-01-12 20:41:32
Thank you for this lovely component.

I'm having issues with title parsing of videos in the format "【Future Bass】Saturn ft. Charlie Kim - Play With Fire", where the "【Future Bass】" part is not stripped.

Here are modifications I made to the regular expression:

Code: [Select]
1. (?:[[【({].+?[]】)}]\s+)?(?:%artist%\s*[-–~|/:]\s+)?%title%(?:\s+[~|/[【({].*)?
2. (?:[[【({].+?[\]】)}]\s+)?(?:%artist%\s*[-–~|/:]\s+)?%title%(?:\s+[~|/[【({].*)?
3. (?:[[【({].+?[\]】)}])?\s*(?:%artist%\s*[-–~|/:]\s+)?%title%(?:\s+[~|/[【({].*)?

1. original
2. fix closing bracket within the "closing set" of prefixes not being escaped
3. made whitespace after prefixes optional (and also don't treat leading whitespace as part of %artist%)

The third expression should work, as indicated here: http://regexr.com/3cig7
Notes: `%<tag>%` replaced with `(.+)`; initial `\s` replaced with `[ \t]` to not match newlines in the sample string)

Any idea why it doesn't though?

Test video: https://youtube.com/watch?v=YQ3mpGL0VY8
Test channel: https://www.youtube.com/user/nyuualiaslucy

Edit: It worked properly after I restarted foobar. It seems that settings are not refreshed, so you might want to check that.

PS: Do feeds (e.g. channels) get updated automatically when a new video is uploaded? I didn't find anything regarding that in the docs.
Title: Re: foo_youtube
Post by: 3dyd on 2016-01-16 20:02:50
There are no space between 】 and artist name on this channel, so it is enough to change first \s+ to \s*. I also change this in next version, this probably should not add additional false positives.

All other suggestions are correct but not necessary. Closing bracket is not need to be escaped if it is the first symbol within [ ]. Also leading whitespace in current rule anyway is not being treated as part of artist.

Settings are refreshed fine, probably there was other case. Title will not be parsed again if track already exists in the list. If you will remove track before adding, it will be still present in memory (for example to allow Undo operation). Seems that is why after restarting foobar all started to work ok.

Feeds are not being updated, unfortunately.

--

To all. I seems came up with other method of syncing video. More easier, duh. Aaand with this method it is not need to perform playback restart at next track. Even DSP that changes playback speed (like Tempo) will work now. I would appreciate for additional tests. If there are no side effects and no additional problems, it will replace current approach in next version. Test versions: 1.14.2_dev1 (https://s3.amazonaws.com/threedyd/foo_youtube_1.14.2_dev1.fb2k-component), 1.14.2_dev1_preconf (https://s3.amazonaws.com/threedyd/foo_youtube_1.14.2_dev1_preconf.fb2k-component). To enable new syncing method, check 'Use playback pos to sync video' in Advanced component preferences.
Title: Re: foo_youtube
Post by: WilB on 2016-01-31 13:37:08
Thanks for the development versions. I have tried them both. I have tested with audio only without video to check for regressions. I also tried with video and the new syncing method. I am pleased to say that for me all has so far worked very well.
Title: Re: foo_youtube
Post by: mire777 on 2016-02-08 12:45:58
There are no space between 】 and artist name on this channel, so it is enough to change first \s+ to \s*. I also change this in next version, this probably should not add additional false positives.

All other suggestions are correct but not necessary. Closing bracket is not need to be escaped if it is the first symbol within [ ]. Also leading whitespace in current rule anyway is not being treated as part of artist.

Settings are refreshed fine, probably there was other case. Title will not be parsed again if track already exists in the list. If you will remove track before adding, it will be still present in memory (for example to allow Undo operation). Seems that is why after restarting foobar all started to work ok.

Feeds are not being updated, unfortunately.

--

To all. I seems came up with other method of syncing video. More easier, duh. Aaand with this method it is not need to perform playback restart at next track. Even DSP that changes playback speed (like Tempo) will work now. I would appreciate for additional tests. If there are no side effects and no additional problems, it will replace current approach in next version. Test versions: 1.14.2_dev1 (https://s3.amazonaws.com/threedyd/foo_youtube_1.14.2_dev1.fb2k-component), 1.14.2_dev1_preconf (https://s3.amazonaws.com/threedyd/foo_youtube_1.14.2_dev1_preconf.fb2k-component). To enable new syncing method, check 'Use playback pos to sync video' in Advanced component preferences.

Tested, no problems so far..

If you plan to add more futures to this component, is it possible to add option to login/create/play and add videos to our youtube playlists?
In that way we can keep our tracks online and listen to other devices 2 ..
Title: Re: foo_youtube
Post by: 3dyd on 2016-02-08 19:18:00
it is interesting idea for future changes
Title: Re: foo_youtube
Post by: 3dyd on 2016-02-08 22:02:17
New version 1.15

Changelog:
- different video sync method. Now there are no need to restart playback at next track. DSP that change playback speed now also can be used. Since there are now no difference for playback when video is enabled, video options checkbox 'Enable' was removed. For any case old method is still available using Advanced component preferences Video -> 'Previous video sync method'
- screen reader auto detection. Option 'Use preferences branch instead of tabs' was removed. Now screen reader by default is detected automatically. To turn off auto detection and permanently enable or disable adaptation for screen reader should be used option 'Adapt for screen reader' in Advanced component preferences
- option to give precedence to the format over the quality. When two formats are being compared, 'Priority of formats' is used only after quality comparison. Thus it is used only when qualities of streams are equal. This is not the way that some people expect or would like it to work. So now such behavior can be changed using this option (better late than never)
- video fps now is displayed in History tree and in Source popup menu of video frame context menu
- fixed meta overriding within m3u8 files
- clip title parsing rule has been enhanced according to comments above
Title: Re: foo_youtube
Post by: fabiospark on 2016-02-09 20:54:37
I'm experiencing this behaviour:

Search string: "Glenn Gould at home"
Results: a lot of "tracks" with Glenn Gould in the title and with "?" in artist +
a lot of tracks with Glenn Gould in the artist and anything else in the title.

Is there a way to restrict the search only to tracks that has "all the words"?

Among the others I found nine tracks named
"At home with Glenn Gould (1959) 3/9",
"At home with Glenn Gould (1959) 4/9"
and so on.
The first two of the series doesn't show the last part of the title (1959) 1/9 (or 2/9)
while the title I see if I go to view the clip on the site still has those final part.
In the "Clip title parsing rule:" I have just %title% but I had already listened
to those track before I changed the "parsing" rule from default.
I tried removing all the tracks from the created playlist, close FB e restart,
but after doing the search again those two tracks shows the same lack
of info as before.

I tried this search string "Glenn Gould AND at home" and the titles are showing correctly
(but I'm still getting a lot of tracks that doesn't satisfy the search string).

Another thing is that when I do the search the resulting tracks are sent to the current playlist
even if all the search presets are configured to send the results to a "Specific playlist" + '['Youtube']'.

Thanks.
Title: Re: foo_youtube
Post by: 3dyd on 2016-02-10 21:04:59
For now the one way to get some info that can be used to generate track metadata is the title of the clip. And title parsing rule by default is configured to work with most common artist/title specifying format (for music) which in general looks like "[artist -] title". If it gives too many wrong results in your use cases, you can switch to %title%. Component cannot determine artist/title in text like "At Home with Glenn Gould" or "Glenn Gould plays Bach".

However, there is a hope. Freebase recently (https://plus.google.com/109936836907132434202/posts/iY8NZGFF6DN) has finally been raised from the dead. Youtube clips usually have Freebase topics associated with them so they might be good source for metadata in further component versions.

The first two of the series doesn't show the last part of the title (1959) 1/9 (or 2/9)
while the title I see if I go to view the clip on the site still has those final part.
In the "Clip title parsing rule:" I have just %title% but I had already listened
to those track before I changed the "parsing" rule from default.
I tried removing all the tracks from the created playlist, close FB e restart,
but after doing the search again those two tracks shows the same lack
of info as before.
Then they seems still are cached somewhere. I have all tracks without "(1959) X/9" part (using default rule). Parsing rule is not what can take effect on fly for all tracks, what you have already faced. But after restart it really takes effect for previously removed tracks, so in your case the issue maybe relate to your configuration and installed components.

I tried this search string "Glenn Gould AND at home" and the titles are showing correctly
(but I'm still getting a lot of tracks that doesn't satisfy the search string).
AFAIK 'AND' does not work in Youtube search, and probably all terms are already searched with AND. But search goes at least in description too. So, at first you can use quotes to specify exact phrases, at second you can use INTITLE: to force search only in title. Resulting search query will be
Code: [Select]
INTITLE:"Glenn Gould" INTITLE:"at home"

Another thing is that when I do the search the resulting tracks are sent to the current playlist
even if all the search presets are configured to send the results to a "Specific playlist" + '['Youtube']'.
If you are talking about presets from Search tab of component preferences, then they are for component context menu "Search <...>" items. To configure destination playlist for 'Search (Integrated)' UI element use its configuration menu (below search box), last column 'Playlist'. Yep, a bit inconsistent way looking at other settings. Checked for any case, it works as expected.
Title: Re: foo_youtube
Post by: jer1956 on 2016-02-14 10:22:23
Youtube have been beefing up their DRM requirements to the point many media players can no longer use it. I am looking for a way to keep youtube happy by "playing" the videos on a PC, but in reality "stream" them locally via Http.  The UPNP plugin already allows foobars music player to stream what its playing. I'm thinking more of mapping specific youtube internet urls to a specfic local http server file. So the local http server gets a file request , and in it is the information to locate the relevent  internet youtube video.  So the media player isn't the client having to satisfy youtubes secuity requirements.
So if you want to add an extra feature i would be very pleased.
Title: Re: foo_youtube
Post by: 3dyd on 2016-03-24 04:08:21
New version 1.15.1 beta 1

Changelog:
- video as UI element. Finally. And as usual, both for DUI and CUI. Multiple instances are allowed. Fullscreen view from UI element is possible. This is additional functionality, i.e. current separated video frame (menu View -> Visualisations -> Youtube Video) stays as is and will be the only way to have video UI separated from main window (at least within the component, using popup panels theoretically this should be possible)
- video autoplay (configured per UI element). Enabled by default. Can be disabled using video frame context menu. If disabled, video wont start playing until it will be manually selected using video frame context menu
- local video caching has been changed a bit. Now at switching to different quality the previous one will be freezed (instead of removing) until track is playing. If any UI element or separated video frame will need the same quality, it will pick up existing one. Use Activity UI element if you wonder about details what is going on with media data that is being downloaded by the component
- (DUI-only) UI elements configuration related to UI element itself (rather than to functionality represented by it) is now available only in editing mode (UI element border etc)
- fixed subtitles downloading. Embedded lyrics source also has been improved. Now it is possible to search subtitles on Youtube for tracks that are not Youtube tracks (disabled by default, should be enabled in 'Youtube Source' lyrics provider settings). Well, I expected more lyrics from it, though tests were not too deep so this may depend of what you are listening. Also this is quite expensive feature in terms of Youtube API usage so it might be removed in further component versions
- check for beta version when running stable (disabled by default). Current version is an example, it will be not reported by embedded 'check for update' mechanism. Purpose is quite obvious and not new - there are no way for me to test everyting, so when one thing it getting fixed or improved, some other things may become broken. Beta is a period for few weeks to find these issues. If you want to get new features earlier by the price of possible problems then welcome to beta testers (check appropriate option in Advanced component preferences). If not, then you will face your problems after release ;)
Title: Re: foo_youtube
Post by: zeremy on 2016-03-24 18:46:08
 :) Thanks for video as UI element. 8)
I'm sure many more will appreciate it.
Currently testing beta and will report any issues.
Title: Re: foo_youtube
Post by: MaCs on 2016-03-24 22:07:43
Possible bug: when a video is stopped and restarted later, video does not work anymore. I don't think it happened with previous versions too.
Title: Re: foo_youtube
Post by: FooChick on 2016-03-24 22:39:13
Yes, thank you 3dyd for all your hard work. foobar2000 is now my favourite videoplayer   :D 
- have a nice easter holiday!
Title: Re: foo_youtube
Post by: 3dyd on 2016-03-25 01:47:43
@MaCs, cannot reproduce this yet. Do you mean you stop playback then start the same track and video is not playing? Or you hit 'Stop video' in video frame context menu and then while track is playing select some video in Source popup menu from video frame context menu? Or something different? Also, do you use separated frame or UI element?
Title: Re: foo_youtube
Post by: foo_best on 2016-03-25 12:41:25
hi 3dyd

i have problem with run foo_youtube on XP SP2...
sound work ok, but video not working

latest version lavfilters not install on XP SP2
previous version lavfilters install sucess but foo_youtrube with him not working say "need install lav filters"

previous version foo_youtube not working with error 403 when attempt run any youtube link

sorry for my bad english
Title: Re: foo_youtube
Post by: mire777 on 2016-03-25 14:40:14
New version 1.15.1 beta 1

Changelog:
- video as UI element. Finally. And as usual, both for DUI and CUI. Multiple instances are allowed. Fullscreen view from UI element is possible. This is additional functionality, i.e. current separated video frame (menu View -> Visualisations -> Youtube Video) stays as is and will be the only way to have video UI separated from main window (at least within the component, using popup panels theoretically this should be possible)
- video autoplay (configured per UI element). Enabled by default. Can be disabled using video frame context menu. If disabled, video wont start playing until it will be manually selected using video frame context menu
- local video caching has been changed a bit. Now at switching to different quality the previous one will be freezed (instead of removing) until track is playing. If any UI element or separated video frame will need the same quality, it will pick up existing one. Use Activity UI element if you wonder about details what is going on with media data that is being downloaded by the component
- (DUI-only) UI elements configuration related to UI element itself (rather than to functionality represented by it) is now available only in editing mode (UI element border etc)
- fixed subtitles downloading. Embedded lyrics source also has been improved. Now it is possible to search subtitles on Youtube for tracks that are not Youtube tracks (disabled by default, should be enabled in 'Youtube Source' lyrics provider settings). Well, I expected more lyrics from it, though tests were not too deep so this may depend of what you are listening. Also this is quite expensive feature in terms of Youtube API usage so it might be removed in further component versions
- check for beta version when running stable (disabled by default). Current version is an example, it will be not reported by embedded 'check for update' mechanism. Purpose is quite obvious and not new - there are no way for me to test everyting, so when one thing it getting fixed or improved, some other things may become broken. Beta is a period for few weeks to find these issues. If you want to get new features earlier by the price of possible problems then welcome to beta testers (check appropriate option in Advanced component preferences). If not, then you will face your problems after release ;)

Thank you, who was said that this is not possible :)
Title: Re: foo_youtube
Post by: MaCs on 2016-03-25 16:13:04
@MaCs, cannot reproduce this yet. Do you mean you stop playback then start the same track and video is not playing? Or you hit 'Stop video' in video frame context menu and then while track is playing select some video in Source popup menu from video frame context menu? Or something different? Also, do you use separated frame or UI element?

It is strange, it seems that if a video has been played once, it will not start again (the audio plays but there is no video, just the description). I didn't hit "stop video". It happens with both separated frame and UI element.
Title: Re: foo_youtube
Post by: 3dyd on 2016-03-26 00:56:17
Could you try fresh portable install with just this one component? To eliminate possible issue with the settings or other components. If there will be no issue then, paste here or via PM your component settings (menu Help -> Youtube Source -> Copy settings)

@foo_best, I checked SP2. LAV Splitter filter is running fine on it. The problem is in LAV Video filter, last supported version of which is 0.59.1.
Minimum required version is here to ensure that filter will fully support MPEG DASH which is actually up to splitter only. So minimum required version for video filter can be lowered, this will be done in next beta.

Title: Re: foo_youtube
Post by: foo_best on 2016-03-26 08:28:33
@foo_best, I checked SP2. LAV Splitter filter is running fine on it. The problem is in LAV Video filter, last supported version of which is 0.59.1.
Minimum required version is here to ensure that filter will fully support MPEG DASH which is actually up to splitter only. So minimum required version for video filter can be lowered, this will be done in next beta.


ok, good news
when next beta will be available?
Title: Re: foo_youtube
Post by: MaCs on 2016-03-26 17:15:08
Could you try fresh portable install with just this one component? To eliminate possible issue with the settings or other components. If there will be no issue then, paste here or via PM your component settings (menu Help -> Youtube Source -> Copy settings)

Same thing with a portable install. Maybe something is wrong with my network connection? Anyway here are the settings:

fb2k:1.3.10,fy:1.15.1b1,p-id:lav5
start:fst2
qual:best,ign:flv,prr:,PoQ:0,ao:1
qoth:ab50,ign:flv,prr:,PoQ:0,ao:1
dl:own,dec-ff:mp4;m4a;webm;ogg;opus;flv;3gp
ff(int):lavf57.25.100,lavc57.24.102,lavu55.17.103
sac:1,art:1,rem-bl:0,lim:no,sp:25,fp:25/1,prox:0
Vsync:new,res:480p,sub:1/1,ign:,prr:,PoQ:0,dl:own
fr-sh:auto,fr-hd:a-lst,sb-sh:ms-mv/1,ms-hd:alws,mon:
LAVS0.68.0(int),LAVV0.68.0(int),VSF3.0.0(int,alt:3.0.0(ext))
(int)libcurl/7.45.0 WinSSL zlib/1.2.8
tmpDir:*dflt,aExp:300,i-retr:5/2000/20,prox:0,UAstr:0,ytKey:0
sRdr:auto,ffdS:0,vFsOff:1,noMonOff:1,oldVsync:0
Title: Re: foo_youtube
Post by: 3dyd on 2016-03-27 02:12:51
Yep, settings are ok. If there is some network problem, log should say about that. Paste here your log after video does not start second time (to get it hold Shift key and press menu View -> Youtube Source Log)
Title: Re: foo_youtube
Post by: MaCs on 2016-03-27 16:11:53
Here is a log:

Code: [Select]
10:54:54, Video: LAV Splitter 0.68.0 (int), LAV Video 0.68.0 (int), VSFilter 3.0.0 (int, alt: 3.0.0 (ext))
11:11:15, #01, Page analysis, youtube.com/watch?v=ZegwJuVewtw
11:11:15, #01,     Opening given Youtube URL...
11:11:16, #01,     Getting info about clip, processed 0 of 19 clip(s)...
11:11:16, #01,     01/19: MP4 240p 426×240 30fps 7.06 MB VO
11:11:16, #01,     02/19: MP4 360p 640×360 30fps 12.73 MB VO
11:11:16, #01,     03/19: MP4 480p 854×480 30fps 24.25 MB VO
11:11:16, #01,     04/19: MP4 720p 1280×720 30fps 45.16 MB VO
11:11:16, #01,     05/19: MP4 1080p 1920×1080 30fps 96.64 MB VO
11:11:16, #01,     06/19: M4A 44100Hz Stereo 129kbps AO 3.70 MB
11:11:16, #01,     07/19: MP4 144p 256×144 15fps 3.08 MB VO
11:11:16, #01,     08/19: 3GP 144p 176×144 10fps
11:11:16, #01,     09/19: OGG 44100Hz Stereo 121kbps AO 3.48 MB
11:11:16, #01,     10/19: MP4 360p 640×360 30fps
11:11:16, #01,     11/19: MP4 720p 1280×720 30fps
11:11:16, #01,     12/19: WebM 240p 426×240 30fps 4.55 MB VO
11:11:16, #01,     13/19: WebM 360p 640×360 30fps 8.70 MB VO
11:11:16, #01,     14/19: WebM 480p 854×480 30fps 16.97 MB VO
11:11:16, #01,     15/19: WebM 720p 1280×720 30fps 33.52 MB VO
11:11:16, #01,     16/19: WebM 1080p 1920×1080 30fps 54.05 MB VO
11:11:16, #01,     17/19: 3GP 240p 320×180 30fps
11:11:16, #01,     18/19: WebM 360p 640×360 30fps
11:11:16, #01,     19/19: FLV 240p 426×240 30fps
11:11:16, #01,     Total time consumed: 0.969 seconds
11:11:16, #01,     Ready
11:11:16, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
11:11:16, Activity#1 (audio.play): M4A 44100Hz Stereo 129kbps AO | 3.70 MB
11:11:16, Audio opening finished in 0.188 seconds
11:11:16, Video: opening (https): download - foo_youtube
11:11:16, Video: opening (https): download - foo_youtube
11:11:16, Activity#2 (video): WebM 480p 854×480 30fps VO | 16.97 MB
11:11:16, Activity#3 (video): WebM 480p 854×480 30fps VO | 16.97 MB
11:11:18, Video: opening finished in 1.422 seconds
11:11:18, Video: opening finished in 1.500 seconds
11:11:26, Activity#1 removed (lifetime 10.688s)
11:11:26, Activity#2 removed (lifetime 9.906s)
11:11:26, Activity#3 removed (lifetime 9.906s)
11:11:33, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
11:11:33, Activity#4 (audio.play): M4A 44100Hz Stereo 129kbps AO | 3.70 MB
11:11:33, Audio opening finished in 0.203 seconds
11:11:33, Video: opening (https): download - foo_youtube
11:11:33, Video: opening (https): download - foo_youtube
11:11:34, Activity#5 (video): MP4 480p 854×480 30fps VO | 24.25 MB
11:11:34, Activity#6 (video): MP4 480p 854×480 30fps VO | 24.25 MB
11:11:34, Video: opening finished in 0.672 seconds
11:11:34, Video: Cannot start playback
Connect source to the splitter: Il n’y a pas de type de média commun à ces broches.
11:11:34, Video: opening finished in 0.875 seconds
11:11:34, Video: Cannot start playback
Connect source to the splitter: Il n’y a pas de type de média commun à ces broches.
11:11:34, Activity#5 removed (lifetime 0.594s)
11:11:34, Activity#6 removed (lifetime 0.485s)
Title: Re: foo_youtube
Post by: 3dyd on 2016-03-28 01:02:00
At second time it opens different format (MP4 instead of WebM). This is actually a bug, but it also means that you may just have problem with MP4. Enter mp4-vo in component preferences Video tab 'Priority of formats' and check 'Format takes precedence over quality'. Now open the clip from your example. Does it show the same error, but now at first time when you open the video?
Title: Re: foo_youtube
Post by: MaCs on 2016-03-28 02:21:01
Indeed, I did what you said and I seem to be a problem with MP4. Do you have an idea of what the cause could be?
Title: Re: foo_youtube
Post by: 3dyd on 2016-03-28 02:55:13
Beta 2

- fixed two non-critical issues with caching
- minimal required version for LAV Video has been lowered to 0.59.1. Note, minimal version for LAV Splitter stays 0.67 to fully support MPEG DASH format
- advanced options to use Runtime Config mode for LAV Splitter and LAV Video (i.e. use default settings regardless of how the filters are configured in the system)

I have no idea why I initiated minor version change for this quite major update. So let's pretend this never happened and there are beta2 of 1.16.
Title: Re: foo_youtube
Post by: 3dyd on 2016-03-28 03:05:14
@MaCs, it can be just an issue with splitter settings. To check this, install beta2, ensure that issue is still here, stop playback and check 'Switch LAV Splitter/Video to Runtime Config mode' in Advanced preferences Tools -> Youtube Source -> Video. Now start playback. If video plays ok now, then it is really up to splitter settings. You don't have it installed in the system, but the settings may still be there. And as possible reason (I reproduced the error by that) in its Input Format settings can be disabled mp4.
Title: Re: foo_youtube
Post by: foo_best on 2016-03-28 17:09:31
Beta 2

- fixed two non-critical issues with caching
- minimal required version for LAV Video has been lowered to 0.59.1. Note, minimal version for LAV Splitter stays 0.67 to fully support MPEG DASH format
- advanced options to use Runtime Config mode for LAV Splitter and LAV Video (i.e. use default settings regardless of how the filters are configured in the system)

I have no idea why I initiated minor version change for this quite major update. So let's pretend this never happened and there are beta2 of 1.16.

problem is solved! plugin on XP SP2 runned successfully!

my options:
LAV Splitter 0.67
LAV Audio 0.67
LAV Video 0.59.1

thanks for great plugin!
Title: Re: foo_youtube
Post by: foo_best on 2016-03-28 19:09:06
hmm one trouble exists

i look exist two connection, one for audio stream and one for video stream

audio stream work normal, ok.

video stream when 720p changed freeeze fps since provider change speed limit for one connection!
(but allow load in 2-3-4 connection on same speed limit for each connect)

possible load video stream in several connections, then overall speed limit wiil be upper
and will not affect on video stream and possible will look video in 720p

possible do it?

Title: Re: foo_youtube
Post by: MaCs on 2016-03-28 23:47:09
@MaCs, it can be just an issue with splitter settings. To check this, install beta2, ensure that issue is still here, stop playback and check 'Switch LAV Splitter/Video to Runtime Config mode' in Advanced preferences Tools -> Youtube Source -> Video. Now start playback. If video plays ok now, then it is really up to splitter settings. You don't have it installed in the system, but the settings may still be there. And as possible reason (I reproduced the error by that) in its Input Format settings can be disabled mp4.
Yes it works with the "Runtime Config mode". And what is the splitter?
Title: Re: foo_youtube
Post by: MaCs on 2016-03-28 23:50:27
Ok, I had an old installation of the LAV filters. I uninstalled it and will see if it solves the problem.
Title: Re: foo_youtube
Post by: MaCs on 2016-03-30 00:49:57
Everything seems to work well now, thanks for your help.
Title: Re: foo_youtube
Post by: 3dyd on 2016-03-30 02:54:45
Glad to hear that.

I had an old installation of the LAV filters
Indeed, component will not display this. Moreover, it seems if filter is installed in the system, it will be used even when trying to load local filter from the file and there may be no way to prevent this. I need to check this more deeper.

possible load video stream in several connections, then overall speed limit wiil be upper
and will not affect on video stream and possible will look video in 720p

possible do it?
Unfortunately using current approach this is not possible. And it is more difficult that just downloading using simultaneous connections because need to provide sequential order of downloaded chunks to be able to play file. And chunks should have some balance between downloading speed and playback rate. I would not expect such functionality anytime soon.
Title: Re: foo_youtube
Post by: foo_best on 2016-04-13 17:30:07
in my system two monitors
i run plugin in fullscreen mode on first monitor
but if do click on second monitor then fullscreen mode off

bug?
Title: Re: foo_youtube
Post by: 3dyd on 2016-04-13 21:15:56
feature

Uncheck 'Turn video fullscreen off on program deactivation' in preferences Advanced -> Tools -> Youtube Source -> Video.
Title: Re: foo_youtube
Post by: foo_best on 2016-04-14 17:12:14
feature

Uncheck 'Turn video fullscreen off on program deactivation' in preferences Advanced -> Tools -> Youtube Source -> Video.


aaa... ок:))
possible open video files with hard disk with foo_youtube?
Title: Re: foo_youtube
Post by: 3dyd on 2016-04-14 19:45:52
Nope
Title: Re: foo_youtube
Post by: foo_best on 2016-04-16 13:51:28
what problem?
Title: Re: foo_youtube
Post by: 3dyd on 2016-04-16 20:13:09
Beta 3

- stop video when UI element is invisible. Video downloading will be paused at this time. This behavior is enabled by default and can be disabled using appropriate checkbox in preferences Advanced -> Tools -> Youtube Source -> Video -> 'Stop video when UI element is invisible'
- force Runtime Config mode for LAV filter (LAV Splitter or LAV Video, independently) when local filter version is used. Runtime Config mode means use default filter settings and do not store them in the system. Component uses newer version of the filter. But when local filter has newer version, there are no easy way to not use global settings from older filter version. And there are no any way to display settings UI for local filter in this case. I.e. will be used local filter, but will be displayed settings UI of the filter registered in the system. To prevent possible issues because of this, local filter now will always use Runtime Config mode
- fixed subtitles retrieving in cases when multiple subtitles are present
Title: Re: foo_youtube
Post by: foo_best on 2016-04-20 15:13:04
possible set audio speed stream download limit ? then on video stream will upper speed
Title: Re: foo_youtube
Post by: 3dyd on 2016-04-21 19:24:39
Try downloader other than 'foo_youtube' in component preferences Audio tab -> 'Media downloading'. Unlike foo_youtube, others will prebuffer (download) only small portion of audio that is need for playback right now. Will be kind of speed limit.
Btw, there also can be other issue. Youtube may limit download rate for certain streams on its side. In this case there is nothing you can do. Though rate limit is always greater than video bitrate, so this should not be a problem for playback.
Title: Re: foo_youtube
Post by: 3dyd on 2016-04-21 21:24:27
Beta 4

- enhancements for full screen mode of video UI element. Like floating video window it has seek bar now, proper reaction on foobar keyboard shortcuts, basic playback control from keyboard (volume by Up/Down, play/pause by Space) and exit full screen by Esc key

[UPD] FYI: within so-called Spatial Audio on Youtube now available additional audio quality configuration: Vorbis 4.0 (i.e. four channels): example playlist (https://www.youtube.com/playlist?list=PLU8wpH_LfhmvCvcBGui3LHC8DufjgvxNn). To get it in component seems need to switch Playback Start to third position ('one more request'). Or to get proper quality info, need to switch to last position ('predownload'), this will be fixed.
Title: Re: foo_youtube
Post by: 3dyd on 2016-04-25 23:15:11
1.16 final

In addition to previous changes:
- enhancement for Youtube related to better recognition of audio qualities brought by spatial audio. I.e. they will be recognized without need for deep analysis (last option of Playback Start group). Note, to get them need to select third option in Playback Start (by default there is selected second one)
Title: Re: foo_youtube
Post by: juniiflow on 2016-04-28 16:41:10
Doesn't work for me, I am trying to search for videos or even putting videos in the search box, but nothing happens, it tells me that is searching in a pop up that last couple of secs, but it doesn't display anything or streams sound to my foobar
Title: Re: foo_youtube
Post by: 3dyd on 2016-04-28 16:54:57
What does the log say after search? Hold Shift key and press menu View -> Youtube Source Log.
Title: Re: foo_youtube
Post by: sebastian.reifen on 2016-05-03 08:54:57
Hi,

could you add the feature, that you can refresh a youtube playlist added by "add location" ? If no, you added a "get more 50 for ''" element in the playlist after using "add location", could you just add that also for "get the first 50" as it doenst matter if things are double in the list as ill delete the list anyway before refreshing. it would be highly aweseome.

thx
Title: Re: foo_youtube
Post by: 3dyd on 2016-05-03 20:26:30
'get more' item is independent thing and can be used separately. You can make 'get the first 50' from existing 'get more' item by removing 's' param from its path.

Example:

After adding BBC News channel there are 'get more 50' item with next path:
3dydfy-search://q=BBC%20News&p=UU16niRr50-MSBwiO3YDb3RA&m=50&s=CDIQAA

Remove 's':
3dydfy-search://q=BBC%20News&p=UU16niRr50-MSBwiO3YDb3RA&m=50

This path you can add for example using 'Add location' and you will have 'get more' item that will fetch first 50 clips. Though after fetching it will be self-removed. All I can suggest is to add two additional optional params, one will prevent it from deletion and second will clear destination playlist before add.

Alternatively this functionality (clear & re-add) can be achieved by some potentially very simple script.

However real playlist auto update, i.e. something more intelligent than just clear and re-add, is interesting and potentially useful feature. And it's one of at least two things that I promised a long time ago and didn't implemented yet. Unfortunately I cannot give any estimation when something will be done in this direction.
Title: Re: foo_youtube
Post by: sebastian.reifen on 2016-05-04 07:26:24
Hi,

filtering for update can but dont have to be difficult. You have the upload-date and the youtube id of every track. so you can peek the first 50 and filter if youre already got some of the items determinted by upload-date and youtube-id.

one problem might be, what if there are more than 50 new tracks to fetch. you could recursivly fetch in 50 blocks until you either find doublettes or a tracks upload-date is older than your newest track.

greetz

PS: which progamming language? you could make a github repo out of this
Title: Re: foo_youtube
Post by: 3dyd on 2016-05-05 11:26:52
You can use JScript Panel for 'clean & re-add' way or the way with filtering that you described,
Title: Re: foo_youtube
Post by: mire777 on 2016-05-11 10:32:10
I see that you can copy all tracks from the library(contents>copy names) and add in ''add multiple urls''(by 'list of titles'), but theres a limit, i can add only 50 tracks.. Is there any way to add whole library and that component finds all my tracks from library online?
In that whay i can then copy my playlist, and play on other computer in foobar(on my work ex.) , and listen there...
Title: Re: foo_youtube
Post by: 3dyd on 2016-05-11 23:02:37
Component initiates search request for each '%artist% - %title%' and uses first search result. Youtube API has daily quota and search is quite expensive operation. Exceeding the quota will result in errors at search and feeds retrieving for the rest of the day for all users. That's why there is limit.

This 'add by list of titles' ability is more for fun, or quick search. It should not be taken seriously for use cases like yours. Search is just not designed for such use cases. It searches not song by artist and title. It searches video clip with provided sentences. So there could be so-named album or moreover just absolutely unrelated video.

For such use cases should be used service that works in terms of song artist / title etc. Maybe Last.fm API or MusicBrainz, don't know, didn't look in this direction.
Title: Re: foo_youtube
Post by: Cnuut on 2016-05-13 17:59:23
You could maybe make it possible to put in your own API key like the Kodi app does!? :)
Title: Re: foo_youtube
Post by: 3dyd on 2016-05-13 22:57:36
It is possible to specify own API key in component Advanced preferences.
Well, yes. For custom API keys this limitation can be omitted, it's not my responsibility for proper API usage then. Though I'm still not happy with this use case.
Title: Re: foo_youtube
Post by: onirwai on 2016-05-20 15:18:55
I've noticed recently that %3dydfy_description% no longer returns the whole YouTube description. It's truncated shorter, by YouTube itself probably, because it ends too soon and not with ' (...)'.

I used to have a foo_textdisplay panel to show me this info because when you listen to mixes the description often includes a tracklist...

My tech info field configs were clearly OK, because it worked before and because it's not truncated by foo_youtubesource itself.
Title: Re: foo_youtube
Post by: 3dyd on 2016-05-21 18:59:07
Yes. It is shortened by Youtube. I'll check, there should be other way to get full description, probably even without additional request.
Title: Re: foo_youtube
Post by: juniiflow on 2016-05-25 02:59:44
What does the log say after search? Hold Shift key and press menu View -> Youtube Source Log.

21:56:48, Video: LAV Splitter 0.68.0 (int), LAV Video 0.68.0 (int), VSFilter 3.0.0 (int)
21:59:28, #01, Searching, brain power
21:59:30, #01,    Total time consumed: 1.296 seconds
21:59:30, #01,    Ready

22:02:42, Video: LAV Splitter 0.68.0 (int), LAV Video 0.68.0 (int), VSFilter 3.0.0 (int)
22:02:59, #01, Searching, hello
22:03:00, #01,    Total time consumed: 0.906 seconds
22:03:00, #01,    Ready


Found out that integrated search adds the search results to the playlist (which was synchronize to a folder and didn't let the results show up. probably thats what happen), is there anyway to make it so that it adds them on the bottom like the normal results?

(http://i.imgur.com/yPhXqKJ.png)
Title: Re: foo_youtube
Post by: 3dyd on 2016-05-25 23:08:04
There is no way to add results on the bottom, but you can specify explicit playlist where to send them instead of sending to active playlist. This can be done using last column named Playlist in search panel configuration menu.
Title: Re: foo_youtube
Post by: 3dyd on 2016-05-27 21:12:56
New version 1.17 beta 1

Changelog:
- support for auto-translated subtitles. For video they are available as usual using Subtitles popup menu of video frame context menu. Auto-translated subtitles are appended with "[AT]" string. To do not mix all types of subtitles now in popup menu at first are listed regular subtitles, then ASR (Automatic Speech Recognition), then auto-translated. Within each type they are sorted by language tag (which is language code + optional script tag or country code). For lyrics source auto-translated subtitles are disabled to do not flood, because when they are available there are usually over a hundred subtitles
- no limits for custom Youtube API key. Currently there are only one limit for default key: in 'Add multiple URLs...' window, when 'List of titles' is selected, can be added only 50 titles. Custom key can be entered in preferences Advanced » Tools » Youtube Source » Youtube API key
- create new playlist for search results if active playlist is locked
- fixed description retrieving, now will retrieve full description instead of its shortened version
- switched to VS2015, updated ffmpeg to 3.0.2, libcurl to 7.49
Title: Re: foo_youtube
Post by: sebastian.reifen on 2016-05-31 11:46:20
Hi,
why not make it opensource on github or elsewhere so others can contribute?
Title: Re: foo_youtube
Post by: 3dyd on 2016-06-05 23:17:21
beta 2

- support Youtube subdomains (like gaming.youtube.com)
- Search window, move keyboard focus to clips list after search completion and initially set focus to clips list if it was there last time before closing the window
- analysis optimization
Title: Re: foo_youtube
Post by: widerock on 2016-06-23 01:11:02
I'm using the most recent v1.17.

I can't make foo_youtube remember the subtitle configuration.
I found "Configure" menu under 'subtitle' when I right-clicked on foo_youtube screen. But, it did nothing. (no configuration screen)
And, I have to choose the subtitle language whenever I open a new youtube video.
It looks like foo_youtube seleccts and shows the first language. (in most cases, arabic)

I'm using foobar2000 v1.3.10 portable.

Anyway, thank you for the great plugin. I really enyou yourtube media through foobar.
Title: Re: foo_youtube
Post by: 3dyd on 2016-06-23 10:21:51
Yep, it picks up first subtitles. Subtitles are sorted alphabetically so on huge subtitles sets usually it will be Arabic.
Agree, in current state it is not very usable, need to add some priority for automatic selection.

'Configure' shows configuration window exposed by VSFilter. If it does not show anything then filter is not installed in the system (i.e. there is used local filter shipped with preconf version). Well, if it is not installed, then it should not store settings in the system, so inaccessibility of configuration window looks ok. Though probably need to disable 'Configure' menu item in this case.

Anyway filter configuration would not help because subtitles are not downloaded initially and they have to be selected by video frame context menu in order to do this. So priority thing should be done on component side.

NOTE. Seems 403 error came back. Working on it.
Title: Re: foo_youtube
Post by: 3dyd on 2016-06-23 22:28:42
New version 1.17.1 beta 1

This is a quick update for Youtube (#403 error fix)
Title: Re: foo_youtube
Post by: FichteFoll on 2016-06-23 22:56:59
Confirmed 403 fix to be working :+1:

Was waiting eagerly.
Title: Re: foo_youtube
Post by: Wolfbane on 2016-06-25 10:56:36
+1, Same here
"Unable to open item for playback (Youtube Source: Server error (code #403)):"
Title: Re: foo_youtube
Post by: 3dyd on 2016-06-29 11:04:01
1.17.1 final

Additional change: configuration of subtitles to show initially. Checkbox 'Initially turn off subtitles' in Video options tab was replaced by 'Subtitles to show initially' editbox. There can be specified a list of subtitles separated by semicolon. Will be displayed first subtitles from this list that will be found within available subtitles of the clip. More info is here (http://fy.3dyd.com/home/#Subtitles_to_show_initially).

Also, if nobody minds, option 'Previous video sync method' (from Advanced tree) will be removed in next version.
Title: Re: foo_youtube
Post by: Cnuut on 2016-07-15 00:43:52
Great plugin!
Is there anyway to get fullscreen persistent? I have foobar on a second(third) monitor and cant have the videofeed on fullscreen while working on the main monitor.
Title: Re: foo_youtube
Post by: 3dyd on 2016-07-15 09:49:21
Uncheck 'Turn video fullscreen off on program deactivation'. This option is sitting in Advanced -> Tools -> Youtube Source -> Video.

(Maybe need to move it near to 'Fullscreen monitor' option in Video options tab.)
Title: Re: foo_youtube
Post by: Cnuut on 2016-07-15 16:31:52
Ah! thank you!
Did not occur to me to look in the advanced options :D
Title: Re: foo_youtube
Post by: nebur11 on 2016-07-23 23:29:46
When i click on
Quote
...get more 50 for 'x'
Foobar will play this as a song and it will not open 50 more files. 
Do you guys know how to do this in the proper way?

Edit:

When I type just words it works, so for example if i type "trap" i can click on the
Quote
...get more 50 for 'x'
and it works.
But when i type a link to a playlist in youtube it doens't work anymore. For example: when i type "https://www.youtube.com/playlist?list=PLML_tZ8093bpCw2QJjPAMLFlALG57Wuox" it doesn't work anymore.

Do you guys know how to fix this?
Title: Re: foo_youtube
Post by: 3dyd on 2016-07-25 21:24:53
Possibility to add playlists using search box was added just in case. It seems that this possibility is incomplete. Will be fixed in next version. Before that you can use regular way to add playlists (menu File -> Add location...), this way works as expected.

Also FYI, to expand 'get more' item without playback start there can be used context menu Youtube Source -> Expand '...get more XX for 'YY''. Also a keyboard shortcut can be configured for this action ('get more' playlist item should be selected when shortcut is used).
Title: Re: foo_youtube
Post by: nebur11 on 2016-07-26 11:21:34
Thanks! I really like the keyboard shortcut way of doing it.
Title: Re: foo_youtube
Post by: Hidrojen on 2016-09-10 18:37:39
Code: [Select]
https://www.youtube.com/watch?v=As_4MEJUzeY
https://www.youtube.com/watch?v=oKbChvqADd0

These videos' metadata are parsed incorrectly, just letting you know.
Title: Re: foo_youtube
Post by: 3dyd on 2016-09-10 21:41:35
If you are about extra hyphen in %artist% ("- Melano", "- Aero Chord") then you cannot expect good result in every case. However in this case you can change 'Clip title parsing rule' value (located in Preferences -> Tools -> Youtube Source -> Features) to this:
Code: [Select]
(?:[[【({].+?[]】)}]\s*[-–~:]?\s*)?(?:%artist%\s*[-–~|/:]\s+)?%title%(?:\s+[~|/[【({].*)?
Title: Re: foo_youtube
Post by: forestasia on 2016-09-17 14:30:54
This was working perfectly for me through Wine, but I upgraded to Linux Mint 18 lately and I'm getting the "Unable to open item for playback (Youtube Source: Page analysis, SSL connect error (35))" error.

I've tried with and without the libcurl_openssl.dll linked on the plugin website but it gives the same error.

Is there some way to confirm how the plugin tried to make the connection (ie if its really using the dll or not)?
Title: Re: foo_youtube
Post by: 3dyd on 2016-09-17 16:17:10
If it uses external libcurl, after program start component log will contain line like this:
Code: [Select]
18:00:13, (ext) libcurl/7.44.0 OpenSSL/1.0.2d zlib/1.2.8
To access component log hold Shift key and press menu View -> Youtube Source Log

Buuut, seems since 1.16 possibility to use external libcurl is broken so log will contain just "Error loading external libcurl". You can try this version: 1.17.2b1 (https://download.fy.3dyd.com/foo_youtube_1.17.2_beta1.fb2k-component).
Title: Re: foo_youtube
Post by: forestasia on 2016-09-17 16:37:34
Great, thanks a lot!

This version works.

Seems to work both with and without using the external libcurl.

You were right, the 1.17.1 version was giving "Error loading external libcurl" error.

Title: Re: foo_youtube
Post by: 3dyd on 2016-09-18 21:35:28
Thanks for check. Internal libcurl was updated to latest version, luckily this also solved the problem.
Title: Re: foo_youtube
Post by: Blueinferno on 2016-10-14 19:11:45
i love this plugin. thanks! wish there was a way to search for playlists.
Title: Re: foo_youtube
Post by: mudlord on 2016-10-21 05:05:11
You should ask for this to be uploaded to the official components page. Seems super stable compared to the earliest versions and works really well.
Title: Re: foo_youtube
Post by: 3dyd on 2016-11-07 19:39:09
wish there was a way to search for playlists.
I wish that too. One day it will be there.
Title: Re: foo_youtube
Post by: 3dyd on 2016-11-07 19:42:19
New version 1.17.2

Changelog:
- fixed feed retrieving when search box is used for feed URL
- extended clip title parsing rule a bit, as it was discussed here some time ago
- fixed possibility to use external libcurl
- fixed possibility to setup audio quality group 'for all'
- fixed subtitles download for Youtube (did not work in some cases)
- fixed Dailymotion (didn't work due to changes on the site)
- updated ffmpeg to 3.2, removed flv, mp3, amr codecs (not used by Youtube anymore)
- updated libcurl to 7.50.3

Also site now accessible via HTTPS (thanks to Let's Encrypt).
Title: Re: foo_youtube
Post by: 3dyd on 2016-11-08 21:53:54
Cool. Youtube added support (https://youtube.googleblog.com/2016/11/true-colors-adding-support-for-hdr.html) for 10-bit videos. Also 60fps is available for them in all dimensions (for regular videos 60fps is available only for 720p and above).
Title: Re: foo_youtube
Post by: nikolai4ik on 2016-11-13 11:13:55
Integrated search panel doesn't work for me, no results ever showing up. Separate works fine.
Title: Re: foo_youtube
Post by: 3dyd on 2016-11-14 20:44:20
Well, that is strange. What Log says after search? Also, maybe you have added keyboard shortcut for Enter key?
Title: Re: foo_youtube
Post by: mezenga on 2016-11-15 23:00:54
Integrated search panel doesn't work for me, no results ever showing up. Separate works fine.
I´m having the same issue.
What Log says after search?
20:55:58, #01, Searching, [search string]
20:56:06, #01,    Total time consumed: 8.268 seconds
20:56:06, #01,    Ready
Title: Re: foo_youtube
Post by: 3dyd on 2016-11-17 12:12:33
So it is not keyboard shortcut issue nor search api error.

Could you check it in default foobar installation? To exclude possibility of configuration issues or problems with other 3rd-party components.
Title: Re: foo_youtube
Post by: mezenga on 2016-11-18 03:45:41
Could you check it in default foobar installation?
Solved!
I was expecting the results to show below the integrated search box like it happens on the windowed search.
"Youtube Search (Integrated)" and "Playlist" UI Elements are sharing the same UI area with tabs so the results were hidden.
Maybe the integrated search could have a message "See results on Playlist View" below the search box making clear that it behaves different.
Title: Re: foo_youtube
Post by: 3dyd on 2016-11-18 20:35:01
Yes, I'll add it.
Title: Re: foo_youtube
Post by: 3dyd on 2016-12-04 23:12:44
New version 1.17.3

Changelog:
- added %video_popup_status% variable (possible values: "visible" / "hidden")
- simplified 'Playback Start' option. Returned back to how it was before 1.4.1, there are no need now in this complexity and anyway it does not accurately describe current analysis process
- added tip about search results in Search (Integrated) UI element. Will be visible is UI element area is too large for it
- fixed several ways to get crash when using video
- fixed 'Prevent monitor turn off when video is playing' behavior when multiple video frames are used
- reworked from deprecated ffmpeg API, minimum required version of external ffmpeg has been shifted
- updated ffmpeg to 3.2.1
Title: Re: foo_youtube
Post by: saturdays on 2016-12-17 18:41:10
Am I doing this right? 

Pardon me, I'm a noob that just "discovered" foo_youtube this morning and I'm getting tired of combing documentation and forum posts for my answers.  It's playing fine, but I have to select the track from my audio library, run the auto youtube search, then select that track to actually play the video.  I'm under the assumption that I can save the new item into it's own playlist for future viewing, but all of the tags from the original audio file have been erased.

Is this typical use?  Is there not a convenient way to tie the video to the audio track in my library rather than me having a separate playlist for video files?  I already have a local folder full of music videos fulfilling that need, I want something that conveniently ties videos to my existing music library.  Like if I could just paste a youtube URL (or local media directory) into the audio track's tag file and have foo_youtube open that automatically when present, that would be ideal.

 Is this plugin not for me, or am I using it incorrectly?
Title: Re: foo_youtube
Post by: 3dyd on 2016-12-19 01:23:19
run the auto youtube search
This feature is originally intended to replace broken clips with the ones obtained from Youtube search. And there was no reason to not expose it for other playlist items (i.e. not Youtube clips), so it is available for all. But as it states, it does replacement. Original playlist item is replaced with the one from search. There are no way so far to tie Youtube video to other source than the audio from the same Youtube clip.
Title: Re: foo_youtube
Post by: saturdays on 2016-12-20 00:33:09
Okay, good to confirm.  Is there a way I can add these clips to my main library?  I've been trying to do make a "Clip link file", but I haven't had any success getting it to work.
Title: Re: foo_youtube
Post by: charlie_su1986 on 2016-12-20 17:01:10
Thank you for this excellent plug in!

One question, do you have any plan to add support for live youtube streams?
Examples: https://www.youtube.com/results?search_query=radio+live

When I try one of those I get "Unable to open item for playback (Youtube Source: init)"
Title: Re: foo_youtube
Post by: 3dyd on 2016-12-20 23:38:15
Is there a way I can add these clips to my main library?  I've been trying to do make a "Clip link file", but I haven't had any success getting it to work.
It was removed in favor of m-TAGS. You can try it.

Though I want to believe there is other approach for your case. Try last beta. One of changes:
- "added way to tie clip video to regular playlist items. For now there is expected %video_url% meta tag containing URL to the clip from supported site"

One question, do you have any plan to add support for live youtube streams?
Support for live streams and clips which originally was live (so their source is chunked) is the must. However, I cannot give any estimation of when it will be available.



%video_url% is the first attempt to use video outside original clip. Testing and any ideas how to make it more useful and convenient would be appreciated.

I suppose these things should be done in first turn:
- way to obtain URL should be configurable through titleformatting
- metadata edit of playing item should be caught on fly
- should be a way to shift video (video_offset (?) meta). Synchronization of video and audio from different sources potentially is a big problem that will prevent this feature to be good enough

Title: Re: foo_youtube
Post by: saturdays on 2016-12-28 01:33:25
I see how m-tags would be much more beneficial than a new file format, but this %video_url% tag is pretty much exactly what I was hoping for when I initially downloaded the component.  I gave it a shot and I like the results, but you're right that a video offset option is needed, or an option to switch between the local audio file and the youtube if offsetting is too difficult.

I know this is not really the point of the component, but is there any way to point to a local video file rather than a youtube one?  I like being independent from an online connection.

Also, I get a lot of video stuttering, but changing the video resolution doesn't seem to affect it.  Any ideas what might be causing the stuttering?

Thanks for you help!
Title: Re: foo_youtube
Post by: 3dyd on 2016-12-28 11:26:08
I gave it a shot and I like the results, but you're right that a video offset option is needed, or an option to switch between the local audio file and the youtube if offsetting is too difficult.
It should not be difficult since kind of it is already used in 'Make album' feature.

Though that still going to be not very convenient. From what I've seen, if I'm not familiar with the song or the video, often it is hard to determine even direction in which the video should be shifted.

I assume video offset can be determined automatically by cross correlation. Though I don't have much experience in DSP processing so it won't be in place soon unless someone more experienced will take part. That feature even does not have to be part of the component.

I know this is not really the point of the component, but is there any way to point to a local video file rather than a youtube one?  I like being independent from an online connection.
Not within this component.

Also, I get a lot of video stuttering, but changing the video resolution doesn't seem to affect it.  Any ideas what might be causing the stuttering?
Try regular (not DASH) MP4. It is least problematic format in context of video playback in the component. Disadvantages: it is most bandwidth consuming, and is available only in 360p and 720p.

Format can be switched using Source popup menu of video frame context menu. To do this permanently, enter 'mp4' in 'Priority of formats' on Video tab from component preferences and check 'Format takes precedence' there.
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-04 16:14:28
New version 1.18

Changelog:
- added option 'Prefer HFR' (high frame rate (https://en.wikipedia.org/wiki/High_frame_rate)) videos
- added option 'Prefer HDR' (high-dynamic-range (https://en.wikipedia.org/wiki/High-dynamic-range_video)) videos
- added support for %video_url% meta. If playing track (local file or whatever) has that meta pointing to the clip from supported site then behavior of video-related parts of the component will be the same as for regular clips
- added support for %video_offset% meta. Since video and audio are from different sources, they can be unsynced. This meta gives possibility to set delay for the video to make it synced with the audio. Expected value: "HH:MM:SS.MS". Any number except seconds is optional. All numbers do not have expected ranges (e.g. minutes value does not have to be two-digit nor have value only in range 0..59)
- %video_url% and %video_offset% addition/editing/removal for playing track is caught on the fly
- %video_url% takes precedence over other ways to get clip URL. That means it is also possible to override video URL for Youtube clips
- added workaround for report info length limit. It is about 'Report a problem' and 'Report with log' Help menu items, previously there was limit of 2047 symbols. Also, since there are no limit and thus no need to make report info as short as possible, Help menu item 'Copy settings to clipboard' has been updated to generates sane summary
- video properties (HFR/HDR/3D) now are mentioned in video description of History tree
- updated ffmpeg to 3.2.2
- updated libcurl to 7.52.1
Title: Re: foo_youtube
Post by: zeremy on 2017-01-05 18:43:19
Any plans to add support for 360VR videos?

Sample Playlist
https://www.youtube.com/playlist?list=PLsjeGH5vaGhqGN9GzsJc4hqS9Mig1bNwV
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-05 20:07:08
Well, like in DVD era, when mouse interaction with DVD menus and corresponding on-screen changes were handled by one of the filters, handling 360 videos looks as something doable in DirectShow. I suppose it could be some transform or renderer filter that produces current view window from full 360 frame image. If there is any such filter around, I would be happy to add its support in the component.
Title: Re: foo_youtube
Post by: kode54 on 2017-01-05 20:32:36
Should be using Media Foundation, not DirectShow, in TYOOL 2017. And you'll need to perform some sort of spherical projection of the panorama image. I don't think a mere presentation filter can do that.
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-05 22:07:22
Should be using Media Foundation, not DirectShow, in TYOOL 2017.
Nah, DS is fine, alive and feeling well. I am not aware of any MF advantage over DS in context of its use in the component. There is one disadvantage though - lack of XP support (2017, I know, but still)

Or you are saying this in context of the topic, and MF has some sort of 360 videos support?

And you'll need to perform some sort of spherical projection of the panorama image. I don't think a mere presentation filter can do that.
Required video image transform does not look like rocket science since on desktop Youtube player and JW Player do this on the client side using js. At least if speaking about how it looks in the browser, not 3D nor use with VR headsets.
Title: Re: foo_youtube
Post by: euamotubaina on 2017-01-06 00:14:11
the search bar is not being displayed right for me in CUI (http://i.imgur.com/gZa1Hi1.jpg)
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-06 12:18:30
Cannot reproduce. Any clues?
Also what OS version do you have? And ensure you have the latest CUI (0.5.1 at the moment).
Title: Re: foo_youtube
Post by: ALUMICAN on 2017-01-08 08:11:47
Hello.

First, thank you nice guy.  :D
This is nice mod. Very useful for me!!

About YouTube Search (Integrated)

I want sorting by the original search orders.

Could you %tracknumber% override to the original search orders?
ex) such as %title% and %artist%.

Image: http://imgur.com/a/3D5ws
Title: Re: foo_youtube
Post by: euamotubaina on 2017-01-10 06:08:58
Cannot reproduce. Any clues?
Also what OS version do you have? And ensure you have the latest CUI (0.5.1 at the moment).

I'm sorry I did not give further details.  I`m on Win10 running with a 250% zoom due to my monitor being my 4K TV.

(http://i.imgur.com/uLly5BY.jpg)

everything's ok when I turn the zoom off.

(http://i.imgur.com/wchNXQi.jpg)
Title: Re: foo_youtube
Post by: minstreless on 2017-01-14 03:25:11
This is so great for me, seeing that im sitting on an old pc with only 4gb memory, and having youtube swallows it like mad.

I take it that it's not possible to listen to LIVE youtube radios/streams? there are some youtube channels who are having nice music that i would like to listen through foobar 2000, but it's not yet possible, right? tried to make it work, but i can only play non-live youtube stuff..

thanks a million for a great plugin, tho! :)
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-14 16:07:44
@ALUMICAN
added in current beta.

@euamotubaina
yes, that helped. Exposed UI elements behave ok with different font sizes but apparently were not well prepared for high DPI. Fixed in current beta. Though not sure how it will look in multi monitor environment with different DPI scale per monitor.

@minstreless
unfortunately it is not possible at the moment.
Title: Re: foo_youtube
Post by: ALUMICAN on 2017-01-16 12:24:33
@ALUMICAN
added in current beta.

I installed this beta version and it worked perfectly!

Thank for your quick response to my request.  :D
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-01-17 11:32:02
@3dyd
Hey there! Is it possible to change the initial focus (i.e. after opening the window) on Youtube Search window from search result to search text? Current behavior is a little counter-intuitive, imo. Because when you want to search something, the first thing you'd usually want to do is to type search terms =)
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-17 20:57:28
Current rule for initial focus: set focus to search results list if the list is not empty and focus was there last time the search window was used. Otherwise set initial focus to search query edit box.

That was also done by request. Considerations behind this behavior are reasonable too. So all I can suggest is to add additional item under Extensions group (say, "initial focus to search box") retaining current behavior as default.

Title: Re: foo_youtube
Post by: TheQwertiest on 2017-01-18 09:12:50
Current rule for initial focus: set focus to search results list if the list is not empty and focus was there last time the search window was used. Otherwise set initial focus to search query edit box.
It sounds quite reasonable, but the problem is that the search query box and the results list can only be emptied manually and only after opening Youtube search window (i.e. it won't reset even after foobar restart), which results in permanent focus on results list after the first search (unless your search returned no results).

That was also done by request. Considerations behind this behavior are reasonable too. So all I can suggest is to add additional item under Extensions group (say, "initial focus to search box") retaining current behavior as default.
Any solution is better than none =)
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-18 09:34:33
the results list can only be emptied manually and only after opening Youtube search window (i.e. it won't reset even after foobar restart), which results in permanent focus on results list after the first search (unless your search returned no results).
Note about empty list was for completeness. Main point of current behavior is to restore focus where it was last time. If last time the focus was in search box, initial focus will also be there. If it was in the list, then initial focus will be in the list and on the same list item as before.

Any solution is better than none =)
Will be in next beta.
Title: Re: foo_youtube
Post by: marcoxc on 2017-01-26 20:48:22
Can someone help me to find the reason why thumbnails do not appear in the appropriate folder?
In the following the elements to describe the context:


21:22:56, (ext) libcurl/7.44.0 OpenSSL/1.0.2d zlib/1.2.8
21:22:56, Video: LAV Splitter 0.69.0 (int), LAV Video 0.59.1 (int), VSFilter 3.0.0 (int)
21:22:56, ffmpeg (int): lavf 57.56.100, lavc 57.64.101, lavu 55.34.100
21:23:00, #01, Page analysis, youtube.com/watch?v=CoBT59xRElU
21:23:00, #01,     Opening given Youtube URL...
21:23:12, #01,     Getting info about clip, processed 0 of 22 clip(s)...
21:23:12, #01,     01/22: MP4 240p 426×240 30fps 10.16 MB VO
21:23:12, #01,     02/22: MP4 360p 640×360 30fps 2.53 MB VO
21:23:12, #01,     03/22: MP4 480p 854×480 30fps 4.67 MB VO
21:23:12, #01,     04/22: MP4 720p 1280×720 30fps 9.17 MB VO
21:23:12, #01,     05/22: MP4 1080p 1920×1080 30fps 21.39 MB VO
21:23:12, #01,     06/22: M4A 44100Hz Stereo 127kbps AO 5.26 MB
21:23:12, #01,     07/22: MP4 144p 256×144 15fps 4.62 MB VO
21:23:12, #01,     08/22: 3GP 144p 176×144 10fps 1.47 MB
21:23:12, #01,     09/22: OGG 44100Hz Stereo 119kbps AO 4.91 MB
21:23:12, #01,     10/22: MP4 360p 640×360 30fps 10.40 MB
21:23:12, #01,     11/22: MP4 720p 1280×720 30fps
21:23:12, #01,     12/22: WebM 240p 426×240 30fps 1.06 MB VO
21:23:12, #01,     13/22: WebM 360p 640×360 30fps 1.66 MB VO
21:23:12, #01,     14/22: WebM 480p 854×480 30fps 2.40 MB VO
21:23:12, #01,     15/22: WebM 720p 1280×720 30fps 4.39 MB VO
21:23:12, #01,     16/22: WebM 1080p 1920×1080 30fps 13.81 MB VO
21:23:12, #01,     17/22: OPUS 48000Hz Stereo 52kbps AO 2.17 MB
21:23:12, #01,     18/22: OPUS 48000Hz Stereo 71kbps AO 2.94 MB
21:23:12, #01,     19/22: OPUS 48000Hz Stereo 137kbps AO 5.68 MB
21:23:12, #01,     20/22: WebM 144p 256×144 15fps 1.14 MB VO
21:23:12, #01,     21/22: 3GP 240p 320×180 30fps 5.09 MB
21:23:12, #01,     22/22: WebM 360p 640×360 30fps 8.87 MB
21:23:12, #01,     Total time consumed: 11.907 seconds
21:23:12, #01,     Ready
21:23:12, Audio opening opus (https): download - foo_youtube, decode - ffmpeg
21:23:12, Activity#1 (audio.play): OPUS 48000Hz Stereo 137kbps AO | 5.68 MB
21:23:12, Audio opening finished in 0.461 seconds
21:23:14, #02, Downloading thumbnail
21:23:15, #02,     Downloading thumbnail, successfully downloaded
21:23:15, #02,     Total time consumed: 0.821 seconds
21:23:15, #02,     Ready


Title: Re: foo_youtube
Post by: 3dyd on 2017-01-27 10:54:16
Fixed in current beta. Thanks for report.
Title: Re: foo_youtube
Post by: marcoxc on 2017-01-27 18:46:13
Fixed in current beta. Thanks for report.
I confirm that now thumbnails are working. My 15yr old laptop says thanks...
Title: Re: foo_youtube
Post by: gr8cx on 2017-01-28 15:17:40
hi 3dyd
great plugin, respect from russia

when i try add playlist File->Add Location https://www.youtube.com/playlist?list=PL0551E080B5AD93EA
appears popup window Information: The following error(s) occurred during loading of the location(s):
Security error

reason?
windows xp sp2, foobar v1.3.14, foo_youtube_1.18.1_beta3_preconf_xp
Title: Re: foo_youtube
Post by: Skreaxy on 2017-01-28 21:43:48
How do I manually open the video?
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-29 13:00:31
@gr8cx
foobar2000 does its own check of HTTP(S) URLs before they go to the component. Google uses SHA-256 certificates at minimum, and XP SP2 does not support SHA-256. So that check fails and component does not get these URLs.

AFAIK there are no way to pass that check. But it can be avoided. To do that, go to 'Preferences -> Advanced -> Networking' and add www.youtube.com in Suppress HTTPS certificate checks for domains.

@Skreaxy
Maybe 'View -> Visualizations -> Youtube Video' is what you need.
Title: Re: foo_youtube
Post by: gr8cx on 2017-01-29 15:47:42
@gr8cx
AFAIK there are no way to pass that check. But it can be avoided. To do that, go to 'Preferences -> Advanced -> Networking' and add www.youtube.com in Suppress HTTPS certificate checks for domains.

helped thanks, it work
Title: Re: foo_youtube
Post by: marcoxc on 2017-01-30 10:09:02
Fixed in current beta. Thanks for report.
I confirm that now thumbnails are working. My 15yr old laptop says thanks...
If you create a playlist from youtube search and let it play, the first thumb is shown correctly, but the following do not show.
It seems that thumbs are shown only following a user event (e.g. play, skip) and not when a track starts following the end of another.
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-30 20:29:10
Component does not decide for which item an album art is currently displayed. I suppose you need to turn on 'Cursor follows playback' in menu Playback to get behavior that you are expecting.
Title: Re: foo_youtube
Post by: Skreaxy on 2017-01-31 21:24:12
I get this error:
     Unable to open item for playback (Youtube Source: Page analysis, Couldn't resolve host name (6)):
"youtube.com/watch?v=1VUa99-tJqs"

I have noticed that this error occurs when its a music video or a song but when it's a video it doesnt appear this error


Also I selected to open the video in manually but not in fullscreen but it opens in fullscreen in the thumbnail not in the View - Visualizations - Youtube Video
Title: Re: foo_youtube
Post by: 3dyd on 2017-01-31 21:33:42
Yes. Some clips started giving it. Should be fixed in current beta4.
Title: Re: foo_youtube
Post by: Skreaxy on 2017-01-31 21:55:24
Also I selected to open the video in manually but not in fullscreen but it opens in fullscreen in the thumbnail not in the View - Visualizations - Youtube Video what is the cause of it?

Title: Re: foo_youtube
Post by: 3dyd on 2017-02-01 11:43:41
To clarify. in component preferences -> Video tab -> 'Show video frame' combo box you have 'Manually' (not 'Manually (fullscreen)'. And when you go to menu View -> Visualizations -> Youtube Video, it appears fullscreen? Are you sure it is in fullscreen? There could be just a big frame window, if you select video resolution near to your screen resolution.
Title: Re: foo_youtube
Post by: 3dyd on 2017-02-01 16:05:02
New version 1.18.1

Changelog:
- search position to %tracknumber%. Optional feature under additional Extensions group of search config menu (either integrated search or popup window). If enabled, track position in search results will be stored in %tracknumber% meta
- option Fit to video in video UIE. Will resize video frame within UIE to retain the same aspect ratio as source video. I.e. no black areas around video in UIE, that area will be filled by panel background (or will be transparent if this is enabled in CUIE)
- video UIE got same set of panel options (panel border, transparent background in CUI etc.). Reminder: in DUI panel options are available in panel context menu only when layout editing mode is enabled
- initial focus to search box. Option in Search popup window to always set initial focus to search box when the window appears on the screen. Available under Extensions group of search config menu. It is unchecked by default, what means to retain focus on the control which had it last time the window was visible
- appearance fixes for high DPI. Size and position of popup windows will be reset as side effect of these fixes
- fixed inability to display thumbnails as album art on XP
- fixed inability to add feeds using menu 'File » Add multiple URLs...'
- fixes for transparent background in CUI: correct redraw at panel resize / move, correct redraw of panel border, fixed drawing artifacts in Activity and Log
- fix for Youtube (some clips started giving an error "could not resolve host name")
Title: Re: foo_youtube
Post by: Skreaxy on 2017-02-01 20:07:50
To clarify. in component preferences -> Video tab -> 'Show video frame' combo box you have 'Manually' (not 'Manually (fullscreen)'. And when you go to menu View -> Visualizations -> Youtube Video, it appears fullscreen? Are you sure it is in fullscreen? There could be just a big frame window, if you select video resolution near to your screen resolution.

I have the Option selected in Manually and the menu View -> Visualizations -> Youtube Video works fine. I got a new Tabb in a Layout and I added there the Youtube Video and when i double click there it opens in fullscreen, isn't supposed to open in the resolution that it's defined?
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-02-02 14:00:11
- initial focus to search box.
Thanks! Tested it: works properly =)

Title: Re: foo_youtube
Post by: 3dyd on 2017-02-02 19:53:49
I have the Option selected in Manually and the menu View -> Visualizations -> Youtube Video works fine. I got a new Tabb in a Layout and I added there the Youtube Video and when i double click there it opens in fullscreen, isn't supposed to open in the resolution that it's defined?
It does not work like that. Video UI element can be either part of UI (as you have it within Tab) or full screen. Video popup window (Visualizations -> Youtube Video) can be either a popup window or full screen. There are no transition between popup window and UI element. Resolution settings are for choosing source video to play, not for destination window where it will be played.
Title: Re: foo_youtube
Post by: mire777 on 2017-02-03 11:28:44

- fix for Youtube (some clips started giving an error "could not resolve host name")


I have recommendation, is it possible to add ''auto update'' option, so user can select that , and when new update is available , foobar will update component automaticaly with message ''youtube component was updated, restart now?'' , and option to revert to previous version if something not work? .. So we don't need to doing this manualy? I think this is possible..

Thanks..
Title: Re: foo_youtube
Post by: 3dyd on 2017-02-03 13:54:54
Although this looks to be possible, this is teetering on the edge of SDK restrictions. Or most likely is beyond that edge.
Title: Re: foo_youtube
Post by: gr8cx on 2017-02-13 19:58:46
hi 3dyd

i have problem last three days

view->search ANY KEYWORD then play

Unable to open item for playback (Youtube Source: SSL connect error (35)):
"youtube.com/watch?v=IwpDzJE4fc8"

Unable to open item for playback (Youtube Source: SSL connect error (35)):
"youtube.com/watch?v=gACAQaYpI7U"

Unable to open item for playback (Youtube Source: SSL connect error (35)):
"youtube.com/watch?v=84kbG2ExdZs"


windows xp sp2, foobar v1.3.14, foo_youtube_1.18.1_beta3_preconf_xp
Title: Re: foo_youtube
Post by: 3dyd on 2017-02-14 07:31:10
Yes, it looks like they have switched to more secure HTTPS that is not supported by Windows XP native backend. Even XP SP3 does not work. Though I didn't dig much into the problem since alternative SSL backend solves it.

So, get alternative SSL backend from download page and select it in component preferences -> Maintenance -> External Binaries -> libcurl.
Title: Re: foo_youtube
Post by: gr8cx on 2017-02-14 09:37:04
So, get alternative SSL backend from download page and select it in component preferences -> Maintenance -> External Binaries -> libcurl.

helped thanks, it work
Title: Re: foo_youtube
Post by: torteusz on 2017-02-19 01:21:21
Strange error does not know if plugin or Youtube - type a in the Foo_youtube search phrase: Deep Purple Abandon and any suggestions or results - while Google find easily and Youtube too.
Title: Re: foo_youtube
Post by: 3dyd on 2017-02-19 20:57:57
So neither search itself nor search autocomplete don't work for you?
Title: Re: foo_youtube
Post by: torteusz on 2017-02-20 08:25:17
Yes, but only in this particular case - and how does it look to you?
Title: Re: foo_youtube
Post by: 3dyd on 2017-02-21 21:33:02
If the search normally works and does not give results only in this case, then I have no idea. And it does work for me with that search query.

Regarding to search autocomplete. AFAIK there are no public API for that. So, although in this particular case it gives nothing (for me too), in general case it still gives something and that is just 'good enough'.
Title: Re: foo_youtube
Post by: torteusz on 2017-02-22 16:13:40
I gave this example just as a curiosity, plugin works well.

Thanks.
Title: Re: foo_youtube
Post by: Skreaxy on 2017-02-27 19:37:43
How do I make by default have this format selected ? http://prntscr.com/ee486z I have tried to add in priority formats m4a but it doesn't  load with it. I'm doing this because I have in a ColumnUI the youtube video and its slow/breaking (video, the audio does fine) possibly my pc because its not very good but when I select that format it doesn't break
Title: Re: foo_youtube
Post by: 3dyd on 2017-02-28 20:31:33
Preferred video and audio qualities are configured separately. To change default video quality go to Video tab of component preferences. To get what you want, enter 'mp4' (without quotes) in 'Priority of formats'.

By default, before determining best stream by format, components finds the bests by quality, e.g. by resolution/HFR/HDR in case of video. And selection by format is performed only if there are more than one stream with preferred quality. To make it select by format first, check 'Format takes precedence over quality' option in that Video tab.
Title: Re: foo_youtube
Post by: widerock on 2017-03-06 03:48:11
I tried to configure the youtube search to show the results from the playlists in Youtube.com.
But, I couldn' t do it. Is there any way to do that? If not, could you implement that knid of thinkgs.
I know that I can play the files withinin a youtube playlist by copying and pasting the playlist address into "Menu-File-Add Location".
Title: Re: foo_youtube
Post by: widerock on 2017-03-08 01:47:26
From yesterday, I've got this kind of error messages for some of youtube songs which were O.K to play.
I checked that there is no problem with playing them within Firefox browser.
One of them : http://youtube.com/watch?v=qabeIKjjhfI
Quote
Unable to open item for playback (Youtube Source: Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Page analysis, no video found on Youtube URL):
"youtube.com/watch?v=qabeIKjjhfI"

Title: Re: foo_youtube
Post by: MrSanchez on 2017-03-08 14:55:54
From yesterday, I've got this kind of error messages for some of youtube songs which were O.K to play.
I checked that there is no problem with playing them within Firefox browser.
One of them : http://youtube.com/watch?v=qabeIKjjhfI
Quote
Unable to open item for playback (Youtube Source: Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Getting info about clip, server error (code #403) | Page analysis, no video found on Youtube URL):
"youtube.com/watch?v=qabeIKjjhfI"



I have the exact same issue.
Been using foo_youtube for about a month now, working absolutely splendidly until I checked again today (didn't use it yesterday).

I get the same error as widerock on 80% of my playlist, for instance on this song: https://youtube.com/watch?v=TR3Vdo5etCQ
All songs affected play perfectly fine on browser (Google Chrome), just not foobar.

A few songs are not affected and do play on foobar, like: https://youtube.com/watch?v=y6120QOlsfU (yes, I have that on my playlist :) )

I'm hoping this is a temporary problem on Youtube's end but considering widerock mentioned it started two days ago, I'm not sure.

Kind regards,
Sanchez
Title: Re: foo_youtube
Post by: 3dyd on 2017-03-08 17:43:58
Yep. I'm fixing that.

Youtube often changes something on the site. Not necessary for security reasons (to prevent ones like this component from working) but just because they are constantly improving internal stuff.

So think about this like it's kinda specificity of the component. From time to time it just stops working. In that case just wait a day or so and update it. Notification about an error is also welcome if notification page (Help -> Youtube Source -> Report a problem) does not yet specify that fix for it is in progress.

I tried to configure the youtube search to show the results from the playlists in Youtube.com.
Yes, at the moment search is possible only for videos (like when in search on Youtube site is selected Filters -> Type -> Video).
Title: Re: foo_youtube
Post by: 3dyd on 2017-03-09 00:12:50
From now on, announcements of new versions will be placed in first post of this topic.
Title: Re: foo_youtube
Post by: FichteFoll on 2017-03-09 11:28:45
Trying to add a feed (youtube channel) results in a popup saying:

The following error(s) occurred during loading of the location(s):
Security error


No info related to this action in the log. It didn't work for any URL I tried, but here's an example: https://www.youtube.com/user/MrSuicideSheep

This is the first time I'm using this feature on Linux, so I can't tell if it worked before. Playback from videos I still have in my playlists works fine though (with alternative SSL backend from your site).

Feel free to ask for any more info.
Title: Re: foo_youtube
Post by: 3dyd on 2017-03-09 15:03:43
This post (https://hydrogenaud.io/index.php/topic,104379.msg934864.html#msg934864) might be related somehow. At least proposed solution may work for you too.
Title: Re: foo_youtube
Post by: FichteFoll on 2017-03-09 15:32:22
Adding www.youtube.com to the HTTPS cert check excludes did not help, unfortunately.
Title: Re: foo_youtube
Post by: marc2003 on 2017-03-09 16:15:41
Maybe try youtube.com without the www??
Title: Re: foo_youtube
Post by: FichteFoll on 2017-03-09 19:10:04
Same story. (Iirc all "youtube.com" urls get redirected to "www.youtube.com" anyway, which is stupid in this age imo, but w/e. This could only happen after a connection has been established, though.)
Title: Re: foo_youtube
Post by: 3dyd on 2017-03-10 09:06:38
Ok, reproduced under Ubuntu 15, Wine 1.6 and 1.8. Wine 2.x works fine. Though under Ubuntu 16 Wine 1.6 works fine.

I haven't found a solution in cases when this issue is presented. I would suggest you consider using Wine 2.x is it's possible in your case. If it's not possible, or does not work, then you could say your OS name and version and I'll check what else can be done.
Title: Re: foo_youtube
Post by: FichteFoll on 2017-03-10 11:51:56
I'm using Wine staging 2.3 on Arch, so I suppose the "use 2.x" fix isn't in for me either. Thanks for taking a look.
Title: Re: foo_youtube
Post by: 3dyd on 2017-03-10 15:12:53
So it appears to be that lib32-gnutls is optional dependency for Wine. And apparently it is used to provide schannel functionality. Installation of this package solved the issue for me on Arch.
Title: Re: foo_youtube
Post by: FichteFoll on 2017-03-13 22:25:32
Thanks, installing lib32-gnutls made it work for me too. So glad I can still use this awesome plugin on Linux :)
Title: Re: foo_youtube
Post by: 322 on 2017-03-17 21:10:31
Every video I play stutters unbearably unless I manually select a different format or restart foobar2000. It happens every single time when a new video is (re)loaded.

Is this a normal behaviour, a limitation of some kind?

P. S. That’s funny, I deselected the option "Prefer HFR" and selected "Prefer HDR". No idea what this means, but that fixed it. Please ignore this comment.
Title: Re: foo_youtube
Post by: Edo-kun on 2017-03-19 01:02:02
I recently added this plugin to my new system. And I'm able to play a lot of youtube urls in foobar2000 and I'm thankful for this plugin.
Nevertheless when I add a "stream" url it stays an error message: Unable to open item for playback (Youtube Source: Page analysis, no video found on Youtube URL):
"youtube.com/watch?v=2f4ztyFMot4"

youtube.com/watch?v=2f4ztyFMot4 (http://youtube.com/watch?v=2f4ztyFMot4)

Could it be that Youtube change something in the "stream" API or config? All videos that have a set duration or that are normal videos in youtube are working fin in foobar, except for streams.


Any suggestion to solving this issue?
Title: Re: foo_youtube
Post by: gr8cx on 2017-04-22 05:36:19
hi 3dyd

i need add playlist sorted by popularity

ffile->add location->https://www.youtube.com/user/ELLO/videos?flow=grid&view=0&sort=p

but order like https://www.youtube.com/user/ELLO/videos stay
Title: Re: foo_youtube
Post by: HoDANG on 2017-04-23 16:21:18
I recently added this plugin to my new system. And I'm able to play a lot of youtube urls in foobar2000 and I'm thankful for this plugin.
Nevertheless when I add a "stream" url it stays an error message: Unable to open item for playback (Youtube Source: Page analysis, no video found on Youtube URL):
"youtube.com/watch?v=2f4ztyFMot4"

youtube.com/watch?v=2f4ztyFMot4 (http://youtube.com/watch?v=2f4ztyFMot4)

Could it be that Youtube change something in the "stream" API or config? All videos that have a set duration or that are normal videos in youtube are working fin in foobar, except for streams.


Any suggestion to solving this issue?
I cannot playback live streams either. I am trying to play this live stream, https://www.youtube.com/watch?v=OpIQNxiKJoE , but I get this: http://i.imgur.com/86crNLs.png
Code: [Select]
Unable to open item for playback (Youtube Source: Page analysis, no video found on Youtube URL):
"youtube.com/watch?v=OpIQNxiKJoE"
Hopefully support for live streams will be added in the future. And, of course, thanks for the great plugin @3dyd !
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-04-24 10:00:25
Nevertheless when I add a "stream" url it stays an error message: Unable to open item for playback (Youtube Source: Page analysis, no video found on Youtube URL):
"youtube.com/watch?v=2f4ztyFMot4"

Any suggestion to solving this issue?
I cannot playback live streams either. I am trying to play this live stream, https://www.youtube.com/watch?v=OpIQNxiKJoE , but I get this: http://i.imgur.com/86crNLs.png
Code: [Select]
Unable to open item for playback (Youtube Source: Page analysis, no video found on Youtube URL):
"youtube.com/watch?v=OpIQNxiKJoE"

See below:
One question, do you have any plan to add support for live youtube streams?
Support for live streams and clips which originally was live (so their source is chunked) is the must. However, I cannot give any estimation of when it will be available.
Title: Re: foo_youtube
Post by: bermuda on 2017-05-18 15:19:17
I've been using Foo_youtube plugin for a little more then a month now but all of a sudden I keep getting "Unable to open item for playback (Youtube Source: server error (403))" I have tried to Google a solution but I couldn't really find anything, some songs work fine but most of them just give that error, when I go to the link provided by the error it works find and isn't Private or anything.



Title: Re: foo_youtube
Post by: 3dyd on 2017-05-19 10:52:15
Yes, that happens from time to time due to internal changes on Youtube. In such cases it just need to wait a bit until new component version, adapted for that change, will be created.

This time it seems that the change was not permanent - today clips are being played fine. But anyway, update with the fix preventing from that sort of issues in the future is on the way.
Title: Re: foo_youtube
Post by: musikomaniak on 2017-05-19 13:53:45
I don't have problems, but thanks for the fix :)
Title: Re: foo_youtube
Post by: mudlord on 2017-05-22 05:26:46
Does this plugin support live streamed video/audio on YT?
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-05-26 14:24:58
Bug found.
Description: foo_youtube incorrectly parses youtube playlist, when it contains more than 50 items.


Nvm, it's a feature and not a bug...
Title: Re: foo_youtube
Post by: gr8cx on 2017-06-02 14:40:02
hi 3dyd

how add videos from music channel sorted by popularity?
https://www.youtube.com/user/ELLO/videos

browser send GET request https://www.youtube.com/user/ELLO/videos?flow=grid&view=0&sort=p

Title: Re: foo_youtube
Post by: tirook on 2017-06-03 12:59:04
Hello,
Is there a way to use DSPs with foo_youtube ?
It seems that it bypass all foobar dsps to output.
I need to use sox and advanced limiter for exemple.
Christophe
Title: Re: foo_youtube
Post by: 3dyd on 2017-06-04 09:44:08
how add videos from music channel sorted by popularity?
From within component there is no way yet.

It seems that it bypass all foobar dsps to output.
I need to use sox and advanced limiter for exemple.
Audio output is performed by foobar (including DSP along the way), not by the component. Component acts as decoder, so it does not affect the rest of audio processing chain. Thus, unless these DSP use some specific way to operate (I'm not familiar with DSP side in foobar), they should work. E.g. normalizer, crossfader, resampler, tempo work ok.
Title: Re: foo_youtube
Post by: gr8cx on 2017-06-06 19:42:51
hi 3dyd

need add possibility https://www.youtube.com/user/ELLO/videos?sort=p
video sorted by popularity will grabbed from music channel

thanks, if possible

Title: Re: foo_youtube
Post by: lostinthenet on 2017-06-16 16:35:17
Does this plugin support live streamed video/audio on YT?

hi, I'd like to know how to do that too. I tried to move the link (drag'n'drop) into f2k playlist and I tried to do copy, ctru-u and paste too, but i always get the same error:
Unable to open item for playback (Youtube Source: Page analysis, no video found on Youtube URL)


Title: Re: foo_youtube
Post by: Shinsekai on 2017-06-17 00:59:52
hi, I'd like to know how to do that too. I tried to move the link (drag'n'drop) into f2k playlist and I tried to do copy, ctru-u and paste too, but i always get the same error:
Unable to open item for playback (Youtube Source: Page analysis, no video found on Youtube URL)
Live streams are not supported yet.
https://hydrogenaud.io/index.php/topic,104379.msg932789.html#msg932789
Title: Re: foo_youtube
Post by: Hidrojen on 2017-07-25 09:20:53
@3dyd Can you please support multiple selections for "Copy URL"?

For example: I select 6 songs and I click "Copy Name", I get the names of these songs.
I select 6 Youtube links and I want to do "Copy URL", so I get URLs of all selected Youtube links.
Right now I have to click "Copy URL" for every song.
Title: Re: foo_youtube
Post by: 3dyd on 2017-07-25 12:57:47
Ok. For some context menu items one track is a reasonable maximum, but "Copy URL" is definitely not one of them.
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-07-25 15:32:41
@3dyd : hey there, it seems I have a bug for you =)
I'm encountering a lot of 'server error (403)'. Only started recently (may be even today). Probably something with YT API.
Using latest 1.18.4 version.
Example videos: http://youtube.com/watch?v=avE5GkQ3J0w , http://youtube.com/watch?v=Lb-vIpdMagU
Title: Re: foo_youtube
Post by: 3dyd on 2017-07-26 00:25:40
Yeah. A sign from the heavens, hinting to stop tinkering and finally make an initial release.

Ladies and gentlemen, I'm glad to introduce version 2.0 (https://fy.3dyd.com/changelog/2.0)
Title: Re: foo_youtube
Post by: charlie_su1986 on 2017-07-26 04:54:46
Lovely, with live stream support! Thank you 3dyd for your hard work. Testing live stream now, so far so good.

@TheQwertiest same here, 1.18.4 can't play some streams, but 2.0 beta 4 works well at the moment.
Title: Re: foo_youtube
Post by: gr8cx on 2017-07-26 09:17:31
hi 3dyd

in new version bug?

in previous version i generated "hh_ello.m3u" file with content

https://www.youtube.com/watch?v=QpBnWbVBTWo
https://www.youtube.com/watch?v=gPSGjZQt9NM
https://www.youtube.com/watch?v=QXDRPtufEbA
https://www.youtube.com/watch?v=fuPX8mjeb-E
... next 2052 lines

then i foobar->file->add files add him to playlist and then play

but in beta 2.0 i get errors when play button
Unable to open item for playback (Unsupported file format):
"https://www.youtube.com/watch?v=QpBnWbVBTWo"
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-07-26 10:07:33
Yeah. A sign from the heavens, hinting to stop tinkering and finally make an initial release.

Ladies and gentlemen, I'm glad to introduce version 2.0 (https://fy.3dyd.com/changelog/2.0)
Yay for the stream support! One problem though - I can't find download link to 2.0 anywhere... Am I missing something or was it pulled down from the site?
Title: Re: foo_youtube
Post by: Air KEN on 2017-07-26 10:33:32
> I can't find download link to 2.0 anywhere... Am I missing something or was it pulled down from the site?

Probably, Reload current page.
https://fy.3dyd.com/download/
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-07-26 10:53:30
> I can't find download link to 2.0 anywhere... Am I missing something or was it pulled down from the site?

Probably, Reload current page.
https://fy.3dyd.com/download/
Yeah, it seems that firefox caches pages now, because download link appeared after force refreshing the page (CTRL-F5) :\
Title: Re: foo_youtube
Post by: gr8cx on 2017-07-26 13:43:34
hmm i append fy+ to http: but very very slow opening m3u file with 2000 lines to playlist
Title: Re: foo_youtube
Post by: 3dyd on 2017-07-27 01:34:11
@charlie_su1986 thank you

Yeah, it seems that firefox caches pages now, because download link appeared after force refreshing the page (CTRL-F5) :\
That was due to misconfiguration of cache control on the server. Fixed, thanks.

in previous version i generated "hh_ello.m3u" file with content

Code: [Select]
https://www.youtube.com/watch?v=QpBnWbVBTWo
https://www.youtube.com/watch?v=gPSGjZQt9NM
https://www.youtube.com/watch?v=QXDRPtufEbA
https://www.youtube.com/watch?v=fuPX8mjeb-E
... next 2052 lines
Ah. I was not aware of use cases when track path can retain original URL scheme, And this is one of them.

Fixed in beta5. For supported URLs without custom scheme was added redirection to fy+ when track info is requested or decoding starts. Files with http and https schemes are "remote", which affects their processing. [If I understand correctly] when such file is part of playlist, file info is not requested when playlist is being added. So you'll get your big playlist loaded instantly, but without metadata. Remoteness also means at least that embedded album art will not be loaded for such files. In context of this component that means there will be no thumbnail as album art. And metadata edit is also not possible (either because file is remote or because it is http/https).

hmm i append fy+ to http: but very very slow opening m3u file with 2000 lines to playlist
That is because unlike http/https, fy+ files are declared as "not remote" by the component. So file info gets requested when such files are added from playlist. If you don't have yet that info in the cache, a clip analysis will be initiated, which may take few seconds per clip. So adding a large playlist may take a long time. Though when you'll add it next time, that will be quick.
Title: Re: foo_youtube
Post by: gr8cx on 2017-07-28 11:49:30
Fixed in beta5.

Thanks now everything works
Title: Re: foo_youtube
Post by: Wolfbane on 2017-07-28 21:22:11
Feature Request.

Add option to ad "Twitch" streams to playlist.
Title: Re: foo_youtube
Post by: tsunami2069 on 2017-07-28 23:59:31
@3dyd

First of all, congrats on a great work... this youtube plugin for foobar2000 has been a life saver when it comes to playing music during my twitch streams.

However, I have a couple of issues with this new 2.0 beta 5 version...

First Issue: All of my musics started rewriting their "tags" (artist, title, etc.). I went to quite a lot of work to set them right so that they only show "<Artist> - <Track Title>", removing a lot of unecessary stuff (taking "lyrics" from titles, for exameple), etc.
The pattern that i'm seeing is that they are putting the full youtube video title on the Title field and the uploader of the Youtube video on the Artist field.
However, this issue is not so bad cause I think I can remake them. I just wanted to know if there's a way to prevent this from happening or revert back to old behaviour (cause remaking them all again will take some time).

UPDATE: Ok, so this issue isn't really an issue. I was reading through ur change log information about this new version and saw that the "Metadata construction changes" where u explain the changes that caused this issue. I've reverted back to the 1.x version (with the "Enable clip title parsing rule") and it's no longer changing my titles. Only a few were changed, nothing biggy.

2nd Issue: The replaygain doesn't seem to be saving. I had ran a replaygain on ALL my tracks so that they would be all on the same volume level. That way, I wouldn't have to be worrying about changing music volumes in the middle of the stream cause one song is too loud or low compared to others, they would all run at the same volume level.
This issue is a bit more important because i've tried running replaygain calculate on some musics and upon saving my playlist and closing the software, it doesn't seem to "stick / save to the file tag.

Can you help? :)

Thank you....
Keep up the great work.
Title: Re: foo_youtube
Post by: 3dyd on 2017-07-31 02:39:23
@Wolfbane
Before adding new features it's need to finish existing ones.

@tsunami2069
Ok. 2.x will be able to pick up metadata and properties left from 1.x version. In next beta.

Regarding to replaygain - I overlooked that, thanks. Will be fixed too.
Title: Re: foo_youtube
Post by: mire777 on 2017-07-31 11:28:23
What this mean?

Code: [Select]
Could not update tags (tracks with overridden meta are not editable) on:
"www.youtube.com/watch?fb2k_artist=Tiffany&fb2k_title=It%27s+The+Lover&v=3NF__yn8tp0"

I have 'Youtube Radio' which writes tags, then 'Auto Tag' script colects genre tags from Last.fm, and overrides tags again..
Seems that tags cant be updated after they are changed once.. Is something broken, or this is intended?

Thanks..
Title: Re: foo_youtube
Post by: theborg3of5 on 2017-07-31 18:43:27
Thanks for your hard work and quick responses on this, 3dyd! This plugin has been an excellent tool for me.  :D
Title: Re: foo_youtube
Post by: 3dyd on 2017-08-01 00:03:15
@mire777

Tracks with metadata overriding are special. It is possible for them to coexist with regular tracks without metadata overlapping. I.e. in playlist can exist several tracks pointing to the same clip: one with regular metadata mechanism (clip properties mapping / clip title parsing rule / user metadata) and the others with different sets of overridden metadata. So each of them will have its own metadata and they all will share properties cache (description, view count etc).

I'm not sure what to do in case of metadata modifications for these tracks. So this is just forbidden.
Title: Re: foo_youtube
Post by: mire777 on 2017-08-01 12:35:25
@mire777

Tracks with metadata overriding are special. It is possible for them to coexist with regular tracks without metadata overlapping. I.e. in playlist can exist several tracks pointing to the same clip: one with regular metadata mechanism (clip properties mapping / clip title parsing rule / user metadata) and the others with different sets of overridden metadata. So each of them will have its own metadata and they all will share properties cache (description, view count etc).

I'm not sure what to do in case of metadata modifications for these tracks. So this is just forbidden.

Im not sure that i understand you corectly.
In previous version this works fine..

If you have this link: youtube.com/watch?v=zaAzhK-hUT4

Original title are: Victoria Beckham - The Hustla

modified metadata are:

Custom Artist are: Victoria Beckham
Custom Title are: The Hustla
Custom genre: pop/female vocalists/british/dance/Spice Girls

Then when you search again, you receive same link: youtube.com/watch?v=zaAzhK-hUT4

I think that now metadata should just be updated for both tracks in playlist, to match already modified metadata by user.
All tracks with same link should be updated with same metadata. That's the same tracks.. Why forbiden this?

You change one track, then every single track with same link should be updated also..

That's duplicates, and duplicates have same tags always..


But if you want that every duplicated link, have its own metadata (i dont see point in this), maybe you can add custom tag 'duplicate= 1,2,3', or somehow determine that this is duplicate..


My problem is that now i cant manualy modify tags. For some tracks, title parsing rule i use is not absolutely accurate. So i must edit tracks manualy..
Or when i use 'Auto Tag script' enabled (i receive error), script cant write genre tags after tags already overriden..

Tahnks..
Title: Re: foo_youtube
Post by: WilB on 2017-08-02 12:31:50
YouTube Track Manager makes use of the ability to have the same link with different metadata overriding, e.g. consider:

Radio loads:
Kaiser Chiefs - Everyday I Love You Less and Less
File path: www.youtube.com/watch?fb2k_artist=Kaiser+Chiefs&fb2k_title=Everyday+I+Love+You+Less+and+Less&v=xAkg4cwJp1Y
Gives:
Artist: Kaiser Chiefs
Title: Everyday I Love You Less and Less

Decide like it so much get album links:

Kaiser Chiefs - Employment
Everyday I Love You Less and Less: now requires further metadata overide fields: necessary for correct grouping of the album etc
File path: www.youtube.com/watch?fb2k_album=Employment&fb2k_artist=Kaiser+Chiefs&fb2k_date=2005&fb2k_title=Everyday+I+Love+You+Less+and+Less&fb2k_tracknumber=1&v=xAkg4cwJp1Y
Gives:
Artist: Kaiser Chiefs
Title: Everyday I Love You Less and Less
Album: Employment
Track number: 1
Date: 2005

Then decide you like Kaiser Chiefs and grab links for a compilation:

Kaiser Chiefs - Souvenir: The Singles 2004–2012
Everyday I Love You Less and Less: now requires a different set of metadata override: necessary for correct grouping of the album etc
File path: www.youtube.com/watch?fb2k_album=Souvenir%3A+The+Singles+2004%E2%80%932012&fb2k_artist=Kaiser+Chiefs&fb2k_date=2012&fb2k_title=Everyday+I+Love+You+Less+and+Less&fb2k_tracknumber=8&v=xAkg4cwJp1Y
Gives:
Artist: Kaiser Chiefs
Title: Everyday I Love You Less and Less
Album: Souvenir: The Singles 2004–2012
Track number: 8
Date: 2012

In all the above cases searching YouTube returned the same link, and so for the above to work different metadata overriding for the same link is required. Which is how foo_youtube works which is great  :) .

This may not necessarily be incompatible with allowing editing the fields where metadata overriding is present. And yes I had noticed the changed behaviour in that metadata editing in such cases is now forbidden, although it didn't affect me.

If 3dyd doesn't want to re-add editing where there's metadata overriding, or its too difficult with the new methods, in the genre case it's already possible to achieve what you want. That is, get the info, before the file path (url) with metadata overriding is created rather than after the track is loaded, e.g. add fb2k_genre=Rock as part of the metadata overriding.
Title: Re: foo_youtube
Post by: 3dyd on 2017-08-02 16:01:03
You change one track, then every single track with same link should be updated also..

That's duplicates, and duplicates have same tags always..

That is totally true. And at the same time, your words contain the key point. Tracks with and without overridden metadata have different links.

In foobar2000, two tracks are considered the same if their locations equal. Location consists of file path and subsong index (the latter is not used in context of this topic). Look at the file paths from WilB's examples. They all are different which makes to be different the tracks that are made out of them.

Metadata editing worked in 1.x because it used track's tech info as storage. I.e. storage was unique per track. To retain metadata after track removal from playlist, 2.x switched to external storage. But at the same time, to reduce the number of cases when the clip analysis is required, it started to use single storage per clip, not per track. I.e. fb2k_ params are stripped before accessing storage. And that made overall this architecture to be incomplete. Only clip properties should be shared across all tracks belonging to the same clip. Metadata storage should be unique per track, not per clip. Until that's done, only one track per clip can have metadata editing. So regular track (i.e. without overridden metadata) was chosen to be that one.
Title: Re: foo_youtube
Post by: tsunami2069 on 2017-08-02 19:19:38
 hey @3dyd
Any ideia when the next beta will be released (with the replaygain fixed)?

Not trying to rush you, just trying to get a general ideia of a possible ETA.
It's been a bit annoying having to keep adjusting my music volume during the streams :)

Keep up the great work.
Title: Re: foo_youtube
Post by: mire777 on 2017-08-03 08:47:55
If 3dyd doesn't want to re-add editing where there's metadata overriding, or its too difficult with the new methods, in the genre case it's already possible to achieve what you want. That is, get the info, before the file path (url) with metadata overriding is created rather than after the track is loaded, e.g. add fb2k_genre=Rock as part of the metadata overriding.

Thanks WilB i know i can do that before track is loaded, but this not affect 'Youtube Radio', radio works fine.
I have other script, 'Auto Tag' which collects genre from last.fm, and then script add genre tag after track is loaded.
I use this script for both, 'youtube tracks' and 'local tacks', and because of that, this must be 2. script.

Eventualy i can do some workaround, but i hope that this is not necessary..


Metadata storage should be unique per track, not per clip. Until that's done, only one track per clip can have metadata editing. So regular track (i.e. without overridden metadata) was chosen to be that one.

So this behaviour should be changed in the future?
Tank you.
Title: Re: foo_youtube
Post by: mire777 on 2017-08-03 08:57:56
It's been a bit annoying having to keep adjusting my music volume during the streams :)

You can use this:  EBU R 128 Compressor (http://www.foobar2000.org/components/view/foo_r128norm)
This is almost the same as having replygain writen to your files, but it does this on the fly..
You will have all songs at the same level..
Title: Re: foo_youtube
Post by: tsunami2069 on 2017-08-03 10:10:03
You can use this:  EBU R 128 Compressor (http://www.foobar2000.org/components/view/foo_r128norm)
This is almost the same as having replygain writen to your files, but it does this on the fly..
You will have all songs at the same level..

Thank you, @mire777 I will check it out...
Title: Re: foo_youtube
Post by: tsunami2069 on 2017-08-03 20:17:19
@mire777
Once again thanks for the suggestion.

However, it didnt work out exactly how I like it.

You see, the EBU R 128 Compressor, as you correctly stated, normalizes the music's volume on the fly. This means that it increases  the volume when a certain part of the is low and lowers it when it's too loud.
Although it's very easy to use, it causes the music to seem like it's volume has been increased and other parts lowered through out the song.
Having been a DJ for many years, I have a bit of a trained hearing and it kinda triggers me to listen to a song who's volume u can notice to wobble up and down.
I prefer a song that is analised completely and then, based on the analysis, the gain is increased or lowered for the entire track.

But hey, this is a problem with "me" and my "triggers" & tastes :)

It is still a very solid solution and hadn't 3dyd released a beta6 that fixes the replaygain, I would use it as an alternative until said beta6 was released.
So thank you for ur suggestion.
Title: Re: foo_youtube
Post by: 3dyd on 2017-08-03 21:24:05
@tsunami2069
It's already released

So this behaviour should be changed in the future?
Moreover, that must be fixed right now. I have better understood the problem while explaining it. Need to separate metadata and properties storage i.e. the fix will affect already existing edited metadata for regular tracks.

Title: Re: foo_youtube
Post by: mire777 on 2017-08-06 16:09:34
Moreover, that must be fixed right now. I have better understood the problem while explaining it. Need to separate metadata and properties storage i.e. the fix will affect already existing edited metadata for regular tracks.

Great, thanks :)
Title: Re: foo_youtube
Post by: MojoBass on 2017-08-16 06:54:54
@3dyd: thanks for this great tool!!
One question: I am using latest version (2.0 beta 7). I found that when searching with integrated UI element, the '...get more' in last position is replaced by the seach item (e.g. 'hello' when you search for 'hello'). When klicking on it, foobar crashes. If I use the search popup window, everything is fine. I am using NG playlist to show search results.
Can you reproduce that behaviour? Any hint what I could change?
Thanks, MojoBass
Title: Re: foo_youtube
Post by: 3dyd on 2017-08-16 11:03:14
Could not reproduce the crash. Crash report would be helpful (files *.dmp and *.txt). You can send them via PM or directly to fy[at]3dyd.com
Title: Re: foo_youtube
Post by: zeremy on 2017-08-16 14:18:45
@3dyd: thanks for this great tool!!
One question: I am using latest version (2.0 beta 7). I found that when searching with integrated UI element, the '...get more' in last position is replaced by the seach item (e.g. 'hello' when you search for 'hello'). When klicking on it, foobar crashes. If I use the search popup window, everything is fine. I am using NG playlist to show search results.
Can you reproduce that behaviour? Any hint what I could change?
Thanks, MojoBass

Could not reproduce the crash. Crash report would be helpful (files *.dmp and *.txt). You can send them via PM or directly to fy[at]3dyd.com

The problem can be reproduced if you add a jscript panel , with the albumart script from samples complete directory.
Foobar2000 hangs actually , it doesn't crash.

@marc2003 
Title: Re: foo_youtube
Post by: marc2003 on 2017-08-16 16:05:28
Remove my script/component. Problem solved.
Title: Re: foo_youtube
Post by: 3dyd on 2017-08-16 23:02:08
@zeremy
Thanks, reproduced that one.

@MojoBass
Try beta 8
Title: Re: foo_youtube
Post by: proto on 2017-08-17 02:25:05
Whenever I try to search for a youtube playlist [View-Youtube Search] it gives me back a list of random videos that have nothing to do with the playlist link I put in. I'm using the current BETA version [2.0 beta8]

Example:
Imgur Link (http://imgur.com/p8dNBNI)

Playlist link that I want to search -
NCS | NoCopyrightSounds All Uploads (https://www.youtube.com/playlist?list=PLRBp0Fe2GpgnIh0AiYKh7o7HnYAej-5ph)

Any Help would be appreciated!

Title: Re: foo_youtube
Post by: MojoBass on 2017-08-17 06:21:17
@zeremy
Thanks, reproduced that one.

@MojoBass
Try beta 8
Thanks 3dyd, issue solved.
In the search with the integrated UI element it still shows in the %title%-column (within NG playlist) the search item ('melissa etheridge'), and not '...get more'. But when clicking on it, it opens up the next eg 25 matches - so absolutely fine for me.
Thanks as well to zeremy for reproducing.
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-08-18 13:51:38
Is it just me or foo_youtube is currently broken? Receive "Timeout was reached" errors on any track I try to play.
Title: Re: foo_youtube
Post by: mire777 on 2017-08-18 16:13:43
Works absolutely fine here, no errors..

Tracks with overridden meta are now editable. Thanks 3dyd.
Title: Re: foo_youtube
Post by: 3dyd on 2017-08-19 14:32:08
In the search with the integrated UI element it still shows in the %title%-column (within NG playlist) the search item ('melissa etheridge'), and not '...get more'.
That reflects metadata construction changes (https://fy.3dyd.com/changelog/2.0/#Metadata_construction_changes) introduced in v2.

Is it just me or foo_youtube is currently broken? Receive "Timeout was reached" errors on any track I try to play.
Maybe proxy or firewall settings?
Title: Re: foo_youtube
Post by: Wolfbane on 2017-08-20 18:58:22
Is it only me who is getting "server error (403)) on 95% of all songs ?
Checked for updates "No update need: You have the latest Youtube Source Version"
Have not downloaded any "beta/alpha version" using stable with plugins download version.
Just copy pasting a few examples here below.

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=X7bHe--mp1g"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=fregObNcHC8"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=qeMFqkcPYcg"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=x-64CaD8GXw"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=t1pqi8vjTLY"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=3L4YrGaR8E4"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=iD2rhdFRehU"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=9LcJXckn0Lo"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=IrJAwCBbnuc"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=xvVLWSsKjkI"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=bkysjcs5vFU"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=9d8SzG4FPyM"

Unable to open item for playback (Youtube Source: server error (403)):
"youtube.com/watch?v=_CRWKTguxNQ"
Title: Re: foo_youtube
Post by: FichteFoll on 2017-08-21 11:09:39
Videos from my playlist on youtube used to have their "date added" in the some metadata field, which allowed for me to sort them after that (since I had it displayed in a column). Is this coming back or is it infeasible with the current architecture?

I also fetched the first few items with the clip title parsing rule disabled and now they always re-gain these errorneous tags. Can I somehow reset the stored metadata or re-apply the title parsing rule? The previous method of restarting foobar doesn't work anymore, most likely because of the external storage.

Edit: Found the storage in appdata/foobar2000/foo_youtube/meta.
Title: Re: foo_youtube
Post by: 3dyd on 2017-08-21 22:12:14
Videos from my playlist on youtube used to have their "date added" in the some metadata field, which allowed for me to sort them after that (since I had it displayed in a column). Is this coming back or is it infeasible with the current architecture?
There were few changes regarding to custom metadata. Quick answer - %fy_published_at% is what you need now. A bit more longer answer - last paragraph of Back compatibility (https://fy.3dyd.com/changelog/2.0/#Back_compatibility) topic.

Can I somehow reset the stored metadata or re-apply the title parsing rule? The previous method of restarting foobar doesn't work anymore, most likely because of the external storage.

Edit: Found the storage in appdata/foobar2000/foo_youtube/meta.
This also can be done from foobar2000. Info reload (Properties -> Tools -> Reload info) is all that's need now when switching between metadata mapping and title parsing rule, or after editing that rule. Though if you edited metadata, then all metadata becomes to be 'user metadata' which is stored independently and takes precedence. In this case additionally need to remove it (Properties -> Tools -> Remove tags).

Is it only me who is getting "server error (403)) on 95% of all songs ?
Checked for updates "No update need: You have the latest Youtube Source Version"
Have not downloaded any "beta/alpha version" using stable with plugins download version.

1.x won't be updated. You can try 2.0 beta or wait for release. Release will be at the end of this week, if nothing new and serious will be reported.
Title: Re: foo_youtube
Post by: FichteFoll on 2017-08-24 14:45:50
There were few changes regarding to custom metadata. Quick answer - %fy_published_at% is what you need now. A bit more longer answer - last paragraph of Back compatibility (https://fy.3dyd.com/changelog/2.0/#Back_compatibility) topic.

Thanks for the heads up. I must have missed that when I read that page. Works perfectly now.

This also can be done from foobar2000. Info reload (Properties -> Tools -> Reload info) is all that's need now when switching between metadata mapping and title parsing rule, or after editing that rule. Though if you edited metadata, then all metadata becomes to be 'user metadata' which is stored independently and takes precedence. In this case additionally need to remove it (Properties -> Tools -> Remove tags).

Oh great, this is ideal and exactly what I would have suggested if it hadn't existed already. You're good on the UX part, except that I would have never looked for this to be in the properties "Tools" popup. It makes sense, though, and now that I know it exists, I'll make sure to make use of it should this somehow occur again in the future.

Thanks for the new version, which seems to be generally thought out better. The only difference so far seems to be that tracks take a little longer to load, but I haven't really investigated into why this could be happening and whether foo_youtube is to blame at all.
Title: Re: foo_youtube
Post by: widerock on 2017-09-01 09:55:39
With foo_youtube v2.0.1
I set up my foobar to play youtube video automatically in full screen.
It works very well for youtube videos and "Local Videos' well. (I'm not sure if this is intentional or not. But, I really enjoy this local mp4 video play, now. So, pls don't remove this function.)

But, the problem is that the 'automatic full screen mode' happens for 'audio' only files. I tested with mp3 and m4a files.

I hope that this strange behavior could be solved in next version.
Title: Re: foo_youtube
Post by: omjack on 2017-09-03 12:20:48
Youtube playlist feed bug?

Not really sure if anyone else is having such problem but no one said anything so it might be just me but...

For some reason foo_youtube stopped creating playlists, trying to get one through youtube search leaves a blank window with some 'unknowns' in the source log:

Code: [Select]
13:02:32, #14, Searching, https://www.youtube.com/playlist?list=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu
13:02:32, Activity #37 [unknown] added
13:02:33, Activity #37 [unknown] removed
13:02:33, #14, Ready
13:02:33, Activity #37 destroyed (lifetime 0.858s)

and getting it through the "add location" gives out this:

Code: [Select]
13:03:18, [error] #17, Page analysis, no video found on Youtube URL
13:03:18, #17, https://www.youtube.com/playlist?list=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu
13:03:18, #17, Ready
13:03:18, #18, Retrieving feed
13:03:18, Activity #39 [unknown] added
13:03:18, Activity #39 [unknown] removed
13:03:18, #18, Ready
13:03:18, Activity #39 destroyed (lifetime 0.328s)
which creates one position on foobar playlist with the same name as the youtube playlist and the "file path" leading to
Code: [Select]
youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&limit=50&total=490

and the only way of getting it to work is to click manually multiple times through that one:

Youtube source log:
Code: [Select]
13:08:58, #19, Retrieving feed
13:08:58, Activity #40 [unknown] added
13:08:59, Activity #40 [unknown] removed
13:08:59, Activity #40 destroyed (lifetime 0.952s)
13:08:59, Activity #41 [unknown] added
13:09:00, Activity #41 [unknown] removed
13:09:00, Activity #41 destroyed (lifetime 1.201s)
13:09:02, #19, Ready
13:09:05, #20, Retrieving feed
13:09:05, Activity #42 [unknown] added
13:09:06, Activity #42 [unknown] removed
13:09:06, Activity #42 destroyed (lifetime 0.421s)
13:09:06, Activity #43 [unknown] added
13:09:07, Activity #43 [unknown] removed
13:09:07, Activity #43 destroyed (lifetime 1.186s)
13:09:08, #20, Ready
13:09:11, #21, Retrieving feed
13:09:11, Activity #44 [unknown] added
13:09:11, Activity #44 [unknown] removed
13:09:11, Activity #45 [unknown] added
13:09:11, Activity #44 destroyed (lifetime 0.500s)
13:09:13, Activity #45 [unknown] removed
13:09:13, SKIPPED: https://www.youtube.com/watch?v=lWbxwO1NNjY, private (Private video)
13:09:13, SKIPPED: https://www.youtube.com/watch?v=iUiTQvT0W_0, private (Private video)
13:09:13, SKIPPED: https://www.youtube.com/watch?v=pNBD4OFF8cc, private (Private video)
13:09:13, Activity #45 destroyed (lifetime 1.373s)
13:09:15, #21, Ready
13:09:17, #22, Retrieving feed
13:09:17, Activity #46 [unknown] added
13:09:18, Activity #46 [unknown] removed
13:09:18, Activity #47 [unknown] added
13:09:18, Activity #46 destroyed (lifetime 0.561s)
13:09:19, Activity #47 [unknown] removed
13:09:19, Activity #47 destroyed (lifetime 1.544s)
13:09:21, #22, Ready
13:09:23, #23, Retrieving feed
13:09:23, Activity #48 [unknown] added
13:09:23, Activity #48 [unknown] removed
13:09:23, Activity #49 [unknown] added
13:09:23, Activity #48 destroyed (lifetime 0.468s)
13:09:25, Activity #49 [unknown] removed
13:09:25, Activity #49 destroyed (lifetime 1.342s)
13:09:27, #23, Ready
13:09:28, #24, Retrieving feed
13:09:28, Activity #50 [unknown] added
13:09:29, Activity #50 [unknown] removed
13:09:29, Activity #50 destroyed (lifetime 0.437s)
13:09:29, Activity #51 [unknown] added
13:09:30, Activity #51 [unknown] removed
13:09:30, Activity #51 destroyed (lifetime 1.310s)
13:09:32, #24, Ready
13:09:34, #25, Retrieving feed
13:09:34, Activity #52 [unknown] added
13:09:35, Activity #52 [unknown] removed
13:09:35, Activity #53 [unknown] added
13:09:35, Activity #52 destroyed (lifetime 0.578s)
13:09:36, Activity #53 [unknown] removed
13:09:36, SKIPPED: https://www.youtube.com/watch?v=cAzU-A_LMjY, private (Private video)
13:09:36, Activity #53 destroyed (lifetime 1.124s)
13:09:37, #25, Ready
13:09:40, #26, Retrieving feed
13:09:40, Activity #54 [unknown] added
13:09:40, Activity #54 [unknown] removed
13:09:40, Activity #54 destroyed (lifetime 0.530s)
13:09:40, Activity #55 [unknown] added
13:09:42, Activity #55 [unknown] removed
13:09:42, Activity #55 destroyed (lifetime 1.622s)
13:09:43, #26, Ready
13:09:45, #27, Retrieving feed
13:09:45, Activity #56 [unknown] added
13:09:46, Activity #56 [unknown] removed
13:09:46, Activity #56 destroyed (lifetime 0.421s)
13:09:46, Activity #57 [unknown] added
13:09:47, Activity #57 [unknown] removed
13:09:47, Activity #57 destroyed (lifetime 1.404s)
13:09:49, #27, Ready
13:09:53, #28, Retrieving feed
13:09:53, Activity #58 [unknown] added
13:09:54, Activity #58 [unknown] removed
13:09:54, Activity #59 [unknown] added
13:09:54, Activity #58 destroyed (lifetime 0.577s)
13:09:55, Activity #59 [unknown] removed
13:09:55, Activity #59 destroyed (lifetime 1.029s)
13:09:56, #28, Ready

Foobar console:
Code: [Select]
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&limit=50&total=490"
13:08:58 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&index=2&limit=50&page=CDIQAA&total=490"
13:09:05 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&index=3&limit=50&page=CGQQAA&total=490"
13:09:11 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&index=4&limit=50&page=CJYBEAA&total=490"
13:09:17 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&index=5&limit=50&page=CMgBEAA&total=490"
13:09:23 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&index=6&limit=50&page=CPoBEAA&total=490"
13:09:28 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&index=7&limit=50&page=CKwCEAA&total=490"
13:09:34 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&index=8&limit=50&page=CN4CEAA&total=490"
13:09:39 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&index=9&limit=50&page=CJADEAA&total=490"
13:09:45 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500
Opening track for playback: "youtube.com?id=PL6ZLc-zZUnxlkB9t8CcpFZeV6V5I_cVgu&index=10&limit=50&page=CMIDEAA&total=490"
13:09:53 UTC+0200: Claudio Martinez - M TOP POP MUSIC VEVO 500

Not exactly sure when it stopped working correctly, I've noticed the 28th august 2.0.1 update but it didn't fix it for me.

Title: Re: foo_youtube
Post by: omjack on 2017-09-03 15:27:49
About that thing above...

Quote
Improved feeds support

Work with the feeds now is performed in a different way. Visible change in this regard - when adding Youtube feed (i.e. channel or playlist) using menu File Add location... now will be added one track representing this feed, instead of retrieving content of the feed.

Internally the change was to make the feeds to behave like any other tracks. This will make it possible (in future) to search for feeds and to list playlists that channel consists of when it is being added (instead of retrieving videos from 'Uploads' playlist of this channel, as it is done now).

So now the question is:
Is there another way of getting the song list without clicking through it manually (which is a bit bothering when it comes to big playlists) ?
Title: Re: foo_youtube
Post by: 3dyd on 2017-09-03 21:53:24
But, the problem is that the 'automatic full screen mode' happens for 'audio' only files. I tested with mp3 and m4a files.
Yes, this is not intended behavior and will be fixed.

For some reason foo_youtube stopped creating playlists, trying to get one through youtube search leaves a blank window
So, Youtube Search popup window does not work with feed URLs. This will be fixed.

Is there another way of getting the song list without clicking through it manually (which is a bit bothering when it comes to big playlists) ?
There are no way yet.
Title: Re: foo_youtube
Post by: jstevensiam on 2017-09-12 03:39:31
But, the problem is that the 'automatic full screen mode' happens for 'audio' only files. I tested with mp3 and m4a files.
Yes, this is not intended behavior and will be fixed.

For some reason foo_youtube stopped creating playlists, trying to get one through youtube search leaves a blank window
So, Youtube Search popup window does not work with feed URLs. This will be fixed.

Is there another way of getting the song list without clicking through it manually (which is a bit bothering when it comes to big playlists) ?
There are no way yet.
i am testing the you tube with foobar2000 i think it looses data from original video, sounds a bit like mp3?
Title: Re: foo_youtube
Post by: rykiff on 2017-09-13 15:44:44
I love this plugin and have been using it for months. I find that some of my youtube videos have started to disappear, which makes me beg the question... is it possible to save a youtube video using this plugin? I've been able to convert to audio using the fb2k media converter, but wasn't sure if I could save the raw file format with video using this plugin.
Title: Re: foo_youtube
Post by: widerock on 2017-09-13 16:24:25
to save a youtube video using this plugin
Me too.
Title: Re: foo_youtube
Post by: Wolfbane on 2017-09-13 21:59:58
*1* A way to download videos and store manually is a feature a lot of people would like in the future, seen it been suggested several times.

*2* Is there any plans to "Upload/convert/export" ones entire playlist from foobar to and make a "you-tube playlist" feature?
Title: Re: foo_youtube
Post by: mire777 on 2017-09-14 10:37:21
ignore this post, i fixed the problem..
Title: Re: foo_youtube
Post by: musikomaniak on 2017-09-15 18:19:45
Hello,
with last version foo_youtube_2.0.1_preconf.fb2k, when I click on radio stream link I have a Pop windows with message :
Video STOP no video
Is it possible to avoid this?

Title: Re: foo_youtube
Post by: Wolfbane on 2017-09-18 21:57:27
Noticed that on some songs I get from you tube, it takes the "you tube account" as writes on the "Artist Name".
Not sure if it is only on songs I have not edited the Artis field manually, or what is causing it, But seems like the way it gets/grabs artist name is changed and now is sometimes gets the YouTube channel as artist.

Title: Re: foo_youtube
Post by: TheQwertiest on 2017-09-19 10:30:51
Noticed that on some songs I get from you tube, it takes the "you tube account" as writes on the "Artist Name".
Not sure if it is only on songs I have not edited the Artis field manually, or what is causing it, But seems like the way it gets/grabs artist name is changed and now is sometimes gets the YouTube channel as artist.
Yup, it is changed and this is the default behaviour now (see http://fy.3dyd.com/changelog/details/2_0.html#Metadata_construction_changes).

Workaround:
Quote
If one would like to bring back behavior from 1.x version, it can be enabled using option Enable clip title parsing rule from Features tab of component preferences. Note, to update info for already added tracks in this case (as well as after rule edit) now need just reload track info (e.g. using context menu Properties Metadata Tools Reload info).
Title: Re: foo_youtube
Post by: 3dyd on 2017-09-20 10:33:15
but wasn't sure if I could save the raw file format with video using this plugin.
This component cannot do that. There is plenty of standalone tools, browser scripts and web services to download raw videos from Youtube. Consider using one of them.

Is there any plans to "Upload/convert/export" ones entire playlist from foobar to and make a "you-tube playlist" feature?
Not sure what you mean.

with last version foo_youtube_2.0.1_preconf.fb2k, when I click on radio stream link I have a Pop windows with message :
Video STOP no video
Is it possible to avoid this?
Yes. Until it is fixed, use option 'Allow video playback only for supported URLs' (preferences Advanced -> Tools -> Youtube Source -> Video). Or you can set 'Show video frame' to 'Manually' (preferences Tools -> Youtube Source -> Video).
Title: Re: foo_youtube
Post by: musikomaniak on 2017-09-20 21:45:15
with last version foo_youtube_2.0.1_preconf.fb2k, when I click on radio stream link I have a Pop windows with message :
Video STOP no video
Is it possible to avoid this?
Yes. Until it is fixed, use option 'Allow video playback only for supported URLs' (preferences Advanced -> Tools -> Youtube Source -> Video). Or you can set 'Show video frame' to 'Manually' (preferences Tools -> Youtube Source -> Video).
Thank you :) Before reading your reply I setted "Show video frame to Manually", which solved this annoying problem.

Title: Re: foo_youtube
Post by: Wolfbane on 2017-09-26 22:01:04
Is there any plans to "Upload/convert/export" ones entire playlist from foobar to and make a "you-tube playlist" feature?
Not sure what you mean.

I was asking, if you had any plans or could implement a feature that does the following.

Takes all the songs in my playlist in foobar, and exports them into a playlist on youtube, so that I can give the link of that playlist to a friend or something.

A playlist like this for example
https://www.youtube.com/watch?v=SV7J5-HymT4&list=PLSmFauli-7gUee702h1mfxdlqUQVaPTnd

But simply a way to not have to add each some manually one by one, as Im forced to do now.
Yes Im guessing it might need to have a "you-tube login" thing required, since otherwise it would be hard to create a playlist.
Title: Re: foo_youtube
Post by: 3dyd on 2017-09-26 22:18:44
I see. No, there are no plans to upload videos to Youtube within this component.
Title: Re: foo_youtube
Post by: Rhyzak on 2017-09-28 11:46:55
Do these no longer work?
Code: [Select]
%3dydfy_title%
%3dydfy_description%
%3dydfy_uploader%
%3dydfy_rating%
%3dydfy_view_count%
%3dydfy_uploaded%
%3dydfy_like_count%
%3dydfy_dislike_count%
%3dydfy_like_ratio%
Title: Re: foo_youtube
Post by: 3dyd on 2017-09-29 14:36:42
They were reorganized. The change of major version number is a good enough excuse for that. More info is in last paragraph of Back compatibility (https://fy.3dyd.com/changelog/2.0/#Back_compatibility) topic.
Title: Re: foo_youtube
Post by: gr8cx on 2017-10-04 12:15:00
hi 3dyd

how open youtube LIVE STREAM? https://www.youtube.com/watch?v=HrnV_WNLW98
Title: Re: foo_youtube
Post by: 3dyd on 2017-10-05 14:34:08
Nothing special, for example using File -> Add location. Do you have some issue with this stream? I've just checked, in my case component plays it as usual.
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-10-05 15:04:39
Hey @3dyd !
Is it possible to add some sort of a tag, which would be used to determine title parsing rule?
E.g. let's say such tag's name is %fy_parse_title% : if %fy_parse_title% is set, then old title parsing rule is used (with splitting and etc), otherwise foo_youtube keeps the whole yt video name as track title.

Another possible solution is an additional context menu, smth like 'YT' -> 'Reload meta with title parsing' + 'YT' -> 'Reload meta w/o title parsing'.

My case: I have multiple playlists containing yt videos, some of which are streams and non-music, where old splitting rule is not really applicable, and others that have plain music videos, where old parsing is preferable. So if I want correct tags, I have to change title parsing rule in preferences each time I'm adding a video =(
Title: Re: foo_youtube
Post by: 3dyd on 2017-10-05 21:41:13
Actually you can use user metadata for what you want. If user metadata is present, rules of metadata autofill do not apply.

The only problem then is how to fill user metadata out of automatically constructed metadata. For now the only way it can be done is to manually edit metadata (for example, add some dummy album name), then click Apply (that will make all metadata to be saved as user metadata), then remove that dummy tag (it will be removed from user metadata, but all other tags will remain to be user metadata). I can add context menu items to automate this process.
Title: Re: foo_youtube
Post by: gr8cx on 2017-10-06 02:28:23
Nothing special, for example using File -> Add location. Do you have some issue with this stream? I've just checked, in my case component plays it as usual.

hmm music play good but video dont show 'Stopped'
Title: Re: foo_youtube
Post by: lostinthenet on 2017-10-07 08:59:02
Hi, I've just reinstalled the OS and I'm setting everything up again, iirc my Youtube Search items were added to the Default playlist overwriting the old ones, but at the moment I cannot reproduce that behavior and my other playlists, those i'm in when i start the search, keep getting overwritten.
I know there is in Preferences/Tools/YT Source/Search/Destination: Specific playlist, but i tried to edit '['Youtube']' %artist% with no success. Can you help me pls?
Title: Re: foo_youtube
Post by: spode on 2017-10-07 17:43:06
Just found out about this plugin and it seems really awesome! Been using foobar for a long time but never thought of googling foobar+youtube and here we are. I already have a few use case ideas for me. Thanks a ton for making it!

Hi,

could you add the feature, that you can refresh a youtube playlist added by "add location" ? If no, you added a "get more 50 for ''" element in the playlist after using "add location", could you just add that also for "get the first 50" as it doenst matter if things are double in the list as ill delete the list anyway before refreshing. it would be highly aweseome.

thx
This "refresh a youtube playlist added by "add location"" is something I am really interested in as well. I saw that you suggested that sebastien looked into the 3dydfy-search functionality (which I think is fy+search according to 2.0 changelog but the website still has 3dydfy-search in some places?). I am personally not having much success with it (nothing seems to happen when I click the fy+search playlist items).

One of my use cases for this plugin is to listen to a changing collaborative youtube playlist, so I would want a permanent 'Get more...' item that appends new tracks to the foobar playlist (that have been added to the youtube playlist). From what I am reading the functionality is kind of possible right now even though it is perhaps not super elegant? Any tips on how to do this?
Title: Re: foo_youtube
Post by: mire777 on 2017-10-09 11:18:26
I see. No, there are no plans to upload videos to Youtube within this component.

I was think to made this possible trough script.

I can go trough playlist.

This works: https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PL889BDECC517358C9&key=AIzaSyA17v8PuNBsIwgbxg6D78iHV-w7_dYyXPw

But how to create and add videos to user playlist?
Can someone help?

Here is the script:

Code: [Select]
function YTPlaylist(){
    this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    this.xmlhttp.open("GET", "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=PL889BDECC517358C9&key=AIzaSyA17v8PuNBsIwgbxg6D78iHV-w7_dYyXPw", true);
    //this.xmlhttp.setRequestHeader("Authorization", "Bearer");
    this.xmlhttp.send();
   
   this.xmlhttp.onreadystatechange = function() {
if (this.xmlhttp.readyState == 4) {
if (this.xmlhttp.status == 200) {
var text = this.xmlhttp.responsetext;
                    fb.trace(text)
                }}}
  
  

}

YTPlaylist();



I need to use ''POST'' instead ''GET'' , something like this:

Code: [Select]
function YTPlaylist(){
    var xmlhttp = new XMLHttpRequest();
    var url = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&part=snippet&key=AIzaSyA17v8PuNBsIwgbxg6D78iHV-w7_dYyXPw";

    var config = {
     "snippet": {
      "playlistId": {PLAYLIST_ID},
      "resourceId": {
       "videoId": {VIDEO_ID},
       "kind": "youtube#video"
      }
     }
    }

   xmlhttp.onreadystatechange = function() {
       if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
           var response = JSON.parse(xmlhttp.responseText);
           console.log(response);
       }
   };

   console.log(url);
   xmlhttp.open("POST", url, true);
   xmlhttp.setRequestHeader("Authorization", "Bearer {ACCESS_TOKEN});
   xmlhttp.send(config);
}
YTPlaylist();
 

Title: Re: foo_youtube
Post by: 3dyd on 2017-10-09 18:04:24
hmm music play good but video dont show 'Stopped'
Live video is not supported yet. Some playback can be established if select 'LAV Splitter' in Video tab -> Media downloading, but it is far from perfect due to a lot of lags.

Hi, I've just reinstalled the OS and I'm setting everything up again, iirc my Youtube Search items were added to the Default playlist overwriting the old ones, but at the moment I cannot reproduce that behavior and my other playlists, those i'm in when i start the search, keep getting overwritten.
I know there is in Preferences/Tools/YT Source/Search/Destination: Specific playlist, but i tried to edit '['Youtube']' %artist% with no success. Can you help me pls?
Use search panel config (where 'Order by relevance' etc. are placed). Column 'Playlist' there controls destination playlist for search results.

This "refresh a youtube playlist added by "add location"" is something I am really interested in as well. I saw that you suggested that sebastien looked into the 3dydfy-search functionality (which I think is fy+search according to 2.0 changelog but the website still has 3dydfy-search in some places?). I am personally not having much success with it (nothing seems to happen when I click the fy+search playlist items).
In case of playlists in 2.0 you would need fy+playlist scheme. Example, can be added as is via 'Add location':
Code: [Select]
fy+playlist://youtube.com?id=UU16niRr50-MSBwiO3YDb3RA&limit=50
'limit' is the number of results to get (1-50). Other than that playlist scheme does not have any useful params (it retrieves items ordered by upload date and without any filtering).
Title: Re: foo_youtube
Post by: zeremy on 2017-10-26 11:36:04
Can subtitles for a clip be fixed in some way as to display those ugly entities with their corresponding characters?

(https://i.imgur.com/UCF1YEY.png)
Title: Re: foo_youtube
Post by: 3dyd on 2017-10-27 14:13:48
Yes, will be fixed.
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-10-30 11:15:46
@3dyd :
https://fy.3dyd.com/changelog/ : "2.0.3 (28-Nov-2017)"
It's still October though? :P
Title: Re: foo_youtube
Post by: 3dyd on 2017-10-30 13:10:32
Oops. Thanks.
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-10-30 15:30:22
@3dyd :
I'm encountering the following bug, though I'm not sure if the source of the problem is actually foo_youtube:

Repro steps (a bit vague):
1. JScript panel, which calls utils.GetAlbumArtAsync(... metadb = fb.GetNowPlaying() ...) from on_playback_new_track callback.
2. Load a playlist with youtube tracks and start playing random track from it.
3. Wait for player to switch to the next track, or do it manually.

Expected result:
on_get_album_art_done callback receives a loaded art, i.e. image and image_path arguments of callback are not null.

Actual result:
Sometimes on_get_album_art_done callback does not receive any art, i.e. image and image_path arguments of callback are null.

Calling utils.GetAlbumArtAsync again after track started playing loads art correctly.
There are also no problems with loading art when playing local tracks (e.g. mp3).

This problem might lie in my code, JScript or foobar itself, but may be it's a known problem with a possible workaround?
Title: Re: foo_youtube
Post by: marc2003 on 2017-10-30 15:48:05
Since it seems to work if you try again, why not add a delay using window.SetTimeout?

Code: [Select]
window.SetTimeout(function () {
    utils.GetAlbumArtAsync(...);
}, 500); //time here is milliseconds

edited for idiocy - I originally said SetInterval   ::)
Title: Re: foo_youtube
Post by: 3dyd on 2017-10-30 20:06:32
but may be it's a known problem with a possible workaround?
If it is in this component, it is unknown problem.

You could try to reproduce it while recording component's log (hold Shift key -> menu View -> Youtube Source Log -> Right click -> Record). Then inspect recorded file for anomalies or send it to me.
Title: Re: foo_youtube
Post by: zeremy on 2017-10-31 13:48:57
Yes, will be fixed.
Thanks for the fix. :)
Title: Re: foo_youtube
Post by: zeremy on 2017-11-05 22:08:11
Two observations , feature requests - if possible - regarding the video options.

1. The option to show subtitles initially also for LRC files. 
Would be great to always load lyrics someone has made for a clip without having to always manually select it from the popup menu. 

2. When playing local video files split with chapters the video always restarts to the beginning of the file when the next subsong index is played instead of displaying the video at the correct time.

Thanks .
 
Title: Re: foo_youtube
Post by: 3dyd on 2017-11-08 18:07:11
Sounds feasible. Both will probably be in next version.
Title: Re: foo_youtube
Post by: mire777 on 2017-11-13 12:25:01
3dyd I have one question..

Would all "3dydfy" will be changed to "fy+" and "fy_" and when?
It is important to know what should i change.

Example, "&3dydfy_alt_length=" still works, but if i change that to "&fy_alt_length=" then it doesnt.

Thanks.
Title: Re: foo_youtube
Post by: 3dyd on 2017-11-13 19:01:54
Ah, yes, that was not mentioned. Length and any supported property (title, thumbnail_url, view_count etc) can be passed using fb2kx_ prefix (fb2kx_length, fb2kx_thumbnail_url). When adding a clip, they are stripped from URL and corresponding properties are stored to the cache (without overwriting existing ones).
Title: Re: foo_youtube
Post by: mire777 on 2017-11-24 09:32:26
Ah, yes, that was not mentioned. Length and any supported property (title, thumbnail_url, view_count etc) can be passed using fb2kx_ prefix (fb2kx_length, fb2kx_thumbnail_url). When adding a clip, they are stripped from URL and corresponding properties are stored to the cache (without overwriting existing ones).

Thanks :)
Title: Re: foo_youtube
Post by: zeremy on 2017-11-24 12:04:14
Sounds feasible. Both will probably be in next version.
Two observations , feature requests - if possible - regarding the video options.

1. The option to show subtitles initially also for LRC files. 
Would be great to always load lyrics someone has made for a clip without having to always manually select it from the popup menu. 

2. When playing local video files split with chapters the video always restarts to the beginning of the file when the next subsong index is played instead of displaying the video at the correct time.

Thanks .
 

Thanks first of all for the fixes with 2.1 beta 1.  :)

Beta feedback.

1. LRC auto-loading works as expected.

2. Chapter support works with MKV files.
With MP4 files the video window is one chapter behind. :o

Title: Re: foo_youtube
Post by: 3dyd on 2017-11-24 22:33:01
Reproduced, thanks. Subsongs (playable_location::get_subsong) in MP4 are zero-based, when in MKV they are 1-based, so we have one chapter behind. With that said, there seems to be no reliable approach to get correct offset. But anyway, some ugly fix is doable.

UPD: removed incorrect observation.
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-11-28 09:55:58
If it is in this component, it is unknown problem.

You could try to reproduce it while recording component's log (hold Shift key -> menu View -> Youtube Source Log -> Right click -> Record). Then inspect recorded file for anomalies or send it to me.
Since it seems to work if you try again, why not add a delay using window.SetTimeout?

Okaaaaaaaaaaaaaay. I have investigated a little more, and here is what I've found:

Code: [Select]
function on_item_focus_change() {
    //GetArt_Immediate();
    //GetArt_WithInterval();
}

function on_get_album_art_done(metadb, art_id, image, image_path) {
    fb.trace(metadb.path);
    fb.trace('image fetched: ' + !!image);
}

function GetArt_Immediate() {
    utils.GetAlbumArtAsync(window.ID, fb.GetFocusItem(), 0);
}

function GetArt_WithInterval() {
    var albumTimer = window.setInterval(function () {
        utils.GetAlbumArtAsync(window.ID, fb.GetFocusItem(), 0);
        window.ClearInterval(albumTimer);
        albumTimer = null;
    }, 200);
}

If GetArt_Immediate() is used, then everything works fine. BUT! If GetArt_WithInterval() is used, then sometimes there will be no image :\
It fails only when metadb is from foo_youtube, there is no problems when used on local tracks.
Problem reproducible both when art is not downloaded and when it was already preloaded.

PS: 'Youtube Source Log' is empty when art is preloaded.

[EDIT]: I think, I'm getting somewhere:
Code: [Select]
function on_item_focus_change() {
    GetArt_Immediate();
    GetArt_Immediate();
    GetArt_Immediate();
}
When multiple immediate calls are used it fails as well.
So, it might have something to do with file locks: since GetAlbumArtAsync is allegedly asynchronous, each call spawns a thread that tries to access the same file, thus possibly blocking other threads from accessing it.
Title: Re: foo_youtube
Post by: marc2003 on 2017-11-28 11:35:10
Why are you making up bullshit scenarios that you'll never encounter in real world usage?

Also, explain why you're using utils.GetAlbumArtAysnc in the first place? Since the path returned for youtube items is the same as the handle path, it serves no purpose and I have no idea why you're doing it.
Title: Re: foo_youtube
Post by: zeremy on 2017-11-28 11:47:00
Why are you using window.setInterval instead of window.setTimeout if you want it to run once?
You added window.ClearInterval(albumTimer)  inside the function so it will only run once and not at  interval.

If there no particular  reason to use utils.GetAlbumArtAsync, consider using utils.GetAlbumArtV2.

Title: Re: foo_youtube
Post by: TheQwertiest on 2017-11-28 13:48:17
Why are you making up bullshit scenarios that you'll never encounter in real world usage?

Also, explain why you're using utils.GetAlbumArtAysnc in the first place? Since the path returned for youtube items is the same as the handle path, it serves no purpose and I have no idea why you're doing it.

Thank you for your kind words -_-.

Regarding GetAlbumArtAsync usage see below.

Why are you using window.setInterval instead of window.setTimeout if you want it to run once?
You added window.ClearInterval(albumTimer)  inside the function so it will only run once and not at  interval.

If there no particular  reason to use utils.GetAlbumArtAsync, consider using utils.GetAlbumArtV2.
It was just a dirty copy-paste-edit from my code, so yeah such Interval usage is equivalent to Timeout here.

I thought that GetAlbumArtAsync is asynchronous, while GetAlbumArtV2 just hangs fb2k process until art is loaded. Was I wrong?
Title: Re: foo_youtube
Post by: 3dyd on 2017-11-28 13:50:08
In any case, such use case may reveal a bug, which is much harder to catch under other circumstances.

@TheQwertiest
I'll try with multiple GetArt_Immediate, thank you.

PS: 'Youtube Source Log' is empty when art is preloaded.
It may contain some hints if severity is set to 'trace' (right click in Log window -> core -> trace)
Title: Re: foo_youtube
Post by: Steve Forte Rio on 2017-12-06 18:20:23
Is there a way to disable writing metadata for Youtube track? I try to embed cuesheet to the track and track's current title overrides "performer" value specified in CUE.
Title: Re: foo_youtube
Post by: 3dyd on 2017-12-08 11:28:04
Cuesheet is also metadata (%cuesheet% field), so disabling of metadata writing does not seem to be good aproach.

Could you elaborate what do you do (and how) and what goes wrong?. Btw, you can get some hints from metadata storage. For regular tracks it is placed in <foobar2000_appdata_dir>/foo_youtube/cache/meta/. Names of files, containing metadata, start with 'meta+' there.
Title: Re: foo_youtube
Post by: 3dyd on 2017-12-09 13:18:34
track's current title overrides "performer" value specified in CUE.
Ok, if you meant that artist name overrides "performer" and you use context menu Utils -> Edit cuesheet, then I've got what you mean.

Actually the same would happen for other formats. I've tried flac: took flac without metadata, added title and artist metadata to it, and then embedded cuesheet using 'Edit cuesheet' command. As result, tracks had title and artist from original track, not from cuesheet. Maybe one would expect from 'Edit cuesheet' to remove original metadata when embedding cuesheet (e.g. for m4a there is 'Edit MP4 chapters' menu item in Utils, that also takes cuesheet on input and indeed removes original metadata before embedding it).

What can be done on the component side. When writing and reading metadata, it may ignore (do not report nor store) other metadata if %cuesheet% field is present. How about that?
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-12-15 09:14:49
@3dyd
Tried the latest beta and could not reproduce the bug with art anymore. Thanks for fixing that!

[EDIT]: Is it possible to implement some sort of YT authentication so as to play private playlists/videos from YT account?
Title: Re: foo_youtube
Post by: 3dyd on 2017-12-15 12:22:25
@3dyd
Tried the latest beta and could not reproduce the bug with art anymore. Thanks for fixing that!
Yes, using your example I was able to reproduce and fix it. Thank you.

Is it possible to implement some sort of YT authentication so as to play private playlists/videos from YT account?
Unlikely.
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-12-15 13:33:18
Unlikely.
That's a shame =(

I think I've encountered another bug:
Some videos return empty %playback_time% (i.e. equal to '?' after eval).
Examples of problematic videos:
>>1 (https://www.youtube.com/watch?v=gEhUcEbgGhg)
>>2 (https://www.youtube.com/watch?v=HIuf6RmCdfc)

Regression happened somewhere between v2.0.2 (correct value) and and v2.1 (no value).

Could not test with v2.0.3 since it's link on http://fy.3dyd.com/download/prev is dead (it is dead for v2.0.2 as well)
Title: Re: foo_youtube
Post by: zeremy on 2017-12-15 14:44:07

I think I've encountered another bug:
Some videos return empty %playback_time% (i.e. equal to '?' after eval).
Examples of problematic videos:
>>1 (https://www.youtube.com/watch?v=gEhUcEbgGhg)
>>2 (https://www.youtube.com/watch?v=HIuf6RmCdfc)

Regression happened somewhere between v2.0.2 (correct value) and and v2.1 (no value).

Could not test with v2.0.3 since it's link on http://fy.3dyd.com/download/prev is dead (it is dead for v2.0.2 as well)


Are you sure it is %playback_time% and not %length%  that displays "?"
AAC  displays "?" for %length%.

Simple js test panel

Code: [Select]
// Use with GdiDrawText() 
var DT_CENTER = 0x00000001;
var DT_VCENTER = 0x00000004;
var DT_WORDBREAK = 0x00000010;
var DT_CALCRECT = 0x00000400;
var DT_NOPREFIX = 0x00000800;

// Used in window.GetColorCUI()
var ColorTypeCUI = {
    text: 0,
    selection_text: 1,
    inactive_selection_text: 2,
    background: 3,
    selection_background: 4,
    inactive_selection_background: 5,
    active_item_frame: 6
};

// Used in window.GetFontCUI()
var FontTypeCUI = {
    items: 0,
    labels: 1
};

// Used in window.GetColorDUI()
var ColorTypeDUI = {
    text: 0,
    background: 1,
    highlight: 2,
    selection: 3
};

// Used in window.GetFontDUI()
var FontTypeDUI = {
    defaults: 0,
    tabs: 1,
    lists: 2,
    playlists: 3,
    statusbar: 4,
    console: 5
};

// Used in window.SetCursor()
var IDC_HAND = 32649;

var g_is_default_ui = window.InstanceType;
var g_font = null;
var g_text = "";
var g_text2 = "";
var ww = 0, wh = 0;
var g_textcolor = 0, g_textcolor_hl = 0;
var g_backcolor = 0;
var g_hot = false;
get_font();
get_colors();

function get_font() {
    if (g_is_default_ui) { // DUI
        g_font = window.GetFontDUI(FontTypeDUI.defaults);
    } else { // CUI
        g_font = window.GetFontCUI(FontTypeCUI.items);
    }
}

function get_colors() {
    if (g_is_default_ui) { // DUI
        g_textcolor = window.GetColorDUI(ColorTypeDUI.text);
        g_textcolor_hl = window.GetColorDUI(ColorTypeDUI.highlight);
        g_backcolor = window.GetColorDUI(ColorTypeDUI.background);
    } else { // CUI
        g_textcolor = window.GetColorCUI(ColorTypeCUI.text);
        g_textcolor_hl = window.GetColorCUI(ColorTypeCUI.text);
        g_backcolor = window.GetColorCUI(ColorTypeCUI.background);
    }
}

function on_size() {
    ww = window.Width;
    wh = window.Height;
}

function on_paint(gr) {
    gr.FillSolidRect(0, 0, ww, wh, g_backcolor);
    gr.GdiDrawText(g_text + "\n" + g_text2, g_font, g_hot ? g_textcolor_hl : g_textcolor, 0, 0, ww, wh, DT_VCENTER | DT_CENTER | DT_WORDBREAK | DT_CALCRECT | DT_NOPREFIX);
}

function on_mouse_lbtn_up(x, y) {
    window.ShowConfigure();
}

function on_mouse_move() {
    if (!g_hot) {
        g_hot = true;
        window.SetCursor(IDC_HAND);
        window.Repaint();
    }
}

function on_mouse_leave() {
    if (g_hot) {
        g_hot = false;
        window.Repaint();
    }
}

function on_font_changed() {
    get_font();
    window.Repaint();
}

function on_colors_changed() {
    get_colors();
    window.Repaint();
}

function on_playback_time(){
    g_text = fb.TitleFormat("%playback_time%").Eval();
    g_text2 = fb.TitleFormat("%length%").Eval();
    window.Repaint();
}
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-12-15 16:07:07
Are you sure it is %playback_time% and not %length%  that displays "?"
Yes, of course it is %length% >_<"""
Title: Re: foo_youtube
Post by: MaCs on 2017-12-15 16:22:15
Before, we could drag Youtube videos from the google search page and drop them directly in a fb2k playlist, but this does not work anymore. Now it only works when dragging videos from the Youtube website. Would it be possible to fix this?
Title: Re: foo_youtube
Post by: TheQwertiest on 2017-12-15 16:28:57
Before, we could drag Youtube videos from the google search page and drop them directly in a fb2k playlist, but this does not work anymore. Now it only works when dragging videos from the Youtube website. Would it be possible to fix this?
It's more likely caused by google rather than foo_yt. When you 'drag' link to fb2k it just copies the url that was under your mouse. Youtube itself contains proper urls (youtube.com/etc), but search results from google are redirects and are not direct links to youtube videos. To remove redirects you have to use browser add-ons or alternative search engines like duckduckgo.
Title: Re: foo_youtube
Post by: MojoBass on 2017-12-16 04:56:59
Simple js test panel
I am wondering about that already quite some time:
%length% works for opus and vorbis, but not for aac. Any reason? Any workaround?
Title: Re: foo_youtube
Post by: zeremy on 2017-12-16 11:06:45
In JS use
fb.TitleFormat("%length%").EvalwithMetadb(fb.GetNowPlaying())
Title: Re: foo_youtube
Post by: marc2003 on 2017-12-16 13:06:47
If the file really is raw AAC then foobar has never supported the length. The solution for local files has always been to wrap them in an m4a container. I have no idea about youtube.

ignore  :P
Title: Re: foo_youtube
Post by: MojoBass on 2017-12-16 15:36:08
In JS use
fb.TitleFormat("%length%").EvalwithMetadb(fb.GetNowPlaying())
Great, that works (as well for aac from youtube)! Thanks very much!
Title: Re: foo_youtube
Post by: 3dyd on 2017-12-17 00:40:38
@TheQwertiest @zeremy
Nice catch! Regression was introduced in v2.1. Fixed in beta2.

@MaCs
For now you can check checkbox in advanced preferences tree -> Analysis -> Process unknown URLs. I will make Google search URLs not to require this option to be set, since they contain URL inside query, i.e. do not require performing Internet request to resolve redirection.
Title: Re: foo_youtube
Post by: zeremy on 2017-12-17 15:03:25
@3dyd
It seems that recent changes have broken local video playback..
From Version 2.2beta1 afterwards.
Title: Re: foo_youtube
Post by: 3dyd on 2017-12-17 23:38:11
Thanks, fixed.

What can be done on the component side. When writing and reading metadata, it may ignore (do not report nor store) other metadata if %cuesheet% field is present. How about that?
Done this different way. When constructing subsong metadata, metadata from cuesheet now (in beta3) takes precedence over metadata from origin track. Seem to be reliable but I'm not sure then why in SDK it is done in an opposite way (__set_tag_global_field_relay).
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-01-23 10:01:21
@3dyd : Hey again!
Could you please an additional tag for YT playlist name for when importing tracks as YT playlist? Use case: I have multiple imported YT playlists which I sometimes group and\or sort based on playlist name, for now I'm setting playlist name tag manually, but it would be nice if it could be automated.
Title: Re: foo_youtube
Post by: 3dyd on 2018-01-27 09:04:06
Noted. This cannot be the default behavior since the video can belong to multiple playlists. So, I guess, this will be an extension, like it is currently done with %tracknumber%.
Title: Re: foo_youtube
Post by: onirwai on 2018-02-08 14:47:07
Clip title parsing rule - what's the regex for Artist - Title (Somebody Remix)?

Thanks!
Title: Re: foo_youtube
Post by: George Smith on 2018-02-10 14:17:48
Any way to play video with subs?
For example, i have:
---------------------------------------------------
Sylwia Banasik i Krzysztof Szczepaniak - Jeszcze dzisiaj wracasz tam (Bonnie i Clyde).mp4
Sylwia Banasik i Krzysztof Szczepaniak - Jeszcze dzisiaj wracasz tam (Bonnie i Clyde).srt
---------------------------------------------------
I want that when i watch *.mp4 via foo_youtube, subtitle autoload. Is that possible?
My software: Windows 7 x64, foobar 1.3.17, foo_youtube 2.2.1, K-Lite Codec Pack 13.7.5 Basic.
Title: Re: foo_youtube
Post by: 3dyd on 2018-02-12 21:39:14
Clip title parsing rule - what's the regex for Artist - Title (Somebody Remix)?
Clip title parsing uses regex internally, but rule itself is not regex. I'm not totally sure what you want (strip part inside parentheses?), but you may find answer here (https://fy.3dyd.com/help/filling_of_metadata/#Clip_title_parsing_rule).

Any way to play video with subs?
Currently this is impossible.
Title: Re: foo_youtube
Post by: George Smith on 2018-02-13 18:06:16
Currently this is impossible.
That's a shame. Thanks for quick reply.
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-02-14 12:59:25
@3dyd : Hey again!
Some YT videos stopped working (API changes again?).

Examples:
url: https://www.youtube.com/watch?v=3N22p2VgFnE
error: Unable to open item for playback (server error (403) from r2---sn-o5035oxu-n8vl.googlevideo.com):
"www.youtube.com/watch?v=3N22p2VgFnE"

url: www.youtube.com/watch?v=tkJht1Pu1qw
error: Unable to open item for playback (server error (403) from r1---sn-o5035oxu-n8vl.googlevideo.com):
"www.youtube.com/watch?v=tkJht1Pu1qw"
Title: Re: foo_youtube
Post by: MrSanchez on 2018-02-14 14:59:10
@3dyd : Hey again!
Some YT videos stopped working (API changes again?).

Examples:
url: https://www.youtube.com/watch?v=3N22p2VgFnE
error: Unable to open item for playback (server error (403) from r2---sn-o5035oxu-n8vl.googlevideo.com):
"www.youtube.com/watch?v=3N22p2VgFnE"

url: www.youtube.com/watch?v=tkJht1Pu1qw
error: Unable to open item for playback (server error (403) from r1---sn-o5035oxu-n8vl.googlevideo.com):
"www.youtube.com/watch?v=tkJht1Pu1qw"

I second this report. Me and some friends experience the same thing. YT API probably.
Happens to about 80% of the songs on my playlist.
Doesn't seem to happen to a few songs, e.g. https://www.youtube.com/watch?v=_6FBfAQ-NDE

Kind regards,
Sanchez
Title: Re: foo_youtube
Post by: 3dyd on 2018-02-14 20:28:56
Thanks. Confirmed. Fix is in progress.
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-02-14 22:59:43
@3dyd : any chance for that playlist metatag  extension?
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-02-15 09:34:43
@3dyd : Oh and problematic tracks are working fine with 2.2.2 beta 1, thanks!
Title: Re: foo_youtube
Post by: boba_keyost on 2018-02-16 10:58:43
Hi, I found that long videos eventually stops but audio is working fine.
Title: Re: foo_youtube
Post by: boba_keyost on 2018-02-16 12:59:57
15:36:47, [error] VideoSourceStreamFb2k->Read: Connection error
15:36:58, [error] VideoSourceStreamFb2k->Seek: Connection error
Title: Re: foo_youtube
Post by: 3dyd on 2018-02-16 19:04:15
If in component preferences -> Video tab -> 'Media downloading' you have something other than 'foo_youtube', you may try it. Pros (and cons at the same time) - it caches whole video independently of playback (when others cache only parts that are about to be played). If you have 'foobar2000' there, you also may try to increase reconnection time in Advanced -> Networking -> 'Keep reconnecting <...>'
Title: Re: foo_youtube
Post by: George Smith on 2018-02-17 17:20:36
3dyd, here is tiny problem: custom buttons with Youtube Commands under section "Copy" doesn't work!
For example, i created a button "Youtube Source / Copy / URL" but it doesn't do the trick! However, if i'm using context menu, then everything works perfect!
Is that bug of the component or a problem is on my side?
foobar2000 1.3.17, DUI, Youtube Source 2.2.1 
Title: Re: foo_youtube
Post by: Dael on 2018-02-18 19:25:17
Unable to open item for playback (server error (403) from r6---sn-4g5edned.googlevideo.com):

it is the same for different media downloading options. Did youtube change something?
Title: Re: foo_youtube
Post by: 3dyd on 2018-02-18 20:25:29
@George Smith
If you are talking about toolbar buttons, then it is a bug. Will be fixed in current release. Thanks.

@Dael
If you are using 2.2.2 beta 1, then please give an example URL. If you are using an older version, you could try latest beta or wait for release.
Title: Re: foo_youtube
Post by: Dael on 2018-02-19 19:38:12
Beta works, thank you  :)
Title: Re: foo_youtube
Post by: eNforcer on 2018-02-24 01:42:40
Code: [Select]
18:38:51, #01, 1. UNKN 27.34 MB
18:38:51, #01, Ready
18:38:51, [video@05DA6248] opening (file): download - foo_youtube
18:38:51, LAV Splitter: switched to Runtime Config mode
18:38:51, [video@05DA6248] opening finished in 0.265 seconds
18:38:51, [warning] [video@05DA6248] Cannot start playback: [0x80004005] No video pin: Unspecified error

Any ideas?
Title: Re: foo_youtube
Post by: MojoBass on 2018-03-03 06:02:04
If someone wants to use this: a somehow nicer view on large numbers (at least in my eyes), here for %fy_view_count%.
Can be used e.g. in CUI playlist view or in Br3tts great jsplaylist-mod.
Code: [Select]
$if($greater(%fy_view_count%,999999999),$div(%fy_view_count%,1000000000).$num($div($mod(%fy_view_count%,1000000000),1000000),3) m, $if($greater(%fy_view_count% ,9999999), $div(%fy_view_count%,1000000) m, $if($greater(%fy_view_count%,999999),$div(%fy_view_count%,1000000).$num($div($mod(%fy_view_count%,1000000),1000),3) k, $if($greater(%fy_view_count% ,9999), $div(%fy_view_count%,1000) k, $if($greater(%fy_view_count%,999),$div(%fy_view_count%,1000).$num($mod(%fy_view_count%,1000),3),%fy_view_count%)))))
Can probably be programmed in a nicer way, but it works   :))
Title: Re: foo_youtube
Post by: WilB on 2018-03-05 13:31:13
I've come across the occasional url that add location... fails to load. They give the following popup error.

Quote
The following error(s) occurred during loading of the location(s):
Invalid path syntax

The urls are generated by YTTM and so have metadata overriding.

They can simply be tested by pasting into foobar2000 > File menu > Add Location...

Examples:
Code: [Select]
Actual title used before applying encodeURIComponent: Just Like Fire 和訳 日本語 (アリスインワンダーランド 時間の旅 主題歌) 
Gives error:
3dydfy://www.youtube.com/watch?fb2k_title=Just%20Like%20Fire%20%E5%92%8C%E8%A8%B3%20%E6%97%A5%E6%9C%AC%E8%AA%9E%20(%E3%82%A2%E3%83%AA%E3%82%B9%E3%82%A4%E3%83%B3%E3%83%AF%E3%83%B3%E3%83%80%E3%83%BC%E3%83%A9%E3%83%B3%E3%83%89%20%E6%99%82%E9%96%93%E3%81%AE%E6%97%85%20%E4%B8%BB%E9%A1%8C%E6%AD%8C)&3dydfy_alt_length=221&fb2k_artist=P!nk&v=N632cV3ZuW8

Actual title used before applying encodeURIComponent: Julie Driscoll & Brian Auger & The Trinity - Why (Am I Treated So Bad)
Gives error:
3dydfy://www.youtube.com/watch?fb2k_tracknumber=7&fb2k_album=Open&fb2k_date=1967&fb2k_title=Julie%20Driscoll%20%26%20Brian%20Auger%20%26%20The%20Trinity%20-%20Why%20(Am%20I%20Treated%20So%20Bad)&3dydfy_alt_length=214&fb2k_artist=Julie%20Driscoll%2C%20Brian%20Auger%20%26%20The%20Trinity&v=15034i2Bl0Y

A similar one works:
Actual title used before applying encodeURIComponent: Brian Auger, Julie Driscoll & The Trinity - Lament for Miss Baker
3dydfy://www.youtube.com/watch?fb2k_tracknumber=4&fb2k_album=Open&fb2k_date=1967&fb2k_title=Brian%20Auger%2C%20Julie%20Driscoll%20%26%20The%20Trinity%20-%20Lament%20for%20Miss%20Baker&3dydfy_alt_length=162&fb2k_artist=Julie%20Driscoll%2C%20Brian%20Auger%20%26%20The%20Trinity&v=6p-eqg10pdc

I don't think there is actually an invalid path syntax in the first two, because shortening them by removing various sets of characters does get them to work. The top one has to be reduced to about 268 characters. With the second, just removing the ")" is enough & its then 299 characters. The problem may loosely be linked to length. But there doesn't seem to be specific cut off either in terms of character length or byte size that can accurately be used to reject certain urls in the code.

I was wondering if there might be a parsing issue in foo_youtube, or if its a foobar2000 core problem? Or if anyone knows a solution?
Title: Re: foo_youtube
Post by: 3dyd on 2018-03-05 14:45:47
Currently foo_youtube stores metadata in files (%fb2k_profile_dir%/foo_youtube/cache/meta). URL after some unification is used as file path there. So URLs, pointing to the same clips but having different overridden meta, effectively threated as different tracks.

Let's see at second URL. Its file name in meta directory is next (one can see that in component's log, need to set 'core -> trace' severity):
Code: [Select]
meta+https---www.youtube.com-watch_fb2k_album=Open&fb2k_artist=Julie+Driscoll%2C+Brian+Auger+%26+The+Trinity&fb2k_date=1967&fb2k_title=Julie+Driscoll+%26+Brian+Auger+%26+The+Trinity+-+Why+%28Am+I+Treated+So+Bad%29&fb2k_tracknumber=7&v=15034i2Bl0Y.foo_youtube

It looks like the problem is this. Filename has length of 258 characters. In general case (i.e. usually in NTFS) length limit for individual parts of the path is 255 characters. ')' gets encoded there ('%29') so when you remove it, filename becomes 255 characters long (very convenient example!), thus it does not fail.

I do not think that having specification of the rules, used for filename generation, is a good idea (yet another headache for maintenance). Idea to use URL as file name does not look clever anymore, but it is hard to change such things now. Switch to SQLite database as storage (instead of filesystem) would resolve this problem, but it is long term plan.

I guess, I will look for the way to use some shortened filenames (e.g. hashes) as a fallback if regular way fails like this. But if you come up with an approach that does not require work on my side, I definitely won't be upset.
Title: Re: foo_youtube
Post by: WilB on 2018-03-06 12:12:30
OK. Thanks. Now I understand. I can use a workaround for very occasional videos that exceed foo_youtube database size limits, i.e. pick a different one from the search returns.
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-03-23 10:31:04
@3dyd : Thanks for the beta3 update! Could you please point to where foo_youtube extensions (e.g. "position as %tracknumber%") are configured? Could not find it in 'Tools > YouTube Source' and 'Tools > Advanced > Tools > YouTube Source', so there must be some other place...

PS: foo_acfu is neat, I'll try to integrate in my component as well.
Title: Re: foo_youtube
Post by: 3dyd on 2018-03-24 13:43:52
These extensions are extensions for search. In 'Search (Integrated)' UIE and in 'Search on Youtube' window (menu View -> Youtube Source) you can find search config menu (where 'Order by Relevance' etc. are placed). This menu has additional column 'Extensions'. There is placed everything that affects search results but is not part of standard search features.

That said, one need to use search to add playlists with these meta tags. A bit illogically, but first of all, whole this feature is generally not applicable, since video can belong to multiple playlists. Because of that it is not something that can be configured globally (via component preferences) and thus it is isolated in Extensions.

Alternatively, you can append playlist URL query part with fb2kx_plmeta=1 parameter and load it using standard way (e.g. File -> Add location...).
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-03-24 15:23:56
These extensions are extensions for search. In 'Search (Integrated)' UIE and in 'Search on Youtube' window (menu View -> Youtube Source) you can find search config menu (where 'Order by Relevance' etc. are placed). This menu has additional column 'Extensions'. There is placed everything that affects search results but is not part of standard search features.

That said, one need to use search to add playlists with these meta tags. A bit illogically, but first of all, whole this feature is generally not applicable, since video can belong to multiple playlists. Because of that it is not something that can be configured globally (via component preferences) and thus it is isolated in Extensions.

Alternatively, you can append playlist URL query part with fb2kx_plmeta=1 parameter and load it using standard way (e.g. File -> Add location...).
I see, thanks. Does fb2kx_plmeta inhibit the automatic parsing as other fb2k_ fields (quoted from Help "If at least one fb2k_ field is present, global parsing rule is not used.")?
Title: Re: foo_youtube
Post by: boba_keyost on 2018-03-30 11:08:46
Hello.
I'm getting "SSL authentication error" when I try to add any youtube source.
Component version: 2.3
Foobar version: 1.3 or 1.4-beta

I've tried to add google's certificate to Trusted Root Cert's but it doesn't help.
Title: Re: foo_youtube
Post by: 3dyd on 2018-03-31 09:33:26
Does fb2kx_plmeta inhibit the automatic parsing as other fb2k_ fields (quoted from Help "If at least one fb2k_ field is present, global parsing rule is not used.")?
Not explicitly but yes. These additional meta fields from extensions (%tracknumber%, %playlist_name% etc) are added to the track using metadata overriding. But if track has any meta field overridden, the ways for automatic metadata fill are not applied (clip title parse rule or metadata from clip properties). So metadata from it is also added to the track using metadata overriding,

I'm getting "SSL authentication error" when I try to add any youtube source.
This error unlikely comes from component. For example, you can uninstall component and try to add URL again - you'll get the same error. Try to install system updates (these from Control Panel -> Windows Update). Alternatively you can prepend Youtube URL with "fy+" to bypass URL request being done by foobar2000 before it comes to the component (so URL will look like fy+https://www.youtube.com/watch?v=XXXXX).
Title: Re: foo_youtube
Post by: boba_keyost on 2018-03-31 09:53:18
This error unlikely comes from component. For example, you can uninstall component and try to add URL again - you'll get the same error. Try to install system updates (these from Control Panel -> Windows Update). Alternatively you can prepend Youtube URL with "fy+" to bypass URL request being done by foobar2000 before it comes to the component (so URL will look like fy+https://www.youtube.com/watch?v=XXXXX).
Ok, I'll try it. BTW, maybe this issues comes from Windows Preview Build.
Thanks!
Title: Re: foo_youtube
Post by: George Smith on 2018-03-31 17:37:29
3dyd, there is a little problem. I've updated foo_youtube (current stable version - 2.2.3), but if i try to play music, foobar crush.
foobar 1.3.17, foo_youtube 2.2.3 stable.
Right now, i'm using foo_youtube 2.2.2, work perfectly.
Title: Re: foo_youtube
Post by: 3dyd on 2018-04-01 12:58:56
You can try latest beta or set 'ffmpeg' from 'Preferences -> Youtube Source -> Maintenance' to 'Internal'.
Title: Re: foo_youtube
Post by: George Smith on 2018-04-01 14:07:06
You can try latest beta or set 'ffmpeg' from 'Preferences -> Youtube Source -> Maintenance' to 'Internal'.
Thank you very much!
Could you please explain what difference make this option?
Title: Re: foo_youtube
Post by: 3dyd on 2018-04-01 19:27:13
You can read about it here (https://fy.3dyd.com/help/third_party_binaries/).
Title: Re: foo_youtube
Post by: miras on 2018-04-03 00:45:55
Hi there,
I love this component. But, when I put the "video" in a new playlist and edit the %artist% and %title% tags, I get the art showing in some panels (i.e. Jscript with utils.GetAlbumArtV2), but in others the art not appears (i.e., $imageabs(0,0,1250,836,%path%,artreader nokeepaspect,,) in Panel Stack Splitter). Can someone help with this line?

Otherwise, the art aways appears (even in my playlists) if I add the "meta" folder in Media Library. Is this recommended? Add the <fb2k_config_dir>\foo_youtube\cache\meta\ in Media Library?
Title: Re: foo_youtube
Post by: arch21 on 2018-04-13 09:16:56
Any reason why after installing this, components about box, and probably another dialog box shows some glasses effect behind them? I'm using Windows 10. Regards :)
Title: Re: foo_youtube
Post by: 3dyd on 2018-04-13 22:09:16
I cannot imagine any reason for this. Are you sure it is foo_youtube? Have you tried clean foobar2000 installation (e.g. separate portable installation) with only this component additionally installed?
Title: Re: foo_youtube
Post by: arch21 on 2018-04-14 00:15:35
sorry, I should upload the video before. Anyway here it is now: https://transfer.sh/RYWlX/2018-04-14_07-06-33.mp4
Issue with my gpu driver? I don't know where to start for checking this issue.
Title: Re: foo_youtube
Post by: 3dyd on 2018-04-14 20:24:22
Thank you for the video and for further details. This bug should be fixed in current beta.
Title: Re: foo_youtube
Post by: arch21 on 2018-04-14 23:10:13
Thank you for fixing it. I can confirm it looks fine now. Regards :)
Title: Re: foo_youtube
Post by: Hidrojen on 2018-04-15 07:07:56
Youtube > Copy > URL doesn't have a mnemonic. Maybe assign a number (&1, &2)?
Title: Re: foo_youtube
Post by: NIN9 on 2018-04-19 13:21:01
I have troubles using external ffmpeg from zeranoe builds win32 shared.
Have own directory for each component.


Quote
14:05:23, [warning] could not load external ffmpeg: C:\Users\NIN9\Portables\foobar2000\libs\avutil-lav-56.dll: 56.15.100 > 56.0.0
14:05:23, ffmpeg: lavf 57.71.100, lavc 57.89.100, lavu 55.58.100 (internal)
14:05:23, VSFilter 1.7.1.322 1.7.1.322 (external)
14:05:23, LAV Filters: LAV Splitter 0.71.0.34 (external)
14:05:23, LAV Filters: LAV Video 0.71.0.34 (external)
14:05:23, libcurl/7.59.0 WinSSL zlib/1.2.11 (external)
Title: Re: foo_youtube
Post by: 3dyd on 2018-04-21 11:22:16
@Hidrojen
Well, I am surprised that other menu items have access keys. So, foobar2000 adds them if menu does not have its own access keys. And when URL item turn comes, all three letters are already taken by the above items. Fixed in the latest version.

@NIN9
Latest ffmpeg version is "too new" for the component. ffmpeg API changes with time, and these changes are not always back-compatible. So component has to limit max ffmpeg version. This limitation was added in 2.3.1. Previous versions most likely will crash if you would try to use new ffmpeg with them.
Title: Re: foo_youtube
Post by: NIN9 on 2018-04-21 11:48:21
Thank you for explanation and great coding. Happy everything works as intended so far.
Title: Re: foo_youtube
Post by: seriousstas on 2018-04-30 12:26:16
If in component preferences -> Video tab -> 'Media downloading' you have something other than 'foo_youtube', you may try it. Pros (and cons at the same time) - it caches whole video independently of playback (when others cache only parts that are about to be played). If you have 'foobar2000' there, you also may try to increase reconnection time in Advanced -> Networking -> 'Keep reconnecting <...>'
Not working on 1.4 beta 11
It's as if 1 second has been set
On 1.3.7 - no problem
Title: Re: foo_youtube
Post by: arch21 on 2018-05-12 17:23:43
Could we have report with log in English? Thanks
Title: Re: foo_youtube
Post by: 3dyd on 2018-05-13 22:04:30
Nice. It is not CJK language, but a bug due to use of single-byte string when formatting wide string. Will be fixed. Thanks.
Title: Re: foo_youtube
Post by: thecircusfreak on 2018-05-22 15:07:56
Hello.
I'm getting "SSL authentication error" when I try to add any youtube source.
Component version: 2.3
Foobar version: 1.3 or 1.4-beta

I've tried to add google's certificate to Trusted Root Cert's but it doesn't help.
it's a  Foobar2000's network stack bug. From v1.4 changelog: fixed a bug in HTTPS reader causing incompatibility with Google websites (beta 14).

A temporary work around to this would be to add "www.youtube.com" to Foobar2000 preferences/Advanced/Networking/Surpress HTTPS cert checks.

Title: Re: foo_youtube
Post by: Wolfbane on 2018-05-23 08:15:49
Get error when trying to add this song to playlist.

https://www.youtube.com/watch?v=oxJtX081jj4
Title: Re: foo_youtube
Post by: Skreaxy on 2018-05-26 22:39:51
I have xy-VSFilter installed via CCCP and yet it doesn't recognizes it's not installed so I tried installing by the link it's given I do and the componnent says I need to install xy-VSFilter when I have it.
Title: Re: foo_youtube
Post by: rokkokko on 2018-06-03 19:21:24
I'm using the Album Art Panel (foo uie albumart) instead of the default one and It can't show the thumbnail without a source; is there a metadata field for the Youtube thumbnail (%3dydfy_thumbnail% or something like that) that I could use to extract the thumbnail for that component?
Title: Re: foo_youtube
Post by: Sh0t on 2018-06-05 08:52:29
Plugin is S I C K ! ! !
Title: Re: foo_youtube
Post by: Sergey77 on 2018-06-06 09:43:20
Plugin is S I C K ! ! !
What do you mean? please put clarity.
Title: Re: foo_youtube
Post by: hanbai on 2018-06-10 17:02:02
Hi,

I would like to add a view column for my youtube playlist, but when I add %3dydfy_view_count% to my custom columns it returns '?'.  How am I supposed to use that metadata for it to return the view count?

Thanks
Title: Re: foo_youtube
Post by: 3dyd on 2018-06-11 23:10:31
@Wolfbane
Try foobar2000 1.3.18. There was an issue with Google sites that could result in an error when adding URL. Other than that I have no ideas - your URL works for me.

@Skreaxy
The only explanation that comes to mind is that you have x64 filter version when component requires x86 version. You could try to use 'Managed' source, so component will download required version by itself.

@rokkokko @hanbai
I updated docs, so you can now find all info here (https://fy.3dyd.com/help/titleformatting/).
Title: Re: foo_youtube
Post by: Sergey77 on 2018-06-13 07:06:33
Hello!
Dear 3dyd,
I like watch Internet TV channels and various films (.mkv format for example) with fb2k (using foo_youtube component of course).
Do you plan to develop this opportunity? Could you tell about it.
Thanks.
Title: Re: foo_youtube
Post by: TimsFong on 2018-06-13 13:17:08
Hi,3dyd,
I in china,Must use the proxy severs can get "youtube.com",How is set up the"youtube source" or foobar2000 networking?Thanks.
Title: Re: foo_youtube
Post by: Skreaxy on 2018-06-13 16:44:02
@Skreaxy
The only explanation that comes to mind is that you have x64 filter version when component requires x86 version. You could try to use 'Managed' source, so component will download required version by itself.

Still, unninstalled x64 and x86 and installed x86 and tells me to install xy-VSFilter.
Title: Re: foo_youtube
Post by: hanbai on 2018-06-13 20:19:15
@3dyd You're a god, thanks a lot!
Title: Re: foo_youtube
Post by: 3dyd on 2018-06-13 23:19:52
@Sergey77
Component unlikely will have embedded support for other sites.
As for local video files - it already can play them.

@TimsFong
I updated related info here (https://fy.3dyd.com/help/miscellaneous/#Proxy_settings).

@Skreaxy
CCCP is not updated for more than 2 years. For me, after CCCP installation component stops asking for VSFilter. But if you also install LAV Filters from this CCCP, component complains about too old LAV Filters version. Consider using some other, more up-to-date codec pack, or switch to 'Managed' sources in component Maintenance tab to avoid dependency on filters installed in the system (more info is here (https://fy.3dyd.com/help/third_party_binaries/)).
Title: Re: foo_youtube
Post by: TimsFong on 2018-06-14 13:47:55
@3dyd
Yes, I got the playlist now,but can't playback,have other things will be seting up?or the network slow and can't load the file?Thanks a lot.
Title: Re: foo_youtube
Post by: 3dyd on 2018-06-16 22:43:04
Try clean portable installation with only foo_youtube installed. If it still cannot play, component log may contain some useful info (menu View -> Youtube Source -> Log).
Title: Re: foo_youtube
Post by: TimsFong on 2018-06-17 12:36:48
@3dyd
Thanks for reply,I try again but also can't playback,show you the log and Preferences as follows.Thanks.
Title: Re: foo_youtube
Post by: 3dyd on 2018-06-17 21:47:38
It worth trying external libcurl with different SSL backend (you can find one on download (https://beta.fy.3dyd.com/download/) page). You can setup it on Maintenance tab: right click on 'libcurl', use menu item 'External' and select libcurl *.dll file.

Other than that I have no ideas. Proxies that I have (both HTTP and SOCKS5) work fine so it looks like an issue specific to your proxy.
Title: Re: foo_youtube
Post by: TimsFong on 2018-06-18 04:49:22
@3dyd
changed the “libcurl_7_54_openssl” also can't playback.I think this is china network problem.I used the “3dyd_batch64_2.10.4”downlaod from youtube,And then use foobar playback is also nice.Thanks a lot.
Title: Re: foo_youtube
Post by: mire777 on 2018-06-22 10:14:36
I have one question, is there still preconf versions on the site for download? I cant find none...
Title: Re: foo_youtube
Post by: TimsFong on 2018-06-23 03:33:13
I have one question, is there still preconf versions on the site for download? I cant find none...
https://ba.3dyd.com/
Title: Re: foo_youtube
Post by: TimsFong on 2018-06-23 04:05:57
@mire777
Sorry.
Title: Re: foo_youtube
Post by: 3dyd on 2018-06-23 08:06:19
Since version 2.3 component has only "standalone" package. Alternative to "preconf" package is "Managed" Source in Third-party binaries list. You can find details in 2.3 changelog (https://fy.3dyd.com/changelog/2.3).
Title: Re: foo_youtube
Post by: mire777 on 2018-06-23 08:28:47
@mire777
Sorry.

Thanks , i set external sources manualy and all works, just wanted to know if there is still preconf. versions for download or not..

Since version 2.3 component has only "standalone" package. Alternative to "preconf" package is "Managed" Source in Third-party binaries list. You can find details in 2.3 changelog (https://fy.3dyd.com/changelog/2.3).

All clear, thank you for your answer.
Title: Re: foo_youtube
Post by: TimsFong on 2018-06-23 08:39:55
@3dyd
But my "Auto check for updates" not same yours,Please see the below,Thanks.
Title: Re: foo_youtube
Post by: 3dyd on 2018-06-26 05:59:57
LAV Filters and VSFilter will be there only if they are managed by the component (i.e. "Source" in "Third-party Binaries" list is set to "Managed").
Title: Re: foo_youtube
Post by: TimsFong on 2018-06-26 09:03:55
@3dyd
Yes!I got it.Thanks.
Title: Re: foo_youtube
Post by: rammo on 2018-06-27 05:52:12
Hi @3dyd, I have a development question. I am new to the foobar SDK and I picked up a small project. I forked foo_input_spotify and trying to make it accept http(s) URLs. I recently found your fantastic youtube plugin, and noticed that it doesn't ignore http(s) protocols. I looked for your source code but couldn't find it anywhere. I was wondering if you would guide me in the right direction for overriding the foobar's http(s) reader with a plugin. I would also greatly appreciate it if you would share your source code.
Title: Re: foo_youtube
Post by: TimsFong on 2018-06-27 14:33:30
Hi @3dyd, I have a development question. I am new to the foobar SDK and I picked up a small project. I forked foo_input_spotify and trying to make it accept http(s) URLs. I recently found your fantastic youtube plugin, and noticed that it doesn't ignore http(s) protocols. I looked for your source code but couldn't find it anywhere. I was wondering if you would guide me in the right direction for overriding the foobar's http(s) reader with a plugin. I would also greatly appreciate it if you would share your source code.
Maybe you want to find this:https://github.com/stengerh/foo_input_spotify
Title: Re: foo_youtube
Post by: rammo on 2018-06-29 06:25:21
Hi @3dyd, I have a development question. I am new to the foobar SDK and I picked up a small project. I forked foo_input_spotify and trying to make it accept http(s) URLs. I recently found your fantastic youtube plugin, and noticed that it doesn't ignore http(s) protocols. I looked for your source code but couldn't find it anywhere. I was wondering if you would guide me in the right direction for overriding the foobar's http(s) reader with a plugin. I would also greatly appreciate it if you would share your source code.
Maybe you want to find this:https://github.com/stengerh/foo_input_spotify

Thanks for your reply, but I'm aware of that repository. My question mainly is how foo_youtube overrides the default http reader so it doesn't need the custom protocol string 3dydfy:// anymore? By default foobar tries to open http urls itself before sending it to any plugins.
Title: Re: foo_youtube
Post by: 3dyd on 2018-06-29 15:39:44
foo_youtube does not override default http reader. Well, I won't say I have not tried this: implicitly or explicitly, this way seems to be disabled by the core.

So http reader always acts first (quite recently there was an issue (http://fy.3dyd.com/help/troubleshooting/#tr06) illustrating this situation). By that foobar2000 determines content type of the data being opened and then searches appropriate input_entry or playlist_loader instance by calling their is_our_content_type() methods with determined content type.

For example, content type is "text/html; charset=utf-8" in case of Youtube video page, so foo_youtube says yes for it and then within following call of open() method it gets an URL and either opens it or throws exception_io_unsupported_format (aand I do not know if foobar2000 continues search for the handler in this case).

Possible key point: I do not remember how it was in older foobar2000 versions, but the latest one calls only playlist_loader::is_our_content_type() for page URL, i.e. input_entry is not involved. Possible explanation: it assumes that there cannot be audio decoder for "text/*" mime type.
Title: Re: foo_youtube
Post by: mire777 on 2018-07-08 18:34:44
Currently foo_youtube stores metadata in files (%fb2k_profile_dir%/foo_youtube/cache/meta). URL after some unification is used as file path there.

Can I somehow move "foo_youtube" folder to other location?

I tried to set path in: preferences > advanced > tools > youtube source > network > temporary directory > %fb2k_profile_dir%\Cache\foo_youtube

But nothing happens?
Title: Re: foo_youtube
Post by: Scoty on 2018-07-13 05:57:07
I have installes this but dont can show Video. Also i dont have this "Auto check for updates" in my Options. I use latest foobar.
Title: Re: foo_youtube
Post by: Vivens on 2018-07-13 07:00:26
Is there a way to save a video's audio stream using this plugin without re-encoding it via the convert feature in foobar? Thank you for this great plugin!
Title: Re: foo_youtube
Post by: TimsFong on 2018-07-13 07:07:08
Is there a way to save a video's audio stream using this plugin without re-encoding it via the convert feature in foobar? Thank you for this great plugin!
1.You must download foo_acfu_0.1 :https://acfu.3dyd.com/download/ This is for "Auto check for updates".
2.download LAVFilters-0.72: https://github.com/Nevcairiel/LAVFilters/releases/ and xy-VSFilter-3.0.0.306: https://github.com/Cyberbeing/xy-VSFilter/releases,This is for show vidio.
Title: Re: foo_youtube
Post by: Vivens on 2018-07-13 08:45:58
Is there a way to save a video's audio stream using this plugin without re-encoding it via the convert feature in foobar? Thank you for this great plugin!
1.You must download foo_acfu_0.1 :https://acfu.3dyd.com/download/ This is for "Auto check for updates".
2.download LAVFilters-0.72: https://github.com/Nevcairiel/LAVFilters/releases/ and xy-VSFilter-3.0.0.306: https://github.com/Cyberbeing/xy-VSFilter/releases,This is for show vidio.
I'm not sure I understand what you're trying to instruct me on doing here--I already have LAVFilters installed, but my goal is not to watch any videos, it is simply to download and keep the highest quality audio stream from a youtube link that is being streamed to foobar in foobar itself. Looking through menus, I do not see anything resembling that feature that I am posting help for. Thank you for your attempt at assisting me though!
Title: Re: foo_youtube
Post by: TimsFong on 2018-07-13 10:31:34
I have installes this but dont can show Video. Also i dont have this "Auto check for updates" in my Options. I use latest foobar.
1.You must download foo_acfu_0.1 :https://acfu.3dyd.com/download/ This is for "Auto check for updates".
2.download LAVFilters-0.72: https://github.com/Nevcairiel/LAVFilters/releases/ and xy-VSFilter-3.0.0.306: https://github.com/Cyberbeing/xy-VSFilter/releases,This is for show vidio.
Title: Re: foo_youtube
Post by: TimsFong on 2018-07-13 10:35:17
Is there a way to save a video's audio stream using this plugin without re-encoding it via the convert feature in foobar? Thank you for this great plugin!
1.You must download foo_acfu_0.1 :https://acfu.3dyd.com/download/ This is for "Auto check for updates".
2.download LAVFilters-0.72: https://github.com/Nevcairiel/LAVFilters/releases/ and xy-VSFilter-3.0.0.306: https://github.com/Cyberbeing/xy-VSFilter/releases,This is for show vidio.
I'm not sure I understand what you're trying to instruct me on doing here--I already have LAVFilters installed, but my goal is not to watch any videos, it is simply to download and keep the highest quality audio stream from a youtube link that is being streamed to foobar in foobar itself. Looking through menus, I do not see anything resembling that feature that I am posting help for. Thank you for your attempt at assisting me though!
I am so sorry,The wrong place to write.
Title: Re: foo_youtube
Post by: MojoBass on 2018-07-14 08:56:14
I very much like to use the jsplaylist-mod from Br3tt aka Falstaff, maintained by marc2k3 (see here) (https://github.com/marc2k3/foo_jscript_panel/tree/master/foo_jscript_panel/samples/jsplaylist-mod) for the youtube playlist as it allows very nice configuration.
The only problem I am having here is that in the right-click menu on a title, only 'copy' (with its subitems such as URL, Title,...) appears under 'Youtube Source'. In NG Playlist everything within 'Youtube Source' appears as expected such as 'Watch on the site' or the various search options. The 'watch on site' item is especially useful for me as I did not find any other way to view the full description and discussion on a youtube item, which contains e.g. playlists of a full concert post.
Any hint how I can enable the full Youtube Source menue as well within jsplaylist-mod?
Title: Re: foo_youtube
Post by: MojoBass on 2018-07-16 05:14:12
Hm, seems like Marc2k3 is secretly following here :-)
@Marc: THANKS VERY MUCH FOR SOLVING THIS!!  :)  :)

PS: solved with V2.1.6 of foo_jscript_panel, see here (https://github.com/marc2k3/foo_jscript_panel/releases/tag/v2.1.6)
Title: Re: foo_youtube
Post by: MojoBass on 2018-07-16 05:17:20
PPS: coming back one day?
Title: Re: foo_youtube
Post by: mire777 on 2018-07-16 12:20:49
Is there a way to save a video's audio stream using this plugin without re-encoding it via the convert feature in foobar? Thank you for this great plugin!

If you convert it to mp3, or any other format, you loosing quality.
Mp3 is compromise, that bring smaler size and compressed sound, but that loss in quality human ear can not hear. You will not be able to hear the difference. So i dont see point to save high possible sound. Especially because youtube videos already have encoded audio sound, so audio within M4A file extension that youtube use, is typically encoded with AAC lossy compression. So you already have lossy format..

Anyway..

If you want to save highest possible sound from youtube, you should select video and then: convert > ... > output format > edit > encoder > custom ,  and you should use "ffmpeg.exe" or some other encoder, that extracts "separates audio from the video"..

See this:  https://www.tech-g.com/2012/04/19/extracting-audio-from-youtube-files-without-loss-of-quality/

I think this is possible within foobar, you only must set right parameters....
Title: Re: foo_youtube
Post by: Rollin on 2018-07-16 17:43:33
Is there a way to save a video's audio stream using this plugin without re-encoding it via the convert feature in foobar?
No.
Title: Re: foo_youtube
Post by: arch21 on 2018-07-20 11:05:59
I'm trying to play some videos offline and looks like it always use software decoding. LAV Filters set to managed. Is there a way to enable hardware decoding? Regards :)
Title: Re: foo_youtube
Post by: Wolfbane on 2018-07-24 08:18:30
Seems like Foobar-YoTube, are skipping some songs for me.

When I go to links of song, to check if they are broken, then I come to a YouTube, "bla bla mature content" if song has some kind of bad lyrics or video, and I have to "accept" to continue to see video.

Either way, is there any way one could get YouTube plugin to bypass this and play the song ?

example.
https://www.youtube.com/watch?v=3jkF0-g01f8&bpctr=1532418259

"Certain features have been disabled for this video
In response to user reports, we have disabled some features, such as comments, sharing and suggested videos, because this video contains content that may be inappropriate or offensive to some audiences."
Title: Re: foo_youtube
Post by: arch21 on 2018-07-27 03:55:29
foobar2000 crash when I open Video window with Classic UI being used. foobar2000 v1.4, Classic UI v1.1, Windows 10 64-bit. Regards.
Title: Re: foo_youtube
Post by: 3dyd on 2018-08-05 12:40:31
Can I somehow move "foo_youtube" folder to other location?

I tried to set path in: preferences > advanced > tools > youtube source > network > temporary directory > %fb2k_profile_dir%\Cache\foo_youtube

But nothing happens?
Temporary directory is used for temporary files. There are no way to override directory used for cache.

Is there a way to save a video's audio stream using this plugin without re-encoding it via the convert feature in foobar?
No.
To elaborate, AFAIK there are no separation of demux stage from decoding process. Without this it is not possible to remux files, only re-encode.

foobar2000 crash when I open Video window with Classic UI being used. foobar2000 v1.4, Classic UI v1.1, Windows 10 64-bit. Regards.
Cannot reproduce. You may send crash report to fy@3dyd.com
Title: Re: foo_youtube
Post by: 3dyd on 2018-08-05 22:23:57
I'm trying to play some videos offline and looks like it always use software decoding. LAV Filters set to managed. Is there a way to enable hardware decoding?
Local filters use so-called RunTime Config Mode, when all settings are defaulted. This is done on purpose. There are no way to display filter properties page of local unregistered filter (it will display properties page of the filter registered in the system). And there are no sane way to store filter settings locally (i.e. all changes will be stored globally in the system). All this could result in unexpected behaviour, especially when versions of local and global filters are different.

Currently the only way to achieve what you want is to use "System" source.

When I go to links of song, to check if they are broken, then I come to a YouTube, "bla bla mature content" if song has some kind of bad lyrics or video, and I have to "accept" to continue to see video.

Either way, is there any way one could get YouTube plugin to bypass this and play the song ?
Since Youtube does not force sign-in for such videos, there is a chance that this restriction can be bypassed in further versions.
Title: Re: foo_youtube
Post by: Wolfbane on 2018-08-05 22:30:09
Great

Hope for that feature in future, keep up the great work with this awesome plugin.
Title: Re: foo_youtube
Post by: Sergey77 on 2018-08-06 15:46:45
Hi!
@3dyd, long wanted to ask - why in Chinese?
Title: Re: foo_youtube
Post by: 3dyd on 2018-08-06 21:40:51
foobar2000 crash when I open Video window with Classic UI being used. foobar2000 v1.4, Classic UI v1.1, Windows 10 64-bit. Regards.
@arch21, got your crash report, thanks. Answering here as you asked.
Bug seems to be in seekbar drawing code. Possible workarounds for now: disable seekbar (component preferences -> Video tab -> Show seekbar -> Never) or switch to other UI (bug persists only when foo_ui_classic is used).

@Sergey77
see here (https://hydrogenaud.io/index.php/topic,104379.msg957013.html#msg957013).
Title: Re: foo_youtube
Post by: Sergey77 on 2018-08-30 17:01:34
Hi!
@3dyd,
1. Do You plan to activate the "Activity" panel when playing local video files?
Now the "Activity" panel works only when playing video from Youtube.
2. @musicmusic and 3dyd, note the following please:
When using "Search (Integrated)" panel the end line of the playlist looks strange in CUI (see attached pic.)
At the end of the playlist should be "...get more" like at popup window "Search on Youtube".
Сould You comment on this?

Thanks!
Title: Re: foo_youtube
Post by: 3dyd on 2018-08-31 22:13:49
1. More precisely, it is enabled for http and https URLs. I guess, initially local files were not added there because it was primarily used to track outgoing connections. I will enable Activity for local files.

2. This is by design. Read Clip properties mapping (https://fy.3dyd.com/help/metadata/#Clip_properties_mapping) topic for details.
Title: Re: foo_youtube
Post by: TimsFong on 2018-09-01 23:54:28
@3dyd
Yes,In china I also can playback the youtube videos on foobar2000,This must be set:Advanced>Tools>youtube source>network>proxy like "hostname[:port]" only.Thanks for  The Great plugin.
Title: Re: foo_youtube
Post by: thecircusfreak on 2018-09-08 00:55:35
I think 403's have returned. Thank you for this plugin @3dyd.
Title: Re: foo_youtube
Post by: Cnuut on 2018-09-08 04:57:35
Yepp, can confirm 403:s
Title: Re: foo_youtube
Post by: gr8cx on 2018-09-08 06:50:46
403 Russia / Siberia :-)
Win XP SP2 foo_youtube 2.2.2 beta 1
Title: Re: foo_youtube
Post by: 3dyd on 2018-09-08 16:11:45
Thanks for notifications. Fix should be available shortly.
Title: Re: foo_youtube
Post by: Hidrojen on 2018-09-08 19:41:35
Thanks for notifications. Fix should be available shortly.

Thank you, can you please add "auto-update" to the plugin? "Get updates" button in Components panel only works for plugins downloaded from foobar2000's official plugin site.
Title: Re: foo_youtube
Post by: arch21 on 2018-09-08 21:04:14
will you update to latest SDK?
latest beta fix the issue with CUI. thanks.
Title: Re: foo_youtube
Post by: 3dyd on 2018-09-12 22:27:30
Yes. Next major update will be built with new SDK.

@Hidrojen
If nothing unforeseen happens, starting from next major update I will be posting release versions also in official 3rd party components repository. So it will be possible to get updates using regular way.
Title: Re: foo_youtube
Post by: Sergey77 on 2018-09-17 14:38:41
@3dyd, thank you for new version of foo_acfu!
and of course we look forward to your next major update of foo_youtube.
I remember the "Component unlikely will have embedded support for other sites", but I also unlikely will to use anything other than foo_youtube :)
All the same if there is an opportunity, could you improve the synchronization of video and audio when playing streaming video?
Most often the sound is ahead of the video. Sometimes from the beginning of playback and sometimes gradually.
Use of the options "Synchronize playback" and "Synchronize video" doesn't solve the problem.
Also usually a video starts to playback then freezes for a few seconds then the playback continues (noted for streaming video only)
It would be great to solve that issue.

Thanks!
Title: Re: foo_youtube
Post by: 322 on 2018-10-23 12:39:48
Foobar2000 already supports Avisynth scripts (plays audio). But the plugin does not recognize them as video files. Is there a way to make the plugin accept *.avs files?
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-11-02 11:25:36
@3dyd: is it possible to add `url+time` element to the context menu? For example https://www.youtube.com/watch?v=GBUCmMxmup0&t=807 (note the additional time tag). Such option is great for when you want to switch to browser-based youtube or when you want to share a link to some part of stream.
Title: Re: foo_youtube
Post by: wuxakpll on 2018-11-28 16:45:38
Hi, this is regarding  foo_acfu, I added acfu and discord rich presence as sources (check mark beside the name) when I check for update I get

The following errors occurred during the checking for updates:

Auto Check for Updates: Network authentication error (80090302)

Discord Rich Presense: Network authentication error (80090302)

with an error "The following fatal alert was received: 70." in Event Viewer.

googling found the error is

TLS1_ALERT_PROTOCOL_VERSION 70      SEC_E_UNSUPPORTED_FUNCTION 0x80090302

from: https://docs.microsoft.com/en-us/windows/desktop/secauthn/schannel-error-codes-for-tls-and-ssl-alerts

So any ideas?
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-11-28 16:55:32
So any ideas?
Do you mean foo_discord_rich component?
Are you running it on Windows 7?
Title: Re: foo_youtube
Post by: wuxakpll on 2018-11-28 17:12:57
So any ideas?
Do you mean foo_discord_rich component?
Are you running it on Windows 7?

Yeah foo_discord_rich component and  Windows 7
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-11-28 19:08:21
@wuxakpll : most likely it's a problem of missing TLS 1.2 (Windows 7 is using outdated and insecure TLS 1.0 by default).
You can try the following guide on how to enable TLS 1.2 in Windows 7: https://support.microsoft.com/en-us/help/3140245/update-to-enable-tls-1-1-and-tls-1-2-as-default-secure-protocols-in-wi

Note: apply EasyFix provided in the guide before applying the required update.

Title: Re: foo_youtube
Post by: wuxakpll on 2018-11-28 20:10:32
Thanks for the article, I already had that update, using the Easy fix didn't fix it, but enabling TLS 1.1 and 1.2 on Windows 7 at the SChannel component level did.

Adding those 2 registry keys did it
Quote
For TLS 1.1
Registry location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client
DWORD name: DisabledByDefault
DWORD value: 0

For TLS 1.2
Registry location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client 
DWORD name: DisabledByDefault
DWORD value: 0

Thanks again.
Title: Re: foo_youtube
Post by: MojoBass on 2018-12-09 05:04:26
Dear 3dyd,
found issues with the Youtube view count in WilBs You Tube Track Manager (YTTM), which is using foo_youtube, see the posts here (https://hydrogenaud.io/index.php/topic,111059.msg965754.html#msg965754).
I appears that the Youtube view count often is not available when loading a Youtube track vie YTTM.
When loading a track via foo_youtube, this issue does not appear, view count is always available.
WilB suggested to contact you as he assumes the issues lies within foo_youtube (see here (https://hydrogenaud.io/index.php/topic,111059.msg965697.html#msg965697)).
Any idea on how to fix this?
Title: Re: foo_youtube
Post by: richard3840 on 2018-12-12 20:06:07
I had been looking for a way to have the Youtube songs included in the media library, because that didn't happen when you added them through the menu. I recently found out that the Youtube component saves the Youtube link and metadata for the indidual songs as  ".FOO_YOUTUBE" files in the "%AppData%\foobar2000\foo_youtube\cache\meta" directory.
To experiment, i tried to copy one of those files into a folder monitored by the media library, and indeed, it seems to recognise them as a song like any other, with the Codec: FOO_YOUTUBE. That's practical, because that makes it possible to tag and use them in autoplaylists and generally, treat them like any other local song.
The only thing there is, which isn't much of an inconvenience anyway, is that Foobar2000 doesn't register the file type as an openable file. Even though it does open them, when you drag them into the window.
Title: Re: foo_youtube
Post by: TheQwertiest on 2018-12-13 13:35:54
@3dyd : I think I've found a bug (not sure if it caused by your component specifically):
1. I have a YT track in a playlist which no longer available on YT (e.g. https://www.youtube.com/watch?v=Ms-uKIw1rJs).
2. I'm trying to fetch art via `album_art_manager_v2::get()->open(handleToNonExistentYtTrack, artTypeGuid, abortCallback)`
3. This function blocks indefinitely somewhere in `foo_youtube.dll`. It also blocks all subsequent calls to `album_art_manager_v2::get()->open` even for valid items.

PS: I'm using the latest beta, but the problem is reproducible on the latest stable as well.
Title: Re: foo_youtube
Post by: eduardokbb on 2018-12-14 22:38:30
Hello. I'm trying to use this component to add youtube stations (live audio like this www.youtube.com/watch?v=3SakCDX_fGA), but I'm facing some intermittent stucks (the audio stops for a short time and then resumes). Is there some known bug for that or perhaps the component is not meant to work properly with live stations? Thank you for your attention and I'm really sorry for bad english.

Peace!

EDIT:

I forgot to say that there are absolutely no stucks when playing audio that is not live. I believe that if it was possible to delay and cache 3 seconds audio or something like that the problem would be solved. But I'm not a developer, don't know if what I'm suggesting here is even possible nor how complex would it be do such a thing. It's just something that came to mind. Thank you again!
Title: Re: foo_youtube
Post by: rds_correia on 2018-12-17 14:39:02
Does anyone know if there's something similar to foo_youtube for Android?
I mean, I'd like to use youtube to play music that I want on any Android audio player.
I know there are apps to search and download content from youtube such as NewPipe. I could run a search for 'bryan adams full album' and have download a big ~60 minutes mp4 file.
But then how would I cut the mp4 file exactly in the place where one song ends and the next song begins? And how would I rename the resulting files with the name of the artist and the name of the song?
The focus is to keep myself free of spotify and other cloud music suppliers.
Thanks in advance.
Cheers
Title: Re: foo_youtube
Post by: charlie_su1986 on 2019-01-11 15:01:31
I'm unable play live streams since yesterday:
Unable to open item for playback (Youtube Source: This video is unavailable. | Page analysis, no video found on Youtube URL)
Anyone have the same issue?
Title: Re: foo_youtube
Post by: eduardokbb on 2019-01-13 03:05:44
I'm unable play live streams since yesterday:
Unable to open item for playback (Youtube Source: This video is unavailable. | Page analysis, no video found on Youtube URL)
Anyone have the same issue?

Same issue here.  :'(
Title: Re: foo_youtube
Post by: Surfi on 2019-01-13 10:30:51
::

Workin' flawless here.

::
Title: Re: foo_youtube
Post by: 3dyd on 2019-01-14 22:26:26
Thanks for noticing. Problem when component fails to play live streams should be fixed in latest beta.
Title: Re: foo_youtube
Post by: 3dyd on 2019-01-14 22:30:52
And some news. I am finishing 3.0 and hope initial beta will be released to the end of this month. 2.x will receive only emergency or trivial updates until 3.0 stable is released.

Is there a way to make the plugin accept *.avs files?
There is no way in 2.x. 3.0 can do that.

@3dyd: is it possible to add `url+time` element to the context menu?
2.x can open URL in browser at current time. 3.0 also got context menu item 'Copy URL at current time'.

I appears that the Youtube view count often is not available when loading a Youtube track vie YTTM.
When loading a track via foo_youtube, this issue does not appear, view count is always available.
This might be unrelated since you say you have success via foo_youtube, but currently for some videos component fails to get view count due to change on the site (not sure when this started). Fixed in latest beta.

Also note that by design component does not perform analysis of track with overridden meta at the time when track gets added to foobar2000 playlist (not to slow down adding process). I.e. after such track is just added, it does not have any properties like view count unless these properties were provided via properties overriding (https://fy.3dyd.com/help/metadata/#Properties_overriding) or track was analyzed before and view count already existed in the cache.

The only thing there is, which isn't much of an inconvenience anyway, is that Foobar2000 doesn't register the file type as an openable file.
3.0 has this possibility.

This function blocks indefinitely somewhere in `foo_youtube.dll`.
Cannot reproduce. Component's log might have some clues (and they might be better with log context menu 'core -> trace').

I'm facing some intermittent stucks
I was able to reproduce this before, but now it works fine with seemingly the same component and foobar2000. My guess - it is related to connections negotiation (HLS playback performs new request every few seconds).

That time when I had intermittent stucks via foo_youtube downloader + ffmpeg decoder, if HLS download and decoding was handled entirely by ffmpeg (possible only in 3.0), ffmpeg from LAV Filters (uses Schannel https backend) was entirely unusable (long delays) when Zeranoe build (built with GnuTLS https backend) worked fine.

Anyway, if it is still a problem for you, there is a chance it is gone in 3.0 when using Zeranoe ffmpeg build.
Title: Re: foo_youtube
Post by: MojoBass on 2019-01-15 05:43:34
I appears that the Youtube view count often is not available when loading a Youtube track vie YTTM.
When loading a track via foo_youtube, this issue does not appear, view count is always available.
This might be unrelated since you say you have success via foo_youtube, but currently for some videos component fails to get view count due to change on the site (not sure when this started). Fixed in latest beta.
Solved with 2.3.5 beta 2. Thanks very much!!!
Title: Re: foo_youtube
Post by: Sergey77 on 2019-01-15 12:31:51
Hi there!
@3dyd, thank you for the good news!
Waiting for the new version of your component. Good luck and inspiration!
Title: Re: foo_youtube
Post by: TheQwertiest on 2019-01-16 14:32:11
Cannot reproduce. Component's log might have some clues (and they might be better with log context menu 'core -> trace').
Neither can I anymore... Perhaps smth has changed on YT side.
I'll post logs if/when the bug emerges again.

PS: For some reason I can't update LAV filters and VSFIlter anymore through foo_youtube: `Check for updates` and `Download` both result in `Feature not implemented` message.
PPS: Can't wait for v3 :D
Title: Re: foo_youtube
Post by: charlie_su1986 on 2019-01-16 15:35:32
Thanks for noticing. Problem when component fails to play live streams should be fixed in latest beta.

Thank you for the quick fix!

This isn't a problem for me, but just want to report that it takes 2.3.5_beta2 about 2 minutes to start a new live stream. Stop and restarting the stream is quicker but still takes 10-20 seconds
Title: Re: foo_youtube
Post by: 3dyd on 2019-01-17 20:01:06
For some reason I can't update LAV filters and VSFIlter anymore through foo_youtube: `Check for updates` and `Download` both result in `Feature not implemented` message.
Thank you. Should be fixed now in beta3.

@charlie_su1986
Could you check if 2.3.4 takes the same time to start? Because for me it takes not that much time, and changes in 2.3.5 are not supposed to affect this.
Title: Re: foo_youtube
Post by: Slender on 2019-01-18 01:42:50
Looks like 403 errors are back as well. Example video. https://www.youtube.com/watch?v=9w2RMBrmTsk
Title: Re: foo_youtube
Post by: charlie_su1986 on 2019-01-18 05:08:07
@3dyd
Well 2.3.4 doesn't work with live streams anymore, so now I can't check again.  When I was using versions <=2.3.4, and I use it daily, live streams would start in a few seconds.

I've tried all 3 options under the "media downloading" setting they don't seem to make any difference.  I tried playing the same stream in foobar and youtube side by side, foobar only lags behind youtube maybe 5-10 seconds, so you can rule out it buffering 2 minutes worth of audio. May be issue with establishing connections?

By the way, normal non-live streams starts quickly, no problems here.

@Slender
confirmed, unable to open that video.
Title: Re: foo_youtube
Post by: 3dyd on 2019-01-18 22:43:50
Thanks for notification. #403 error should be fixed in latest beta.

@charlie_su1986
Indeed, older version cannot be tested. Ok then, since playback works somehow, let's postpone investigation to 3.0 release. It has more options to try.
Title: Re: foo_youtube
Post by: Arheos on 2019-01-18 23:09:37
Tried a few videos which gave #403 in beta 3 and they play fine now. Cheers..
Title: Re: foo_youtube
Post by: eduardokbb on 2019-01-25 21:40:25
And some news. I am finishing 3.0 and hope initial beta will be released to the end of this month. 2.x will receive only emergency or trivial updates until 3.0 stable is released.

I'm facing some intermittent stucks
I was able to reproduce this before, but now it works fine with seemingly the same component and foobar2000. My guess - it is related to connections negotiation (HLS playback performs new request every few seconds).

That time when I had intermittent stucks via foo_youtube downloader + ffmpeg decoder, if HLS download and decoding was handled entirely by ffmpeg (possible only in 3.0), ffmpeg from LAV Filters (uses Schannel https backend) was entirely unusable (long delays) when Zeranoe build (built with GnuTLS https backend) worked fine.

Anyway, if it is still a problem for you, there is a chance it is gone in 3.0 when using Zeranoe ffmpeg build.

Thanks for your reply. Anxiously waiting for the 3.0 version!
Title: Re: foo_youtube
Post by: richard3840 on 2019-02-03 16:58:17
Hi. I have been having some issues getting the component to work with the foo_upnp (UPnP/DLNA Renderer) component.

Starting foobar and playing .foo_youtube file in media library locally. No problem. Log:

Code: [Select]
17:32:25, [warning] LAV Filters: LAV Splitter: not found
17:32:25, [warning] LAV Filters: LAV Video: not found
17:32:25, ffmpeg: lavf 57.83.100, lavc 57.107.100, lavu 55.78.100 (internal)
17:32:25, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
17:32:25, [warning] VSFilter: not found
17:32:59, #01, Page analysis, https://www.youtube.com/watch?v=SMPvdhPXvr4
17:32:59, #01, Opening given Youtube URL...
17:32:59, Activity #1 [unknown] added
17:32:59, Activity #2 [unknown] added
17:33:00, Activity #2 [unknown] removed
17:33:00, Activity #2 destroyed (lifetime 1.063s)
17:33:00, Activity #1 [unknown] removed
17:33:00, #01, Løvernes Konge - Hakuna Matata (Danish)
17:33:00, #01, Subtitles: Auto-generated (1), Auto-translated (104)
17:33:00, #01, Streams processing (14 found) ...
17:33:00, Activity #3 [unknown] added
17:33:00, Activity #1 destroyed (lifetime 1.172s)
17:33:01, Activity #3 [unknown] removed
17:33:01, #01, 1. 3GP 144p 176x144 10fps 2.22 MB
17:33:01, #01, 2. MP4 360p 534x360 30fps 12.73 MB
17:33:01, #01, 3. 3GP 240p 320x216 30fps 6.23 MB
17:33:01, #01, 4. MP4 240p 356x240 25fps 2.84 MB VO
17:33:01, #01, 5. MP4 360p 534x360 25fps 6.48 MB VO
17:33:01, #01, 6. M4A 44100Hz Stereo 127kbps 3.47 MB AO
17:33:01, #01, 7. MP4 144p 214x144 25fps 1.63 MB VO
17:33:01, #01, 8. OGG 44100Hz Stereo 114kbps 3.11 MB AO
17:33:01, #01, 9. WebM 240p 356x240 25fps 3.94 MB VO
17:33:01, #01, 10. WebM 360p 534x360 25fps 6.82 MB VO
17:33:01, #01, 11. OPUS 48000Hz Stereo 49kbps 1.35 MB AO
17:33:01, #01, 12. OPUS 48000Hz Stereo 65kbps 1.77 MB AO
17:33:01, #01, 13. OPUS 48000Hz Stereo 128kbps 3.48 MB AO
17:33:01, #01, 14. WebM 144p 214x144 25fps 2.01 MB VO
17:33:01, #01, Ready
17:33:01, Activity #3 destroyed (lifetime 0.578s)
17:33:01, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:33:01, Activity #4 [audio] added: Løvernes Konge - Hakuna Matata (Danish)
17:33:02, decoder init:  0.62s wall, 0.23s user + 0.02s system = 0.25s CPU (40.4%)


Restarting foobar, and trying again. Works great.

Using the foo_upnp (UPnP/DLNA Renderer) component to stream the same file over the network to a UPnP client, the log file looks a bit weird. It seems like it's trying to open the same file 10 times:


Code: [Select]
17:35:39, [warning] VSFilter: not found
17:35:39, [warning] LAV Filters: LAV Splitter: not found
17:35:39, [warning] LAV Filters: LAV Video: not found
17:35:39, ffmpeg: lavf 57.83.100, lavc 57.107.100, lavu 55.78.100 (internal)
17:35:39, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
17:36:12, #01, Page analysis, https://www.youtube.com/watch?v=SMPvdhPXvr4
17:36:12, #01, Opening given Youtube URL...
17:36:12, Activity #1 [unknown] added
17:36:12, Activity #2 [unknown] added
17:36:13, Activity #1 [unknown] removed
17:36:13, Activity #2 [unknown] removed
17:36:13, #01, Løvernes Konge - Hakuna Matata (Danish)
17:36:13, Activity #1 destroyed (lifetime 1.125s)
17:36:13, Activity #2 destroyed (lifetime 1.125s)
17:36:13, #01, Subtitles: Auto-generated (1), Auto-translated (104)
17:36:13, #01, Streams processing (14 found) ...
17:36:13, Activity #3 [unknown] added
17:36:13, Activity #3 [unknown] removed
17:36:14, Activity #3 destroyed (lifetime 0.547s)
17:36:14, #01, 1. 3GP 144p 176x144 10fps 2.22 MB
17:36:14, #01, 2. MP4 360p 534x360 30fps 12.73 MB
17:36:14, #01, 3. 3GP 240p 320x216 30fps 6.23 MB
17:36:14, #01, 4. MP4 240p 356x240 25fps 2.84 MB VO
17:36:14, #01, 5. MP4 360p 534x360 25fps 6.48 MB VO
17:36:14, #01, 6. M4A 44100Hz Stereo 127kbps 3.47 MB AO
17:36:14, #01, 7. MP4 144p 214x144 25fps 1.63 MB VO
17:36:14, #01, 8. OGG 44100Hz Stereo 114kbps 3.11 MB AO
17:36:14, #01, 9. WebM 240p 356x240 25fps 3.94 MB VO
17:36:14, #01, 10. WebM 360p 534x360 25fps 6.82 MB VO
17:36:14, #01, 11. OPUS 48000Hz Stereo 49kbps 1.35 MB AO
17:36:14, #01, 12. OPUS 48000Hz Stereo 65kbps 1.77 MB AO
17:36:14, #01, 13. OPUS 48000Hz Stereo 128kbps 3.48 MB AO
17:36:14, #01, 14. WebM 144p 214x144 25fps 2.01 MB VO
17:36:14, #01, Ready
17:36:14, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:14, Activity #4 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:14, decoder init:  0.61s wall, 0.28s user + 0.03s system = 0.31s CPU (51.0%)

17:36:14, Activity #4 [audio.other] removed
17:36:14, Activity #4 destroyed (lifetime 0.688s)
17:36:14, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:14, Activity #5 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:15, decoder init:  0.51s wall, 0.22s user + 0.02s system = 0.23s CPU (45.7%)

17:36:15, Activity #5 [audio.other] removed
17:36:15, Activity #5 destroyed (lifetime 0.547s)
17:36:15, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:15, Activity #6 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:15, decoder init:  0.51s wall, 0.27s user + 0.00s system = 0.27s CPU (52.1%)

17:36:15, Activity #6 [audio.other] removed
17:36:15, Activity #6 destroyed (lifetime 0.532s)
17:36:15, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:15, Activity #7 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:16, decoder init:  0.52s wall, 0.25s user + 0.06s system = 0.31s CPU (60.5%)

17:36:16, Activity #7 [audio.other] removed
17:36:16, Activity #7 destroyed (lifetime 0.609s)
17:36:16, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:16, Activity #8 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:17, decoder init:  0.51s wall, 0.25s user + 0.03s system = 0.28s CPU (55.0%)

17:36:17, Activity #8 [audio.other] removed
17:36:17, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:17, Activity #9 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:17, Activity #8 destroyed (lifetime 0.594s)
17:36:17, decoder init:  0.52s wall, 0.27s user + 0.00s system = 0.27s CPU (51.4%)

17:36:18, Activity #9 [audio.other] removed
17:36:18, Activity #9 destroyed (lifetime 0.703s)
17:36:18, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:18, Activity #10 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:18, decoder init:  0.51s wall, 0.25s user + 0.02s system = 0.27s CPU (52.5%)

17:36:18, Activity #10 [audio.other] removed
17:36:18, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:18, Activity #11 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:18, Activity #10 destroyed (lifetime 0.609s)
17:36:19, decoder init:  0.51s wall, 0.28s user + 0.00s system = 0.28s CPU (55.1%)

The song plays fine on the client, and you can also play other songs after that.
But the next time foobar is restarted, something happens:

Code: [Select]
17:43:40, [warning] VSFilter: not found
17:43:40, ffmpeg: lavf 57.83.100, lavc 57.107.100, lavu 55.78.100 (internal)
17:43:40, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
17:43:40, [warning] LAV Filters: LAV Splitter: not found
17:43:40, [warning] LAV Filters: LAV Video: not found
17:43:41, [warning] [fsf:meta+tech] could not read 565 bytes

All the foo_youtube files have disappeared from the media library. (I tested with having only one file in the media library, but otherwise there would be a "could not read" line for each file.)

Restarting foobar at this point yields the same log result. Unable to load the files.
In order to get them back, you have to manually open a foo_youtube file. And then restart foobar. But i'm not that sure about this one. Sometimes that doesn't work either, and there just have to go some time / fiddling around i think.
Title: Re: foo_youtube
Post by: gr8cx on 2019-02-04 08:04:53
hi 3dyd!
foo_youtube 2.3.3 not open random videos with #403 error
i download foo_youtube 2.3.5 from download page but this error #403 stayed

WINDOWS XP SP3
---------------------------
Youtube Source
---------------------------
libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)

LAV Filters: LAV Splitter 0.69 (external)

LAV Filters: LAV Video 0.69 (external)

ffmpeg: lavf 57.59.100, lavc 57.67.100, lavu 55.43.100, lavr 3.2.0 (LAV Filters)

VSFilter 3.0.0.233 (system, alt: 0.69 (external))


---------------------------
ОК  
---------------------------
Title: Re: foo_youtube
Post by: Slender on 2019-02-05 08:35:19
Can you provide an example video where this is occurring? I'm not seeing this on the normal videos that tend to fail in this situation.
Title: Re: foo_youtube
Post by: gr8cx on 2019-02-05 09:18:56
Can you provide an example video where this is occurring? I'm not seeing this on the normal videos that tend to fail in this situation.

for example https://www.youtube.com/watch?v=Ip76eoA1eDM
in video frame 1) status Opening... 2) Stopped.
but sound exists only no video

your video open good https://www.youtube.com/watch?v=9w2RMBrmTsk
Title: Re: foo_youtube
Post by: Slender on 2019-02-05 10:51:11
Hmm. Might be one for 3dyd to check.
Title: Re: foo_youtube
Post by: arch21 on 2019-02-05 13:47:25
try alternative SSL backend from download page since you are using WinXP.
Title: Re: foo_youtube
Post by: gr8cx on 2019-02-06 03:14:01
try alternative SSL backend from download page since you are using WinXP.

has tried alternative SSL backend from download page - but nothing do not change
1) Opening... 2) Stopped. but sound track from video playing
for example https://www.youtube.com/watch?v=0KZAcy8KjIM
Title: Re: foo_youtube
Post by: 3dyd on 2019-02-06 18:26:41
@richard3840
It might be related to component initialization process. Custom file gets accessed when initialization has not yet been finished. Try 3.0. Initialization was redesigned there so the most critical parts are initialized before all components start getting initialization callback notifications.

@gr8cx
So this is not #403 error since only video refuses to play. Well, you also better try 3.0 since 2.x anyway won't get any updates except critical fixes for Youtube.
Title: Re: foo_youtube
Post by: Slender on 2019-02-06 18:57:36
foo_youtube 3.0 is out? Odd, it didn't appear when checking for updates. This is with check for beta when running stable enabled.
Title: Re: foo_youtube
Post by: richard3840 on 2019-02-06 19:02:36
Thanks @3dyd
I tried uninstalling "foo_youtube_2.3.5", restarting, installing the "foo_youtube_3.0_beta1" version. But it seems it still gives the "could not read" error on the files.
I opened the file from folder, and it played, but gave the error. Each time the file is played from playlist, it seems the media library is trying to scan it, but fails (as seen with the multiple "could not read" below).

Code: [Select]
19:37:04, [warning] VSFilter: not found
19:37:04, youtube-dl: (none)
19:37:04, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
19:37:04, ffmpeg: lavf 58.20.100, lavc 58.35.100, lavu 56.22.100 (internal)
19:37:04, [warning] LAV Filters: LAV Splitter: not found
19:37:04, [warning] LAV Filters: LAV Video: not found
19:37:04, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:22, #01, Analysis, https://www.youtube.com/watch?v=SMPvdhPXvr4
19:38:22, #01, Opening given Youtube URL...
19:38:24, #01, Subtitles: Auto-generated (1)
19:38:24, #01, Streams processing (14 found) ...
19:38:24, #01, Ready
19:38:24, [audio] opening, webm (https), decoder: foo_youtube
19:38:25, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:30, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:36, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:38, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:39, [warning] [fsf:meta+tech] could not read 571 bytes

I tried removing the folder from being monitored by the media library and restarting.

Code: [Select]
19:52:34, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
19:52:34, youtube-dl: (none)
19:52:34, ffmpeg: lavf 58.20.100, lavc 58.35.100, lavu 56.22.100 (internal)
19:52:34, [warning] LAV Filters: LAV Splitter: not found
19:52:34, [warning] LAV Filters: LAV Video: not found
19:52:34, [warning] VSFilter: not found

The log shows normal, without the "could not read" error.

The moment i add the folder with foo_youtube file again, the "could not read" line appears in the log.

Code: [Select]
19:52:35, [warning] [fsf:meta+tech] could not read 571 bytes

Unlike the previous version, restarting does not seem to sometimes solve it, from what i tried.
Title: Re: foo_youtube
Post by: 3dyd on 2019-02-06 19:35:47
@Slender
Thanks. I've incorrectly updated version on the site. It should be fine now.

@richard3840
Thanks for checking with 3.0. I will take a look on my side.
Title: Re: foo_youtube
Post by: Slender on 2019-02-06 20:16:44
Some initial thoughts on 3.0, overall a good release :). I may post later with additional thoughts as I get familiar with this version
Youtube-dl. I tried using the copy of youtube-dl I installed with Python using pip, but it seems that the component rejected it, nothing would load. It did work with the standalone download from GitHub, however. Would it be possible to add support for the Python version? In addition, it seems that youtube-dl links are presented as streams, which makes it impossible to seek through a youtube-dl video.
Deleting history from the keyboard. It seems I can't quite get this to work. Pressing the delete key when an item is selected seems to just delete the selection, but the item remains in the history.
Chunked DASH streams.
Do these still require an external build of Ffmpeg? I tried a video with one and the component dropped it.
Title: Re: foo_youtube
Post by: arch21 on 2019-02-07 05:41:03
Just tried v3, it doesn't not display video on local files like the prior. Is it still possible?
Title: Re: foo_youtube
Post by: 3dyd on 2019-02-07 23:13:14
@richard3840
Please try beta2. Fixed two bugs, both related to *.foo_youtube files support.

I tried using the copy of youtube-dl I installed with Python using pip, but it seems that the component rejected it, nothing would load. It did work with the standalone download from GitHub, however. Would it be possible to add support for the Python version?
Should be fixed in beta2, You also may prefer new 'System' source that searches youtube-dl in PATH.

In addition, it seems that youtube-dl links are presented as streams, which makes it impossible to seek through a youtube-dl video.
youtube-dl is used to get media files/streams URLs from given page URL. Playback goes independently of youtube-dl. Whether a stream is seekable depends on its format and used decoder.

Deleting history from the keyboard. It seems I can't quite get this to work. Pressing the delete key when an item is selected seems to just delete the selection, but the item remains in the history.
This is about combo boxes in 'Search on Site' and 'Load channel or playlist...' windows. I've updated changelog to prevent confusion.

Chunked DASH streams.
Do these still require an external build of Ffmpeg? I tried a video with one and the component dropped it.
*Chunked* DASH streams are yet unsupported and were never supported. Their support will hopefully be added later (not in initial release).

Just tried v3, it doesn't not display video on local files like the prior. Is it still possible?
This is disabled by default and can be enabled by unchecking option Decoding -> Video -> Process only tracks played by the component. Honestly I am not sure what is better for default. If this option is unchecked, component analyses every played file to check if it has video stream. This does not look good for default behavior.
Title: Re: foo_youtube
Post by: TimsFong on 2019-02-08 06:04:25
I tryed beta1 and beta2,Followed this way"unchecking option Decoding -> Video -> Process only tracks played by the component",For the local video also not working.
Title: Re: foo_youtube
Post by: arch21 on 2019-02-08 06:57:51
Yes, it doesn't show with just uncheck the option, I tried to set youtube-dl to none to display the video.
Title: Re: foo_youtube
Post by: Slender on 2019-02-08 13:56:09
Another bug I found. It seems that even when a custom YouTube API key is set, when copying settings to the clipboard, the yt_api_key parameter incorrectly states that it is set to false. The API key still works, however.
Title: Re: foo_youtube
Post by: Sergey77 on 2019-02-08 16:56:41
Hi there!
@3dyd, I noticed follows:
1. If the window "Criteria Repository: video_downloader" is empty, the error occurs when playing the video items (see pic. error.jpg).
2. Not all regions are available for review (see pic. region.jpg). For "language", the behavior is the same. Maybe need to add scrolling.
3. I can not choose the external ffmpeg (see pic. ffmpeg.jpg). Perhaps therefore there is still no synchronization of sound and video when playing HLS links.
4. At the beginning HLS link playback, the video freezes and after a short time another playback continues (this behavior is the same in previous versions).

In general, I really liked the new version! It is noticeable that many improvements have been made.
I hope that you will continue to improve and develop your great component.
Thank you!
Title: Re: foo_youtube
Post by: zeremy on 2019-02-08 20:13:30
Yes, it doesn't show with just uncheck the option, I tried to set youtube-dl to none to display the video.

@3dyd 
youtube-dl analysis (when enabled) is called on local files and failing of course.

Code: [Select]
22:11:26, [debug] #05, active tasks: 1
22:11:26, [debug] #05, youtube-dl --no-check-certificate --no-call-home --youtube-skip-dash-manifest --no-playlist --playlist-end 1 -J file:///C:/Users/laptop/Videos/YouTube%20Video/Depeche%20Mode%20-%20Wrong.mkv
22:11:26, [debug] [video@045439B0] open-from-replaced: received: <none>
22:11:28, [warning] #05, WARNING: Could not send HEAD request to file:///C:/Users/laptop/Videos/YouTube%20Video/Depeche%20Mode%20-%20Wrong.mkv: <urlopen error file:// scheme is explicitly disabled in youtube-dl for security reasons>
22:11:28, [warning] #05, ERROR: Unable to download webpage: <urlopen error file:// scheme is explicitly disabled in youtube-dl for security reasons> (caused by URLError('file:// scheme is explicitly disabled in youtube-dl for security reasons'))
22:11:28, [warning] #05, youtube-dl finished with error code 1
22:11:28, [debug] #05, active tasks: 0
22:11:28, [debug] #05,  2.11s wall, 0.05s user + 0.03s system = 0.08s CPU (3.7%)

22:11:28, [error] #05, Analysis, no video found on youtube-dl URL
22:11:28, #05, Ready
22:11:28, [debug] video: could not establish item: Youtube Source: WARNING: Could not send HEAD request to file:///C:/Users/laptop/Videos/YouTube%20Video/Depeche%20Mode%20-%20Wrong.mkv: <urlopen error file:// scheme is explicitly disabled in youtube-dl for security reasons> | ERROR: Unable to download webpage: <urlopen error file:// scheme is explicitly disabled in youtube-dl for security reasons> (caused by URLError('file:// scheme is explicitly disabled in youtube-dl for security reasons')) | youtube-dl finished with error code 1 | Analysis, no video found on youtube-dl URL
22:11:28, [debug] video: no media in item
Title: Re: foo_youtube
Post by: 3dyd on 2019-02-09 00:53:11
Yep. Limited youtube-dl to be used only for http:// and https:// URLs.

Another bug I found. It seems that even when a custom YouTube API key is set, when copying settings to the clipboard, the yt_api_key parameter incorrectly states that it is set to false. The API key still works, however.
Actually it was inverted (was true if key is not set). Fixed in beta3.

1. If the window "Criteria Repository: video_downloader" is empty, the error occurs when playing the video items (see pic. error.jpg).
Fixed in beta3.

2. Not all regions are available for review (see pic. region.jpg). For "language", the behavior is the same. Maybe need to add scrolling.
I could not find sane way to deal with this automatically thus added option Search -> Break long menu by screen height.

3. I can not choose the external ffmpeg (see pic. ffmpeg.jpg).
I suppose "ffmpeg-4.1-win32-st..." means static linkage. Component requires 32bit shared libraries (ffmpeg-4.1-win32-shared).

Perhaps therefore there is still no synchronization of sound and video when playing HLS links.
Unfortunately there is nothing new regarding HLS video playback and synchronization. It still does not work in 3.0.
Title: Re: foo_youtube
Post by: gr8cx on 2019-02-09 11:11:07
hi 3dyd!
i download movie file mp4 from cinema-site
can i open this file in foo_youtube from hard-disk?
Title: Re: foo_youtube
Post by: TheQwertiest on 2019-02-09 11:44:55
@3dyd : fb2k with latest v3.x foo_youtube crashed when loading art for YT track via fb2k api. 

Memory dump: see attached archive.
Link to the crashing call: https://github.com/TheQwertiest/foo_spider_monkey_panel/blob/db9468141eebf50deb642a9014250c8fece76979/foo_spider_monkey_panel/utils/art_helpers.cpp#L274
pdb for my component which invoked the said call (in case you need them): https://ci.appveyor.com/api/buildjobs/o5b22epawi4ybe5d/artifacts/_result%2FWin32_Release%2Ffoo_spider_monkey_panel_pdb.zip

[EDIT]: Possibly multi-threading problems? Since said call is invoked on multiple helper threads simultaneously rather than sequentially on the main thread,
Title: Re: foo_youtube
Post by: tt-1995 on 2019-02-09 20:18:40
@3dyd foo_youtube works perfectly for me, except for the video playback visualization.

When I try to add it as a new element to my theme, an error is returned ("No video frame instance"). Same when adding it to a scratchbox. However, when I call it using View > Visualizations > Video, it works just fine.

I would really appreciate it if you could assist me. I am using foobar2000 1.4.2 (DUI) and foo_youtube 2.3.5.
Title: Re: foo_youtube
Post by: 3dyd on 2019-02-09 22:20:15
@gr8cx
Well, foobar2000 can play audio from it and foo_youtube can play video (ensure that option 'Decoding -> Video -> Process only tracks played by the component' is unchecked). Though as for me, better to use video player.

@TheQwertiest
Yes, it seems to be caused by unsynchronized initialization of block scope variable with static storage duration. I forgot that synchronization is disabled (https://docs.microsoft.com/en-us/cpp/build/reference/zc-threadsafeinit-thread-safe-local-static-initialization?view=vs-2017) in the project. If I am right, it should be fixed in beta4.

@tt-1995
This happens because it relies on 'visibility change' callback and DUI does not send it to UIE being added. Video UIE should be there at next program run. You also can enforce visibility change callback by minimizing and restoring foobar2000 main window.
Title: Re: foo_youtube
Post by: Sergey77 on 2019-02-10 09:34:58
@3dyd,
1. Is the value "(seconds)" correct at Decoding settings menu?
2. Pressing the up arrow decreases the value and the set value is not saved. So it should be? (See pic. settings.jpg)
3. Option "Break long menu by screen height" would also be useful for the subtitle language selection menu.
4. What values can be entered in the "Play content types" field in advanced settings?
Thanks!
Title: Re: foo_youtube
Post by: Sergey77 on 2019-02-10 15:32:47
5. Is it possible to limit the number of visualization lines in the activity panel? (or set constant number of lines).
For example by select: no more than one or two; or only for audio or only for video; or not limited as it is now by default.
This is useful when limiting height screen size (see pic. Activity.jpg).
Title: Re: foo_youtube
Post by: arch21 on 2019-02-10 16:11:36
I see the status of VSFilter is not found even when I have it installed correctly if Subtitles is disabled
Title: Re: foo_youtube
Post by: richard3840 on 2019-02-10 18:56:51
Just tried "foo_youtube_3.0_beta4", and it seems to work well. No disappearing songs from the media library. Thanks for the fix, and for the great component @3dyd .
Title: Re: foo_youtube
Post by: tt-1995 on 2019-02-11 00:38:24
@tt-1995
This happens because it relies on 'visibility change' callback and DUI does not send it to UIE being added. Video UIE should be there at next program run. You also can enforce visibility change callback by minimizing and restoring foobar2000 main window.

Thanks, visualization works great after restarting application (visualization now runs within a tab).
Title: Re: foo_youtube
Post by: arch21 on 2019-02-11 09:44:54
Could you make Log to show at the end of it just like foobar2000's Console right from when we open it? thanks
Title: Re: foo_youtube
Post by: TheQwertiest on 2019-02-11 10:20:38
@TheQwertiest
Yes, it seems to be caused by unsynchronized initialization of block scope variable with static storage duration. I forgot that synchronization is disabled (https://docs.microsoft.com/en-us/cpp/build/reference/zc-threadsafeinit-thread-safe-local-static-initialization?view=vs-2017) in the project. If I am right, it should be fixed in beta4.
Yep, beta4 fixed those crashes, thanks! =)

PS: Condolences on having to supporting Window XP...
Title: Re: foo_youtube
Post by: 3dyd on 2019-02-11 23:04:45
1. Is the value "(seconds)" correct at Decoding settings menu?
Yes. Cache entry is treated as expired after number of seconds specified there.

2. Pressing the up arrow decreases the value and the set value is not saved. So it should be? (See pic. settings.jpg)
Fixed in beta5.

3. Option "Break long menu by screen height" would also be useful for the subtitle language selection menu.
That menu does not fit on the screen in your case?

4. What values can be entered in the "Play content types" field in advanced settings?
These "play" options are obsolete. Removed in beta5. "non-fs extensions" option is a workaround for foobar2000 SDK corner case (it tries to open album art like https://www.youtube.com/front.jpg and fails with "unsupported format or corrupted file" error). AFAIK there was never a need to edit this setting so it is now hard-coded.

5. Is it possible to limit the number of visualization lines in the activity panel? (or set constant number of lines).
For example by select: no more than one or two; or only for audio or only for video; or not limited as it is now by default.
No. This is technical UI and it displays all opened connections.

I see the status of VSFilter is not found even when I have it installed correctly if Subtitles is disabled
For now adjusted it to display nothing in "Found" column if subtitles are disabled. Later it is probably better to remove separate "Enable subtitles" checkbox and add "None" source for VSFitler.

Could you make Log to show at the end of it just like foobar2000's Console right from when we open it? thanks
Fixed in beta5.
Title: Re: foo_youtube
Post by: arch21 on 2019-02-11 23:19:13
Quote
[beta 5] removed obsolete options from Advanced preferences tree. There are no Youtube Source group now
A bit sad for this, I just found by filling "Play extensions", it could behave like DirectShow input, which accept any format that can be decoded by LAV Filters. But I understand your decision :)
Thanks for the bug fix.
Title: Re: foo_youtube
Post by: Sergey77 on 2019-02-12 17:13:47
3. Option "Break long menu by screen height" would also be useful for the subtitle language selection menu.
That menu does not fit on the screen in your case?
3dyd,
I had case when that menu did not fit on the screen. But now I didn’t find this clip to be sure.
I think it is necessary to continue testing to make sure.
Thanks!
Title: Re: foo_youtube
Post by: Slender on 2019-02-14 20:34:44
It seems that some youtu.be short URLs aren't being processed by the component properly, even with process unknown URLs checked, example: http://youtu.be/b0gyQMJHQ78.
Title: Re: foo_youtube
Post by: 3dyd on 2019-02-19 14:05:05
Thanks for noticing. It should be fixed in beta6.
Title: Re: foo_youtube
Post by: thecircusfreak on 2019-02-19 15:13:11
Everything works fine here (b5).
A small issue I found is that the Status button on Maintenance tab reports it cant parse the version  number of youtube-dl.

It does work(I checked),  it just cant parse version number. Youtube-dl is installed via pip, python/scripts in my user PATH var, in foo_youtube I have selected as source for youtube-dl as 'system'.
Title: Re: foo_youtube
Post by: Slender on 2019-02-19 16:54:46
Another bug I noticed, it seems that channel playlists are not recognized under auto updated playlists. I have to use the uploads playlist to get the channel to appear there, rather than just the channel playlist on its own.
Title: Re: foo_youtube
Post by: 3dyd on 2019-02-20 21:32:20
the Status button on Maintenance tab reports it cant parse the version  number of youtube-dl.
Inability to get version number is an error only for 'Managed' source. For other ones it does not actually make any difference. And in case of pip-installed youtube-dl this is expected behavior. I will lower log level for this message for non-managed sources so it won't appear in Console unless you select more verbose log level than the default one. Report from Status button will retain it - as to me, it is better to leave this one as is.

it seems that channel playlists are not recognized under auto updated playlists
I suppose what you are talking about is actually a channel, not channel playlist. 3.0 got separate track type for channels. More info is here: Exploring Youtube channels (https://fy.3dyd.com/changelog/3.0#Exploring_Youtube_channels). And since 'auto-updated playlists' feature works with playlists, you need to get some from the channel (either uploads playlist or real playlists that channel contains).
Title: Re: foo_youtube
Post by: thecircusfreak on 2019-02-20 23:33:13
Although I understand search isn't quite finished, when you set duration search doesn't query at all.

and 2 minor ideas:
-In "Search on site" window, maybe should always focus on searchbox when opened?
-An option to append the query string  when you have selected playlist name as destination in search. (or if just the playlist name contains %s, it should make the substitution automatically)

Thank you for your work on this
Title: Re: foo_youtube
Post by: eduardokbb on 2019-02-20 23:41:57
And some news. I am finishing 3.0 and hope initial beta will be released to the end of this month. 2.x will receive only emergency or trivial updates until 3.0 stable is released.

I'm facing some intermittent stucks
I was able to reproduce this before, but now it works fine with seemingly the same component and foobar2000. My guess - it is related to connections negotiation (HLS playback performs new request every few seconds).

That time when I had intermittent stucks via foo_youtube downloader + ffmpeg decoder, if HLS download and decoding was handled entirely by ffmpeg (possible only in 3.0), ffmpeg from LAV Filters (uses Schannel https backend) was entirely unusable (long delays) when Zeranoe build (built with GnuTLS https backend) worked fine.

Anyway, if it is still a problem for you, there is a chance it is gone in 3.0 when using Zeranoe ffmpeg build.

Just to give a feedback, the stuck problem is gone with decoder setting (Foobar2000 > foo_youtube > ffmpeg).
With decoder setting (foo_youtube > ffmpeg > foobar2000) it seems to be fine, but I didn't test enough time to confirm that.
The other decoder setting (ffmpeg > foo_youtube > foobar2000) plays for 3 seconds and stucks. Not an intermittent one, it just stucks at 3 seconds.

Thank you for this great update, now I'm able to hear youtube radio stations!
Title: Re: foo_youtube
Post by: 3dyd on 2019-02-26 22:38:12
when you set duration search doesn't query at all.
Fixed in beta7.

In "Search on site" window, maybe should always focus on searchbox when opened?
I had complains on both ways in the past, the current one and the one that you suggest. So it was made configurable. In 2.x it is part of search config menu. In 3.0 it was moved out of this menu (since it has nothing with actual search) and now resides in system menu -> "Initial focus to search box".

An option to append the query string  when you have selected playlist name as destination in search.
Sounds good. Added support for %search_query% field. And now component uses titleformatting when constructing names for specific playlists.

Just to give a feedback, the stuck problem is gone with decoder setting (Foobar2000 > foo_youtube > ffmpeg).
Glad to hear that. I guess you have some decoder that can handle HLS streams (maybe foo_input_ffmpeg with proper ffmpeg.exe). Alternative way is to use 'External' source in 'Maintenance -> Third-party binaries -> ffmpeg', select up to date build from Zeranoe, and choose decoder setting starting with 'ffmpeg >'.
Title: Re: foo_youtube
Post by: eduardokbb on 2019-02-28 04:57:28
Just to give a feedback, the stuck problem is gone with decoder setting (Foobar2000 > foo_youtube > ffmpeg).
Glad to hear that. I guess you have some decoder that can handle HLS streams (maybe foo_input_ffmpeg with proper ffmpeg.exe). Alternative way is to use 'External' source in 'Maintenance -> Third-party binaries -> ffmpeg', select up to date build from Zeranoe, and choose decoder setting starting with 'ffmpeg >'.

I downloaded Zeranoe's binaries but I'm getting a hard time to make foo_youtube recognize it. I unzipped everything at "C:\ffmpeg", registered at system variables (I'm able to access ffmpeg without having to write the entire path for the .exe through cmd). When I'm in foo_youtube panel in 'Maintenance -> Third-party binaries -> ffmpeg', I select External and point it to "C:\ffmpeg\bin". Foo_youtube doesn't finds ffmpeg. Am I doing it right?
(https://a.radikal.ru/a21/1902/0a/5ceab0394261.png)
Thank you for your support.
Title: Re: foo_youtube
Post by: Slender on 2019-02-28 06:03:34
Are you using the 32-bit shared version? The component requires that.
Title: Re: foo_youtube
Post by: eduardokbb on 2019-02-28 16:59:10
Are you using the 32-bit shared version? The component requires that.

You got it! I downloaded the static version, changing it with the shared one worked tip top. Thank you very much!
Title: Re: foo_youtube
Post by: ApacheReal on 2019-03-06 07:35:36
Hello.

With the official version you can view the live streaming of a radio that also broadcasts as a TV channel.

In the beta version, I can't do that.

I have to set something different or still has not been implemented in the beta version.

Thank you

A video can do better understand. https://www.youtube.com/watch?v=VlMqvaErjak

The skin is not found is my change of DarkOne
Title: Re: foo_youtube
Post by: 3dyd on 2019-03-06 14:41:15
Good news. A week ago LAV Filters changed TLS backend from Schannel to GnuTLS and that drastically improved live video playback. So everyone interested in live video playback is encouraged to update LAV Filters to 0.73.1-28 or above (LAV Filters Nightly Builds (https://files.1f0.de/lavf/nightly/)).

@ApacheReal
It is hard to say anything without the log and your settings. You can use menu Help -> Youtube Source -> Report a problem, and additionally copy Console output after component fails to start playback.
Title: Re: foo_youtube
Post by: ApacheReal on 2019-03-06 16:03:30
Good news. A week ago LAV Filters changed TLS backend from Schannel to GnuTLS and that drastically improved live video playback. So everyone interested in live video playback is encouraged to update LAV Filters to 0.73.1-28 or above (LAV Filters Nightly Builds (https://files.1f0.de/lavf/nightly/)).

@ApacheReal
It is hard to say anything without the log and your settings. You can use menu Help -> Youtube Source -> Report a problem, and additionally copy Console output after component fails to start playback.

Log console:

Launching ffprobe:
foobar2000\ffmpeg\bin\ffprobe.exe" -of xml -show_format -show_streams -show_chapters -hide_banner "https://capital_tv-lh.akamaihd.net/i/CapitalTv_1@183098/index_5_av-p.m3u8?sd=10&rebase=on"
........   metadb.RawPath   ERROR
Launching ffmpeg:
foobar2000\ffmpeg\bin\ffmpeg.exe" -i "https://capital_tv-lh.akamaihd.net/i/CapitalTv_1@183098/index_5_av-p.m3u8?sd=10&rebase=on" -map 0:1 -f w64 -acodec pcm_f32le -
........   metadb.RawPath   ERROR

Launching ffprobe:
foobar2000\ffmpeg\bin\ffprobe.exe" -of xml -show_format -show_streams -show_chapters -hide_banner "https://capital_tv-lh.akamaihd.net/i/CapitalTv_1@183098/index_5_av-p.m3u8?sd=10&rebase=on"
Launching ffmpeg:
foobar2000\ffmpeg\bin\ffmpeg.exe" -i "https://capital_tv-lh.akamaihd.net/i/CapitalTv_1@183098/index_5_av-p.m3u8?sd=10&rebase=on" -map 0:1 -f w64 -acodec pcm_f32le -

Setting:

https://ibb.co/YdbzQrq
https://ibb.co/khytZXH


Title: Re: foo_youtube
Post by: arch21 on 2019-03-07 08:08:40
Audio Playback quality rule test show something like image on attachment, seems happened on local files
Title: Re: foo_youtube
Post by: askold on 2019-03-11 16:48:06
foobar 1.4.3 crashes on youtube videos.
Youtube Source 3.0 beta 7, Windows XP sp3
----
reported on fy.3dyd.com w/o foobar dump files
Title: Re: foo_youtube
Post by: Slender on 2019-03-16 02:18:55
Hi @3dyd. I noticed that with the latest beta, support for /user/live links is broken. When I try to get the live stream with a /live link, the component will get the channel playlist instead of the stream. Example. https://www.youtube.com/user/Krelez/live
Title: Re: foo_youtube
Post by: thecircusfreak on 2019-03-16 19:51:04
foobar 1.4.3 crashes on youtube videos.
Youtube Source 3.0 beta 7, Windows XP sp3
----
reported on fy.3dyd.com w/o foobar dump files
I think there is a regression relative to the 2.X versions. If you leave a youtube track paused and you try to play it again after some hours, cpu spikes and foobar2000 becomes barely recoverable . In past versions it would popup the console  with read error (as the steam becomes expired), and  you could resolve it easily by just replaying the track from the beginning.

I might post sth more specific whenever I am able to track it better.
Title: Re: foo_youtube
Post by: arch21 on 2019-03-17 07:00:58
Does foobar2000 with foo_youtube suppose to lock installed LAV Filters dll when it already set as managed? I notice when I have LAV installed, I would like to update it and same time foobar2000 was running, it forced me to close foobar2000. I did this because I wanted to copy LAV from Program Files to managed folder.

edit: Okay, I didn't see on status, it show system, alt. So does it prefer LAV on system by default?
Title: Re: foo_youtube
Post by: 3dyd on 2019-03-23 10:52:52
@ApacheReal
Should be fixed in beta8.

Audio Playback quality rule test show something like image on attachment, seems happened on local files
Fixed in beta8. Now it falls back to file name if title is unknown. Note though that now it does not analyze local files when starting video playback (what I suppose was the use case from your screenshot), so there likely will be no items at all.

foobar 1.4.3 crashes on youtube videos.
Youtube Source 3.0 beta 7, Windows XP sp3
----
reported on fy.3dyd.com w/o foobar dump files
I was not able to reproduce the crash. It might be related to customized criteria, so it would be great if you could provide steps to reproduce or send crash dump.

I noticed that with the latest beta, support for /user/live links is broken.
Fixed in beta8.

I think there is a regression relative to the 2.X versions. If you leave a youtube track paused and you try to play it again after some hours, cpu spikes and foobar2000 becomes barely recoverable . In past versions it would popup the console  with read error (as the steam becomes expired), and  you could resolve it easily by just replaying the track from the beginning.
Hmm, are you talking about live streams? Because in case of regular videos 2.x was downloading them regardless of pause state, so there should have been no read error.

Does foobar2000 with foo_youtube suppose to lock installed LAV Filters dll when it already set as managed?
...
edit: Okay, I didn't see on status, it show system, alt. So does it prefer LAV on system by default?
It prefers newer version (or one from the system if they are equal). This behavior comes from times when there was _preconf package and does not seem to be a good approach nowadays. I'll change it in next update.
Title: Re: foo_youtube
Post by: thecircusfreak on 2019-03-28 01:53:07
Hmm, are you talking about live streams? Because in case of regular videos 2.x was downloading them regardless of pause state, so there should have been no read error.

No, I am talking normal youtube videos. (actually audios, I don't use the video features).
It doesn't happen always so whenever I am able to track it better I ll post more about it.
Title: Re: foo_youtube
Post by: arch21 on 2019-03-28 09:15:19
force default settings on LAV Filters, the second one, I don't know whats the use, but its not toggleable
Title: Re: foo_youtube
Post by: 3dyd on 2019-04-03 00:29:30
Thanks for noticing. Fixed in beta9. First one controls whether to use default settings for filters installed in the system. The second one - for 'local' filters (External/Managed). It is preferable to have different default behavior in these two cases, thus there are two separate options.
Title: Re: foo_youtube
Post by: throwaway on 2019-04-06 07:48:42
In the latest beta (beta 9), videos/tracks with the format code 251 can't be opened with foo_youtube/curl, and can only be used within youtube-dl. When playing videos with opus 160kbps audio, curl receives a 403 error (as it would with any web browser), but youtube-dl -f 251 works just fine.
Title: Re: foo_youtube
Post by: Slender on 2019-04-07 15:50:54
It seems that trying to play live streams causes foobar2000 to crash, example URL: https://www.youtube.com/watch?v=21X5lGlDOfg.
Title: Re: foo_youtube
Post by: Slender on 2019-04-08 15:28:18
Update. It seems the crash only happens when "Probe each stream found during the analysis" is checked.
Title: Re: foo_youtube
Post by: 3dyd on 2019-04-15 22:36:17
@Slender
Reproduced, thanks to your update. It should be fixed in beta10. Note though, live streams probing with 'internal' ffmpeg currently takes eternity. This somehow does not happen when using 'external' ffmpeg.

@throwaway
Are you talking about external libcurl selected in 'third-party binaries' group? Or component just gives you #403, whereas when using youtube-dl directly you are able to get the file? Does this happen for all URLs or only specific ones?
Title: Re: foo_youtube
Post by: throwaway on 2019-04-16 00:43:30
@throwaway
Are you talking about external libcurl selected in 'third-party binaries' group? Or component just gives you #403, whereas when using youtube-dl directly you are able to get the file? Does this happen for all URLs or only specific ones?
Yeah, I'm using external libcurl. The error 403 appears in the console logs, and is linked to curl. It only happens with videos containing opus 160k, and when it happens, the video/track is skipped altogether. For now I'm just filtering out the quality using the overrides, and it works fine. With youtube-dl -f 251 video-url, there's no errors and it successfully downloads the opus file.
Title: Re: foo_youtube
Post by: eduardokbb on 2019-04-16 19:11:23
I was using the Zeranoe ffmpeg builds without having ittermitent stucks, but with fo_youtube beta10 they appeared again. A few minutes ago I updated to Zeranoe's latest build (April 16) and the problem was gone. Just posting it in case someone is facing the same problem, updating ffmpeg could fix the issue.
Title: Re: foo_youtube
Post by: 3dyd on 2019-04-17 00:38:54
@throwaway
Still cannot reproduce. Do you use libcurl from component Download page? Does it really selects external libcurl (after foobar2000 start Console window should have "libcurl (external): libcurl/7.54.0 OpenSSL/1.1.0e zlib/1.2.11" line). Does it always happen with all URLs containing itag 251 and only with them (e.g. what about other Opus itags 249, 250)? Do you use proxy or firewall?
Title: Re: foo_youtube
Post by: 3dyd on 2019-04-19 00:25:42
Updated libcurl to the latest version just in case it might help. Available on Download page.
Title: Re: foo_youtube
Post by: throwaway on 2019-04-26 16:39:36
@3dyd
Nevermind, I tried it again with a more recent version of youtube-dl and it's fine now. Turns out it wasn't curl's fault
Title: Re: foo_youtube
Post by: Slender on 2019-04-27 05:44:41
Was the time a video was published removed intentionally? The component hasn't been showing times in 3.0 for a while now. Edit. Oh, it was. Should really learn to read.
Title: Re: foo_youtube
Post by: Sergey77 on 2019-05-19 17:18:56
Hi there!
@3dyd,
In the Columns UI It seems that it is not possible to set the background color for the "Video" (if "fit to video" mode is on) and "Activity" elements in the "Custom" mode. However, for the "Search" element, the background color is set correctly. Сheck please.
Thank you!
Title: Re: foo_youtube
Post by: 3dyd on 2019-05-20 23:01:36
Thanks for noticing. Fixed Activity UIE and corrected available colors to customize (Activity and Analysis Cache actually use more colors than were enabled). Video window background is configured separately (Youtube Source -> Video -> Window), so appropriate colors were disabled in CUI preferences.
Title: Re: foo_youtube
Post by: Sergey77 on 2019-05-26 17:33:15
Congratulations on placing the component on the official repository!
Great component, use it with pleasure.
Thank you and wish further development!
Title: Re: foo_youtube
Post by: TheQwertiest on 2019-06-05 14:07:15
3.0 also got context menu item 'Copy URL at current time'.
Hm... For some reason this item is not displayed. I've verified that it's present in component via Preferences>Keyboard Shortcuts, but even there it's displayed as Cannot copy: no supported tracks. The track in question was added via drag-n-drop'ing the YT url.
Title: Re: foo_youtube
Post by: 3dyd on 2019-06-05 17:40:17
Playlist context menu should have item "URL at current time" in "Youtube Source" -> "Copy" popup menu. Don't you have it? Item is always present but enabled only if selected track is currently playing.

"Cannot copy" in keyboard shortcuts is a bug and will be fixed in next version.
Title: Re: foo_youtube
Post by: arch21 on 2019-06-06 07:02:50
typo
Title: Re: foo_youtube
Post by: TheQwertiest on 2019-06-06 11:54:28
Playlist context menu should have item "URL at current time" in "Youtube Source" -> "Copy" popup menu. Don't you have it? Item is always present but enabled only if selected track is currently playing.
Hm... It seems that it's displayed only when context menu is invoked with contextmenu_manager::init_context_playlist and it's not displayed when invoked with contextmenu_manager::init_context(handle_list) and I have no idea what's the difference between these two calls. And there is also contextmenu_manager::init_context_ex... fb2k API is really lacking in documentation =(
Title: Re: foo_youtube
Post by: kode54 on 2019-06-06 21:38:26
init_context_playlist would run a context menu on the given playlist's current selection. init_context(handle_list) would set up a context menu on the given list of file handles, instead of relying on user selection. I'm not sure what the last one would be for, perhaps @Peter could shed some light on this?
Title: Re: foo_youtube
Post by: 3dyd on 2019-06-07 00:46:08
With contextmenu_manager::init_context_ex you also specify the caller GUID that would be passed then as p_caller argument in contextmenu_item_node methods. Predefined callers can be found in contextmenu_item class declaration.

Method contextmenu_manager::init_context(handle_list) passes contextmenu_item::caller_undefined (null GUID) as p_caller. Current implementation of Copy nodes in foo_youtube ignores unknown callers. That's why these nodes do not appear. Such check does not seem to make sense in this case so I will probably remove it in next update.

@arch21
Ok, thank you.
Title: Re: foo_youtube
Post by: arch21 on 2019-06-16 08:11:28
foobar2000 can't load channel and playlist, I don't remember when but I believe it could do it.
Console
Spoiler (click to show/hide)
Spoiler (click to show/hide)

Youtube source report
Spoiler (click to show/hide)

I also try with fresh portable but it is fine. Something wrong with my installed foobar2000.  Help me to find the cause of this issue. thanks.


I see unnamed legacy decoders come with foo_youtube 3.1. What is this?
Title: Re: foo_youtube
Post by: arch21 on 2019-06-16 15:13:02
Okay, I found it, issue comes from latest External Tags components (1.0.30), by disabling the writer, I can load channel or playlist.
@Case could you check this? foo_youtube load channel or playlist works well with previous version (1.0.29)
Title: Re: foo_youtube
Post by: Case on 2019-06-16 20:13:51
Fixed.
Title: Re: foo_youtube
Post by: arch21 on 2019-06-16 22:27:46
It is working fine now to load channel or playlist. Thanks.
Title: Re: foo_youtube
Post by: 3dyd on 2019-07-13 00:02:03
I see unnamed legacy decoders come with foo_youtube 3.1. What is this?
Thank you for noticing. This should be fixed in latest beta.

It is a "redirection" decoder (input_entry::flag_redirect) that catches Youtube tracks not created by the component (i.e. not having "fy+https" URL scheme). If component is totally sure they are Youtube video URLs, it redirects them to "Youtube Source (Audio)" decoder.
Title: Re: foo_youtube
Post by: Slender on 2019-07-17 13:17:24
Hi, I noticed that with some youtube-dl videos, even though I've tried several playback quality options, I still get an error stating that no streams matched quality settings. Example. https://www.nicovideo.jp/watch/sm11438321. This also happens on Periscope and may happen on other services as well.
Title: Re: foo_youtube
Post by: arch21 on 2019-07-17 14:40:19
Hi, I noticed that with some youtube-dl videos, even though I've tried several playback quality options, I still get an error stating that no streams matched quality settings. Example. https://www.nicovideo.jp/watch/sm11438321. This also happens on Periscope and may happen on other services as well.
I see by using youtube-dl -F , there is no information about resolution or quality.
Title: Re: foo_youtube
Post by: Slender on 2019-07-17 17:10:32
Yeah, that option shows economy MP4 which is what Niconico is currently restricting non-premium users to as the only format, perhaps the component doesn't expect that?
Title: Re: foo_youtube
Post by: 3dyd on 2019-07-19 22:25:34
Well, component expected such situations (no streams info) but apparently I did not test it enough and such formats were not considered at all when selecting quality for playback.

Anyway, Niconico is the first site to me that actually requires "http_headers" field from youtube-dl to be passed to downloader. This functionality was not implemented, so it would fail anyway.

Both issues should be fixed in beta 3.
Title: Re: foo_youtube
Post by: Slender on 2019-07-20 21:09:15
Working now, and another site I tested that showed the same error is also working, thanks for the fix :).
Title: Re: foo_youtube
Post by: TheQwertiest on 2019-07-30 13:56:23
@3dyd , not sure if it's a foo_youtube bug, but I can't add a YT playlist anymore (v3.1.1)
Example link: https://www.youtube.com/playlist?list=PLCQgVrL4-LLf4UwFfaTPrL0ERsOyIDzTr
Log:
Code: [Select]
Opening track for playback: "https://www.youtube.com/playlist?list=PLCQgVrL4-LLf4UwFfaTPrL0ERsOyIDzTr"
foo_youtube: [warning] [fsf:meta+tech] urls mismatch: 'www.youtube.com/playlist?list=PLCQgVrL4-LLf4UwFfaTPrL0ERsOyIDzTr' vs 'www.youtube.com/user/playlist'
foo_youtube: [warning] [fsf:meta] urls mismatch: 'www.youtube.com/playlist?list=PLCQgVrL4-LLf4UwFfaTPrL0ERsOyIDzTr' vs 'www.youtube.com/user/playlist'
foo_youtube: [error] #31, Analysis, no video found on Youtube Channel URL
foo_youtube: #31, https://www.youtube.com/playlist?list=PLCQgVrL4-LLf4UwFfaTPrL0ERsOyIDzTr
Unable to open item for playback (Unsupported format or corrupted file):
"https://www.youtube.com/playlist?list=PLCQgVrL4-LLf4UwFfaTPrL0ERsOyIDzTr"
Title: Re: foo_youtube
Post by: George Smith on 2019-07-30 18:55:10
Hello!
How to add more than 1 000 track from youtube channel?
Title: Re: foo_youtube
Post by: onirwai on 2019-07-31 08:51:06
Is there a place to share improved metadata parsing regular expressions? I searched this thread and couldn't find any.

The problem with the current default is it strips away the remix details because they're in parentheses.

Limo - Fluid Identity (Edit Select Remix) [SUB001]Limo - Fluid Identity

To keep the text in the parens I removed the ( from the character set under the named capture group title:

(?x)
(?:
    \s*[[【({].+?[]】)}]\s*[-–~:]?\s*
)?
(?:
    (?<artist>.+?)\s*[-–~|/:]\s+
)?
(?<title>.+?)
(?:

    \s+[~|/[【{].*
)?


Does anyone have a better regex for parsing YouTube titles?
I've compiled a list of bad titles to test against (https://gist.github.com/akaleeroy/e82b1f308b5bc60ae7ec448a936e5355). The more the merrier!
Title: Re: foo_youtube
Post by: laddie on 2019-07-31 23:51:54
I only kind of got this to work.

1) When I have the local files in full screen, it says "windowed" and then "exclusive" on the top left, then there's a full screen black blip. This happens every few seconds.
2) Is there a way to turn off the info screen about the video before it starts?

Any ideas?
Title: Re: foo_youtube
Post by: arch21 on 2019-08-07 17:19:24
If I open foobar2000, no playback, then it can load playlist. But if I play music file then try to load playlist, it won't load the playlist. foo_youtube 3.1.1, foobar2000 1.5 beta 8
Title: Re: foo_youtube
Post by: 3dyd on 2019-08-09 12:11:19
Problem with playlists should be fixed in latest beta.

How to add more than 1 000 track from youtube channel?
If you are talking about menu "File -> Youtube Source -> Load channel or playlist..." then after adding 1000 tracks it also adds a track to get next portion. Additional tracks can be fetched only using this track. I will remove 1000 tracks limitation for case when custom Youtube API key is configured.

Is there a place to share improved metadata parsing regular expressions?
There is no such place.

The problem with the current default is it strips away the remix details because they're in parentheses.
FYI, you can play with (?ifthen|else) (https://www.regular-expressions.info/conditional.html) constructions to consider only specific words in parentheses. Here is an example (https://regex101.com/r/rUc75N/1) which includes text in parentheses only if it has "Remix)" string.

1) When I have the local files in full screen, it says "windowed" and then "exclusive" on the top left, then there's a full screen black blip. This happens every few seconds.
I was able to reproduce similar behavior when madVR renderer is used and its option "renderer -> general settings -> enable automatic fullscreen exclusive mode" is enabled. If its another option "exclusive mode -> delay switch to exclusive mode by 3 seconds" is enabled, it blinks every 3 seconds, otherwise screen remains black all the time. If this is your case, for now I can only suggest either to disable automatic fullscreen exclusive mode in madVR or not to use it in component (in context menu of preferences "Mainetance -> Third-party Binaries -> madVR" select "None").

2) Is there a way to turn off the info screen about the video before it starts?
Yes. You can remove all text in "Window -> Pattern" edit box of "Youtube Source -> Video" preferences tree.
Title: Re: foo_youtube
Post by: TheQwertiest on 2019-08-09 13:06:00
Problem with playlists should be fixed in latest beta.
Yup, it works now, thanks!
Title: Re: foo_youtube
Post by: koupa on 2019-08-09 19:16:23
Sorry if it's already discussed but I can't make a scratch box permanently in my window. It shows "No video frame instance"
Title: Re: foo_youtube
Post by: MojoBass on 2019-08-19 06:42:24
Searching and extracting playlists takes ages since a couple of days, nothing really changed in the setup (fb 1.5b10, foo_yt 3.1.2b2), Playing YT tracks works as always. Anybody else seen this?
Title: Re: foo_youtube
Post by: Sergey77 on 2019-08-25 06:33:10
Hi there!
@WilB,
Enabling the Activity panel (for CUI) causes fb2k to crash when playing any AY music module with the ZXTune Player (https://www.foobar2000.org/components/view/foo_input_zxtune) component.
For testing in the attachment a randomly selected AY music module. Check please. Thanks!
Title: Re: foo_youtube
Post by: Rollin on 2019-08-25 14:11:42
What are differences between options "Synchronize playback" and "Synchronize video?
Title: Re: foo_youtube
Post by: 3dyd on 2019-09-01 12:17:19
I can't make a scratch box permanently in my window. It shows "No video frame instance"
Video UI element is there, it just displays this message. Video frame will appear next time UI element becomes visible (at worst after program restart). Such behavior comes from this issue (https://hydrogenaud.io/index.php/topic,118041.0.html).

Searching and extracting playlists takes ages since a couple of days, nothing really changed in the setup (fb 1.5b10, foo_yt 3.1.2b2), Playing YT tracks works as always. Anybody else seen this?
I have not seen anything like that last weeks. First thing I would suggest is to check on fresh portable install with only foo_youtube, and check console window.

Enabling the Activity panel (for CUI) causes fb2k to crash when playing any AY music module with the ZXTune Player (https://www.foobar2000.org/components/view/foo_input_zxtune) component.
Thank you for reporting. Crash should be fixed in beta 7.

What are differences between options "Synchronize playback" and "Synchronize video?
"Synchronize playback" interrupts audio playback ("Synchronize video" does not) and may take more time, but it worked better for some formats (e.g. VP9, not sure how it's now) and for live streams it is the only way that works.
Title: Re: foo_youtube
Post by: gr8cx on 2019-09-03 01:38:05
hi all and dear 3dyd
when i do: File->Add Location->Youtube URL(ANY YOUTUBE URL)
i get error in the window "information"
"The following error(s) occurred during loading of the location(s):
Security error"

BUT! when i do: View->Youtube Source->Search on Youtube and "Add and Play"
same video work perfectly

XP SP3 Foobar 1.3.20

---------------------------
Youtube Source 2.3.5
---------------------------
LAV Filters: LAV Splitter 0.69 (external)
LAV Filters: LAV Video 0.69 (external)
VSFilter 3.0.0.233 (system)
libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
ffmpeg: lavf 57.59.100, lavc 57.67.100, lavu 55.43.100, lavr 3.2.0 (LAV Filters)
---------------------------
Title: Re: foo_youtube
Post by: Sergey77 on 2019-09-04 16:16:36
@3dyd,
1. I noticed that in the video window, the [% video_file_stats%] function displays a "?" after stopping reading some streaming links (see link 1) although nothing should be displayed. While for other links, the codec type is displayed (see link 2).
Code: [Select]
1. http://radio7.pro-fhi.net:9112/autodj
2. http://live.playradio.org:9090/PlayHitz.mp3
2. When viewing images (thumbnails for Youtube video links) using the “View Album Art” component, 2 different fb2k crashes occurred. Crash reports sent you by personal message. let me know if you need more information to fix it.
Title: Re: foo_youtube
Post by: grup on 2019-09-06 18:36:12
Hello @3dyd,

A bug report & a feature request

BUG REPORT:

foobar2000 version: 1.4.6 (portable)
foo_youtube_3.1.1.fb2k-component
ISSUE: Non-Windows-default(%temp%) Temporary directories are not accepted as caching locations

Steps to replicate -

1. Goto Library>Configure>Tools>Youtube Source>Network>Main>Temporary Directory
2. Add a different directory such as C:\foocache\
3. Click OK
4. Add a youtube URL File>Youtube Source>Add Multiple URLs... and play it.
5. Notice that 3dyd still uses %temp% folder to download all the audio data. The file %temp%\3dyd-something-something keeps getting created and gets larger.
6. Restart foobar2000 just to ensure new setting takes effect.
7. Play a youtube URL.
8. Notice that 3dyd still uses %temp% folder to download all the audio data. The file %temp\3dyd-something-something still keeps getting created and gets larger.

Workaround -
The only workaround I know is to open foobar2000 using the following batch script so any and all temping that foobar200 does is done only using the specified directory in the batch script.

mkdir Y:\foocache\TEMP
mkdir Y:\foocache\TMP
set TEMP=Y:\foocache\TEMP
set TMP=Y:\foocache\TMP
start "" "<path_to_foobar2000_folder>\foobar2000.exe"
exit


FEATURE REQUEST-

I use RAMDISKs in windows. Not the component foo_ramdisk. But a 3rd party ramdisk software. I like to minimize writes to disk as much as possible. So I use the workaround above to cache all the raw audio data it to my ramdisk volume.
Ideally what I'd like is an option that allows for EVERYTHING(the raw audio data as well as metadata) to be cached directly in RAM in the foobar2000.exe process itself a la mpv.
Also because I don't want the data permanently stored on my computer however small it may be. I'd rather it be retrieved once more when required.
If not the all the metadata, then at least the raw audio data.

Thank you reading 3dyd, it's a wonderful extension regardless. :)
Title: Re: foo_youtube
Post by: 3dyd on 2019-09-07 21:38:36
@gr8cx
When opening http(s) location foobar2000 first accesses it by itself (at least to get content type by which then decoder gets selected). Error occurs on this stage, i.e. component does not receive URL.
You can add www.youtube.com to preferences "Advanced -> Networking -> Suppress HTTPS certificate checks". Alternative is to prepend URL with "fy+" string (so it will be "fy+https://www.youtube.com/..."). This way URL goes directly to the component.

@Sergey77
First issue is fixed in 3.1.2.
The second one is postponed for better time, I had no luck reproducing it yet.

@grup
Not working "Temporary directory" option has been fixed in 3.1.2.
You also can configure directory for metadata and thumbnails cache in component preferences tab "Metadata".
Title: Re: foo_youtube
Post by: grup on 2019-09-08 00:13:05
Thank you @3dyd for the fix.

Quote
@grup
You also can configure directory for metadata and thumbnails cache in component preferences tab "Metadata".

Yes I was aware of this. I wasn't clear on that in my last post especially since that I didn't have any problems regarding it at the time. But I did manage to find a bug on it now.

BUG REPORT:

foobar2000 version: 1.4.6 (portable)
foo_youtube_3.1.2.fb2k-component

ISSUE: Root directories such as Y:\ are not being accepted as valid "metadata" and "album art" caching locations.

Steps to replicate -

The metadata cache problem:
1. Goto Library>Configure>Tools>Youtube Source>Metadata>Metadata>Cache Directory
2. Set it to C:\ or D:\
4. Click OK
5. Add a youtube URL in File>Youtube Source>Add Multiple URLs...
6. Notice that nothing gets added to the playlist.

The album art cache problem:
1. Goto Library>Configure>Tools>Youtube Source>Metadata>Metadata>Cache Directory
2. Set it to a proper directory(non-root) inside the root volume such as C:\foocache\
3. In the album art section below, set the "Cache Directory" to a root volume such as C:\ or D:\
4. Click OK
5. Add a youtube URL in File>Youtube Source>Add Multiple URLs...
6. Notice that this time the URL is added to the playlist but no album art(URL thumbnail) is generated from the URL.
------------------
What is not affected -
Youtube Source>Network>Main>Temporary Directory
perfectly accepts root directories such as Y:\ as valid caching locations.

Title: Re: foo_youtube
Post by: 3dyd on 2019-09-09 19:24:34
Thank you for the report. Fixed in 3.2 beta 1.
Title: Re: foo_youtube
Post by: Slender on 2019-09-09 22:40:47
Hi, I noticed that URL analysis seems to be broken. Using the latest beta, some URLs that were previously supported are now not being processed at all by the component, even if Analyze URLs from unsupported sites is checked or the fy+ scheme is used. Example URL: https://soundcloud.com/lasse-rni/. This URL was previously processed by the component, but now I can't seem to get it to work. In addition, some streams that the component can't support but that are supported by foobar2000 are being processed, causing very large delays when trying to play them.
Title: Re: foo_youtube
Post by: 3dyd on 2019-09-10 21:13:39
Thank you for noticing. URL analysis was fixed in beta 2.

Regarding to second problem. I guess it happens when "Analyze URLs from unsupported sites" is turned on. I am yet unsure whether it worth keeping this option, but anyway you can just turn it off (what is its default state) and re-add these streams.
Title: Re: foo_youtube
Post by: laddie on 2019-09-11 04:59:10
@3dyd this plugin is amazing. Thank you so much. Is there a possibility of having an option to have a simple dissolve between videos?
Title: Re: foo_youtube
Post by: gr8cx on 2019-09-11 16:16:32
hmm.... Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"https://www.youtube.com/watch?v=01B2RCyaAoE"

but i don't open youtube preferences and nothing do not changed
i watch video same as always and this error appears
Title: Re: foo_youtube
Post by: Passenger_DoReMi on 2019-09-11 17:18:07
hmm.... Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"https://www.youtube.com/watch?v=01B2RCyaAoE"

but i don't open youtube preferences and nothing do not changed
i watch video same as always and this error appears

Yep, the same happened for me.
Title: Re: foo_youtube
Post by: mdfp.me on 2019-09-11 17:48:01
I have encountered an Error (https://drive.google.com/open?id=1Zh8r0CX7iGuPB6hGxJsUo4QsX75eIqsx) when using this plugin. This just started occurring today for no apparent reason. (See attached screenshot). Hope someone has an answer to fix this as I use this feature as much as my files and media for music.
Title: Re: foo_youtube
Post by: kbo on 2019-09-11 18:33:44
Same problem here, probably there were some changes on  YT, we have to wait for new/updated plugin version. I've reported this problem to 3DYD.
Title: Re: foo_youtube
Post by: Passenger_DoReMi on 2019-09-11 18:56:58
I've reported it, too. By the way, to easily report the error, play a URL from YT within foobar, then go to Help>Youtube Source>Report with log>select the URL that comes with errors/warnings.
Title: Re: foo_youtube
Post by: mdfp.me on 2019-09-11 19:20:39
They all come up with errors, take you pick.
Title: Re: foo_youtube
Post by: 3dyd on 2019-09-11 19:29:09
Thanks for the reports. Error occurrs due to change on Youtube. I am working on the fix.

Is there a possibility of having an option to have a simple dissolve between videos?
Currently this is not possible.
Title: Re: foo_youtube
Post by: kbo on 2019-09-11 21:50:34
Kodi (www.kodi.tv) has the same problem with the latest YT v6.5.1 plugin - "no streams found". I guess all YT plugins for all applications need updating :)
Title: Re: foo_youtube
Post by: Passenger_DoReMi on 2019-09-12 07:59:12
@3dyd Thanks for taking the time to fix it. Also, your plugin is amazing :)
Title: Re: foo_youtube
Post by: kbo on 2019-09-12 10:31:29
Oooops... https://fy.3dyd.com is down... :(

YT plugin for Kodi is updated and it works.
Title: Re: foo_youtube
Post by: kbo on 2019-09-12 11:52:23
And it's back :)
Beta 3 version is released and it works fine.
Title: Re: foo_youtube
Post by: mdfp.me on 2019-09-12 12:42:58
THANK YOU  👍😊😊😊😊😊
Title: Re: foo_youtube
Post by: Sergey77 on 2019-09-12 17:16:35
Hi there!
@3dyd,
I note the following:
- the font color in the search box does not look readable (see search.jpg for the inscription: "Type a search query and press Enter"). It would be nice to have an option like "copy color from UI"
- also the feature “copy color from UI” would be useful for the settings of the Video window (especially true when choosing themes). The color of the Background and the font of Fallback Text remains constant when changing the theme and it must be changed manually
- it would be great to add for the foo_acfu component "Manage Embedded Sources" also for the ffmpeg decoder.
Please consider this. Thanks!
Title: Re: foo_youtube
Post by: cwilliams on 2019-09-12 23:00:14
What a sick component. Thanks for all your hard work on it. Question though @3dyd. While trying to listen to a live youtube channel music stream, there are lots of 1-2 seconds skips that aren't experienced when watching the same video on youtube directly. Is this a known issue or are there any work around for it? Or anyway to greatly lengthen a network buffer or something?

I tried searching this whole thread for related terms so I hopefully I didn't miss something already established. I've tried installing LAV filter and showing video, tried synchronizing the video, tried forcing to an external youtube-dl, tried anything I can think of. Again, this behavior does not occur with non-live video, just live video.

Thanks again!
Title: Re: foo_youtube
Post by: Slender on 2019-09-18 14:11:01
Hi, I noticed that showing upload dates appears to be broken in some videos, even though they display upload dates on the site. Example: https://www.youtube.com/watch?v=rbr9Jq3xK5U.
Title: Re: foo_youtube
Post by: 3dyd on 2019-09-19 23:08:47
- the font color in the search box does not look readable
Fixed in last beta.
- also the feature “copy color from UI” would be useful for the settings of the Video window (especially true when choosing themes). The color of the Background and the font of Fallback Text remains constant when changing the theme and it must be changed manually
Made video UIE using theme colors by default.
- it would be great to add for the foo_acfu component "Manage Embedded Sources" also for the ffmpeg decoder.
Ffmpeg project encourages using development branch. It is updated several times per day. If you would use builds from Zeranoe (and I am not aware of any other maintainers of ffmpeg builds for Windows), they are updated almost on daily basis. Therefore it is not reasonable to add foo_acfu source for ffmpeg. However a 'managed' source for it in the component (without checking for updates) makes sense and may be added later.

While trying to listen to a live youtube channel music stream, there are lots of 1-2 seconds skips that aren't experienced when watching the same video on youtube directly. Is this a known issue or are there any work around for it? Or anyway to greatly lengthen a network buffer or something?
If increasing buffer length (preferences Playback -> Output) to 5-10 seconds does not help, try ffmpeg for HLS decoding (the easiest way is to select in "Audio -> Decoder" any variant starting with "ffmpeg"). ffmpeg must be from LAV Filters or Zeranoe.

I noticed that showing upload dates appears to be broken in some videos, even though they display upload dates on the site. Example: https://www.youtube.com/watch?v=rbr9Jq3xK5U.
Fixed in last beta.
Title: Re: foo_youtube
Post by: laddie on 2019-09-20 01:34:09
@3dyd Just one more question, it's more of a bug actually.

If I have "crossfader" turned on in the DSP chain, at the point where the video where the buffer setting is reached (in my case 16 seconds of buffer, so with 16 seconds left in the video), the video speeds up but the audio stays on point, knocking the A/V sync off. I'd rather not get rid of the buffer. Any other ways to work this out? Thank you!!
Title: Re: foo_youtube
Post by: 3dyd on 2019-09-21 00:55:09
Interesting.

When doing crossfade, need to decide what to do with extra playback time. 16 seconds of crossfade means it takes 16 seconds from the end of prev track + 16 seconds from the beginning of next track, i.e. 32 seconds of playback time in total, and transforms them to 16 seconds of audio data. So there are 16 seconds left that must be gone.

As I understand, Crossfade DSP places 'end-of-track' mark in the middle of these 16 seconds of audio data, effectively doubling playback speed for these 16 seconds. Take a look at playback time during these 16 seconds. It goes 2x faster.

From playback point of view it looks like last 16 seconds of prev track are played 2x faster, then starts new track, then its first 16 seconds are also played 2x faster. Video playback is bound to audio playback time, so video is also played 2x faster during this period.

Component cannot do crossfade for video. And even if it could, there is no reliable way to determine whether playback speed difference comes from Crossfade or from some other DSP e.g. Tempo Shift.

foobar2000 actually has alternative approach for crossfade. It turns out that 'Fade out' option in output device configuration implies crossing (note though that existence of 'Fading' options group depends on output device). With the same values in 'Fade in' and 'Fade out' for 'Automatic track change' you'll get the same result as with Crossfade DSP (but Fade is limited to 10 seconds at max unfortunately).

Important point here is how it deals with extra playback time. From playback point of view it 'skips' last 16 seconds of previous track and starts next track at normal speed (and first 16 seconds are cross-faded). So video of previous track stops 16 seconds before its end, and video of next track is played with usual speed and synced to new track.

If this approach looks better to you, you can try your luck asking Peter using it in Crossfade DSP (as an option or permanently). Or use Fading from output device (if you use device which supports it).
Title: Re: foo_youtube
Post by: laddie on 2019-09-21 02:13:49
@3dyd Thank you for your thorough response!

Unfortunately, the fade in / fade out isn't an option, since it's tied to the buffer length -- whatever your longest fade in or out is, that's how long Foobar assign it to the buffer length.

Crossfade with a 50 ms buffer length is probably my best option. I really do appreciate your help and your plugin, it's really great!
Title: Re: foo_youtube
Post by: Wolfbane on 2019-09-23 10:29:15
Howdy

When I use "Skiptrack" on YouTube songs, the audio syns up and start songs at the correct timer, but video always start from start of the YouTube video, so audio and video are not in sync when I use Skiptrack on YouTube songs.

Foobar = v1.4.8
Foo YouTube = v3.2
Foo_skip = v1.15

Any settings I can change to fix it or is error not on my part ?
Title: Re: foo_youtube
Post by: 3dyd on 2019-09-23 15:47:40
Unfortunately, the fade in / fade out isn't an option, since it's tied to the buffer length -- whatever your longest fade in or out is, that's how long Foobar assign it to the buffer length.
FYI, Crossfade DSP also buffers amount of time specified in it. How to spot this: if you select 20 seconds in Crossfade DSP and 5 seconds of buffer length in Output then in Console you will be getting "Opening tack for playback" messages 25 seconds before end of the track.

DSP has no control over input data (e.g. it cannot request data from next track 20 seconds before prev track ends). So Crossfade keeps last 20 seconds in buffer and when it gets notification that new track has just been started, it begins crossing these 20 buffered seconds with arriving data.

When I use "Skiptrack" on YouTube songs, the audio syns up and start songs at the correct timer, but video always start from start of the YouTube video, so audio and video are not in sync when I use Skiptrack on YouTube songs.

Foobar = v1.4.8
Foo YouTube = v3.2
Foo_skip = v1.15
Short answer: it works only in foobar2000 1.5.

Long answer (from my understanding). Some of new APIs introduced in foobar2000 1.5 provide different solution for components like Skiptrack.

Let's say you have a 3 minute track with meta field "SKIP=1:00-2:00" (skip one minute from the middle).

When opening in 1.4, it will be reported as 2 minute track. And after first minute of playback it will start reporting playback position not matching actual audio position in the file. Video is tied to playback position so it will be out of sync.

When opening in 1.5, its original duration will be retained. And when playback reaches position 1:00 you'll see it jumping to position 2:00. I.e. playback position remains matching to actual audio position in the file. So the video stays synced.
Title: Re: foo_youtube
Post by: TheQwertiest on 2019-10-08 21:57:04
I'm not sure if the problem is with foo_youtube, but I have `hitching` problems with some live streams (plays properly directly via browser). I.e. the music is interrupted every dozen seconds for a moment then continues playing. This does not happen to every stream. This problem happens regardless of video being enabled or disabled.
Example of problematic stream (might be down by the time you see this though): https://www.youtube.com/watch?v=uXSeF2FgAdg
Title: Re: foo_youtube
Post by: Slender on 2019-10-11 01:49:22
Hi, I noticed an issue when adding non-working URLs. When a URL doesn't work, such as a YouTube video being taken down or having not premiered yet, rather than showing an error, a non-working track is added to the playlist. Example URL: https://www.youtube.com/watch?v=S1x9HrGFWp8.
Title: Re: foo_youtube
Post by: 3dyd on 2019-10-23 01:01:53
I have `hitching` problems with some live streams
It might help if you use ffmpeg with GnuTLS for HLS playback. The simplest way is to select any option starting with "ffmpeg" in Decoding -> Audio -> Decoder and ensure you use ffmpeg from LAV Filters or Zeranoe (they both use GnuTLS).

When a URL doesn't work, such as a YouTube video being taken down or having not premiered yet, rather than showing an error, a non-working track is added to the playlist.
Thanks for noticing. Fixed in last beta.
Title: Re: foo_youtube
Post by: Slender on 2019-10-24 04:54:35
Hi, I found an issue when viewing video descriptions. In some videos, the description is labeled as "enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube", rather than the actual description. Example URL: https://www.youtube.com/watch?v=5anLPw0Efmo.
Title: Re: foo_youtube
Post by: 3dyd on 2019-10-25 22:00:51
Ok, should be fixed in beta3.
Title: Re: foo_youtube
Post by: MojoBass on 2019-10-29 07:35:03
When double clicking on playlist track in foobar2000 playlist, in my case the first 50 tracks of the playlist get expanded. I can expand the full playlist in one step via File/Youtube Source/Load channel or playlist. Is it possible to change the behaviour of double clicking on playlist track so that here as well the full playlist is expanded?
Title: Re: foo_youtube
Post by: gr8cx on 2019-11-06 07:04:17
hi all and 3dyd

foobar 1.3.20
foo_youtube 2.3.5

today unexpected begin error


Unable to open item for playback (Youtube Source: Page analysis, Error reading data at 0 | Page analysis, Error reading data at 0 | Page analysis, Error reading data at 0 | Page analysis, Error reading data at 0 | Page analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=acodCPf6PNU"

Unable to open item for playback (Youtube Source: Page analysis, Error reading data at 0 | Page analysis, Error reading data at 0 | Page analysis, Error reading data at 0 | Page analysis, Error reading data at 0 | Page analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=acodCPf6PNU"

Unable to open item for playback (Youtube Source: Page analysis, Error reading data at 0 | Page analysis, Error reading data at 0 | Page analysis, Error reading data at 0 | Page analysis, Error reading data at 0 | Page analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=6Jwa3n1B5hE"

i try new version from fy.3dyd but error remained...
Title: Re: foo_youtube
Post by: 3dyd on 2019-11-06 21:48:42
Is it possible to change the behaviour of double clicking on playlist track so that here as well the full playlist is expanded?
This is currently not possible.

today unexpected begin error

Unable to open item for playback (Youtube Source: Page analysis, Error reading data at 0 |
I guess Console after this failure mentions "HTTP 429" error. Recently I'm getting reports about this problem. Unfortunately I have not been able yet to reproduce it locally.

Please try 3.4 beta 1. I added a workaround there that might help.
Title: Re: foo_youtube
Post by: gr8cx on 2019-11-07 01:24:48
3dyd 3.4 beta 1

Unable to open item for playback (Youtube Source: Analysis, server error (code #429) | Analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=WNnNvcRkhMI"

Unable to open item for playback (Youtube Source: Analysis, server error (code #429) | Analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=GqddUiK-vLY"

Unable to open item for playback (Youtube Source: Analysis, server error (code #429) | Analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=twDysFRZmh0"

Unable to open item for playback (Youtube Source: Analysis, server error (code #429) | Analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=nE5X09l99vc"

Unable to open item for playback (Youtube Source: Analysis, server error (code #429) | Analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=lAjHyDEyi-k"

Unable to open item for playback (Youtube Source: Analysis, server error (code #429) | Analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=V_CKgvI2Gvg"
Title: Re: foo_youtube
Post by: 3dyd on 2019-11-07 10:11:59
Sorry to hear that. I'll ask several questions via PM.
Title: Re: foo_youtube
Post by: studio13 on 2019-11-13 01:27:10
ok .. WOW !

Thanks so much for making this component I am sure it was a lot of work.

I read the help pages on your site and either missed this info or could not find it. I wonder if someone can help me here.

1) When I open the 'search on site' window, do a search on youtube and then double click one of the search results it starts to play as expected. However my currently selected playlist contents (using Playlist Organizer component) are cleared (removed) and replaced with only one entry for the video I double clicked. I feel like double clicking the video search result should just play the video not change a playlist contents (currently selected). Maybe I am doing this wrong.

2) In the preferences for the component on the network tab 'main' there's a bool [checkbox] for 'Download media data independently from playback' . We also have a temp directory setting option. Does this mean the component is downloading the video in the background ? I am sorry I don't fully understand if it's streaming from the site or saving files to the disk. Can you give some detail to this feature ? I work professionally in video game production and watch longplays a lot so if it was downloading in the background that would actually help me to know so I can handle the gigabites of video I watch daily  ;D
Title: Re: foo_youtube
Post by: Slender on 2019-11-13 15:51:49
Hi, I noticed an issue with youtube-dl detection. It seems that in some cases, it will not be detected, even if it can be found in the system path, and when looking at status information, the youtube-dl version is listed as "user abort".
Title: Re: foo_youtube
Post by: 3dyd on 2019-11-18 10:26:16
I feel like double clicking the video search result should just play the video not change a playlist contents (currently selected). Maybe I am doing this wrong.
Possible actions and the way to override default action (when you double click on the item) are exposed via context menu. I'll add action you expected in the next version.

In the preferences for the component on the network tab 'main' there's a bool [checkbox] for 'Download media data independently from playback' . We also have a temp directory setting option. Does this mean the component is downloading the video in the background ? I am sorry I don't fully understand if it's streaming from the site or saving files to the disk.
First of all, this applies only to "foo_youtube" audio decoder and video downloader (what decoder and downloader to use is configured on Decoding tab).

"foo_youtube" always caches downloaded data to the disk and never redownloads the same data again (e.g. if you seek backward). If multiple readers access the same file, single file is shared between them (with possibility of downloading from different positions).

If 'Download media data independently from playback' is unchecked, it pauses downloading when the distance between playback and downloading position reaches some (unspecified, unconfigurable [yet]) value. Otherwise it keeps downloading till the end of file. If you seek forward it starts downloading from the new playback position no matter if this option is checked.

You can use Activity UI element to get visual representation of its work.

Hi, I noticed an issue with youtube-dl detection. It seems that in some cases, it will not be detected, even if it can be found in the system path, and when looking at status information, the youtube-dl version is listed as "user abort".
This could happen if 'youtube-dl --version' being executed on program start takes too long. I increased timeout for this action in last beta, maybe that helps.
Title: Re: foo_youtube
Post by: Anderle on 2019-11-22 13:05:53
Thank you for this great plugin. The sound quality of the OPUS streams is quite good.
Is there a way to save the streams to files (for a complete playlist) without transcoding first?
Title: Re: foo_youtube
Post by: 3dyd on 2019-11-23 19:30:25
As far as I know, there is no way to do that without transcoding.
Title: Re: foo_youtube
Post by: Anderle on 2019-11-25 17:37:48
It should be possible with run services and youtube-dl, but how do I pass the youtube-link?
Title: Re: foo_youtube
Post by: 3dyd on 2019-11-26 22:47:45
To get underlying URL it is better to use %fy_url% title formatting field. Unlike approach with %path% / %_path_raw% it will give desired results also for playlist/channel/search URLs and *.foo_youtube files.
Title: Re: foo_youtube
Post by: Anderle on 2019-11-28 13:42:09
To get underlying URL it is better to use %fy_url% title formatting field. Unlike approach with %path% / %_path_raw% it will give desired results also for playlist/channel/search URLs and *.foo_youtube files.

Works like a charme, thank you. This is the best way to use audios from youtube !
Title: Re: foo_youtube
Post by: MojoBass on 2019-11-29 03:59:48
To get underlying URL it is better to use %fy_url% title formatting field. Unlike approach with %path% / %_path_raw% it will give desired results also for playlist/channel/search URLs and *.foo_youtube files.

Works like a charme, thank you. This is the best way to use audios from youtube !
Hello Anderle, could you share how exactly you are using %fy_url% and foo_run to download the original youtube OPUS stream?
Title: Re: foo_youtube
Post by: Anderle on 2019-11-29 23:58:45
To get underlying URL it is better to use %fy_url% title formatting field. Unlike approach with %path% / %_path_raw% it will give desired results also for playlist/channel/search URLs and *.foo_youtube files.

Works like a charme, thank you. This is the best way to use audios from youtube !
Hello Anderle, could you share how exactly you are using %fy_url% and foo_run to download the original youtube OPUS stream?

Download youtube-dl.exe (google may help)
Download and install the run_services component  (foo_run) from components (https://www.foobar2000.org/components/view/foo_run)
Configure it under preferences (-> Tools -> Run services), add a service and point it to your youtube-dl.exe with the [...] button, configure it on the path box to your likings.
Don't forget to name your service. (e.g."youtube-dl")
You can use it for example with "youtube-dl.exe %fy_url% --no-playlist -x --audio-format opus -o '%(playlist_index)s-%(title)s.%(ext)s'". Hit OK.
Then right click on any playlist-entry, click "run service" and choose your entry, e.g. "youtube-dl" or whatever you name it.
Files will be in the same directory as youtube-dl.exe unless you configure it otherwise with the -o switch, refer to youtube-dl manual.
Hope that helps, enjoy.
Title: Re: foo_youtube
Post by: MojoBass on 2019-11-30 09:28:45
To get underlying URL it is better to use %fy_url% title formatting field. Unlike approach with %path% / %_path_raw% it will give desired results also for playlist/channel/search URLs and *.foo_youtube files.

Works like a charme, thank you. This is the best way to use audios from youtube !
Hello Anderle, could you share how exactly you are using %fy_url% and foo_run to download the original youtube OPUS stream?

Download youtube-dl.exe (google may help)
Download and install the run_services component  (foo_run) from components (https://www.foobar2000.org/components/view/foo_run)
Configure it under preferences (-> Tools -> Run services), add a service and point it to your youtube-dl.exe with the [...] button, configure it on the path box to your likings.
Don't forget to name your service. (e.g."youtube-dl")
You can use it for example with "youtube-dl.exe %fy_url% --no-playlist -x --audio-format opus -o '%(playlist_index)s-%(title)s.%(ext)s'". Hit OK.
Then right click on any playlist-entry, click "run service" and choose your entry, e.g. "youtube-dl" or whatever you name it.
Files will be in the same directory as youtube-dl.exe unless you configure it otherwise with the -o switch, refer to youtube-dl manual.
Hope that helps, enjoy.
Wow, this is great, thanks very much!! I was not aware of youtube-dl (see here (https://ytdl-org.github.io/youtube-dl/index.html))!
Your command line worked well except I had to adopt the quotes (Windows 10):
Code: [Select]
"youtube-dl.exe" "%fy_url%" --no-playlist -x --audio-format opus -o '%(playlist_index)s-%(title)s.%(ext)s'
Additionally, I replaced .%(ext)s with .ogg, as .%(ext)s gave me the webm extension, and I think .ogg is the more common container extension for the opus format (of course I could as well just use the extension .opus).
Thanks again!!
Title: Re: foo_youtube
Post by: MojoBass on 2019-11-30 12:21:43
Additionally, I replaced .%(ext)s with .ogg, as .%(ext)s gave me the webm extension, and I think .ogg is the more common container extension for the opus format (of course I could as well just use the extension .opus).
Thanks again!!
Hmm, just changing the extension from .webm to .ogg works with vlc, but not for foobar ... guess I need some more research here...
Title: Re: foo_youtube
Post by: Anderle on 2019-12-01 13:12:47
Hmm, just changing the extension from .webm to .ogg works with vlc, but not for foobar ... guess I need some more research here...

Foobar2k doesn't seem to like those OPUS streams from YT. The webm container seems to be messed up somehow, so I found out, that by remuxing to MKA the files do work again in Foobar2k and additionally with my Android phone players. Plus tagging the files with Foobar2k does work then, cause it didn't work on the native OPUS files.
Mkvtoolnix (https://mkvtoolnix.download/) does a marvellous job there.
Title: Re: foo_youtube
Post by: MojoBass on 2019-12-04 04:38:29
Foobar2k doesn't seem to like those OPUS streams from YT. The webm container seems to be messed up somehow, so I found out, that by remuxing to MKA the files do work again in Foobar2k and additionally with my Android phone players. Plus tagging the files with Foobar2k does work then, cause it didn't work on the native OPUS files.
I have changed over to the GUI youtube-DLG (https://github.com/MrS0m30n3/youtube-dl-gui), which offers postprocessing (.webm -> .opus) out-of-the-box, as long as FFmpeg is installed. The .opus files generated here work perfect for me in foobar including tagging.
Title: Re: foo_youtube
Post by: richard3840 on 2019-12-07 11:25:36
I made an Autohotkey script to generate .foo_youtube files from the clipboard.

Code: [Select]
;Ctrl + Shift + X
^+x::

;Retreives the url from the clipboard.
text1 := Clipboard

;Escapes slashes.
text1 := StrReplace(Clipboard, "/", "\/")

;Escapes quotation marks.
qte := Chr(34)
slsqte := "\" . Chr(34)
text1 := StrReplace(text1, qte, slsqte)

;Adds the rest of the string.
text1 :=  "{" . qte . "url" . qte . ":" . qte . text1 . qte . ",}"

;Gets the id of the currently active window.
ActiveHwnd := WinExist("A")

;Initializes a variable for saving the filepath of the currently open Windows Explorer window.
activeExplorerPath := ""
;Looks through all open Windows Explorer windows.
for w in ComObjCreate("Shell.Application").Windows
;If one of them has the same hwnd as the active window, it is the active window.
If (ActiveHwnd = w.hwnd)
{
;We retreive the current path of it.
activeExplorerPath := w.Document.Folder.Self.Path

;We use the path to generate a complete filepath for saving our file.
filePath := activeExplorerPath . "\" . "foo_youtube.foo_youtube"

;To avoid appending the text multiple times in the same file, we delete the file if it has already been created.
FileDelete, %filePath%

;We then create the file again, and paste our text.
FileAppend, %text1%, %filePath%

}

Return


Title: Re: foo_youtube
Post by: grup on 2019-12-25 21:24:24
Is there a way to prevent the cached audio data file from being automatically deleted when playback moves onto the next track? Specifically I want the "3dyd-<numbers>" that gets stored in the cache location to not get deleted. Is there an option that lets be set the number of 3dyd-<numbers> that I can hold in cache? I don't want it to re-retrieve the data from youtube every time. I'd rather it read from the cache itself since I have enough space.

Also is there a way from foobar2000 itself save these files to disk? They are just webm/m4a extension files renamed to "3dyd-<numbers>" for playback in foobar. I can do it manually of course but it'd be great to be able to do it from within foobar2000 itself.
Title: Re: foo_youtube
Post by: grup on 2019-12-25 21:26:05
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?
Title: Re: foo_youtube
Post by: gr8cx on 2019-12-29 11:55:12
hi all and 3dyd

foo_youtube 2.3.5

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=VWlIIQaWmCw"

this error appers but i don't change in options
Title: Re: foo_youtube
Post by: rykiff on 2019-12-30 01:22:48
Been a huge fan of this plugin for years, and am excited about the implications of the new youtube-dl integration. however, I'm having a hard time understanding some things... does this mean that we can decode any URL supported by youtube-dl now? 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.
Title: Re: foo_youtube
Post by: arch21 on 2019-12-30 07:24:10
It used to work I believe and it seems related to this youtube-dl issue (https://github.com/ytdl-org/youtube-dl/issues/23516). Wait for youtube-dl next release. :)
Title: Re: foo_youtube
Post by: kode54 on 2019-12-30 08:41:05
Blacklisting API keys, eh. Sounds like an endless game of cat and mouse.
Title: Re: foo_youtube
Post by: gr8cx on 2020-01-15 09:58:58
Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=wEy7I7tp_9M"

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=ROnQqRheCmY"

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=rlB6RpQpqzU"

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=WBqX1K4jbdU"

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=APdwhKWb59Q"

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=mRqY6QcF1Uk"

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=NfpThq5TojM"

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=ojyYYuZ9V9w"

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=O_eu9s_qJlQ"

Unable to open item for playback (Youtube Source: all formats ignored due to preferences of the component):
"www.youtube.com/watch?v=8ENOIGLIgEg"
Title: Re: foo_youtube
Post by: gr8cx on 2020-01-17 16:20:38
hi all problem was in old plugin
i installed 3.4 version from 3dyd site and plugin work again)

Title: Re: foo_youtube
Post by: mdfp.me on 2020-01-17 16:40:48
Still not working for me: https://drive.google.com/open?id=1liR4_md42FK0DvHY-N2KCOjvDZKhcBTD (https://drive.google.com/open?id=1liR4_md42FK0DvHY-N2KCOjvDZKhcBTD)
Title: Re: foo_youtube
Post by: arst on 2020-01-18 08:40:21
This component is awesome! now I can build home karaoke with foo_dsp_centercut + foo_uie_eslyric !! The only thing that does not work is the foo_uie_eslyric. It won't load the lyrics that saved. No matters what saving methods I select, it just won't load the lyric. Dose anyone solve the problem? I cannot use Lyric Show3 because it does not have many non-English lyrics.
Title: Re: foo_youtube
Post by: arst on 2020-01-18 13:19:40
Another thing is I cannot make subtitle working with Lyric Show 3...
It works with youtube subtitles.

I downloaded xy-VSFilter_3.0.0.306_x64 and put VSFilter.dll in foobar2000's user-components\foo_youtube folder.
I can see Lyric Show 3 displays the lyric, but not on the video. Please tell me what else I missed...?
Title: Re: foo_youtube
Post by: seriousstas on 2020-01-22 11:45:16
is there any chance that you can add a custom default option in the context menu besides "Send to current playlist", "Add to...", etc?
Added there standard foobar2000 context menu (in 3.4 beta 5). You may configure foo_run for your purpose. Actions from that menu cannot be set to be performed by double click, but you can configure keyboard shortcut via foobar2000 preferences.
Hi!
Please add the ability to enable full screen with one click.
Thnx!
Title: Re: foo_youtube
Post by: gr8cx on 2020-01-22 17:47:36
hi all and 3dyd
how i do create auto-update-foobar-playlist from youtube-subscriptions?
when in my youtube-subscriptions appears new video in foobar_playlist appears this video automatically?
Title: Re: foo_youtube
Post by: seriousstas on 2020-01-23 12:34:44
Try to play local files through the LAV filter. Does not work.(
https://www.dropbox.com/s/utc8vpohyg82k6b/Laurent%20Wolf_-_Wash_My_World-Qwer2006.House.mpg?dl=0
https://www.dropbox.com/s/eun7sf8ck52a6b8/Counterstrike_-_Maniac-2007-Qwer2006.Drum%27n%27Bass.avi?dl=0
HELP
Title: Re: foo_youtube
Post by: arch21 on 2020-01-23 14:36:26
Try to play local files through the LAV filter. Does not work.(
HELP
It used to work when there was advanced preferences for additional file extensions supported. For now, use foo_input_ffmpeg to handle the extension and play the audio, then video can be played with foo_youtube+LAV Filters.
Title: Re: foo_youtube
Post by: tt-1995 on 2020-01-23 19:53:15
Many of the videos in my music playlist return a 403 when attempting to play them using foo_youtube, as of today. Mostly official music videos and videos generated by YouTube ('(Artist) - Topic'). They play just fine in my browser.

I cannot download these videos using youtube-dl either ('non-403' videos do work), so it seems to me this isn't necessarily a foo_youtube issue? FYI, youtube-dl gets redirected to https://www.youtube.com/yts/jsbin/player_ias-vfl_PLd61/en_US/base.js. Perhaps this has something to do with copyright?

I am using the latest version of foobar2000 and foo_youtube, attached to this message are the log contents after opening a 403 video.
Title: Re: foo_youtube
Post by: seriousstas on 2020-01-24 09:11:19
Quote
Many of the videos in my music playlist return a 403 when attempting to play
confirm it
Quote
foo_youtube: [error] [curl @ 0A6B2360] server error (403) from r2---sn-4gxxoxu-3c2s.googlevideo.com
On most videos
Title: Re: foo_youtube
Post by: seriousstas on 2020-01-24 09:18:01
Quote
Many of the videos in my music playlist return a 403 when attempting to play
confirm it
Quote
foo_youtube: [error] [curl @ 0A6B2360] server error (403) from r2---sn-4gxxoxu-3c2s.googlevideo.com
On most videos

Download via :
https://github.com/MrS0m30n3/youtube-dl-gui/relases
works
https://yd.3dyd.com/  also returns 403
Title: Re: foo_youtube
Post by: HarryYTM on 2020-01-24 11:19:21
Try switching analyzer to youtube-dl instead of using the internal analyzer, it seems like youtube changed the API broken the internal analyzer.
Title: Re: foo_youtube
Post by: kbo on 2020-01-25 13:31:21
Yes, there is 403 error for most (not all) YT videos.
Title: Re: foo_youtube
Post by: 3dyd on 2020-01-25 19:05:57
Error 403 should be fixed in latest beta.

Please add the ability to enable full screen with one click.
Could you elaborate? Currently full screen mode can be toggled using double click or by pressing Alt+Enter.

how i do create auto-update-foobar-playlist from youtube-subscriptions?
when in my youtube-subscriptions appears new video in foobar_playlist appears this video automatically?
"Auto-updated Playlists" feature (menu View -> Youtube Source) requires Youtube playlist to be added in foobar2000. After that component updates playlist on configurable schedule (or by user request). If Youtube provides ability to generate public playlist URL basing on your subscription then this is way to go. Otherwise, if user authentication is required to get content of subscription, then component cannot do that.
Title: Re: foo_youtube
Post by: kbo on 2020-01-25 19:43:20
Error 403 should be fixed in latest beta.

And it works well. Thanks.
Title: Re: foo_youtube
Post by: 3dyd on 2020-01-25 21:25:00
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.
Title: Re: foo_youtube
Post by: rykiff on 2020-01-25 23:17:06
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.
Title: Re: foo_youtube
Post by: tt-1995 on 2020-01-26 02:13:55
Error 403 should be fixed in latest beta.

Awesome. Thanks for the quick resolution.
Title: Re: foo_youtube
Post by: seriousstas on 2020-01-26 22:15:28
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!
Title: Re: foo_youtube
Post by: George Smith on 2020-01-30 13:23:52
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).
Title: Re: foo_youtube
Post by: Slender on 2020-01-30 15:55:11
As far as I can tell, no. The metadata and any images associated with the tracks will stay cached until you delete them.
Title: Re: foo_youtube
Post by: George Smith on 2020-01-30 18:10:44
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.
Title: Re: foo_youtube
Post by: seriousstas on 2020-01-31 00:53:37
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
Title: Re: foo_youtube
Post by: rykiff on 2020-02-03 16:01:31
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)
Title: Re: foo_youtube
Post by: mrgypsum on 2020-02-05 03:33:47
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.
Title: Re: foo_youtube
Post by: MojoBass on 2020-02-08 06:53:23
Just for my curiosity: does anybody know why %fy_url% is not documented in the titleformatting (https://fy.3dyd.com/help/titleformatting/). Workarounds like https://"%path%" are used quite often, see here (https://hydrogenaud.io/index.php?topic=45223.msg976965#msg976965). Anything wrong with %fy_url%?
Title: Re: foo_youtube
Post by: thecircusfreak on 2020-02-08 11:58:52
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.
Title: Re: foo_youtube
Post by: hakadespra on 2020-02-11 03:55:51
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?
Title: Re: foo_youtube
Post by: hakadespra on 2020-02-12 01:08:03
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.
Title: Re: foo_youtube
Post by: seriousstas on 2020-02-13 08:27:38
@3dyd
Could you add some important OSD controls(For full screen), for example? :
Spoiler (click to show/hide)
Title: Re: foo_youtube
Post by: seriousstas on 2020-02-13 11:11:24
@3dyd
Could you add some important OSD controls, for example? :
Spoiler (click to show/hide)
Title: Re: foo_youtube
Post by: 3dyd on 2020-02-17 01:41:24
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 (https://fy.3dyd.com/help/http_429_error_on_youtube/).

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 (https://fy.3dyd.com/help/limitations/). 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 (https://fy.3dyd.com/help/titleformatting/). Workarounds like https://"%path%" are used quite often, see here (https://hydrogenaud.io/index.php?topic=45223.msg976965#msg976965). 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.
Title: Re: foo_youtube
Post by: discardedtelepathy on 2020-02-17 17:15:39
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.
Title: Re: foo_youtube
Post by: 3dyd on 2020-02-21 11:39:21
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.
Title: Re: foo_youtube
Post by: thecircusfreak on 2020-02-22 15:46:28
Quote
When foobar2000 loads such cuesheet, pregap becomes part of preceding song
I think this is considered the standard behavior. CueTools does the same (http://cue.tools/wiki/CUETools_Advanced_Settings:_CUETools). 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)
Title: Re: foo_youtube
Post by: 3dyd on 2020-02-25 08:43:34
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.
Title: Re: foo_youtube
Post by: u-neeks on 2020-02-28 09:42:07
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.
Title: Re: foo_youtube
Post by: 3dyd on 2020-02-28 22:26:13
Thank you. I'll check.
Title: Re: foo_youtube
Post by: seriousstas on 2020-02-29 08:50:32
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?
Title: Re: foo_youtube
Post by: 3dyd on 2020-03-02 21:55:59
Quote
"To continue with your YouTube experience, please fill out the form below"
There was no such message..
Article you've quoted (https://fy.3dyd.com/help/http_429_error_on_youtube/) 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.
Title: Re: foo_youtube
Post by: AndreaT on 2020-03-18 09:04:46
Hello Folks, anyone knows about how to listen to / play Radio Garden audio web-streaming?
Regards, Andrea
Title: Re: foo_youtube
Post by: Wolfbane on 2020-03-19 06:30:52
Any way to bypass this YouTube age restriction thing or whatever it is?

Foobar You-Tube plugin pop-up info:
Unable to open item for playback (Youtube Source: This video may be inappropriate for some users. | Analysis, no video found on Youtube URL): "youtube.com/watch?v=TN9FsOSWy8w"

Example song: www.youtube.com/watch?v=TN9FsOSWy8w
Title: Re: foo_youtube
Post by: 3dyd on 2020-03-19 10:31:41
anyone knows about how to listen to / play Radio Garden audio web-streaming?
There is no way to do this with this component unless youtube-dl adds Radio Garden support.

Any way to bypass this YouTube age restriction thing or whatever it is?
All I can say on the topic is collected in this article: Authenticated access on Youtube (https://fy.3dyd.com/help/youtube_authentication/).
Title: Re: foo_youtube
Post by: Wolfbane on 2020-03-19 11:27:44
All I can say on the topic is collected in this article: Authenticated access on Youtube (https://fy.3dyd.com/help/youtube_authentication/).

Well went to the URL, followed instructions, but I cant seem to find the thing you give instructions to do.

Went to URL, F12, Refresh, Copy cURL.
But then the instruction on where to paste it is a bit unclear for me.
Quote:  Component preferences Network HTTP Enable persistent cookie storage Storage Modify Paste OK OK.

But in FooBar I can not find that in FooBar.
http://prntscr.com/riyfyl

And I could not see any components that matched either, and I did not find any info in the instructions that any component was needed.
http://prntscr.com/riyhnt

So if Im missing something plz let me know, either writing here or updating the instructions.
Title: Re: foo_youtube
Post by: 3dyd on 2020-03-19 16:06:13
It is about preferences of the component (of foo_youtube component since the site is for foo_youtube). I.e. Preferences -> Tools -> Youtube Source -> Network tab.
Title: Re: foo_youtube
Post by: Wolfbane on 2020-03-19 18:07:29
It is about preferences of the component (of foo_youtube component since the site is for foo_youtube). I.e. Preferences -> Tools -> Youtube Source -> Network tab.

Oki, that explains why I dint find the settings, found it, worked fine, awesome.
Title: Re: foo_youtube
Post by: seriousstas on 2020-03-25 11:28:55
How to remove blinking when changing the built-in chapters?
Trying to watch Contagion (1080p HD) .m4v.
It really bothers ..
Title: Re: foo_youtube
Post by: seriousstas on 2020-03-25 18:55:01
https://youtu.be/V0fClHMzdEs
Title: Re: foo_youtube
Post by: Mrakobes on 2020-04-01 07:59:12
I can’t create a button on the panel, I try to make it from the context menu, it is absent, the specified parameter is the artist - track
Title: Re: foo_youtube
Post by: Wolfbane on 2020-04-07 16:40:00
Stumble upon yet another video that is not working.
And I did do " All I can say on the topic is collected in this article: Authenticated access on Youtube. " and it worked. But this is still blocked somehow.

Unable to open item for playback (Youtube Source: foo_youtube: server error (403) from r2---sn-uxaxovg-5gor.googlevideo.com | ffmpeg: Server returned 403 Forbidden (access denied) | foobar2000: Access denied):
"www.youtube.com/watch?v=HIWY8UyW9bw"

https://www.youtube.com/watch?v=HIWY8UyW9bw
Title: Re: foo_youtube
Post by: TheQwertiest on 2020-04-07 17:46:04
It's just your usual youtube shenanigans again... Because stable API is for suckers...
Title: Re: foo_youtube
Post by: 3dyd on 2020-04-07 21:53:36
Yes, and it should be fixed in 3.6.

How to remove blinking when changing the built-in chapters?
Video playback is independent logic on top of the audio playback. It just pretends to be working together with the audio. Avoiding blinking in described use case is hardly possible. You may consider using video player for watching movies.
Title: Re: foo_youtube
Post by: seriousstas on 2020-04-09 10:19:02
Quote
You may consider using video player for watching movies
:-\  ..OK
Title: Re: foo_youtube
Post by: arch21 on 2020-04-10 10:38:24
could you fix last update date on component repository? regards.
Title: Re: foo_youtube
Post by: 3dyd on 2020-04-10 12:33:16
Thanks for noticing. Fixed.
Title: Re: foo_youtube
Post by: koupa on 2020-04-21 19:17:47
Is it possible to add support for alternative outputs? MadVR is very good but it needs a lot of configuration to be light. Sometimes it makes my computer too slow. For example other players use EVR and in the last months we have MPC Video Renderer from MPC-BE guys.

I know that you don't want to be a KODI alternative and I'm OK. But I have a lot of videoclips and I like to watch them. So It will be nice to use F2K for that.
Title: Re: foo_youtube
Post by: 3dyd on 2020-04-21 23:58:20
Component supports the following renderers: madVR -> EVR -> VMR9 -> VMR7. In this chain it uses first rendeder which it does not fail to setup.

To exclude madVR from this chain you can set its 'Source' to 'None' via context menu in component preferences Maintenance -> Third-party Binaries -> madVR.
Title: Re: foo_youtube
Post by: koupa on 2020-04-22 18:48:37
OK you are the best. I haven't thought of that. I just tried it and it works perfectly. Before that I had sync problems. Now seek is instant.
Title: Re: foo_youtube
Post by: Wolfbane on 2020-04-23 20:56:07
Howdy.

Did an entire "Format c:" uninstalled windows 7 and installed windows 10. (about time, hehe)

Dint do a backup of settings... long story short.

I can't seem to get O.B.S. to capture the Foobar YouTube video window.
I do find the window, and it does capture the background and the text between the songs.
But OBS doesn't capture the actual videos instead it only displays a "black box" instead of the video. ( The video is displayed correctly on my screen, just not in OBS )
( did install some "K-Lite Codec Pack 1544 Mega" )

Since I have not used Windows 10 before, I have no clue if there are any settings that I might need to change to get it to work. Or if there is something I else I might need to download to get things working?

But Im guessing the people who are in this forums might know a lot more on how to solve the issue, thx in advance.
Title: Re: foo_youtube
Post by: 3dyd on 2020-04-24 00:15:47
Since the component has not much options to tinker with in regard to video playback, an answer might actually be in my previous comment. I.e. among other things K-Lite Mega installs madVR, and the component uses it by default. One probably cannot easily grab video from madVR due to the way this renderer works, so you may try to disable it (follow instructions from my previous comment) and see if that helps. This is just a guess, but I have no other ideas.
Title: Re: foo_youtube
Post by: Wolfbane on 2020-04-24 01:13:40
Since the component has not much options to tinker with in regard to video playback, an answer might actually be in my previous comment. I.e. among other things K-Lite Mega installs madVR, and the component uses it by default. One probably cannot easily grab video from madVR due to the way this renderer works, so you may try to disable it (follow instructions from my previous comment) and see if that helps. This is just a guess, but I have no other ideas.

Yha, worked perfectly, thx.

Screenshot if anyone els need to find it and get it working.
https://prnt.sc/s4y056
Title: Re: foo_youtube
Post by: arst on 2020-04-24 08:49:11
Hi..dose anyone know why the grouped album art's height has big space at the bottom on playlist view?
Other playlists are ok...only the search result list from youtube has the problem..
XX
Title: Re: foo_youtube
Post by: Rytis Jonas on 2020-05-08 00:47:43
Thank you for a very useful component! 
Since I found it I'm using it every day for Youtube. But also would like to use it for local videos, cause I haven't found any other media player which would have such great audio quality like Foobar2000

I have read this whole thread but haven't really found clear answer - it suppose to play ALL local videos, right ?

So far I can watch MP4 files perfectly, but with MKV files I'm getting error: "Unable to open item for playback (Unsupported audio track format)", with AVI and MPG files I'm getting a little bit different error: "Unable to open item for playback (Unsupported file format)"

Is it suppose to be that way and it's impossible to watch MKV AVI and MPG files with that amazing audio quality of Foobar2000 or am I doing something wrong? 


Title: Re: foo_youtube
Post by: MojoBass on 2020-05-13 05:45:56
For Soundcloud playlists import/listing into foobar I have set up youtube-dl in foo_youtube at Preferences/Youtube Source/Maintainance as described here (https://hydrogenaud.io/index.php?topic=116179.0), and it works very well in general.
One issue I have found is that the import of a soundcloud playlist stops with the first track which is not available in my country. For example, for this (https://soundcloud.com/user-217183363/sets/old-school-hip-hop) playlist only the first of 446 tracks is imported, as already the second is not available in my country.
I could not find a way to add an option like --ignore-errors to youtube-dl within the foo_youtube setup. Is there a way to tell youtube-dl to ignore country restriction errors and skip these tracks?
Title: Re: foo_youtube
Post by: 3dyd on 2020-05-14 18:17:56
This had to be fixed on component side. Fixed in 3.6.1 beta3.

@Rytis Jonas
Component handles only video playback which acts like a visualization for the audio being played by foobar2000. I.e. file must be playable by foobar2000. It has mp4 support out-of-the-box. For other formats you need additional components e.g. foo_input_ffmpeg (https://www.foobar2000.org/components/view/foo_input_ffmpeg)
Title: Re: foo_youtube
Post by: MojoBass on 2020-05-15 06:53:20
This had to be fixed on component side. Fixed in 3.6.1 beta3.
Fix with beta3 confirmed. Thanks for your continuous amazing work!
Title: Re: foo_youtube
Post by: Rytis Jonas on 2020-05-19 22:53:53
.
Title: Re: foo_youtube
Post by: Rytis Jonas on 2020-05-19 22:56:51
This had to be fixed on component side. Fixed in 3.6.1 beta3.

@Rytis Jonas
Component handles only video playback which acts like a visualization for the audio being played by foobar2000. I.e. file must be playable by foobar2000. It has mp4 support out-of-the-box. For other formats you need additional components e.g. foo_input_ffmpeg (https://www.foobar2000.org/components/view/foo_input_ffmpeg)


No matter what I try I'm unable to play MKV or AVI files on Foobar2000    :(

Has ANYONE EVER succeeded to watch any MKV or AVI file on Foobar2000 ??

Maybe it's just not possible AT ALL and I shouldn't even be trying that ?



Title: Re: foo_youtube
Post by: Wolfbane on 2020-05-27 20:06:47
Anyone els happen to have huge YT video problems since last night?
I think like 50%+ of 1000+ songs can no longer be found all the sudden, here is short list of a few exampels, I tested a few out and they work manually.

Spoiler (click to show/hide)
Title: Re: foo_youtube
Post by: APECR on 2020-05-28 00:12:16
I would really like to see two functions: a custom delay to compensate for dsp processing and the ability to connect the dmitrirender handler.
Title: Re: foo_youtube
Post by: 3dyd on 2020-05-31 00:45:53
@Wolfbane
This might be solved in 3.6.1. You can also configure youtube-dl to not to depend entirely on internal Youtube support in the component.

a custom delay to compensate for dsp processing
Isn't this possible via some other DSP? It does not seem appropriate to provide this on decoder basis.

the ability to connect the dmitrirender handler.
Noted, but do not expect this in near future.
Title: Re: foo_youtube
Post by: Wolfbane on 2020-05-31 11:07:17
@Wolfbane
This might be solved in 3.6.1. You can also configure youtube-dl to not to depend entirely on internal Youtube support in the component.

I must have missed this feature. Can you toss me a URL or let me know where I find the info on to set this up ?
Title: Re: foo_youtube
Post by: Sergey77 on 2020-05-31 18:00:09
Hi there!
it is possible to create your own configuration file for youtube-dl and place it here: "C:\Users\<user name>\youtube-dl.conf"
from the description of the component: https://github.com/ytdl-org/youtube-dl#configuration (https://github.com/ytdl-org/youtube-dl#configuration)
In the new version of Youtube Source (https://www.foobar2000.org/components/view/foo_youtube) it is convenient to see the result of applying the configuration file to youtube-dl at the fb2k console window.
Title: Re: foo_youtube
Post by: 3dyd on 2020-05-31 23:04:15
I must have missed this feature. Can you toss me a URL or let me know where I find the info on to set this up ?
Here it is: Third-party binaries (https://fy.3dyd.com/help/third_party_binaries/).
Title: Re: foo_youtube
Post by: Wolfbane on 2020-06-01 08:44:30
Oki, so the new version 3.6.1 has the option to download the videos. Awesome sweet...

.... downloaded "youtube-dl.exe" used it ... 1hour+ later... Can't get it to work.
(Windows 10, Foobar 1.5.4, YouTube 3.6.1,)
https://prnt.sc/sri65i

Do not want to be rude, but is it possible to get a none programmer instructions on how to install things?
And dont get me wrong, I really love and think the plugins you guys spend time on are fucking amazing, and I could not do the things you do, so I really appreciate it.
But the instructions on how to install or get things working are really bad, at least for me, not sure if its because I don't work with programming or issue closely related to these, but its frustrating.


Title: Re: foo_youtube
Post by: MojoBass on 2020-06-01 20:33:38
I would go back to the original issue you have reported:
Anyone els happen to have huge YT video problems since last night?
I think like 50%+ of 1000+ songs can no longer be found all the sudden, here is short list of a few exampels, I tested a few out and they work manually.
I tried some of the shared links (by the way - good stuff thanks for sharing :) ):
I can watch all of them with my standard foo_youtube setup. Therefore I would first check if they work now as well for you with your update to latest version of foo_youtube (which I would highly expect...)

I my understanding the hint from 3dyd on using youtube-dl within foo_youtube would be a possibility to surpass the whole internal foo_youtube processing, which could be an alternative way to get access to your links - but if they work now with standard setup you would not need that anymore. I am not using this alternative, and I guess it is not really straight-forward.

Downloading youtube videos is another story. Here I use youtube-dl within foobar, but outside of foo_youtube.
It is as well not really straight-forward, but if you are interested I can try to walk you through that.

Title: Re: foo_youtube
Post by: Wolfbane on 2020-06-01 22:09:25
I would go back to the original issue you have reported:
I tried some of the shared links (by the way - good stuff thanks for sharing :) ):
I can watch all of them with my standard foo_youtube setup. Therefore I would first check if they work now as well for you with your update to latest version of foo_youtube (which I would highly expect...)

I my understanding the hint from 3dyd on using youtube-dl within foo_youtube would be a possibility to surpass the whole internal foo_youtube processing, which could be an alternative way to get access to your links - but if they work now with standard setup you would not need that anymore. I am not using this alternative, and I guess it is not really straight-forward.

Downloading youtube videos is another story. Here I use youtube-dl within foobar, but outside of foo_youtube.
It is as well not really straight-forward, but if you are interested I can try to walk you through that.

Glad that you enjoyed the music links, I personally love finding new awesome music.

Yes, the majority of all my songs work now with "3.6.1". (a few thousand not gone through them all, but looks to be back to normal)
But Yes, I still want to get "youtube-dl with foobar" to work, because sometimes songs are removed from YouTube, and then its nice to have them already stored on your computer.

I might also have a few vidoes songs, I did own videos for, but with copywrite shit them songs/videos are no longer on YT, so might get them back into my playlist again. (Not a priority...)
Title: Re: foo_youtube
Post by: arch21 on 2020-06-02 02:38:13
if I understand correctly your issue based on screenshot (which youtube-dl Source is set to none), you need to right-click on youtube-dl from Maintenance tab on Youtube Source preference, you will see the option.
Title: Re: foo_youtube
Post by: Wolfbane on 2020-06-02 09:53:46
if I understand correctly your issue based on screenshot (which youtube-dl Source is set to none), you need to right-click on youtube-dl from Maintenance tab on Youtube Source preference, you will see the option.

It looks like FooBar does not find any YT downloader...    Is it Found?... Nope.
Or I missing some information that you can see that I cant? am I looking in the wrong place ?
https://prnt.sc/ss7iv1

But hey as I said, help/instructions to get it to work was what I was looking for.
Title: Re: foo_youtube
Post by: MojoBass on 2020-06-03 05:35:00
Right-click on the youtube-dl line in 'Third-party Binaries' should give the possibility to select 'External', then in my case windows explorer is opening, which allows to navigate to your youtube-dl.exe to set the path.
Title: Re: foo_youtube
Post by: Wolfbane on 2020-06-03 05:58:15
Right-click on the youtube-dl line in 'Third-party Binaries' should give the possibility to select 'External', then in my case windows explorer is opening, which allows to navigate to your youtube-dl.exe to set the path.

Awesome, done. What is next step in the setup to get it to download the files and save them on my computer?
Title: Re: foo_youtube
Post by: MojoBass on 2020-06-03 06:58:43
What is next step in the setup to get it to download the files and save them on my computer?
As already mentioned, downloading is done outside foo_youtube (therefore it does not have much to do with youtube-dl now being found in foo_youtube). Hope I find some time the next days to post a short step-by-step tutorial how to download with youtube-dl out of foobar (probably next weekend).
Title: Re: foo_youtube
Post by: Wolfbane on 2020-06-03 07:07:32
As already mentioned, downloading is done outside foo_youtube (therefore it does not have much to do with youtube-dl now being found in foo_youtube). Hope I find some time the next days to post a short step-by-step tutorial how to download with youtube-dl out of foobar (probably next weekend).

Oki, Great, looking forward to it.
Title: Re: foo_youtube
Post by: Landsil on 2020-06-03 21:49:22
Hi,
I'm new to foobar and I'm looking at options for managing music.youtube with it.
Adding their links to foo_youtube seems to kinda work. It loads playlist but then skips most of records because they are not actually available on main yt website.
I've already found out I can provide my own cookie for authentication so I "think" I just need to find a way to tell it to query music.youtube instead of main website.
I had a look with search but wasn't able to find anything useful. Anyone knows if this is possible / has any pointers?
Title: Re: foo_youtube
Post by: APECR on 2020-06-04 20:40:18
Is it possible to make, when using the cover as a background, covers of not only video but also audio files?
Title: Re: foo_youtube
Post by: MojoBass on 2020-06-06 08:08:12
As already mentioned, downloading is done outside foo_youtube (therefore it does not have much to do with youtube-dl now being found in foo_youtube). Hope I find some time the next days to post a short step-by-step tutorial how to download with youtube-dl out of foobar (probably next weekend).

Oki, Great, looking forward to it.
See here (https://hydrogenaud.io/index.php?topic=45223.msg983915#msg983915)
Title: Re: foo_youtube
Post by: Landsil on 2020-06-06 10:39:48
Hi @MojoBass
I'm assuming this was for me?
Sadly didn't work, got exactly same errors.

On the flip side turns out pop-up errors are a bit misleading, I've found" View > Console" and it's showing full correct errors and it was complaining about lack of subscription.
I've added auth from https://fy.3dyd.com/help/youtube_authentication/
Everything works fine now, I can play music.youtube in foobar.
Title: Re: foo_youtube
Post by: MojoBass on 2020-06-06 10:46:41
Hi @MojoBass
I'm assuming this was for me?
No, for Wolfbane, see this post (https://hydrogenaud.io/index.php?topic=104379.msg983788#msg983788).
But I'm glad you solved your problem!
Title: Re: foo_youtube
Post by: Wolfbane on 2020-06-18 02:00:41
I tried to add a "playlist", I did work with other playlist like 1-2 weeks ago. But I cant get this playlist to work.

I tried "Add location" "Add multiple URL's" and "Load channel or playlist" and none worked for me.
So Im assuming there is a difference between this URL and the others I I used, what do I need to change in this URL To make it import the entire playlist to foobar/YT playlist ?

https://www.youtube.com/watch?v=BR8HgdmVDwQ&list=PLhIzey5JOsYGtAVfgh69jRzPwbZ1o_jdD
Title: Re: foo_youtube
Post by: Johnny Blade on 2020-06-18 14:33:00
I tried "Add location" "Add multiple URL's" and "Load channel or playlist" and none worked for me.
Same here...
Title: Re: foo_youtube
Post by: MithrandirSempai on 2020-06-18 19:56:14
Search on YouTube has stopped working for playlists.
Title: Re: foo_youtube
Post by: MojoBass on 2020-06-19 05:29:38
I cant get this playlist to work.
Search on YouTube has stopped working for playlists.
Both can not be confirmed on my side:
I can load this playlist (https://www.youtube.com/watch?v=BR8HgdmVDwQ&list=PLhIzey5JOsYGtAVfgh69jRzPwbZ1o_jdD) via File/Youtube Source/Load channel or playlist...  without problems.
Search of youtube playlists works as always.
Using foo_youtube 3.6.1
Title: Re: foo_youtube
Post by: arch21 on 2020-06-19 08:04:35
You need to set Youtube API key on Maintenance tab if you don't enable "Prefer youtube-dl over internal analyzer" on youtube-dl, at least that what I can guess by unset the key and see the console.
Regarding search issue, try change to youtube.web if it was not because youtube.api needs key to be set.
Title: Re: foo_youtube
Post by: ö123456 on 2020-06-19 18:56:13
I tried "Add location" "Add multiple URL's" and "Load channel or playlist" and none worked for me.
Same here...
same here
Title: Re: foo_youtube
Post by: Cnuut on 2020-06-21 01:09:01
Hi! Just want to report that there is alot of  "403" now. :)

EDIT: ehm... fixed it self after restart of foobar :D
Title: Re: foo_youtube
Post by: dassauce on 2020-06-21 20:27:39
Is there going to be an android youtube source component (or does one already exist)? I'd like to be able to put a whole youtube playlist in foobar2000 on my phone too if possible. Thanks in advance
Title: Re: foo_youtube
Post by: ö123456 on 2020-06-23 14:09:29
I tried "Add location" "Add multiple URL's" and "Load channel or playlist" and none worked for me.
Same here...
same here

still not working
Title: Re: foo_youtube
Post by: MojoBass on 2020-06-24 06:42:25
I tried "Add location" "Add multiple URL's" and "Load channel or playlist" and none worked for me.
Same here...
same here

still not working
Still working perfect on my side.

Did you follow the recommendations from arch21?
You need to set Youtube API key on Maintenance tab if you don't enable "Prefer youtube-dl over internal analyzer" on youtube-dl, at least that what I can guess by unset the key and see the console.
Title: Re: foo_youtube
Post by: MithrandirSempai on 2020-06-24 11:21:33
I cant get this playlist to work.
Search on YouTube has stopped working for playlists.
Both can not be confirmed on my side:
I can load this playlist (https://www.youtube.com/watch?v=BR8HgdmVDwQ&list=PLhIzey5JOsYGtAVfgh69jRzPwbZ1o_jdD) via File/Youtube Source/Load channel or playlist...  without problems.
Search of youtube playlists works as always.
Using foo_youtube 3.6.1
This option also does not work for me.
Using foo_youtube 3.6.1
Title: Re: foo_youtube
Post by: MithrandirSempai on 2020-06-24 11:23:33
You need to set Youtube API key on Maintenance tab if you don't enable "Prefer youtube-dl over internal analyzer" on youtube-dl, at least that what I can guess by unset the key and see the console.
Regarding search issue, try change to youtube.web if it was not because youtube.api needs key to be set.

Where and how can I enable "Prefer youtube-dl over internal analyzer"?
Title: Re: foo_youtube
Post by: arch21 on 2020-06-24 13:15:14
From Maintenance tab of Youtube Source preference, you will context menu when you right-click on youtube-dl. If you don't have youtube-dl binary, then you need to download it first. You can choose 'Managed', restart foobar2000, then you will additional option to download and update the binary. After finish downloading, enable that option. If still not working to you, try to get Youtube API key (there is a guide on developer site).

If you found more issue on this component, you could post console content, especially foo_youtube part to help.
Title: Re: foo_youtube
Post by: ö123456 on 2020-06-24 17:03:30
ty arch21 with youtube-dl.exe is working now,
but it has worked without before.

instructions here https://fy.3dyd.com/help/third_party_binaries/
edit:
with apikey works again too
Title: Re: foo_youtube
Post by: sunnow on 2020-06-27 00:22:09
When a youtube track is already playing if I click on another youtube item in the playlist, foobar freezes for almost 5 mins. I am running on the latest foobar. foo_youtube settings are at their defaults.

I am using almost 20 other plugins, so I don't know if there is some conflict, but there are no errors in the console. Are you aware of any conflicts?

Any other reason?

That aside, its a beautiful plugin. I am amazed at the amount of features that you have built in.
Title: Re: foo_youtube
Post by: ö123456 on 2020-07-01 19:38:57
edit
Title: Re: foo_youtube
Post by: ö123456 on 2020-07-01 19:39:24
When a youtube track is already playing if I click on another youtube item in the playlist, foobar freezes for almost 5 mins. I am running on the latest foobar. foo_youtube settings are at their defaults.

I am using almost 20 other plugins, so I don't know if there is some conflict, but there are no errors in the console. Are you aware of any conflicts?

Any other reason?

That aside, its a beautiful plugin. I am amazed at the amount of features that you have built in.

it has nothing to do with the plugin,
it ist something wrong with your foobar setup
Title: Re: foo_youtube
Post by: q269800598 on 2020-07-16 08:58:02
The first time I found that foobar could play video. It's amazing.
I've used this plugin to play local video.
Can I load local subtitle files (such as .ass or .srt file) while I'm playing video ?
Can someone help me with my questions ?
Title: Re: foo_youtube
Post by: TheQwertiest on 2020-08-20 11:02:28
@3dyd, can I bother you a bit about `foo_youtube` implementation (non YT specific)? I'm implementing a similar component for Spotify, so I was hoping to skip some trial-error steps that you've surely went through during the course of `foo_youtube` development =)
I can use whatever means of contact you are comfortable with (i.e. here in the topic, PM, e-mail, instant messenger of some sort or w/e).
Title: Re: foo_youtube
Post by: henrywang on 2020-08-31 12:32:51
Hi guys, new foobar user here. I tried to add both youtube api and youtube-dl (and setting to be prefered over internal analyser), but the component still only downloads 50 tracks. Is there a work around?
Title: Re: foo_youtube
Post by: Slender on 2020-08-31 19:01:16
No, that's a limit set by the search API and it's not possible to retrieve more than 50 videos per track. File>youtube Source>Load channel or playlist can load everything, though.
Title: Re: foo_youtube
Post by: henrywang on 2020-08-31 20:09:14
No, that's a limit set by the search API and it's not possible to retrieve more than 50 videos per track. File>youtube Source>Load channel or playlist can load everything, though.
Wow thanks, thats awesome!
Title: Re: foo_youtube
Post by: askold on 2020-09-02 23:11:39
these menu items are mixed up
screenshot (https://imgur.com/q1RgQW5)

clicking "по дате" (by date) you'll get a "по рейтингу" (by rating) sorting and so on.
Title: Re: foo_youtube
Post by: tt-1995 on 2020-09-12 13:26:51
Many of the videos in my music playlist return a 403 when attempting to play them using foo_youtube, as of today. Mostly official music videos and videos generated by YouTube ('(Artist) - Topic'). They play just fine in my browser.

I cannot download these videos using youtube-dl either ('non-403' videos do work), so it seems to me this isn't necessarily a foo_youtube issue? FYI, youtube-dl gets redirected to https://www.youtube.com/yts/jsbin/player_ias-vfl_PLd61/en_US/base.js. Perhaps this has something to do with copyright?

I am using the latest version of foobar2000 and foo_youtube, attached to this message are the log contents after opening a 403 video.

@3dyd Having the exact same issue again with 3.6.1, youtube-dl still works though. Restarting foobar2000 resolved the issue.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-09-23 18:35:36
Thank you for the component,I have been using it for a long time,everything works fine!
Is it possible to sync audio and video when viewing m3u8 IPTV playlists? Can this be implemented in the next version of the component?
Title: Re: foo_youtube
Post by: Nassoo on 2020-10-06 07:40:36
Hi, guys! foo_youtube suddenly stopped working for me... I'm using the last versions of all components. Here is the console log:

Code: [Select]
foo_youtube: [audio] opening webm dash 2674kb 126kbps, opus 48000hz 2ch 128kbps
foo_youtube: [audio] opening webm dash 2674kb 126kbps, opus 48000hz 2ch 128kbps
foo_youtube: [video@26F3BAE8] opening webm dash 876kb 41kbps, vp9 480p 30fps 41kbps
foo_youtube: [error] VSFilter: ClassFactory cannot supply requested class

It seems VSFilter to be the problem. A few days ago I put XySubFilter_3.1.0.752_x64 instead of XySubFilter_3.1.0.752_x86 (the upper log is with this version) and it started working again, but this morning it refuses to start playing - just freezes. In the console it only gives me this:
Code: [Select]
foo_youtube: [audio] opening webm dash 1769kb 138kbps, opus 48000hz 2ch 128kbps
foo_youtube: [video@0DB1EC50] opening webm dash 4540kb 356kbps, vp9 1080p 30fps 356kbps

Here is the status information with XySubFilter_3.1.0.752_x64 (it was working that way, before suddenly stopped without chaining anything):
Code: [Select]
ffmpeg (internal):
lavf 58.29.100, lavc 58.54.100, lavu 56.31.100
youtube-dl (external):
2020.9.20
VSFilter (external):
%1 is not a valid Win32 application.
LAV Filters (external):
Splitter 0.74.1, Video 0.74.1
madVR (external):
0.92.17
libcurl (internal):
libcurl/7.68.0 Schannel zlib/1.2.11 brotli/1.0.7 nghttp2/1.40.0

and with XySubFilter_3.1.0.752_x86 (not working at all giving me this "ClassFactory cannot supply requested class" error):
Code: [Select]
VSFilter (external):
3.1.0.752
LAV Filters (external):
Splitter 0.74.1, Video 0.74.1
madVR (external):
0.92.17
libcurl (internal):
libcurl/7.68.0 Schannel zlib/1.2.11 brotli/1.0.7 nghttp2/1.40.0
ffmpeg (internal):
lavf 58.29.100, lavc 58.54.100, lavu 56.31.100
youtube-dl (external):
2020.9.20

Any help would be appreciated! Thank you in advance!
Title: Re: foo_youtube
Post by: Nassoo on 2020-10-06 11:25:42
Well... I found out what causing the problems - when I use ASIO4ALL most of the videos don't start at all. When I use my sound card ASIO driver (ASIO E-MU 0404) everything works fine... weird  :o
Still I don't get what's the deal with this "ClassFactory cannot supply requested class" error...
Title: Re: foo_youtube
Post by: arch21 on 2020-10-06 11:32:01
IIRC foo_youtube only support VSFilter or xy-VSFilter and only 32-bit version
Title: Re: foo_youtube
Post by: Nassoo on 2020-10-07 06:04:20
IIRC foo_youtube only support VSFilter or xy-VSFilter and only 32-bit version
Yeah, the "ClassFactory cannot supply requested class" error appears exactly with the 32 bit version downloaded from the official plugin page (https://fy.3dyd.com/help/third_party_binaries/).
Title: Re: foo_youtube
Post by: arch21 on 2020-10-07 06:54:33
Yeah, the "ClassFactory cannot supply requested class" error appears exactly with the 32 bit version downloaded from the official plugin page (https://fy.3dyd.com/help/third_party_binaries/).
I have xy-VSFilter installed and it works just fine. Make sure you use this (https://github.com/Cyberbeing/xy-VSFilter/releases/tag/3.0.0.306) instead of XySubFilter.
Title: Re: foo_youtube
Post by: Liquid Blasted on 2020-10-14 15:45:44
Hi all, I have a problem.
I adding my youtube playlist via File -> Youtube Source -> Load channel or playlist...
There is a playlist created in Foobar, all is OK
But in View -> Youtube Source -> Auto-Updated Playlists - it's empty, I can't see this playlist
Title: Re: foo_youtube
Post by: Slender on 2020-10-14 15:50:08
Is this a channel? If so, have you clicked on the playlists entry again after it was added? Some time ago, the behavior was changed so that when you first add a playlist, you need to select it again for it to show up in auto-updated playlists.
Title: Re: foo_youtube
Post by: Liquid Blasted on 2020-10-14 15:59:40
Is this a channel? If so, have you clicked on the playlists entry again after it was added? Some time ago, the behavior was changed so that when you first add a playlist, you need to select it again for it to show up in auto-updated playlists.
Yep it's a playlist, with "/playlist?list=" in the link
I tried to select it, play it, but no luck - auto-updated playlists window still empty
I'm using Foobr2k 1.4.3 with the latest subj 3.6.1
Title: Re: foo_youtube
Post by: nsstudios on 2020-11-07 00:06:20
Is this plugin updated anymore? I go to help/youtube source/check updates, and it tells me it's the latest, yet the search doesn't work, and I have to rely on youtube-dl for playing.
Title: Re: foo_youtube
Post by: MojoBass on 2020-11-07 05:13:58
foo_youtube works flawless on my side including search.
Title: Re: foo_youtube
Post by: blindpainkiller on 2020-11-07 16:43:55
I don't think it's updated anymore no. The developer haven't update any of their tools since July I think.
I have the same issue with the search not working etc.. It is possible that it would work with a YouTube API key, but I haven't bothered going through the steps to get one myself.
Title: Re: foo_youtube
Post by: luiscrepy on 2020-11-11 13:43:46
Bonjour,
Je suis utilisateur foobar2000 depuis quelques semaines. J'ai adopté ce lecteur parce que c'est à ma connaissance le seul gratuit permettant d'utiliser les filtres FIR grâce à Foo_convolve.
Juste après l'installation il ne lisait pas les vidéos. Après quelques recherches, j'ai installé "LAV filters" qui me permet de les lire à présent directement dans foobar.
Dans la foulée, j'ai aussi installé Foo_youtube.

Je suis donc novice, confronté à plusieurs problèmes, et me suis inscrit sur ce forum que j'ai découvert il y a 2 heures et dont je ne connais pas encore le fonctionnement. Il semble en langue anglaise mais je lis les posts dans un Français d'une qualité surprenante pour que ce soit une traduction automatique Google. Dites moi si je dois rédiger en Anglais pour la suite, ce qui me sera pénible mais pas insurmontable. Merci d'avance pour ceux qui me répondront. Je viens de remarquer que dans l'aperçu, le message est parfois modifié par rapport à ce que j'ai écrit.

Mon premier problème est un décalage d'une bonne demi-seconde entre son et image, conséquence d'une convolution de 32000 "taps" par voie. Existe-t-il un composant qui permette de retarder l'image précisément ?

Le deuxième problème est un fonctionnement bizarre de Foo-Youtube mais qui n'est peut-être pas de mon fait. Je cherche une vidéo sur le site de Youtube, je copie l'URL et la copie dans le champ "Add multiple URL's" du menu "youtube source" Cela ne fonctionne pas sur de nombreuses vidéo. Rien ne se passe. Parfois cela fonctionne très bien.
Quand cela ne fonctionne pas, je colle l'URL dans le champ "add location" et cela fonctionne alors très bien à chaque fois pour la dizaine de vidéos que j'ai testées.

La deuxième bizarrerie est que le lendemain aucune des vidéos présentes dans la playlist que j'ai faite la veille ne fonctionne. J'ai parfois un message qui me dit que je n'ai pas le droit de la lire et parfois cela ne fonctionne pas tout simplement. Je crois que Youtube identifie Foobar et bloque la lecture ?

Qu'en pensez vous ?

Cordialement,
Luis


Mod edit:
TOS 10 (https://hydrogenaud.io/index.php?topic=3974) - All members must post in English.  Content in other languages are allowed as long as full English translations are provided, or otherwise at the discretion of the staff.


Hello,
 I am user foobar2000 recent weeks.  I adopted this drive because it is to my knowledge the only free for using FIR filters through Foo_convolve.
 Just after installation he did not read the videos.  After some research, I installed "LAV filters" that allows me to read now directly foobar.
 In the process, I also installed Foo_youtube.

 I am a novice, faces several problems, and I signed up on this forum that I discovered there 2 hours and I do not know yet operation.  It appears in English but I read the posts in French in a surprising quality for either an automatic translation to Google.  Tell me if I have to write in English for the sequel, which will be painful for me but not insurmountable.  Thank you in advance for those who meet me.  I just noticed that in the preview, the message is sometimes altered from what I wrote.

 My first problem is a mismatch of a good half a second between sound and image, the result of a convolution 32000 "taps" per channel.  Is there a component that allows to delay the image exactly?

 The second problem is one odd-operating Foo Youtube but is perhaps not my doing.  I am looking for a video on the YouTube site, I copy the URL and copy in the "Add multiple URL's" menu "youtube source" This does not work on many video.  Nothing is happening.  Sometimes it works very well.
 When this does not work, I paste the URL in the "add location" field and then it works very well each time for ten videos I tested.

 The second oddity is that the next day no videos in the Playlist I made the day before work.  I sometimes get a message that says I have no right to read and sometimes it does not work simply.  I think that YouTube identifies and blocks Foobar reading?

 What do you think ?

 Regards,
 Luis
Title: Re: foo_youtube
Post by: arch21 on 2020-11-12 16:43:43
hi, I have an issue. I have Search on Site opened, the focus on other app or just click on Desktop, then back to Search on Site window. I can't type anything on search input until I click/focus to foobar2000 main window. Regards.
Title: Re: foo_youtube
Post by: TheQwertiest on 2020-11-13 10:29:29
I don't think it's updated anymore no. The developer haven't update any of their tools since July I think.
I have the same issue with the search not working etc.. It is possible that it would work with a YouTube API key, but I haven't bothered going through the steps to get one myself.
Wrong =)
https://fy.3dyd.com/changelog/beta/
Title: Re: foo_youtube
Post by: blindpainkiller on 2020-11-13 16:33:11
I don't think it's updated anymore no. The developer haven't update any of their tools since July I think.
I have the same issue with the search not working etc.. It is possible that it would work with a YouTube API key, but I haven't bothered going through the steps to get one myself.
Wrong =)
https://fy.3dyd.com/changelog/beta/
You beat me to it :). Yes, thankfully I was wrong.
Title: Re: foo_youtube
Post by: rykiff on 2020-11-16 04:39:32
Would it be possible to add additional support for the way Youtube Source displays album art as a fallback background when video isn't loaded? (as configured in the  'Youtube Source > Video > Window' options)

Right now, as far as I can tell, it is only able to display album art that is attached as an image via the 'Properties > Artwork' dialog. It would be wonderful if it could also display an image found in the same folder the file is being played from (e.g. if a youtube URL is saved to an .m3u file and there was alternate album art saved to the folder the .m3u file was saved to).
Title: Re: foo_youtube
Post by: widerock on 2020-11-18 10:22:09
Is there any way to save the youtube video which I'm watching with foo_youtube?
Title: Re: foo_youtube
Post by: MojoBass on 2020-11-18 11:33:19
to my knowledge not directly in foo_youtube, but using youtube-dl within foobar via foo_run, see here (https://hydrogenaud.io/index.php?topic=45223.msg983915#msg983915)
Title: Re: foo_youtube
Post by: widerock on 2020-11-18 13:01:04
to my knowledge not directly in foo_youtube, but using youtube-dl within foobar via foo_run, see here (https://hydrogenaud.io/index.php?topic=45223.msg983915#msg983915)
That's good enough.
Thank you very much, MojoBass.
Title: Re: foo_youtube
Post by: rykiff on 2020-11-22 00:10:07
I've been experimenting with VSFilter to try and get subtitles working, but I can't seem to get embedded subtitles to display over the video, Do subtitles still work in this component? I have my VSFilter source set to managed, and have the latest installed, but can't seem to access the configuration panel for it (or where to find the configuration option).
Title: Re: foo_youtube
Post by: racerxnet on 2020-11-23 16:57:35
This should dump the cache when closing foobar so that it does not continue to take up hard drive space. It can reload the metadata if selected again by the user. Also, I get a persistent 403 error after playing 1 video. Closing and reopening Foobar allows me to select 1 new video. Anyone have ideas?

I am on the latest Foobar iteration and Beta for Foo_youtube.

MAK
Title: Re: foo_youtube
Post by: fletw on 2020-11-26 05:33:49
@3dyd Hi, could it be possible to play a local file with external subtitles (.srt for instance) using xy-VSFilter?

Thanks!
Title: Re: foo_youtube
Post by: tt-1995 on 2020-11-26 23:13:54
The HTTP 403 error started appearing again when attempting to play (music) videos on official accounts. Video on non-official accounts work fine.

I noticed that the 'SIDCC' parameter within the cookies info is updated with every request to YouTube, and the expiry date is set to the current date. This happens both in-browser and within foobar2000. The cookies.txt file is updated when calling videos via foo_youtube, so I assume this is expected behavior?

I used to be able to 'fix' this issue by restarting foobar2000. That doesn't work anymore. Renaming foo_youtube's cache directory to enable foo_youtube to recreate it and setting the user agent to the one my browser (Chrome, latest version) is using didn't work either.

[UPDATE] It just started working again, out of the blue. I did update the user agent once again (Chrome wasn't fully up-to-date after all).
Title: Re: foo_youtube
Post by: cooldude on 2020-12-01 13:47:43
The HTTP 403 error started appearing again when attempting to play (music) videos on official accounts. Video on non-official accounts work fine.

I noticed that the 'SIDCC' parameter within the cookies info is updated with every request to YouTube, and the expiry date is set to the current date. This happens both in-browser and within foobar2000. The cookies.txt file is updated when calling videos via foo_youtube, so I assume this is expected behavior?

I used to be able to 'fix' this issue by restarting foobar2000. That doesn't work anymore. Renaming foo_youtube's cache directory to enable foo_youtube to recreate it and setting the user agent to the one my browser (Chrome, latest version) is using didn't work either.

[UPDATE] It just started working again, out of the blue. I did update the user agent once again (Chrome wasn't fully up-to-date after all).

Thank you, renaming the cache folder and then adding my browser's user agent fixed it.

I have a different question - how do I make the plugin completely ignore the uploader's channel name? Currently, it adds the uploader as "Artist" in the metadata.
The plugin also has an included "metadata pattern" which does a different thing - it parses the video title and tries to semantically guess the artist and add it to the metadata. But I'd rather it leave the video title as it is, and just ignore the uploader.
Title: Re: foo_youtube
Post by: kode54 on 2020-12-01 22:55:26
Or perhaps a different tag could be used for the uploader.
Title: Re: foo_youtube
Post by: cooldude on 2020-12-04 09:05:51
Or perhaps a different tag could be used for the uploader.

I assume you're replying to me - how would that be done? I imagine it's possible to write a regular expression which just does "grab the video's title as a <title>, do nothing else". Unfortunately, I'm unable to write regular expressions as I do not have a box full of rabid squirrels to throw a keyboard into.
Title: Re: foo_youtube
Post by: kbo on 2020-12-09 10:26:17
Code: [Select]
Unable to open item for playback (Youtube Source: foo_youtube: server error (403) from r3---sn-u2oxu-3g3e.googlevideo.com | ffmpeg: Server returned 403 Forbidden (access denied) | foobar2000: Access denied):
"www.youtube.com/watch?v=sDHqywS6un0"

Started today for every  YT video.
Title: Re: foo_youtube
Post by: tt-1995 on 2020-12-09 13:01:53
Code: [Select]
Unable to open item for playback (Youtube Source: foo_youtube: server error (403) from r3---sn-u2oxu-3g3e.googlevideo.com | ffmpeg: Server returned 403 Forbidden (access denied) | foobar2000: Access denied):
"www.youtube.com/watch?v=sDHqywS6un0"

Started today for every  YT video.
Same here. Haven't been able to get plugin to work correctly since yesterday. Tried versions 3.6, 3.6.1 and 3.7 beta 1, updated cookies and user agent, all to no avail. Using latest version of foobar2000.
Music videos on non-official accounts still play fine.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-12-09 13:34:22
I have with these settings works without problems 3.7 beta 1
Title: Re: foo_youtube
Post by: tt-1995 on 2020-12-09 15:04:46
I have with these settings works without problems 3.7 beta 1
Thanks! Changing External to Managed and checking the Prefer option did the trick. I was still having trouble with one video (which was still returning a 403), restarting foobar2000 resolved that. Now using 3.6.1.
Title: Re: foo_youtube
Post by: kbo on 2020-12-10 08:16:11
I have with these settings works without problems 3.7 beta 1

Thanks, it works! :)
Title: Re: foo_youtube
Post by: ShAlex on 2020-12-10 09:33:09
I have with these settings works without problems 3.7 beta 1
Thanks a lot! It really works (only with foo_youtube_3.7_beta1).
Also glad to report that this plugin works with new "YouTube Music" service. It supports playlists, artists and albums. 😊
Title: Re: foo_youtube
Post by: mountwash on 2020-12-11 10:11:09
Code: [Select]
Unable to open item for playback (Youtube Source: foo_youtube: server error (403) from r1---sn-ab5l6nzk.googlevideo.com | ffmpeg: Server returned 403 Forbidden (access denied) | foobar2000: Access denied):
"www.youtube.com/watch?v=LvdLovAaYzM"
Receiving this error for all YouTube videos for 2+ weeks.
Title: Re: foo_youtube
Post by: Air KEN on 2020-12-11 11:14:02
@mountwash

Try...

Help - Third-party binaries
http://fy.3dyd.com/help/third_party_binaries/

-LAV Filters
 LAVFilters-0.74.1-Installer.exe
https://github.com/Nevcairiel/LAVFilters/releases
-libcurl
 libcurl.dll
http://fy.3dyd.com/download/libcurl_7_68.7z
-youtube-dl
 youtube-dl.exe (Windows exe)
http://ytdl-org.github.io/youtube-dl/download.html
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-12-11 15:23:01
mountwash you have disabled LAVFilters not found
Title: Re: foo_youtube
Post by: mountwash on 2020-12-11 16:17:43
@mountwash

Try...

Help - Third-party binaries
http://fy.3dyd.com/help/third_party_binaries/

-LAV Filters
 LAVFilters-0.74.1-Installer.exe
https://github.com/Nevcairiel/LAVFilters/releases
-libcurl
 libcurl.dll
http://fy.3dyd.com/download/libcurl_7_68.7z
-youtube-dl
 youtube-dl.exe (Windows exe)
http://ytdl-org.github.io/youtube-dl/download.html
Worked! Many thanks!  :D  :D  :D
Title: Re: foo_youtube
Post by: JuthaDDA on 2020-12-12 19:02:51
Checking the prefer youtube-dl option, my foobar2000 crashes very frequently. Does anyone suffer similar problems?
Title: Re: foo_youtube
Post by: mountwash on 2020-12-12 19:08:47
I had one crash with foo_youtube_3.7_beta1 then reverted back to 3.6.1 and have had no problems since.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-12-12 20:15:54
foo_youtube_3. 7_beta1 I have crashes happen quite often
Title: Re: foo_youtube
Post by: minimi1 on 2020-12-14 21:13:18
Hello good people, i'm new and noob for foobar and youtube and i hope i can get some help... I still getting 403 error from youtube not all videos some works... i tried updating user agent and it works for a day and stopped, then i set settings from "SergPuh.68" and it worked for a day then again stopped, i tried installing LAV Filters, set to external libcurl.dll, trying 3.6.1 - 3.7_beta, deleting cache folder... and still i now getting this error
"Unable to open item for playback (Youtube Source: ffmpeg: Server returned 403 Forbidden (access denied) |....."
Title: Re: foo_youtube
Post by: Air KEN on 2020-12-14 22:11:22
Hi :)
@minimi1

Reply #1334 Air KEN
https://hydrogenaud.io/index.php?topic=104379.msg991380#msg991380

Use Youtube Source 3.6.1 (foo_youtube.dll)

youtube-dl (youtube-dl.exe)
https://github.com/ytdl-org/youtube-dl/releases

C:\Windows\youtube-dl.exe
Double click

foobar2000 Preferences>Tool>Youtube Source>Maintenance tab>
Third-party Binaries>youtube-dl right click>System, Prefer youtube-dl over internal analyzer
Title: Re: foo_youtube
Post by: minimi1 on 2020-12-14 23:48:02
^ Thank you Air KEN for helping me, after half hour i managed to fix by setting youtube-dl source to external and navigate to youtube-dl.exe :)
Title: Re: foo_youtube
Post by: tonyo123 on 2020-12-15 00:26:57
Thank you 3dyd. Also, to posters who helped with the settings, I see that the 'auto-check for updates' (foo_acfu) help me with the component version numbers, too.  I had long ago wondered why there was no video capability in Foobar2K. The stern responses were: 'it's for audio'. Foo_youtube addresses that especially in how it not just links to a single file, but, how it allows for youtube playlists that expand in F2K. I've also added a video tab to my main window. 
Title: Re: foo_youtube
Post by: Adil on 2020-12-16 01:04:29
Hi there.

I'm using foo_youtube_3. 7_beta1 in latest foobar version.

Everything is working fine, except that thumbnails are not shown as Album Art. No one image is shown as "Album Art". I use all default settings.

How can I fix that? I would like to see a list with album arts in Facets.

Thanks in advance.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-12-18 05:40:38
Adil install the latest version of the Youtube Source 3.7 component In the component settings, check the use thumbnails as covers box.
Title: Re: foo_youtube
Post by: Adil on 2020-12-18 12:33:00
@SergPuh.68

Thank you very much for your time!

I really did that, but neither SimplayList nor Facets show the artwork of the archives. I took a look at all the component settings and, as said before, everything is in the default. The component works correctly, it just doesn't display the artwork...
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-12-18 13:35:29
Adil,when playing local files from your computer, are the covers displayed? Once again check the settings that are responsible for displaying covers.
Title: Re: foo_youtube
Post by: Adil on 2020-12-18 15:10:35
@SergPuh.68

I followed your settings step by step and now it worked! It's working exactly as I wanted!

I cannot say precisely what was the determining configuration, but I believe that they were all equally responsible for it to work.

Thank you very much for your dedication here, I am very pleased and thankful for your support!

All the best to you!   ;)

Adil
Title: Re: foo_youtube
Post by: Adil on 2020-12-18 19:48:16
So, now I'm trying to download a video, but nothing happens.

This is the configuration I use in Run Services:

Code: [Select]
"C:\Plugins\Codecs\youtube-dl\youtube-dl.exe" -i  "%fy_url%" -o 'G:\%(title)s.%(ext)s'

Could someone please tell me what's wrong?
Title: Re: foo_youtube
Post by: Adil on 2020-12-18 20:14:49
Well... I just downloaded the newest version of youtube-dl here (https://youtube-dl.org/) and then everything runs fine!

Thanks a lot to developer of this very useful component and to @SergPuh.68 !

Adil
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-12-19 07:04:02
Adil,did you know that when using the YouTube API key, the functionality of the Youtube Source component increases significantly?Instructions on how to create a project and get credentials: https://developers.google.com/youtube/v3/getting-started
Title: Re: foo_youtube
Post by: Adil on 2020-12-19 14:02:36
Yes, I tried to follow the steps, but at some point I was unable to complete the tasks … It is a very complex procedure, at least for me …

Who knows, maybe at some other time I'll be more lucky...
Title: Re: foo_youtube
Post by: WiAIeonn on 2020-12-21 00:59:37
hey.
does "Properties overriding (https://fy.3dyd.com/help/metadata/#Properties_overriding)" work ?
i tried to change upload_date for some tracks like this:
Code: [Select]
File>Youtube source>Add multiple Urls...
https://www.youtube.com/watch?v=oozJH6jSr2U&fb2kx_upload_date=2020-12-20
"processing..." windows appeares, but after complete "Upload Date" field shows date from youtube, not mine
Title: Re: foo_youtube
Post by: MojoBass on 2020-12-23 06:36:15
When playing youtube tracks from a foobar playlist, foobar crashes - only sometimes - at track change, e.g. after 2 hours or 10 minutes etc. Seems to me random and non-reproducible, therefore really hard to test. I first thought it is caused bei either upnp-streaming (foo_out_upnp), skipping parts of the track (foo_skip), cross-fading or playing via Georgia layout, however still randomly crashes when non of these are activated. No change as well when 'prefer youtube-dl over internal analyzer' is switched on or off.
See enclosed one of the crash reports. All crash reports show
Code: [Select]
Call path:
input_entry::g_open_for_decoding
Crash location:
Module: foo_youtube
Anyone having an idea on how to improve stability?
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-12-23 06:54:19
MojoBass,update the component to version 3.7
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-12-23 06:57:59
and make these settings:
Title: Re: foo_youtube
Post by: MojoBass on 2020-12-23 07:29:19
@SergPuh.68: Ups, missed upgrade from 3.7b1 to 3.7 - thanks! Will do testing with 3.7
Other settings are already as shown.
Title: Re: foo_youtube
Post by: MojoBass on 2020-12-23 08:24:13
Crashed again with 3.7, no crash report available (sometimes FB seems to crash so fast that even no crash report is written).
Post new crash report when available from one of the future crashes to come up - however no change to previous ones expected ...
Title: Re: foo_youtube
Post by: mountwash on 2020-12-23 09:53:19
Maybe try reverting back to foo_youtube 3.6.1: I have not had any crashes since reverting back.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2020-12-23 11:19:40
As a result of experiments, I brought out such settings for myself,and it works optimally.
Youtube Source 3.7
LAV Filters (external):Splitter 0.74.1, Video 0.74.1
youtube-dl (external):2020.12.22   
libcurl (internal):libcurl/7.68.0 Schannel zlib/1.2.11 brotli/1.0.7 nghttp2/1.40.0



   
   
Title: Re: foo_youtube
Post by: MojoBass on 2020-12-23 13:32:33
Agreed from my side: foo_youtube 3.7 with youtube-dl v2020.12.22 seems to be very stable, no crashes on my side so far.
Seems to be important to keep youtube-dl on latest status (many, often daily updates...)
Title: Re: foo_youtube
Post by: MojoBass on 2020-12-26 07:37:24
Thanks again very much for this great component. Playing yt tracks is really stable with latest components!
 Where I still get regular and random crashes is when applying Replay Gain to yt tracks (Scan per-file track gain), which is great to eliminate varying volume levels of yt tracks. See crash report attached. When I select 100+ yt tracks for applying RG, it is almost certain that FB crashes. When selecting approx 10 tracks, chances are maybe 70% to be successful. Any thoughts?
Title: Re: foo_youtube
Post by: tripko on 2020-12-26 09:28:38
Thanks for this very good and useful plugin for my favorite player - Foobar allowed me to use old MB with Atom CPU and fan less design for quiet audio playback and can even handle playing from youtube directly, which browser can hardly manage on week PC like this.
After latest problems I found the update and adding of API key helped solve all the limitations and access denied errors.

However I am still having issues adding and playing from soundcloud. Is it possible in 3.7 ? download via youtube-dl manually works, but no import to foobar is possible.
I have tried fy+URL in foobar add location, and have tried also YouTube source add URL
I have tried both managed and external settings for youtube-dl
Any tips anyone?
a part of console output
Quote
foo_youtube: [warning] [audio] opening, decoder foobar2000: Network authentication error (80090302)
Unable to open item for playback (Youtube Source: foo_youtube: Invalid data found when processing input | foobar2000: Network authentication error (80090302)):
"soundcloud.com/xxxxxxx/xxxxx"

Title: Re: foo_youtube
Post by: MojoBass on 2020-12-26 10:35:19
Any tips anyone?
Just tried soundcloud:
- Chose a random soundcloud track (link (https://soundcloud.com/lil_peep/the-way-i-see-things-prod-kryptik?in_system_playlist=personalized-tracks%3A%3Auser-906471805%3A220722918))
- in Foobar: File -> Youtube Source -> Add multipe URLs... - window opens, pasted above link into window
Then a new playlist is created in foobar which contains just this track, which plays nicely with double-click
Title: Re: foo_youtube
Post by: tripko on 2020-12-26 14:48:25
Just tried soundcloud:
- Chose a random soundcloud track (link (https://soundcloud.com/lil_peep/the-way-i-see-things-prod-kryptik?in_system_playlist=personalized-tracks%3A%3Auser-906471805%3A220722918))
- in Foobar: File -> Youtube Source -> Add multipe URLs... - window opens, pasted above link into window
Then a new playlist is created in foobar which contains just this track, which plays nicely with double-click
Hello MojoBass,

Thank you for the answer.

Not for me - even with your link I get nothing in playlist and error in console:
foo_youtube: [error] tp.l > could not process 'https://soundcloud.com/lil_peep/the-way-i-see-things-prod-kryptik?in_system_playlist=personalized-tracks%3A%3Auser-906471805%3A220722918': Network authentication error (80090302)

I have tried several links - both to tracks and playlists and all fail :( even the links I have added before to the "live" playlist with links to YT and SC fail, while YT plays OK 100%
 
Title: Re: foo_youtube
Post by: MojoBass on 2020-12-27 06:32:38
Make sure that you have installed the latest versions of foobar (1.6.2), foo_youtube (3.7) and youtube-dl (v2020.12.26).
And I would tick 'Prefer youtube-dl over internal analyzer' as shown in the screenshots of SergPuh.68.
I guess the correct youtube-dl installation within foo_youtube is the key to solve the issue.
Title: Re: foo_youtube
Post by: mikehawk1999 on 2021-01-02 06:54:17
Hello!
I have noticed that "Load channel or playlist" doesn't work for me. I have my Youtube API v3 key included. It used to work in July/September. I have just noticed it doesn't work anymore. I have already tried regenerating my Youtube API key, but it doesn't change anything. I could switch to "Prefer youtube-dl over internal analyzer" (it works) and remove YT API key but the key provides no search limit.

foobar2000 1.6.2
foo_youtube 3.7
youtube-dl 2020.12.31
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-01-02 07:53:41
@mikehawk1999: in a similar problem, I was helped by deleting and creating a new project and getting a new credential key.The old key will not work,you need to create a new project.


edit: changed referenced username
Title: Re: foo_youtube
Post by: tripko on 2021-01-05 20:48:40
Hello guys, just one question maybe related to network access or OS...

Same error I get for loading SC, I get when trying update from foobar help menu. Maybe some overall network issue?

Title: Re: foo_youtube
Post by: WiAIeonn on 2021-01-10 16:03:28
hi. does foo_youtube can play only 128kbps files from soundcloud.com?
for example, https://soundcloud.com/khromata/khromata-apson-psydub (https://soundcloud.com/khromata/khromata-apson-psydub) with best playback quality in settings.
console output:

Code: [Select]
foo_youtube: [audio] opening mp3 192mb 314kbps, mp3 314kbps
foo_youtube: [warning] [audio] opening, decoder foobar2000: Unsupported file format
foo_youtube: [error] Invalid data found when processing input
foo_youtube: [warning] [audio] opening, decoder foo_youtube: Invalid data found when processing input
foo_youtube: [error] Invalid data found when processing input
foo_youtube: [warning] [audio] opening, decoder ffmpeg: Invalid data found when processing input
Unable to open item for playback (Youtube Source: foobar2000: Unsupported file format | foo_youtube: Invalid data found when processing input | ffmpeg: Invalid data found when processing input):
"soundcloud.com/khromata/khromata-apson-psydub"
with 128kbps playback quality in settings it begin playing.

i downloaded this file to pc first with youtube-dl and then open in foobar, it playing with no error in console.
status bar shows: mp3 | 320 kbps | 44100 Hz | stereo

Title: Re: foo_youtube
Post by: MojoBass on 2021-01-11 05:28:56
https://soundcloud.com/khromata/khromata-apson-psydub (https://soundcloud.com/khromata/khromata-apson-psydub)
is played with 320kbps in my foobar. Got the latest updates of foo_youtube and youtube-dl?
Title: Re: foo_youtube
Post by: WiAIeonn on 2021-01-11 13:36:37
https://soundcloud.com/khromata/khromata-apson-psydub (https://soundcloud.com/khromata/khromata-apson-psydub)
is played with 320kbps in my foobar. Got the latest updates of foo_youtube and youtube-dl?
yes, both latest. maybe you have other custom components installed, cause i tried new install on virtual machine: fresh windows 10 and foobar - same result. can you make screenshot of your components tab in settings? thx
Title: Re: foo_youtube
Post by: WiAIeonn on 2021-01-11 21:00:40
well. i figured for some reason soundcloud often gives me "Forbidden" message, when i try to download 320kbps quality file in browser or open it in foobar2000 using link extracted by youtube-dl. 128kbps don't have this problem. dont know what cause it.
Title: Re: foo_youtube
Post by: kode54 on 2021-01-12 02:42:23
I just installed youtube-dl 2021.01.08, the latest as of this post, and downloaded the SoundCloud URL posted above.

Code: [Select]
$ file Khromata\ -\ Apson\ Psydub\ \(Psydub\ Mix\ DJ\ Set\)-94742888.mp3
Khromata - Apson Psydub (Psydub Mix DJ Set)-94742888.mp3: Audio file with ID3 version 2.2.0, contains:MPEG ADTS, layer III, v1, 320 kbps, 44.1 kHz, Stereo
Title: Re: foo_youtube
Post by: WiAIeonn on 2021-01-12 02:51:10
I just installed youtube-dl 2021.01.08, the latest as of this post, and downloaded the SoundCloud URL posted above.

Code: [Select]
$ file Khromata\ -\ Apson\ Psydub\ \(Psydub\ Mix\ DJ\ Set\)-94742888.mp3
Khromata - Apson Psydub (Psydub Mix DJ Set)-94742888.mp3: Audio file with ID3 version 2.2.0, contains:MPEG ADTS, layer III, v1, 320 kbps, 44.1 kHz, Stereo
yeah, youtube-dl download it without problem, but if open link in foobar using FIle->Youtube Source ->Add multiple URLs... error message posted above appears. it plays only if change Youtube source playback quality from best to 128kbps. atleast this is what i get.
Title: Re: foo_youtube
Post by: kode54 on 2021-01-12 03:09:20
Maybe foo_youtube and/or youtube-dl don't want you streaming the download version.
Title: Re: foo_youtube
Post by: arch21 on 2021-01-12 08:51:39
You might need to modify the rules for "Best" or at least create one that would work for soundcould download version.
Title: Re: foo_youtube
Post by: WiAIeonn on 2021-01-12 14:39:53
You might need to modify the rules for "Best" or at least create one that would work for soundcould download version.

for now, i just download it with youtube-dl and then add to foobar
Title: Re: foo_youtube
Post by: tonyo123 on 2021-01-15 17:50:06
All of a sudden I cannot access and play Youtube videos. I've rebooted, removed and reinstalled foo_youtube (3.7) and related components. Even added an API key. It does work with those videos on my computer so it seems this could be some sort of access problem.

Where I already set up the link in a playlist, I get this error (happens to all Youtube links):

Weird thing is the video image does show up, but, error pops up, and no video,

Where I try to 'Add location' or  'Youtube Source,...etc' URL, I get the following error:

And I cannot add the Youtube link to the playlist.

I am running Foobar2000 v1.63b3 and have the latest youtube-dl (2021-Jan-8 ), Youtube Source (3.7) VSFilter (3.0.0.306). Unfortunate for me as I created numerous playlists with youtube music links.

Anyone else having this issue? Any ideas?
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-01-15 19:21:42
tonyo123 try applying the API key constraint
Title: Re: foo_youtube
Post by: tonyo123 on 2021-01-15 19:59:32
tonyo123 try applying the API key constraint

Thank you. I added the API key to the Foobar2000 YouTube Source setting. So, I don't understand what 'applying' the API means. Can you elaborate?  PS...Did not have problems  until this week (yesterday). I was not using an API key and it worked fine.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-01-15 20:04:43
tonyo123
Title: Re: foo_youtube
Post by: tonyo123 on 2021-01-15 20:59:47
Yes, thank you, had/have it 'applied' (checked green). No change. I did recently update to ;atesty Foobar2000 and some of the components. Likely there is where it broke. Just not sure where/why.

PS...I do have ion the same API credentials screen a message with a yellow triangle exclamation point: 'Remember to configure the OAuth consent screen with information about your application!. But, not sure this applies to me as it appears its for developers.
Title: Re: foo_youtube
Post by: tonyo123 on 2021-01-16 05:34:23
I did verify the #429 error appears to be due to too many requests from one IP address (not sure how since I hardly have been playing music videos lately): I ran my vpn and then started F2K, accessed and added video URLs and the videos played.

I found in the development bug site that #429 error appears to be a common error with some suggested fixes. I tried the running youtube-dl.exe in AppData\Roaming\Anvsoft\Common directory within a batch file: 'youtube-dl.exe --cookies cookies.text http://www.youtube.com' and the command runs, but, has no effect on the video access within F2K. Still same error when not using the vpn.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-01-16 05:44:52
in any case, you need to do: delete project- - - new project- - - get credentials- - - apply key constraint.As I understand it, foobar2000 with the API Key 1 cannot be run on a computer other than your own, otherwise the project will stop working.I don't use OAuth.
Title: Re: foo_youtube
Post by: tonyo123 on 2021-01-16 20:41:43
First, Thanks @SergPuh.68. Followed the direction. Was not able to get it to work. However, finally, here is what did work:

On 'Youtube component for foobar2000': Authenticated access on Youtube (https://fy.3dyd.com/help/youtube_authentication/)

then followed the instructions for 'Built-in support' - borrowing browser cookies from Youtube. This fixed my Error #429 problem. Videos started playing on first try and so on. Thanks to @3dyd, of course.
Title: Re: foo_youtube
Post by: kengs51 on 2021-01-18 19:02:12
I installed the youtube component and added the url under youtube source. The music(audio) plays great but I get no video only a single shot from the video.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-01-18 19:40:00
kengs51 show the settings.Additional components must have the latest versions:
Youtube source 3.7
LAV filters (external): Splitter 0.74.1, Video 0.74.1
youtube-dl (external): 2021.1.16
libcurl uses (internal): libcurl uses / 7.68.0 secure channel schannel with zlib / 1.2.11 code Brotli/1.0.7 nghttp2/1.40.0
Title: Re: foo_youtube
Post by: kengs51 on 2021-01-18 19:45:27
Unfortunately, I can't understand what you are writiing. Thanks for replying though
Title: Re: foo_youtube
Post by: kengs51 on 2021-01-18 19:57:57
where do I get these additional components. I did find and installed the components but the only one that doesn't show up under preferences is youtube-dl (external): 2021.1.16. When I execute this file a blank command window opens then closes automatically.



Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-01-18 20:14:00
In manual mode, you can download: http://fy.3dyd.com/help/third_party_binaries/
In automatic mode, Youtube Source will download itself.In the settings, put managed and click download or update.
Title: Re: foo_youtube
Post by: kengs51 on 2021-01-18 20:18:12
I executed the youtube dl file and it works. I downloaded a file from youtube and the video now shows too. Thanks so much for all of your help :D
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-01-18 20:22:22
The Youtube Source component allows you to watch videos from YouTube without downloading them.
Title: Re: foo_youtube
Post by: TheQwertiest on 2021-01-26 15:15:30
Hm, some playlists stopped working for me.
Example: https://www.youtube.com/playlist?list=PLqGysMwLcMoMJptPQrdfDaf41VfD703Ek
Error:
Code: [Select]
foo_youtube: [error] #12, Analysis, no video found on Youtube: Playlist URL
foo_youtube: #12, https://www.youtube.com/playlist?list=PLqGysMwLcMoMJptPQrdfDaf41VfD703Ek

Tried with `youtube-dl over internal` and with API key: same result.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-01-27 07:03:34
TheQwertiest,This playlist https://www.youtube.com/playlist?list=PLqGysMwLcMoMJptPQrdfDaf41VfD703Ek I have played without problems and other playlists from this channel also play well,you probably need to play with the settings.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-01-30 14:57:51
Hi, I have this question:YouTube Source sees, but does not identify LAV Filters 0.70.2 (0.74.1) the sound is there and the image is not.What could be the reason?System:Windows 7x64 SP1 Enterprise (updates January 2021), all the latest libraries.
foobar2000 1.3 (1.5), YouTube Source starting from 3.0, LAV Filters 0.70.2 (0.74.1)
Title: Re: foo_youtube
Post by: TheQwertiest on 2021-02-11 20:02:37
TheQwertiest,This playlist https://www.youtube.com/playlist?list=PLqGysMwLcMoMJptPQrdfDaf41VfD703Ek I have played without problems and other playlists from this channel also play well,you probably need to play with the settings.
Just have tested it on a clean portable install, the problem remains...
@3dyd are there any logs that I can provide to help diagnosing this issue?
Title: Re: foo_youtube
Post by: MojoBass on 2021-02-13 06:31:09
There are (at least) two ways to access youtube playlists with foo_youtube:
1. simply copy the playlist url into File -> Youtube Source -> Load channel or playlist ...
2. first get the playlist URL into foobar by View -> Youtube Source -> Search on Site. Here select youtube.api.playlist and search for the playlist name (in your case: NieR : Automata Soundtrack Complète). The playlist link gets listed, and by double-clicking the yt playlist unfolds
Do both ways fail?

Additionally you could try if the issue lies on youtube-dl side with a separate youtube-dl install. For example
Code: [Select]
youtube-dl.exe -F https://www.youtube.com/playlist?list=PLqGysMwLcMoMJptPQrdfDaf41VfD703Ek
should list all available formats of the 46 tracks contained in the playlist

All of the above works on my side.
Title: Re: foo_youtube
Post by: tripko on 2021-02-19 09:46:32
Hello guys, just one question maybe related to network access or OS...

Same error I get for loading SC, I get when trying update from foobar help menu. Maybe some overall network issue?



Hello everyone - just tried sound cloud on fresh install (foobar+foo_youtube+youtube-dl)  on W10 and its OK. Aslo foobar update works, don't give me an error like I have on previous Windows 7 system :(
Title: Re: foo_youtube
Post by: tripko on 2021-02-19 10:44:24
Update for WIN7 users:

apply fix from https://hydrogenaud.io/index.php/topic,50523.msg959259.html#msg959259

It will solve component update and SoundCloud playback issue - not component but OS related :)

Thanks everyone for support and tips



Hello guys, just one question maybe related to network access or OS...

Same error I get for loading SC, I get when trying update from foobar help menu. Maybe some overall network issue?

Hello everyone - just tried sound cloud on fresh install (foobar+foo_youtube+youtube-dl)  on W10 and its OK. Aslo foobar update works, don't give me an error like I have on previous Windows 7 system :(

Title: Re: foo_youtube
Post by: ZarkBit on 2021-03-12 15:49:50
Hello everyone, can someone help with the following issue:

Whenever I try to play the following link: www.youtube.com/watch?v=B0enqR_GrB4 it skips after 1 or 2 seconds to the next track, it only happens with this link.

Spoiler (click to show/hide)
Title: Re: foo_youtube
Post by: MojoBass on 2021-03-13 05:20:47
Plays without problems on my side
Spoiler (click to show/hide)
Title: Re: foo_youtube
Post by: ZarkBit on 2021-03-16 14:48:19
Thanks for the input MojoBass, I reinstalled the component and deleted its configuration and It's working properly now.
Title: Re: foo_youtube
Post by: Koshingg on 2021-03-31 23:35:57
Hi! I have this error everytime I try to play a song from youtube :

Unable to open item for playback (Youtube Source: foo_youtube: server error (403) from r1---sn-gqn-vu2e.googlevideo.com | ffmpeg: Server returned 403 Forbidden (access denied) | foobar2000: Access denied):
"www.youtube.com/watch?v=PO_d169ibZ8"

I have foobar 1.6.4 and the latest version of this component (also the latest version for youtube-dl )
Everything was ok 1 or 2 weeks ago, until today when no link works. Also, playlists don't work either.
I even tried on a fresh portable install, with only this component, but the result is the same, not possible to see a video.
Can anyone help? Thanks in advance
Title: Re: foo_youtube
Post by: MojoBass on 2021-04-01 06:20:26
Hi! I have this error everytime I try to play a song from youtube :
Unable to open item for playback (Youtube Source: foo_youtube: server error (403) from r1---sn-gqn-vu2e.googlevideo.com | ffmpeg: Server returned 403 Forbidden (access denied) | foobar2000: Access denied):
"www.youtube.com/watch?v=PO_d169ibZ8"
Solved on my side with latest yt-dl (04.01)
Title: Re: foo_youtube
Post by: Koshingg on 2021-04-01 09:50:58
Hi! I have this error everytime I try to play a song from youtube :
Unable to open item for playback (Youtube Source: foo_youtube: server error (403) from r1---sn-gqn-vu2e.googlevideo.com | ffmpeg: Server returned 403 Forbidden (access denied) | foobar2000: Access denied):
"www.youtube.com/watch?v=PO_d169ibZ8"
Solved on my side with latest yt-dl (04.01)

Yes, everything ok now, with the latest yt-dl (04.01), released a few hours ago
Title: Re: foo_youtube
Post by: 3dh on 2021-04-03 11:07:22
Translator:
I have everything up to date, but YT still isn't working.

---

It is working now. I had to check the "Prefer youtube-dl over internal analyzer" option.



Title: Re: foo_youtube
Post by: ZarkBit on 2021-04-07 14:39:08
Can someone replicate this?
https://www.youtube.com/watch?v=_VYA0qJ59RY

The video on that link is around 2 hours long, but on foobar It's only 9 minutes long. It also fetches the wrong stuff, It's getting everything from this link https://www.youtube.com/watch?v=DlwEtvUz3yU which I never added to foobar.

I don't know what is happening lol.

EDIT: Ok, so this happens when using the "Add titles...", if I use the "Add multiple URLs" It works as it should. Both links have similar titles, do I guess it has something to do with that, I don't know how the "Add titles..." option works.
Title: Re: foo_youtube
Post by: veksha on 2021-05-09 21:57:20
Hello, all.
if title parser not parsing correctly titles like artist-title (no whitespace in the middle)
use this modified regex expression:

Code: [Select]
(?x)
(?:
    \s*[[【({].+?[]】)}]\s*[-–~:]?\s*
)?
(?:
    (?<artist>.+?)\s*[-–~|/:]\s*
)?
(?<title>.+)
(?:
    \s+[~|/[【({].*
)?
Title: Re: foo_youtube
Post by: Fidde on 2021-05-14 22:04:34
Hi.
I want to play youtube clip in foobar2000. I got the foo_youtube script installed. Now what? :) I can't see the video. Downloaded files are shown in library, and i can play the music, but without video. Did I misunderstood something? Please help. :)
I'm new to foobar, so please be pationed :)


Fidde
Title: Re: foo_youtube
Post by: MojoBass on 2021-05-15 07:10:28
foo_youtube is a plugin with loads of possibilities to be explored, see the help here (https://fy.3dyd.com/help/).
A quick start could be:
1. Go to View/Youtube Source/Search on Site  -> opens the youtube search window
2. type any search phrase into the search text input box
3. Right-click on any search result and select 'play' -> now the selected track should play
4. If you do not see the video, go to View/Visualizations and select Video

Note that by clicking on text below the search text input box in the 'Search on Site' window, you can select a lot of options for your search. If for the beginning you just want to search for single videos (no playlists etc), under 'Provider' there should be selected 'youtube.api.video'
Title: Re: foo_youtube
Post by: Fidde on 2021-05-16 18:38:18
thank you Mojo. I see a lot of investigation and experimental work :) and proberly some fugh-ups lol.

Just tryied (bad spelling, sorry) you'r suggestion. It worked perfect, but gave me another question:
Is it taking the sound/video directly from youtube?


Okey.. sorry, now i need help. To see the video, I doo what suggestet, and then I getting this fault-prompt:
LAV Splitter: not found
LAV Video: not found
Title: Re: foo_youtube
Post by: Fidde on 2021-05-16 19:50:46
I can see, I'm missing 3 third part add on's. I can't find, where to download from.
Title: Re: foo_youtube
Post by: MojoBass on 2021-05-17 05:43:14
I guess you just have to install the LAV Filters to your system, download here (https://github.com/Nevcairiel/LAVFilters/releases/download/0.75/LAVFilters-0.75-Installer.exe)
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-05-17 07:10:23
Fidde:
Title: Re: foo_youtube
Post by: Wolfbane on 2021-05-17 07:13:29
I have a problem, and its 3 "programs" and something is causing a "problem", so not 100% if its related to this plugin or any of the other programs, or even windows 10 itself.

But Ill try and explain as short as possible, even if its going to be long.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

So Streaming with "OBS Studio" using "FooBar" to stream the music, and capturing the "FooBar YouTube plugin" with "OBS"

So I capture "FooBar" window. (Foobar Youtube video plugin)
For some reason, OBS finds the correct window, and without any "cropping" or "edit transform" it does not capture the entire windows.
It did capture entire window and everything worked one 1hour earlier. So something "happened"...

When I stream I set my desktop resolution to 1920x1080 with 100% scale .
But when I do not stream I set my resolution to with 125% scale (windows 10) ( https://prnt.sc/130ubjv )

What I think "happened" ?
So I streamed, have all programs up and running, close down some programs, change resolution to 3440x1440 and scale to 125% settings
Then I notice I dint close all programs and close them without thinking about it.
Then I remember I needed to make a small change to the layout of my stream in OBS, change back to 1920x1080 with 100% scale.
open up all programs, but now I notice that several things are not right size and things are not captured correctly by OBS.
do some editing fixes most things, but the biggest issue is can not capture the entire video/youtube window any longer.
And if I would guess it seems like around 25% of the windows is missing, without any cropping. So I guess its the scale thing is screwing things up.

Here is a screenshot.
https://prnt.sc/130xi09
To explain it, OBS Studion in the background, with my layout.
Bottom right corner is the "Original source" (FooBar YouTube) I want to capture. its a separate window above OBS in this picture.
Top left is the "Windows Capture", but as you can clearly see, what is captures its a lot less, looks to be around 25% missing.

So some program or windows itself remembered the size of the window when it was closed, dint take "scale" into concideration, and when I opened the program it dint recheck the "scale" I assume, and therefor its somehow "screwed"

So once again, not sure if its this plugin that has potential issues with windows scale. Or OBS, or Windows, or FooBar...

Any ideas who is the villan in this case ?
Title: Re: foo_youtube
Post by: Fidde on 2021-05-17 07:30:25
Thanks Mojo and Serge :) I will try the suggestions :) Thanks again.

LAV filters, do I install them in foobar components or on C-drive/program?
Title: Re: foo_youtube
Post by: Fidde on 2021-05-17 20:15:58
Wiiiiiii-huuuu :) Thanks again for the help. Got it all installed and running on my test-lap-top. It finally worked as I wanted to. Now, I have up-graded my stand-alone machine with the latest version, added the missing plug-ins and nerded/fine-tuning the lay-out.
It is running perfect. I'm a happy boy, happy happy.. sorry :) Now I have to nerd all background stuff on all my music video, and find a nice way to file them :) I need a weekend :)
Title: Re: foo_youtube
Post by: meemosafaji on 2021-05-20 02:35:58
I was having problems with the plugin on the last days (i corrected them for some time letting my playlist public instead of unlisted and removing and adding my playlist again and reopening foobar) and now that i updated the version i didnt got any more problems with the playback! love this plugin, i would never had downloaded foobar without it
Title: Re: foo_youtube
Post by: xiphrex on 2021-05-20 18:08:45
Hello,

Been getting this error trying to play anything since today:
Quote
Unable to open item for playback (Youtube Source: Analysis, page not found on the server (error 404) | Analysis, no video found on Youtube URL):

I would normally try this fix but its not working: https://fy.3dyd.com/help/http_429_error_on_youtube/

Any suggestions? I really love this plugin - hope there is a fix!
Title: Re: foo_youtube
Post by: xiphrex on 2021-05-22 09:21:12
I just tried the beta and it seems to fix it!
Title: Re: foo_youtube
Post by: RobP on 2021-05-24 17:19:41
Hi,

I installed the component which worked fine using Add multiple URLs, but now when I try to play via Foobar the file shows on the app as:

watch?v=Ccvt6dbhNHc

but this message appears when I try to play it:

Unable to open item for playback (Youtube Source: Analysis, page not found on the server (error 404) | Analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=Ccvt6dbhNHc"

Any idea what is happeing here or am I doing something wrong?

Thanks

Rob
Title: Re: foo_youtube
Post by: Pootle_1 on 2021-05-25 17:15:46
When I try and add a playlist a box flashes up for a millisecond then disappears. No tracks are added, no messages appear. Are there any log files I can look at?

I can listen to individual tracks via "View > Youtube Source > Search On Site"

foobar2000 version 1.6.6, foo_youtube version 3.72

many thanks
Title: Re: foo_youtube
Post by: MojoBass on 2021-05-26 05:52:01
Unable to open item for playback (Youtube Source: Analysis, page not found on the server (error 404) | Analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=Ccvt6dbhNHc"
Plays well on my side with fb1.6.7b4, foo_youtube 3.7.2, youtube-dl 2021.5.16. Did you switch on 'prefer youtube-dl over internal analyzer'?
Title: Re: foo_youtube
Post by: Wolfbane on 2021-05-27 07:24:19
Hi,

I installed the component which worked fine using Add multiple URLs, but now when I try to play via Foobar the file shows on the app as:

watch?v=Ccvt6dbhNHc

but this message appears when I try to play it:

Unable to open item for playback (Youtube Source: Analysis, page not found on the server (error 404) | Analysis, no video found on Youtube URL):
"www.youtube.com/watch?v=Ccvt6dbhNHc"

Any idea what is happeing here or am I doing something wrong?

Thanks

Rob

The "error 404" is fixed in the latest version. 3.7.2
Title: Re: foo_youtube
Post by: MojoBass on 2021-05-29 08:40:25
When youtube-dl is used by foo_youtube, the URL shown in properties is changed to 'youtube-dl?url=xxxxxxxxx', which is as well given by %fy_url%. However, this URL does not work outside foo_youtube, leading to Youtube Source -> Open in browser 'not found' on my side.
Example: The youtube link https://www.youtube.com/watch?v=jcNfhBqCol8 (https://www.youtube.com/watch?v=jcNfhBqCol8) becomes https://youtube-dl?url=jcNfhBqCol8 (https://youtube-dl?url=jcNfhBqCol8).
Would be great if there would be a chance to get access to the original youtube link e.g. by %fy_url_original%, which gives a 'working' link independant of foo_youtube using youtube-dl or not.
Of course I can do a workaround like that...
Code: [Select]
$if($strcmp($substr(%fy_url%,$strstr(%fy_url%,youtube-dl),$add($strstr(%fy_url%,youtube-dl),9)),youtube-dl),https:'/'/www.youtube.com/watch?v=$substr(%fy_url%,24,$len(%fy_url%)),%fy_url%)
Or am I missing something here?
Title: Re: foo_youtube
Post by: meemosafaji on 2021-06-14 18:38:02
yo can i turn off the warnings when a song are privated or age restricted try to play, it interrupts my game every time
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-06-15 07:07:48
meemosafaji, playback should not stop.A warning window should pop up(which can be disabled in the advanced settings)and switch to the next track while continuing to play.It is advisable to use the latest versions of ALL components involved in the process of playing videos from YouTube, and it is desirable to get an API key.
Title: Re: foo_youtube
Post by: meemosafaji on 2021-06-18 15:10:25
meemosafaji, playback should not stop.A warning window should pop up(which can be disabled in the advanced settings)and switch to the next track while continuing to play.It is advisable to use the latest versions of ALL components involved in the process of playing videos from YouTube, and it is desirable to get an API key.
i didnt say that my playback stops, just my game because the warning pops out the game but now that u said that i can turn off the warning on advanced settings i get it thx, i already had the newer version and api key
Title: Re: foo_youtube
Post by: ZarkBit on 2021-06-25 11:40:02
https://pastebin.com/H3kZWKAD

Been having some crashes, sometimes when adding a link and sometimes when fb2k starts playing after being some hours paused/stopped. Can someone help me figure out what might be causing this issue?
Title: Re: foo_youtube
Post by: U2021 on 2021-06-28 15:11:09
Does it works on YouTube Music?
Title: Re: foo_youtube
Post by: regor on 2021-06-28 23:14:12
Does it works on YouTube Music?
Do you read the documentation or the info of the things you ask for? It's like the third question which clearly indicates you don't read anything...

Quote
This component adds possibility to play Youtube, Vimeo and Dailymotion clips directly by their URL.

Other features: channels support (Youtube, Dailymotion), search on Youtube within the program, clip thumbnail as album art, clip subtitles as lyrics, multitrack album from the single clip, video playback.
More clear than that... foobar is a music player, and this is a plugin to play music from youtube. What's the doubt? XD
Title: Re: foo_youtube
Post by: ArchCarrier on 2021-07-05 17:46:10
When I use the Add Titles function (File > YouTube Source > Add titles...), I get 25 results per line instead of one. Is this something that can be changed in the settings?
Title: Re: foo_youtube
Post by: MojoBass on 2021-07-06 04:12:44
When selecting 'Add titles...', a window opens to type in the requested title. At the bottom of this window you find settings for the search such as 'Limit'. Click here and look for 'Limit' in the preferences window which is opening. Select 'Limit' in the preferences window and type in the number of titles you want to get listed.
Title: Re: foo_youtube
Post by: czt on 2021-07-09 13:00:11
How managed LAV Filters can be configured?  According to this: "And there is no way to display settings UI for local filter. I.e. even when local filter is used, settings UI anyway comes from the filter registered in the system." managed LAV filters eventually pointless, because not configurable unless it is installed on the system too!? No video in "popup" just the 2 lines "LAV Splitter:" and "LAV Video:". And check for updates always says newer version 0.75.1 is available on the server. Please enlighten me.
Title: Re: foo_youtube
Post by: czt on 2021-07-09 14:12:41
OK, managed LAV Filters use the default settings (no way to configure it). But why video is not playing is spite of in the "Found" column appears "yes"? Status:
Code: [Select]
youtube-dl (none)
libcurl (internal):
libcurl/7.68.0 Schannel zlib/1.2.11 brotli/1.0.7 nghttp2/1.40.0
VSFilter (none)
ffmpeg (LAV Filters):
lavf 58.76.100, lavc 58.134.100, lavu 56.70.100, lavr 4.0.0
madVR (system):
not found
LAV Filters (managed):
Splitter:
LAV Filters (managed): Video:
So, if a new "user" (like me) installs this promising component for the first time, and sets LAV Filters to managed, after download (an restart) get this state, that cannot play video. :( As expected, the same state with using external. So it seems nobody (want to) use this component with managed or external LAV Filters on this globe except me.
Title: Re: foo_youtube
Post by: MojoBass on 2021-07-10 05:19:52
This is how it looks on another (my) globe:
Code: [Select]
libcurl (internal):
libcurl/7.68.0 Schannel zlib/1.2.11 brotli/1.0.7 nghttp2/1.40.0
ffmpeg (LAV Filters):
lavf 58.76.100, lavc 58.134.100, lavu 56.70.100, lavr 4.0.0
LAV Filters (managed):
Splitter 0.75.1, Video 0.75.1
madVR (system):
0.92.17
youtube-dl (managed):
2021.6.6
VSFilter (none)
What happens if you right-click on LAV-Filters->Check for updates?
Title: Re: foo_youtube
Post by: czt on 2021-07-10 08:17:20
This is how it looks on another (my) globe:
Thanks for the reply, please tell me, how can I reproduce that? Your foobar is v1.6.6 and foo_youtube is v3.7.2?
What happens if you right-click on LAV-Filters->Check for updates?
As I wrote, always says "Newer version 0.75.1 is available on the server Download it?"
AppData\Roaming\foobar2000\foo_youtube\managed\94974E25-6AA2-418D-927D-41093087A6D2\ contains the files as intended(?) (hashlist.sha1).
And in spite of the above and "Found: yes", in Status:
Code: [Select]
LAV Filters (managed): Splitter: *empty* and LAV Filters (managed): Video: *empty*
but in contradiction:
Code: [Select]
ffmpeg (LAV Filters): lavf 58.76.100, lavc 58.134.100, lavu 56.70.100, lavr 4.0.0
And all is the same if I try with External. Absolutely don't understand what might be the difference between our systems that results in this degenerate behavior on my side.
Title: Re: foo_youtube
Post by: MojoBass on 2021-07-10 09:24:51
Im am on fb1.6.7b16 portable and foo_youtube 3.7.2. I have the same files in the same managed folder as shown from your side.
I would try a clean portable install and see if it works there.
Sorry for not being too helpful...
Title: Re: foo_youtube
Post by: czt on 2021-07-10 13:46:33
The culprit was Comodo IS.
Title: Re: foo_youtube
Post by: Wolfbane on 2021-07-17 17:00:37
Went over 2000 songs and found some videos I could not play.

403 Broken songs
www.youtube.com/watch?v=bOHxtOLfvIo
www.youtube.com/watch?v=LYU-8IFcDPw
www.youtube.com/watch?v=xd14cBeAfU4
www.youtube.com/watch?v=EZjevnnkA20
www.youtube.com/watch?v=oj4pqS8AiLM
www.youtube.com/watch?v=Ec729nmajwc
www.youtube.com/watch?v=d-7qLfP1S_g
www.youtube.com/watch?v=XdT5OsOnUW8
www.youtube.com/watch?v=CS9OO0S5w2k

Inappropriate or offensive to some audiences
(On YouTube, you get a button I need to press "I understand and wish to proceed)
https://prnt.sc/1c8qaml
www.youtube.com/watch?v=rxujAPhxlo0
www.youtube.com/watch?v=ptzzU7jFQwo

Is there any setting I can do, to get these youtube to work?
Is there some setting/tweek I can do to fix this?
Title: Re: foo_youtube
Post by: MojoBass on 2021-07-17 20:09:54
Nice selection!
I can't play the three age restricted tracks (Kurran & The Wolfnotes, Disturbed, FFDP), but I can not play them as well directly in youtube, I get asked for an age veriication.
All other tracks play well.
fb1.6.7.b16, foo_youtube 3.7.2, youtube-dl 2021.6.6, Prefer youtube-dl over internal analyzer checked
Title: Re: foo_youtube
Post by: Slender on 2021-07-19 17:39:55
To get past the age restriction, you need to enable persistent cookie storage, and borrow the YouTube login cookie from your browser, more info here (http://fy.3dyd.com/help/youtube_authentication/). As for the 403 error, the videos seem to play normally here. Try clearing your analysis cache and playing the videos again, I've found that doing that seems to fix the issue when it happens as of now.
Title: Re: foo_youtube
Post by: Wolfbane on 2021-07-23 06:57:01
To get past the age restriction, you need to enable persistent cookie storage, and borrow the YouTube login cookie from your browser, more info here (http://fy.3dyd.com/help/youtube_authentication/). As for the 403 error, the videos seem to play normally here. Try clearing your analysis cache and playing the videos again, I've found that doing that seems to fix the issue when it happens as of now.

*1* "YouTube login cookie"
Did that several months ago. But since I get the agree restriction even if I go to YouTube. Normally, is there a way for me to verify my YouTube account age, and that's the issue ?

*2* 403 error and "clearing your analysis cache"
Sure... if I only know how?
Title: Re: foo_youtube
Post by: Slender on 2021-07-23 14:43:13
*1* "YouTube login cookie"
Did that several months ago. But since I get the agree restriction even if I go to YouTube. Normally, is there a way for me to verify my YouTube account age, and that's the issue ?
While there's no way to verify your age in the component, you may need to perform the process again, I remember hearing somewhere that the YouTube cookie will sometimes expire after a while.
*2* 403 error and "clearing your analysis cache"
Sure... if I only know how?
Go to view>Youtube Source>Analysis Cache, right click and select wipe cache.
Title: Re: foo_youtube
Post by: mk5566 on 2021-09-08 04:43:07
Hello, does anyone know how to config to stream 256k aac?
I have subscribed to youtube premium and use persistent cookie storage but still shows only 128k aac and opus stream
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-09-08 12:03:31
AAC or Opus can be selected here:
X
As far as I know, a YouTube Premium subscription does not affect the quality of content.Or does it affect?
Title: Re: foo_youtube
Post by: mk5566 on 2021-09-09 08:13:55
Thanks for your reply,
Premium users have a higher quality stream to 256k aac https://support.google.com/youtubemusic/answer/9076559 (https://support.google.com/youtubemusic/answer/9076559)
when using web it shows like this
X
I tried change format settings but it does not even show in cache list.
I don't know if it's possible but hope this plugin get it worked.

AAC or Opus can be selected here:
[attach type=image]21031[/attach]
As far as I know, a YouTube Premium subscription does not affect the quality of content.Or does it affect?
AAC or Opus can be selected here:
[attach type=image]21031[/attach]
As far as I know, a YouTube Premium subscription does not affect the quality of content.Or does it affect?
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-09-09 11:57:59
I also show no higher than 128 kbps.
Most likely, these are the features of the component YouTube Source. Providing credentials from YouTube Premium is a dubious occupation  8)
Title: Re: foo_youtube
Post by: MojoBass on 2021-09-26 07:46:04
I am having major issues with adding tags to larger (>1000 tracks) playlists of youtube links, even with 'very clean' foobar config (fb 1.6.7, foo_yt 3.7.2 only, portable): Usually fb crashes without report, in rare occations when a report is generated, it points to foo_youtube and input_entry::g_open_for_info_write (see attached). Any suggestion on how to solve this issue?
Title: Re: foo_youtube
Post by: Le Croissant on 2021-09-26 14:11:34
This plugin combined with an RSS subscription display feed would make an amazing combo. You could replace Youtube all together.
Just a suggestion for the coders out there.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-10-07 12:36:34
The Youtube Source component has stopped working.The video slows down a lot and freezes.Does everyone have it, or just me?
Title: Re: foo_youtube
Post by: AngeloVIII on 2021-10-08 01:52:17
Hi, same problem here.
it is a youtube-dl issue apparently : https://github.com/ytdl-org/youtube-dl/issues/29326
there is a youtube-dl fork using the same syntax : yt-dlp
some people said this one work fine, I'm trying to use it with foo_youtube.
no succes for know, but I dont really know what I'm doing.
Can someone help us with this please ?
Thanks a lot.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-10-08 11:30:33
yt-dlp it didn't help me  :(
Title: Re: foo_youtube
Post by: MojoBass on 2021-10-16 05:36:31
I am having major issues with adding tags to larger (>1000 tracks) playlists of youtube links, even with 'very clean' foobar config (fb 1.6.7, foo_yt 3.7.2 only, portable): Usually fb crashes without report, in rare occations when a report is generated, it points to foo_youtube and input_entry::g_open_for_info_write (see attached).
Instability seems to be caused by youtube-dl (https://github.com/ytdl-org/youtube-dl) (which has not been updated since June 6th), switching to yt-dlp (https://github.com/yt-dlp/yt-dlp) brings full stability in my case (so far). It is included as external binary at File/Preferences/Tools/Youtube Source/Maintanance.
@3dyd: any plans to set yt-dlp as standard in foo_youtube?
Title: Re: foo_youtube
Post by: MojoBass on 2021-10-16 06:39:38
Instability seems to be caused by youtube-dl (https://github.com/ytdl-org/youtube-dl) (which has not been updated since June 6th), switching to yt-dlp (https://github.com/yt-dlp/yt-dlp) brings full stability in my case (so far).
Just some words on what I am trying to do here at all:
My target was to play (e.g. randomly) large playlists of youtube tracks (coming from wherever) with crossfade (20s) and skipping the beginning of the track plus limiting max track length. For the latter I use foo_skip (https://www.foobar2000.org/components/view/foo_skip), typical tagging is -30;3:00- applied to all tracks of the playlist. Reason for this are the 'video story' sequences at the beginning of many youtube tracks not containing 'real music', which I want to skip. Youtube tracks can be arbitrary, containing 'normal' tracks, tracks which can only be played by youtube-dl/yt-dlp, and tracks which can not be played at all due to not available any more or age restrictions etc, which should be skipped without stopping/crashing.

1. Tagging:
For the tracks which can only be played via youtube-dl/yt-dlp, tagging of these requires youtube-dl/yt-dlp to be activated. If this is not the case, foobar still shows the new tags, however tags are not persisted as the youtube link can not be opened (which is unfortunately not notified). When playing the track, the tag is removed, see here (https://hydrogenaud.io/index.php?topic=30361.msg996514#msg996514). As mentioned above, tagging of larger playlists is only stable with yt-dlp, using youtube-dl leads to crashes on my side.

2. Playing
The only stable configuration I found for above requirements is as follows (of course there could be others I did not test over hours):
- Components: yt1.6.8b3 portable, foo_youtube3.7.2, foo_skip 1.34. No other components!
- foo_youtube: youtube-dl not used, include yt-dlp as external binary (see above). 'Prefer youtube-dl over internal analyzer' not selected
- DSP: 1. Skip Track; 2. Resampler (needed for crossfading between different sample rates); 3. Crossfader (20s)
- max buffer length (30s)
Additionally I use ReplayGain to normalize volumes

Things still open:
- it is a absolutely clean layout, far away from my standard layout with CUI, PSS, SMP, JSP, foo_out_upnp,... which I would prefer but is not stable for this use case. Of course I could stepwise find out where instability starts - but for now I am just happy that it works at all...
- for tracks not available, crossfading fails when jumping to next available track giving a 'hard' handover to next playable track. As this is probably difficult to cure, a tool for indentifying/removing unplayable tracks would be great
Title: Re: foo_youtube
Post by: bagelstein on 2021-10-25 17:34:11
I have been wrestling with lag issues for a while only while using this component but can't seem to find anyone else sharing my problem.  It only seems to happen with certain sources, and happens somewhat consistently.  I can play the video directly on youtube no issues, but as soon as I try to play it from youtubesource in foobar itll constantly pause and lag.  I highly doubt its a network issue, originally was thinking maybe a decoder problem with certain sources, but have tried every decoder setting in the addon with no luck.  Anyone have any troubleshooting ideas?

Edit: Looks like its a video decoding issue,  Had to set everything to "discard all" for video and then my streams smoothed out.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-10-25 19:31:57
With a high degree of probability, the source of youtube's problems is youtube.dl, it has not been updated for a long time.
Title: Re: foo_youtube
Post by: ö123456 on 2021-11-08 19:27:58
i have the same issue, "discard all" didn't help
Title: Re: foo_youtube
Post by: Arya on 2021-11-09 11:47:13
This component adds possibility to play Youtube, Vimeo and Dailymotion clips directly by their URL.

Other features: channels support (Youtube, Dailymotion), search on Youtube within the program, clip thumbnail as album art, clip subtitles as lyrics, multitrack album from the single clip, video playback.

Changelog (https://fy.3dyd.com/changelog/)
Download (https://fy.3dyd.com/download/)
Documentatio (https://fy.3dyd.com/help/)n (https://www.fashion-bags.fr)

Great  ! Thank you for this software !
Title: Re: foo_youtube
Post by: anamorphic on 2021-11-15 17:00:45
Quick question(s): when importing a playlist through 'Load channel or playlist...' menu command, how come often only half the tracks have a duration? (%length%) And sometimes none...

For folks that have obtained an API key (I have not), does that also happen to you?

I suppose there is no quick way to load the duration besides just playing the track? (They play fine, incidentally; I'm using the yt-dlp.exe that was suggested a few posts above)
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-11-15 18:22:01
If there is an API key, the information is loaded in full.
Title: Re: foo_youtube
Post by: anamorphic on 2021-11-15 19:41:01
^ Thanks for the confirmation. I guess that answers why as well, it must be hitting the daily limit.
Title: Re: foo_youtube
Post by: lpv on 2021-11-17 04:35:36
Guys at this date, is video playback supposed to be very laggy or am I doing something wrong? Cool component  8)
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-11-17 08:43:52
 lpv Instead of youtube-dl.exe need to use yt-dlp.exe
Title: Re: foo_youtube
Post by: lpv on 2021-11-17 13:37:13
lpv Instead of youtube-dl.exe need to use yt-dlp.exe
Holly molly this actually works! Not perfect but it works! It was the one thing I forgot to check  :))
So cool, thanks! 8) 8) Why it took me so long find this plugin!
Do you also know if 'Prefer youtube-dl over internal analyser' makes any difference in performance?

edit: it might be my imagination or it was by chance but it's even better after little burn-in? xD works awesome!
Title: Re: foo_youtube
Post by: lpv on 2021-11-17 16:04:29
Sorry for double-post, couldn't edit.
Has anyone somehow gotten lyrics show panel to automatically load lyrics for videos whose channel name is not that of the band/group?
In a lot/most cases it seems a simple implementation, but not getting it to work yet.

edit: I also just found out about open lyrics! But it's implementation is similar to that of show panel 3. Better, but still won't do it. But open source  :)) Maybe can fix that. edit2: holy, there's another lyric plugin, I'm so behind lol
Title: Re: foo_youtube
Post by: merula on 2021-11-23 00:27:08
All third party binaries are shown as "found" here (yellow warning only for VSFilter which I do not need and did not install) but I still get audio only and no video playing files, any idea why ?   

There are several options or paths for audio decoder and video downloader, suggestions are welcome :-)  ,

For some files I get audio only, for some files nothing at all and errors like

>
Unable to open item for playback (Youtube Source: ffmpeg: Server returned 403 Forbidden (access denied) | foo_youtube: server error (403) from r5---sn-5hnekn7z.googlevideo.com | foobar2000: Forbidden (403))....
>

yt-dlp.exe running here
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-11-23 08:50:30
merula,download and install the latest version of the YouTube source component 3.7.2
Title: Re: foo_youtube
Post by: czt on 2021-12-21 13:30:57
I'm seriously beginning to doubt that anybody using this plugin with video.

Celeron 6305 - Intel UHD, Windows 11 22000.376, foobar2000 v1.6.8, foo_youtube 3.7.2, LAVFilters 0.75.1: System (whats the point of the currently unusable managed - because of unsuccessful download - or external sources if hw acceleration not configurable this ways!?), ffmpeg: LAV Filters, D3D11 acceleration, active accelerator: Intel UHD.

"Result": ~ one frame per minute in any quality.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-12-21 16:10:41
czt,instead of youtube-dl.exe need to use yt-dlp.exe
Title: Re: foo_youtube
Post by: MojoBass on 2021-12-21 16:12:13
I am using foo_youtube to watch youtube videos witout any problems...
Without any special config on the hardware side on my old Surface Go 1 with Pentium Gold 4415Y and Intel HD Graphics 615. Just had to reduce video quality to 240p to get the video running smoothly.
Title: Re: foo_youtube
Post by: MojoBass on 2021-12-21 16:12:48
.. and I am using yt-dlp as well
Title: Re: foo_youtube
Post by: Alacrion on 2021-12-22 16:04:09
lpv Instead of youtube-dl.exe need to use yt-dlp.exe

How do I change it from youtube-dl to yt-dlp.exe?
Title: Re: foo_youtube
Post by: SergPuh.68 on 2021-12-22 16:33:30
Alacrion,you need to download a file from the Internet to your computer yt-dlp.exe and in the settings, specify the path to it
Title: Re: foo_youtube
Post by: czt on 2021-12-27 16:10:33
I am using foo_youtube to watch youtube videos witout any problems...
Without any special config on the hardware side on my old Surface Go 1 with Pentium Gold 4415Y and Intel HD Graphics 615. Just had to reduce video quality to 240p to get the video running smoothly.

That is the main problem. This resolution unacceptable, if a browser with yt's own player capable of hd playback on the same config. If I want to project the video eg. with a short throw projector, its native resolution 1280*800. I will try  yt-dlp.
Title: Re: foo_youtube
Post by: laddie on 2022-01-02 22:59:00
Having a weird visual bug where the bottom left corner of all videos (local files) have jagged squares.

https://imgur.com/a/FlIV8tc

This is not happening during normal playback in the default Windows media player, only in Foobar.

Any ideas? I've reinstalled the LAV drivers and am using all the same exact settings on another computer that is playing the videos without a problem.
Title: Re: foo_youtube
Post by: MojoBass on 2022-01-09 10:18:00
- for tracks not available, crossfading fails when jumping to next available track giving a 'hard' handover to next playable track. As this is probably difficult to cure, a tool for indentifying/removing unplayable tracks would be great
Is there any approach for a further improvement of crossfading behaviour with yt tracks? It works well when there are no 'special effects' occuring in playing the tracks of a playlist containing yt tracks. However, cross-fading fails when
- next track can not be played and foobar jumps to the track after next track. To me it looks like pre-loading of the following track for cross-fading is aborted when the next available track can not be played. Is it possible to enable further preloading attempts after first track pre-loading failed?
- manual track change ('next') -> here maybe a 'delayed next' function could help, which changes to next track after a defined timeframe, e.g. after 25s, to enable proper pre-loading for cross-fading. Is something like that available?

Probably not directly related to foo_youtube, but as a starting point... Please give me you hints if I should use another thread.
Title: Re: foo_youtube
Post by: wojak on 2022-01-12 08:25:54
Is it possible to display subtitles to videos played from local hard drive? Either embedded (in vob or m2ts) or external (srt, txt - for avi and other file extensions)? It works with videos played from the web (youtube) but I can't manage to do it with local files.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2022-01-12 16:13:40
wojak,try these settings:
XXX
subtitles will be displayed in how are the lyrics in foo_uie_lyrics3 0.5
Although I don't like this method :(
Title: Re: foo_youtube
Post by: wojak on 2022-01-13 07:48:12
wojak,try these settings:
[attach type=thumb]21713[/attach][attach type=thumb]21715[/attach][attach type=thumb]21717[/attach]
subtitles will be displayed in how are the lyrics in foo_uie_lyrics3 0.5
Although I don't like this method :(

Thanks, I used it but it is not any good. I assume it would be good for song lyrics but you can't watch movies with it.
Title: Re: foo_youtube
Post by: SergPuh.68 on 2022-01-13 08:13:14
wojak,then use the component foo_mpv it supports subtitles for movies
https://github.com/sammoth/foo_mpv/releases
X
Title: Re: foo_youtube
Post by: wojak on 2022-01-13 15:13:22
wojak,then use the component foo_mpv it supports subtitles for movies
https://github.com/sammoth/foo_mpv/releases
[attach type=image]21722[/attach]

Thanks, it works!
Title: Re: foo_youtube
Post by: 6u6d6 on 2022-02-11 21:41:40
anyone experiencing errors when playing urls from soundcloud, mixcloud etc after updating to youtube source 3.8 stable?
Title: Re: foo_youtube
Post by: 6u6d6 on 2022-02-11 21:58:22
I keep getting unsupported file errors.

Edit: seems to have been fixed after changing the youtube-dl binary to youtube-dl.org (managed) and not my external yt-dlp. Wonder why that is. Strange.

EDIT2: soundcloud still keeps hitting up an unsupported file error. Have they changed something on their backend that foobar can't handle? Youtube-dl from the command line still works fine for downloading.
Title: Re: foo_youtube
Post by: 6u6d6 on 2022-02-12 00:41:29
Fixed (I think.) had to set the lav filters to 'system' instead of managed.

Or maybe that was not the issue. I deleted youtube-dl and then redownloaded from the managed option, instead of youtube-dl 2022-04-04 and things seem to be working fine now. Why all of this is I have no idea.
Title: Re: foo_youtube
Post by: Mrakobes on 2022-03-26 06:56:34
Help set up the output of only the official video by the performer, that is, video clips and not content with a static picture, and so that it opens in a separate tab and does not create a playlist with garbage

[["%artist%"] ["%title%"] intitle:Official Video] So I tried but something doesn't work
Title: Re: foo_youtube
Post by: gr8cx on 2022-04-05 10:13:19
hi all

foo_youtube dont work
before yesterday's day all worked well

file -> add location https://www.youtube.com/watch?v=BKcY77qyMmE

in foobar Information window
The following error(s) occurred during loading of the location(s):
Connection error

windows xp SP3 foobar 1.3.20 foo_youtube 3.7.2 beta 1

advanced->networking->supress https certificate checks -> youtube.com entered

i think in foobar problem since sometimes in foo_youtube video appears and immediately stopped
possible, one of the server youtube's has included support only tls 1.2

foo_youtube has own (curl) crypto stack and he continues to work
foobar use OS crypto stack WINXP not support tls 1,2 and probably in this reason
Title: Re: foo_youtube
Post by: MojoBass on 2022-04-06 05:56:35
No problems with foo_youtube on my side, I can play your link with foo_youtube without any problems.
Title: Re: foo_youtube
Post by: gr8cx on 2022-04-06 06:24:03
i research my problem
when foobar do request (file->add location)
GET http://www.youtube.com/watch?v=vs6UfFPyssM HTTP/1.1
Host: www.youtube.com
Connection: close
User-Agent: foobar2000/1.3.20
Accept: */*
Icy-MetaData: 1

fiddler say SSL hanshake failed  and remote host refused connection
foobar do 10 attempts (preferences->advanced->network->keep reconnecting dropped connection 10 for default)
and say in foobar Information window
The following error(s) occurred during loading of the location(s):
Connection error

but! when i manually do such request with curl development kit

GET /watch?v=vs6UfFPyssM HTTP/1.1
Host: www.youtube.com
Accept: */*
Connection: close
User-Agent: foobar2000/1.3.20
Icy-MetaData: 1

response 200 OK and page content return for me

requests alike, ip alike, but response different
problen i think with HTTPS tls 1,2, foobar use crypto OS stack, but WINXP not support tls 1,2
curl development kit use own crypto stack and support tls 1,2 handshake
probable youtube server enable only tls 1,2 on own side
Title: Re: foo_youtube
Post by: 6u6d6 on 2022-05-10 16:27:26
is anyone struggling to play bandcamp links?

Bit of an unorthodox use for the component I'm aware but it allows me to check out new music I shall consider purchassing without bandcamp's horrid web streaming interface. It seems to have stopped working over the past week or so for me.
Title: Re: foo_youtube
Post by: 6u6d6 on 2022-05-10 17:13:05
for example I get this error:
Unable to open item for playback (Youtube Source: foo_youtube: Invalid data found when processing input | foobar2000: Unsupported file format | ffmpeg: Invalid data found when processing input):
"jungantagen.bandcamp.com/track/pulsar-acid-sequence-01"

What is this invalid data?
Title: Re: foo_youtube
Post by: 6u6d6 on 2022-05-14 09:21:34
Also very selective with soundcloud/mixcloud/links, when it was much less likely to through errors in the past
Title: Re: foo_youtube
Post by: MojoBass on 2022-05-22 08:23:44
anyone experiencing errors when playing urls from soundcloud, mixcloud etc after updating to youtube source 3.8 stable?
Same on my side with soundcloud at 3.8.1 beta1
Title: Re: foo_youtube
Post by: MojoBass on 2022-05-22 08:27:46
@3dyd : see here (https://hydrogenaud.io/index.php?topic=121006.msg1011090#msg1011090) a discussion on tags for yt tracks assigned from WilBs Find&Play.
Any hint from your side on how to deal with this?
Title: Re: foo_youtube
Post by: 6u6d6 on 2022-05-22 20:18:05
anyone experiencing errors when playing urls from soundcloud, mixcloud etc after updating to youtube source 3.8 stable?
Same on my side with soundcloud at 3.8.1 beta1

It seems to be working for me after updating yt-dlp. You might want to try that.
Title: Re: foo_youtube
Post by: MojoBass on 2022-05-24 05:26:24
@6u6d6: can confirm this on my side: I can play soundcloud tracks with foo_youtube 3.8.1 beta1 and yt-dlp 2022.05.18 (external source). Thanks for the hint!
Title: Re: foo_youtube
Post by: tim687 on 2022-07-01 09:32:52
I'm using foo_youtube 3.8.1 beta1 and yt-dlp 2022.6.29 and opening YouTube sources takes a very long time.
Also the fps of the video is very low, even at 720p.

Could anyone help me?
Title: Re: foo_youtube
Post by: anamorphic on 2022-07-01 16:23:06
^ No idea really, but seems like the ol' YT throttling issue has returned. I went back to using older yt-dlp 2022.01.21 and YT videos are smooth again. (foo_youtube 3.8 )
Title: Re: foo_youtube
Post by: Mixalisfr on 2022-07-02 10:20:31
it would be nice if we could have acount sync and to be able to sync our playlist automaticaly thanks
Title: Re: foo_youtube
Post by: tim687 on 2022-07-02 12:46:31
^ No idea really, but seems like the ol' YT throttling issue has returned. I went back to using older yt-dlp 2022.01.21 and YT videos are smooth again. (foo_youtube 3.8 )

Unfortunately the throttling is not gone, but I did get smoother video output eventually. I think that is because the LAV Filters have been updated, might have been an incompatibility with Windows 11.
Title: Re: foo_youtube
Post by: ksio89 on 2022-07-20 06:26:14
Any idea on how to load playlists? I installed build 3.8.1b1 on foobar2K 1.6.11, but it won't play by browsing to File>Youtube Source>Load channel or playlist... nothing happens and just says "Playback stopped". Pasting the URL on "Search on Site" doesn't give any results, only if I paste the playlist ID (string after ?list=), but won't play either.

In case anyone wants to try, this is an example: https://www.youtube.com/playlist?list=PLOEAs04auvietkxFG-8hjc80IIVBItX2r (https://www.youtube.com/playlist?list=PLOEAs04auvietkxFG-8hjc80IIVBItX2r)
Title: Re: foo_youtube
Post by: ZarkBit on 2022-07-20 10:37:19
For some reason on my end, I am only able to play videos smoothly when setting quality to 240p, any higher than that and the video stutters, does anyone know why this happens?

Ryzen 5 1600x @3.2Ghz
RX470 8GB
Title: Re: foo_youtube
Post by: MojoBass on 2022-07-21 05:29:46
Any idea on how to load playlists? I installed build 3.8.1b1 on foobar2K 1.6.11, but it won't play by browsing to File>Youtube Source>Load channel or playlist... nothing happens and just says "Playback stopped".
No issues on my side with the enclosed link and the described config and proceeding: I can load the yt playlist via File>Youtube Source>Load channel or playlist... , then a new fb playlist gets populated with the yt tracks from the yt playlist, and I can play all yt tracks.
Does foobar open a new fb playlist when you load the yt playlist?
Title: Re: foo_youtube
Post by: MojoBass on 2022-07-21 05:36:15
For some reason on my end, I am only able to play videos smoothly when setting quality to 240p, any higher than that and the video stutters, does anyone know why this happens?
Usually no problems on my side. Did you go through 3dyds suggestions on how to deal with throttling here (https://fy.3dyd.com/changelog/latest/)?
Title: Re: foo_youtube
Post by: ksio89 on 2022-07-21 20:31:47
No issues on my side with the enclosed link and the described config and proceeding: I can load the yt playlist via File>Youtube Source>Load channel or playlist... , then a new fb playlist gets populated with the yt tracks from the yt playlist, and I can play all yt tracks.
Does foobar open a new fb playlist when you load the yt playlist?

No, nothing happens. Tested on two computers with the same build of foobar2K and foo-youtube, same result. I checked Maintenance tab just in case, and all binaries are detected, including youtube-dl.
Title: Re: foo_youtube
Post by: MojoBass on 2022-07-23 06:53:36
No, nothing happens. Tested on two computers with the same build of foobar2K and foo-youtube, same result. I checked Maintenance tab just in case, and all binaries are detected, including youtube-dl.
I guess there could be thousands of reasons why it does not work on your side... I guess the only way is step-by-step: what does work, what not? E.g. can foobar add tracks to the target playlist or is it blocked? Are there problems only with yt playlists or as well with yt tracks? .....
Title: Re: foo_youtube
Post by: anamorphic on 2022-07-23 14:36:13
No, nothing happens. Tested on two computers with the same build of foobar2K and foo-youtube, same result. I checked Maintenance tab just in case, and all binaries are detected, including youtube-dl.
Did you also select 'Prefer youtube-dl over internal analyzer'? (on right-click 'youtube-dl' in Maintenance tab)
Title: Re: foo_youtube
Post by: ksio89 on 2022-07-24 02:58:39
Did you also select 'Prefer youtube-dl over internal analyzer'? (on right-click 'youtube-dl' in Maintenance tab)

Thank you so much, this did the trick! 👏
Title: Re: foo_youtube
Post by: ZarkBit on 2022-07-29 10:10:45
For some reason on my end, I am only able to play videos smoothly when setting quality to 240p, any higher than that and the video stutters, does anyone know why this happens?
Usually no problems on my side. Did you go through 3dyds suggestions on how to deal with throttling here (https://fy.3dyd.com/changelog/latest/)?

Yes and I also have the "prefer youtube over internal analyzer" still stutters, regardless of it being on or off.
Title: Re: foo_youtube
Post by: anamorphic on 2022-07-29 19:21:15
^ Try yt-dlp 2022.01.21 (https://github.com/yt-dlp/yt-dlp/releases/tag/2022.01.21) if you have not already (this is the last version that works correctly for me)
Title: Re: foo_youtube
Post by: ZarkBit on 2022-07-29 19:54:10
^ Try yt-dlp 2022.01.21 (https://github.com/yt-dlp/yt-dlp/releases/tag/2022.01.21) if you have not already (this is the last version that works correctly for me)

Yep, a reddit user (u/ghstchldrn) also gave me that suggestion and it worked.
Thank you ;-)
Title: Re: foo_youtube
Post by: iridescentaudio on 2022-08-18 12:38:55
I haven't been able to get this component to successfully queue playlists so far, every playlist I've tried fails and spits errors in console. I have no trouble with individual video links. Version 3.8.

Code: [Select]
foo_youtube: [error] #07, Analysis, no video found on Youtube: Playlist URL
foo_youtube: #07, https://www.youtube.com/playlist?list=PLQStah-DRToqTHmf55nxhBrHYcfxaDXcR
foo_youtube: [error] #08, The request is missing a valid API key. (code: 403)
foo_youtube: [error] tp.l > could not process 'https://www.youtube.com/playlist?list=PLQStah-DRToqTHmf55nxhBrHYcfxaDXcR': Unsupported file format

Any pointers? Thanks.
Title: Re: foo_youtube
Post by: MojoBass on 2022-08-18 19:37:40
No poblems on my side to load the included Triptunes playlist without error via File>Youtube Source>Load channel or playlist...
I guess you already thoroughly went through this thread and implemented the hints which have been given above (yt-dlp, Prefer youtube-dl over internal analyzer etc).. Maybe upgrade to 3.8.1b1 helps.
Title: Re: foo_youtube
Post by: arch21 on 2022-09-01 14:02:31
I got an issue like I described here (https://hydrogenaud.io/index.php/topic,122870.msg1014687/topicseen.html) on latest foobar2000 beta. I wonder it happens because the changes on how foobar2000 handles track info, by using metadb v2. thanks.
Title: Re: foo_youtube
Post by: regor on 2022-09-16 12:44:06
Pretty new using this, have tried multiple methods and reading the docs without luck.
Is there a way to add a custom query to a playlist to be parsed by foo_youtube at a later point (or on load)?

For ex. if I click into any track, 'Youtube Source\Substitute with a search item\Auto', the handle is replaced with a item pointing to
Code: [Select]
youtube.api.video?query=The+Human+Experience+-+Slow+down&skip_next=1&ssc=mAEB
Clicking on it searchs the item (I suppose it gets only the first result) and replaces the item with a youtube search. That's fine.
Code: [Select]
www.youtube.com/watch?v=eOP5cW1lfd4

Now the problem is... How can I add an arbitrary query? i.e. If I try to add a query like this using add locations, it fails.
Code: [Select]
youtube.api.video?query=Gary+Clark+Jr.+-+Things+are+changin%27&skip_next=1&ssc=mAEB

Have also tried with:
Code: [Select]
3dydfy://youtube.api.video?query=Gary+Clark+Jr.+-+Things+are+changin%27&skip_next=1&ssc=mAEB
fy+youtube.api.video?query=Gary+Clark+Jr.+-+Things+are+changin%27&skip_next=1&ssc=mAEB

Why:
Since there is already a youtube component able to process queries, the idea is to create arbitrary queries (it may be from a playlist or SMP scripts) to be processed by the component. Current approach in other scripts like Find&Play scrape youtube first to get a full working link, for every item, to then be processed by the component, which is pretty redundant.

Life would be much simpler if we could simply pass the query to the component and let it perform the search with or without the API, instead of duplicating the processing.
Title: Re: foo_youtube
Post by: renoxd on 2022-10-06 21:14:01
Hi guys, I'm new in foobar app and in foo_youtube component. I use Windows 10 and Topping DX7 Pro as my DAC.

Could you tell me how to configure properly Youtube Source -> Maintenace tab -> Thirtd-party Binaries? As far I see I have completely different settings there than you.

(https://ibb.co/1R9wmmm)






Title: Re: foo_youtube
Post by: medp7060 on 2022-10-29 04:44:48
Error:

Code: [Select]
Unable to open item for playback (Youtube Source: foo_youtube: server error (403) from rr1---sn-qx8vapo1-53as.googlevideo.com | ffmpeg: Server returned 403 Forbidden (access denied) | foobar2000: Forbidden (403)):
"www.youtube.com/watch?v=XurLyoRXP54"

Updated: It worked later. So I guess this was because API has a daily quota.
Title: Re: foo_youtube
Post by: kostis57 on 2022-11-26 06:39:04
I use to edit metadata in ".foo_youtube" files in fb2k by manually adding ARTIST, COMPOSER, GENRE, DATE etc.
Adding multiple artists separated by ";" in ARTIST field is accepted (although arranged alphabetically)  but once I play the YouTube item, multiple artists are gone and only the first one is remaining.
Title: Re: foo_youtube
Post by: a on 2022-11-27 18:51:22
Would it ever be possible to change the default "fallback" text, that displays in the integrated search bar panel, whenever there is no query entered? I would love to be able to change it from "Type a search query and press Enter" to "Search YouTube," so I can better distinguish it from my filters search bar.
Title: Re: foo_youtube
Post by: predator on 2022-12-18 19:30:18
Hi all, I have a problem.
I adding my youtube playlist via File -> Youtube Source -> Load channel or playlist...
There is a playlist created in Foobar, all is OK
But in View -> Youtube Source -> Auto-Updated Playlists - it's empty, I can't see this playlist

I am having the same problem. Does anyone know how to fix this?
Title: Re: foo_youtube
Post by: cooldude on 2023-01-23 12:47:51
I'm trying to add/parse an entire Bandcamp album, e.g.:
https://dreamcatalogue.bandcamp.com/album/--18
It doesn't work and nothing loads, whereas it used to work before IIRC.

Loading an individual track does work, however:
https://dreamcatalogue.bandcamp.com/track/--436

I'm using the latest yt-dlp, set to "prefer youtube-dl over internal analyzer". If I don't set that preference, the individual track doesn't load either.

As a workaround, what other software can parse/scrape an entire bandcamp artist or album, and provide a list of individual song URLs, which I could then play in foobar? The options I've seen so far seem to download the songs as well, which is unnecessary.
Title: Re: foo_youtube
Post by: cooldude on 2023-01-24 21:02:38
As a workaround, what other software can parse/scrape an entire bandcamp artist or album, and provide a list of individual song URLs, which I could then play in foobar? The options I've seen so far seem to download the songs as well, which is unnecessary.
Found one:
https://github.com/adamdehaven/fetchurls
Title: Re: foo_youtube
Post by: cooldude on 2023-01-28 14:50:07
I'm trying to add/parse an entire Bandcamp album, e.g.:
https://dreamcatalogue.bandcamp.com/album/--18
It doesn't work and nothing loads, whereas it used to work before IIRC.
Disregard that, I suck cocks; I downloaded the latest yt-dlp.exe and set the foobar plugin to use that as "external", now it works.
Title: Re: foo_youtube
Post by: dts350z on 2023-02-04 20:08:19
YouTube started supporting 5.1 in the 2nd half of 2022.

They expect  you to have a Roku, Apple Tv, firestick, etc. player with a "newer" TV. Available 5.1 streams appear to be format ID 380 is AC-3, 328 is E-AC-3 and 258 is AAC.

While these can be snarfed with download tools, is there a way to get foobar to play these streams without downloading first?

I get errors when I try with foo_youtube.

Couple example channels:

https://www.youtube.com/@mixerrog5.1

https://www.youtube.com/@5.1MusicChannel
Title: Re: foo_youtube
Post by: MojoBass on 2023-02-05 08:00:45
Played without problems on my side with foo_youtube and yt-dlp But I guess that was the 2ch version - I do not own any 5ch equipment.
Title: Re: foo_youtube
Post by: dts350z on 2023-02-14 21:19:53
Does anyone know where those Audio format IDs (my term) come from?

I see examples where formats with same number of channels and channel order have different IDs, and also examples where a completely different coded has the same ID?

Title: Re: foo_youtube
Post by: dts350z on 2023-02-15 01:50:51


e.g. m4a ids 256 and 258 have the same channel layout (per mediainfo), and there is also a several other codecs with id 258 (m48, mp3, aac, wav, and flac)
Title: Re: foo_youtube
Post by: MojoBass on 2023-02-18 07:10:28
These are YouTube video stream format codes, defined by Youtube.
There are several listings of the format codes available in the web, see here (https://gist.github.com/sidneys/7095afe4da4ae58694d128b1034e01e2) or here (https://voussoir.net/writing/youtubedl_formats).
Codes 258 and 256 are both audio-only and have a m4a audio container which can contain different codecs (usually aac). 258 has 386kbps bitrate, 256 has195kbps.
Title: Re: foo_youtube
Post by: Ciancy28 on 2023-02-18 14:32:53
I actually made an account here only for this request:  
Please, PLEASE add a filter to search only YouTube Music official music uploads (those music videos with static cover art and "Provided to YouTube by *record label*" in the description.   
These uploads:
1. Have much higher audio quality (they are usually transcoded from lossless sources), than regular music videos.  
2. Have no audio effects or pauses related to the video
This would turn foobar2000 into a usable light and 0 ads YouTube Music client.  
I have no idea how to implement such filter, but I can't imagine it being too hard, you can just filter out the videos that don't have "Provided to YouTube by *record label*" in their descriptions.   
NewPipe on Android somehow goes a step further and allows you to filter for YouTube Music albums and playlists, that would be a game-changer.  
Btw the component is already great as it is, thanks for developing it.  
Title: Re: foo_youtube
Post by: paregistrase on 2023-03-04 19:00:10
When I start foobar YouTube source search panel follow the colors I have configured

(https://i.imgur.com/AUUh1Lq.png)

But changing tab and coming back it start using white background with white fonts

(https://i.imgur.com/5evoXql.png)

I tried with stable and dev versions, both have the same behavior
Title: Re: foo_youtube
Post by: RedSaint on 2023-03-15 08:16:41
Love this plugin, but I just downloaded the 64-bit beta of v2 of Foobar, so I was wondering if there'll be 64 bit versions available in the future?
Title: Re: foo_youtube
Post by: anamorphic on 2023-03-15 12:43:03
^ Try foo_youtube 3.9 beta 2 (https://fy.3dyd.com/download/) which is 32/64-bit. See change log ('details' link) -

Quote
3.9 beta 2 (25-Sep-2022)

  • added 64-bit version for 64-bit foobar2000 v2.0
  • changed minimum requirements to foobar2000 1.5 (was 1.3), Windows XP SP3 (was SP2, at least on paper), and processor with SSE2 instruction set (was [probably] not required)
  • updated foobar2000 SDK to 2022-08-10, switched to Visual Studio 2022
  • included node.js in the package, so corresponding binary (Maintenance Third-party Binaries Javascript) now has an option Bundled (Node.js). This option is the default one now
Title: Re: foo_youtube
Post by: iridescentaudio on 2023-04-08 11:36:12
I am a little confused about the behaviour of this component with regards to where fetched items are playlisted. Sometimes new playlists are created (at the bottom of a long list of playlists), other times they are added to the currently focused playlist (at the bottom of a long list of songs!)

Neither of these behaviours are ideal for me and I'd personally find it more helpfui to have fetched URLs always added to a playlist specified in preferences (e.g. "YouTube".) Have I overlooked an option to do this?
Title: Re: foo_youtube
Post by: cauliflower on 2023-04-10 21:39:51
I am a little confused about the behaviour of this component with regards to where fetched items are playlisted. Sometimes new playlists are created (at the bottom of a long list of playlists), other times they are added to the currently focused playlist (at the bottom of a long list of songs!)

Neither of these behaviours are ideal for me and I'd personally find it more helpfui to have fetched URLs always added to a playlist specified in preferences (e.g. "YouTube".) Have I overlooked an option to do this?

If you don't like that behaviour, you can configure it so it always fetches the results to a specified playlist. Click on the "youtube.web" text to see the options. "wipe before add" option may also be help for your use case, or fetching videos only (i.e. no playlists).
Title: Re: foo_youtube
Post by: iridescentaudio on 2023-04-11 12:04:23
Hmm. The Destination options visible in your screenshot are missing from mine. (EDIT: I found it, but it looks like it's a feature of the YouTube Source Panel and not visible under the View menu.)

I was unaware of this menu as it has not been my modus operandi to use YouTube Source Search or a panel, instead searching in browser, copying links and then opening the dialogue for the "Add multiple URLs" option found in the File menu. Changing the setting seems not to affect the behaviour of the Add URLs option.
Title: Re: foo_youtube
Post by: Jinse on 2023-05-03 14:40:23
I used the version of foo_YouTube3.9beta2 and it's pretty good. But I found that it doesn't work with madVR on foobar2000 v2.0 64-bit, showing can't show madVR in the console info. Please how do I solve this problem.
Title: Re: foo_youtube
Post by: Air KEN on 2023-05-22 13:17:37
Youtube Source 3.9 beta 2 (foo_youtube) (2023-05-22)
foobar2000 v2.0 64bit Default UI

I'm sorry for the delay.
The setting screen does not support Dark-Mode.
Thank you for your support.

(https://i.imgur.com/XI5SZ89.png)
Title: Re: foo_youtube
Post by: Wolfbane on 2023-05-22 14:06:31
Did a format computer, installing 1.6 Foobar + YouTube 3.8.1 plugin, and trying to make things not lagg on the old computer.
So I was trying to limit the kbps because it seemed to be when they was above 4500kbps then songs lagged.

So I did this... Is this wrong is there some better way to do what Im trying to do ?

( Also so long ago since I install the original Foobar+YT, that it can be that I have forgotten to install some Filters or something els to help against the lagging. )

https://prnt.sc/sFlZkcJhcakE

Here is an example of a song that is only 360p and still lagging on ( AM5, 7800x3D, 64GB 6000mhz 30cl, M2 980 Pro, GPU: 1080 (yes the GPU is a bottleneck, buy new "soon" ) )

Bad Bunny - NI BIEN NI MAL | Cover                     www.youtube.com/watch?v=xdt5KdF22J0
Lagging            mp4      12mb   526kbps      h264   360p      30fps
Title: Re: foo_youtube
Post by: Wolfbane on 2023-05-22 15:15:22
Also there are songs like these one's, that when u click it and check source, there are no information on some versions.
And guess the filter determines no info that "less then X" and it picks that song, even if it results in lagging.

Examples of chill background music that has that error for me and causes lagg in video
www.youtube.com/watch?v=SU1apJTv94o
www.youtube.com/watch?v=QRE6bIaxwZU
www.youtube.com/watch?v=6ZgZPflXOg4
www.youtube.com/watch?v=y2SJnCVWbeU
www.youtube.com/watch?v=5yBaI7-docw

So how would I setup so it ignores these picks since they all seem to lagg if the "no information sources" is picked?

Or add / do some changes that results in songs like these not lagging for me?
Title: Re: foo_youtube
Post by: yeyo on 2023-05-22 16:02:30
Did a format computer, installing 1.6 Foobar + YouTube 3.8.1 plugin, and trying to make things not lagg on the old computer.
So I was trying to limit the kbps because it seemed to be when they was above 4500kbps then songs lagged.

So I did this... Is this wrong is there some better way to do what Im trying to do ?

( Also so long ago since I install the original Foobar+YT, that it can be that I have forgotten to install some Filters or something els to help against the lagging. )

https://prnt.sc/sFlZkcJhcakE

Here is an example of a song that is only 360p and still lagging on ( AM5, 7800x3D, 64GB 6000mhz 30cl, M2 980 Pro, GPU: 1080 (yes the GPU is a bottleneck, buy new "soon" ) )

Bad Bunny - NI BIEN NI MAL | Cover                     www.youtube.com/watch?v=xdt5KdF22J0
Lagging            mp4      12mb   526kbps      h264   360p      30fps
Go switch:https://github.com/yt-dlp/yt-dlp/releases
Title: Re: foo_youtube
Post by: Ojos Azules on 2023-06-08 07:55:15
Bug: Playlist Title shows as first song

X
Title: Re: foo_youtube
Post by: Ojos Azules on 2023-06-08 07:56:26
foo_youtube bug: Channel name doesn't load till the song is played [See Video]

GIF Format X

Download MP4 - X
Title: Re: foo_youtube
Post by: regor on 2023-06-15 20:43:33
How do you uri encode a multi-value tag on the URL?
Code: [Select]
fy+https://www.youtube.com/watch?fb2k_mytag=VALUE1&fb2k_mytag=VALUE2&v=civuoU_NE38
Will only use the second value. Adding a ';' doesn't work.
Title: Re: foo_youtube
Post by: zeremy on 2023-06-15 21:13:48
How do you uri encode a multi-value tag on the URL?
Code: [Select]
fy+https://www.youtube.com/watch?fb2k_mytag=VALUE1&fb2k_mytag=VALUE2&v=civuoU_NE38
Will only use the second value. Adding a ';' doesn't work.


https://fy.3dyd.com/help/metadata/

use %3b for ;

Code: [Select]
 fy+https://www.youtube.com/watch?fb2k_mytag=VALUE1%3bVALUE2&v=civuoU_NE38
Title: Re: foo_youtube
Post by: regor on 2023-06-15 22:14:16
How do you uri encode a multi-value tag on the URL?
Code: [Select]
fy+https://www.youtube.com/watch?fb2k_mytag=VALUE1&fb2k_mytag=VALUE2&v=civuoU_NE38
Will only use the second value. Adding a ';' doesn't work.


https://fy.3dyd.com/help/metadata/

use %3b for ;

Code: [Select]
 fy+https://www.youtube.com/watch?fb2k_mytag=VALUE1%3bVALUE2&v=civuoU_NE38

I know I have to encode the ';' as %3b, my point is that doesn't work. It just creates a tag with "VALUE1;VALUE2" value, not a multi-valued tag with 2 values.
Title: Re: foo_youtube
Post by: Terence on 2023-06-15 23:22:02
Maybe this?
I think foobar doesn't show well whether it's a multivalue tag or not, because in both cases foobar displays a semicolon. I have the impression that your screenshot is missing a space and that it's not a multivalue tag.

Properties  >  right clic on your tag  >  Split values...

Preferences  >  Advanced  >  search "Multivalue fields". Has your tag been added?

If you use Mp3tag, it shows the difference since its multivalue separator is \\. To see the difference in foobar, I think you can make a column with $meta_sep(name,sep) (https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference#.24meta_sep.28name.2Csep.29) , for example $meta_sep(mytag, * ) .
Title: Re: foo_youtube
Post by: Ojos Azules on 2023-06-24 10:43:50
Set metadata so foo_openlyrics works
X
Title: Re: foo_youtube
Post by: mattie on 2023-06-26 08:39:36
Trying to get it to parse a YouTube playlist and it only gives a blank, 50 second file. This is a new bug as it was working fine a few weeks ago

Got my API all set up and all, but it spits out this

"Unable to open item for playback (Unsupported file format):
"youtube-dl?url=P8aTFQqwV70" "
Title: Re: foo_youtube
Post by: Air KEN on 2023-06-26 10:22:55
@mattie
what happens if you replace it?

youtube-dl 2023.06.26.19419 (youtube-dl.exe)
https://github.com/ytdl-patched/youtube-dl/releases

foo_youtube_3.9_beta2
https://fy.3dyd.com/download/
Title: Re: foo_youtube
Post by: Air KEN on 2023-06-26 12:28:41
or
yt-dlp (yt-dlp.exe)
https://github.com/yt-dlp/yt-dlp/releases

(ffmpeg.exe, ffplay.exe, ffprobe.exe, yt-dlp.exe) in the same folder
Title: Re: foo_youtube
Post by: Ojos Azules on 2023-06-27 08:19:40
When playing a song from YouTube and If a song is in library then play it instead of steaming it
Title: Re: foo_youtube
Post by: Ojos Azules on 2023-06-27 08:29:10
Add support to play songs of URL stored in .m3u.
.m3u maybe a single video, collection of videos or playlist URL.
https://en.wikipedia.org/wiki/M3U
Title: Re: foo_youtube
Post by: Ojos Azules on 2023-06-28 07:35:42
1. Anyway to not have playlists in f2k playlists I want to hide songs from playlists in toolbar
I want to have youtube playlists separate from other f2k playlists
X

2. Hide songs from search

I don't want f2k search result to show songs from added YouTube Playlist
Title: Re: foo_youtube
Post by: zwolamed2 on 2023-07-15 23:39:51
If it's possible, please delete that it's compatible with v. 1.3
https://www.foobar2000.org/components/view/foo_youtube/release/3.8.1
I tested some 1, 2, 3 plugin versions, and it didn't seem to work.
After adding location it showed:
"Security error (...)"
Or in older 1.x (after URL appearing on playlist and clicking it):
"Unable to open item for playback (Youtube Source: Page analysis, server error (code #410)):
"youtube.com/watch?v=avrpaTpS5Kc""
Tried out adding API key.

At least on 1.6 works and newer it seems to work.
Title: Re: foo_youtube
Post by: olad on 2023-07-28 21:48:20
Hi, i have trouble trying auto-updater. No problem while adding the youtube playlist with the "Load channel or playlist...", it works flawlessy. But adding the same youtube playlist with the "Add location..." to be able to auto update it, do not work. The playlist track is correctly added, i can see the playlist in the dedicated "Auto-updated Playlist" view, but nothing happen if i check the box or if i "Update" the playlist.
The following messages appears in the console :
Code: [Select]
foo_youtube: [error] #19, Analysis, no video found on Youtube: Playlist URL
foo_youtube: #19, https://www.youtube.com/playlist?list=PLi0pv96jN_asfcoyvdB1lzhvNGfNSmYI6
foo_youtube: [warning] auto-updated playlists: could not get storage for playlist with id=0
The first two lines appear when i "Add location...", the last line when i try to update the playlist.

Any idea what's wrong ?
Title: Re: foo_youtube
Post by: Air KEN on 2023-08-27 04:12:54
Youtube Source 3.9 beta 3 (foo_youtube) (2023-08-26)
https://fy.3dyd.com/download/
MD5: 3bf3975e96a20c1eaad71700d676eb69

Beta version details
https://fy.3dyd.com/changelog/beta/

Doesn't seem to fully support Dark-Mode.
foobar2000 v2.1 preview 2023-08-24 : 32-bit | 64-bit Default UI element and Columns UI panel

(https://i.imgur.com/z8U1GJy.png)
Title: Re: foo_youtube
Post by: ArnoldKMTR on 2023-09-05 02:04:08
hey
Im a frequent user of foo_youtube and i am honestly loving the plugin so far though one issue i am having atm is just the fact auto updated playlists are not functioning as well as they used to, i would usually do the thing of "Add Location" with the youtube playlist url for the playlist to even get detected on the list but it seems i am even unable to pull that off with no luck since ive update to foobar2000 v2.0

if anyone knows what is going on do let me know as i am trying to find a solution to this

ive also attached an image below where the playlist doesnt show up on the list despite me clearly adding the playlist to my actual foobar2000 playlist

Title: Re: foo_youtube
Post by: ApacheReal on 2023-09-14 07:39:02
I report a Runtime error when calling up the application while a playlist is running with a file that has an embedded cue inside.

No crash report.
Title: Re: foo_youtube
Post by: xordae on 2023-10-22 23:17:15
Doesn't seem to work anymore with the latest youtube changes.

Unable to open item for playback (Youtube Source: Analysis, no video found on Youtube URL)
Title: Re: foo_youtube
Post by: crystal-clear on 2023-10-24 12:21:41
I haven't been able to get this component to successfully queue playlists so far, every playlist I've tried fails and spits errors in console. I have no trouble with individual video links. Version 3.8.

Code: [Select]
foo_youtube: [error] #07, Analysis, no video found on Youtube: Playlist URL
foo_youtube: #07, https://www.youtube.com/playlist?list=PLQStah-DRToqTHmf55nxhBrHYcfxaDXcR
foo_youtube: [error] #08, The request is missing a valid API key. (code: 403)
foo_youtube: [error] tp.l > could not process 'https://www.youtube.com/playlist?list=PLQStah-DRToqTHmf55nxhBrHYcfxaDXcR': Unsupported file format

Any pointers? Thanks.

Did you solve this? I'm having the same problem. Individual videos work fine but not playlists.
Title: Re: foo_youtube
Post by: crystal-clear on 2023-10-24 17:10:10
Never mind I solved it. "Prefer youtube-dl over internal analyzer" fixed it.
Title: Re: foo_youtube
Post by: Defender on 2023-10-24 17:29:26
I'm using foo_youtube 3.9 beta 3 with external yt-dlp.exe version 2023.10.07.

When I do a search (engine youtube-dl) a lot of videos return in my playlist with no length (especially with shorts). If I play such a song length is retrieved and is played in playlist.

How can I configure foo_youtube / yt-dlp.exe that upon a search it returns length in the playlist always?
Title: Re: foo_youtube
Post by: Air KEN on 2023-10-28 00:57:01
Youtube Source 3.9 (2023-10-27)
https://www.foobar2000.org/components/view/foo_youtube

Thank you for correcting it.

Youtube Source 3.9 beta 3 (foo_youtube) (2023-08-26)
https://fy.3dyd.com/download/
MD5: 3bf3975e96a20c1eaad71700d676eb69

Beta version details
https://fy.3dyd.com/changelog/beta/

Doesn't seem to fully support Dark-Mode.
foobar2000 v2.1 preview 2023-08-24 : 32-bit | 64-bit Default UI element and Columns UI panel

(https://i.imgur.com/z8U1GJy.png)
Title: Re: foo_youtube
Post by: ApacheReal on 2023-10-28 05:10:46
I report a Runtime error when calling up the application while a playlist is running with a file that has an embedded cue inside.

No crash report.

Crashes with CUE.

Second report.
Title: Re: foo_youtube
Post by: askold on 2023-10-28 23:49:48
swap (russian) captions of that items and swap its positions

(https://i.imgur.com/rl5EPBW.jpeg)
Title: Re: foo_youtube
Post by: K3rN3lvN on 2023-10-29 08:19:51
Hello,
In the Find & Play (Wil-B) plugin, I choose Create m-Tags album -> From a selection playlist
Figure 1:


Then, I played a track from the album created from the m-Tag of the Find & Play plugin
Figure 2:


However, playing this song is very slow, maybe foo_youtube processes and scans all the references in the m-Tags file?

Is there a way to make foo_youtube handle only one reference per selected track in the m-Tags file?
(If there is only one track in the m-Tags file then foo_youtube works fine.)

This is the content of the m-Tags file created from the playlist "This is Francis Goya".
Code: [Select]
[
   {
      "@": "fy+https://www.youtube.com/watch?v=nm5yKLzJnik",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "236.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Woman In Love",
      "TITLE": "Woman In Love",
      "TRACKNUMBER": "1",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Woman In Love -- Francis Goya"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=GPNSh-Zre_c",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "230.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "I Just Called To Say I Love You",
      "TITLE": "I Just Called To Say I Love You",
      "TRACKNUMBER": "2",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Francis Goya - I Just Called To Say I Love You"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=B2rkCA8dH7E",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "260.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Maggy M",
      "TITLE": "Maggy M",
      "TRACKNUMBER": "3",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Francis Goya - Maggy M"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=nv-fZ53EMjM",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "240.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Hello",
      "TITLE": "Hello",
      "TRACKNUMBER": "4",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Hello - Francis Goya"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=qC3hMr2sxao",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "229.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Nostalgia",
      "TITLE": "Nostalgia",
      "TRACKNUMBER": "5",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Francis Goya - Nostalgia"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=HK4VxbPihgU",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "255.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Let The Nations Play (B O'Reilly)",
      "TITLE": "Fracis Goya Let The Nations Play B O'Reilly",
      "TRACKNUMBER": "6",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Fracis Goya   Let the nations play B O'Reilly"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=TPP2YC131yI",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "152.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "A View To A Kill",
      "TITLE": "A View To A Kill",
      "TRACKNUMBER": "7",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "A View To A Kill"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=79Hgl-1KpCE",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "162.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Third Man",
      "TITLE": "Third Man",
      "TRACKNUMBER": "8",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Third Man"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=WyJ6LhybS5w",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "228.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Classical Dream",
      "TITLE": "Classical Dream",
      "TRACKNUMBER": "9",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Francis Goya - Classical Dream"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=4dY3tWahOiE",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "270.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "One Day I'll Fly Away",
      "TITLE": "One Day I'll Fly Away",
      "TRACKNUMBER": "10",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Francis Goya - One Day I'll Fly Away - By Wilfried Braem"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=j8iZjwRuT4U",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "269.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "L'Amour In Heritage (V Cosma)",
      "TITLE": "L'Amour En Heritage",
      "TRACKNUMBER": "11",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "L'Amour En Heritage"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=jJib_qDQoyA",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "291.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "One Night In Taormina",
      "TITLE": "One Night In Taormina",
      "TRACKNUMBER": "12",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "One Night in Taormina - Francis Goya"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=36rGet3Xx-0",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "336.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Careless Whisper",
      "TITLE": "Careless Whisper",
      "TRACKNUMBER": "13",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Francis Goya  - Careless Whisper"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=_JR7RvnWtv0",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "208.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Mariana",
      "TITLE": "Mariana",
      "TRACKNUMBER": "14",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Francis Goya - Mariana"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=T-LVEwK8f4k",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "192.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Thorn Birds Theme (H. Mancini)",
      "TITLE": "Thorn Birds Theme",
      "TRACKNUMBER": "15",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Thorn Birds Theme"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=TUw8yOTPcJw",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "249.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Just The Way You Are (B Joel)",
      "TITLE": "Just The Way You Are",
      "TRACKNUMBER": "16",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Just The Way You Are"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=9wyU3X8Ot-I",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "191.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Guitar In The Moonlight",
      "TITLE": "Guitar In The Moonlight",
      "TRACKNUMBER": "17",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Guitar in the moonlight - Francis Goya"
   },
   {
      "@": "fy+https://www.youtube.com/watch?v=ei8J5p3rvyQ",
      "ALBUM": "This Is Francis Goya!",
      "ARTIST": "Francis Goya",
      "DATE": "1999",
      "DURATION": "367.0000000",
      "REPLAYGAIN_TRACK_GAIN": [],
      "REPLAYGAIN_TRACK_PEAK": [],
      "SEARCH_TITLE": "Who Pays The Ferryman",
      "TITLE": "Who Pays The Ferryman",
      "TRACKNUMBER": "18",
      "TRACK_TYPE": "YouTube Track",
      "YOUTUBE_TITLE": "Francis Goya - Who Pays the Ferryman (HD, HQ)"
   }
]

Thank you !
Title: Re: foo_youtube
Post by: rafaelos on 2023-11-09 10:50:37
Very sad ... from versions foobar2000v2.1-32,64-prev (2023-11-07, 08)  load channel or playlist from <music.youtube.com> stop working.. If it possible repair this bug. Thank you
Title: Re: foo_youtube
Post by: Mixalisfr on 2023-11-18 09:03:13
loading playlist dont work individual songs works after youtube changes
Title: Re: foo_youtube MadVR
Post by: Juancar2 on 2023-11-22 00:23:27
What about the third part component of foo_youtube "MadVR"?
The website has changed and no way to find the download page.

Thanks in advance
Title: Re: foo_youtube MadVR
Post by: sveakul on 2023-11-22 01:01:17
What about the third part component of foo_youtube "MadVR"?
The website has changed and no way to find the download page.

Thanks in advance
https://forum.doom9.org/showthread.php?t=146228 (https://forum.doom9.org/showthread.php?t=146228)

http://madshi.net/madVR.zip (http://madshi.net/madVR.zip)
Title: Re: foo_youtube
Post by: Mixalisfr on 2023-11-28 10:02:53
after searching a bit to be able to sync playlists (with another software the plugin need to have access to the api key the the user client id and to the user client secret
Title: Re: foo_youtube
Post by: Derwol on 2023-11-28 12:20:14
I accidentally replaced my entire playlist with the search item... I thought it would only substitute the youtube links and not actual files too but it did everything and I wasn't able to reverse it. It would be nice if the component didn't do that.
Title: Re: foo_youtube
Post by: marc2k3 on 2023-11-28 14:45:19
In theory, changes to playlist contents should be undoable using Ctrl+Z or Edit menu>Undo but if the component doesn't make a backup point before modifying content, it won't work as expected. Developers should utilise playlist_manager::playlist_undo_backup from the SDK.
Title: Re: foo_youtube
Post by: vritme on 2023-12-16 15:48:00
YouTube started supporting 5.1 in the 2nd half of 2022.

They expect  you to have a Roku, Apple Tv, firestick, etc. player with a "newer" TV. Available 5.1 streams appear to be format ID 380 is AC-3, 328 is E-AC-3 and 258 is AAC.

While these can be snarfed with download tools, is there a way to get foobar to play these streams without downloading first?

I get errors when I try with foo_youtube.

Couple example channels:

https://www.youtube.com/@mixerrog5.1

https://www.youtube.com/@5.1MusicChannel


Yes, there is a way to get foobar to play these streams without downloading first.
You need to add "Downmix channels to stereo" in your Preferences -> Playback -> DSP Manager setting.
Title: Re: foo_youtube
Post by: Mixalisfr on 2024-02-05 10:57:33
playlist seems to not working again single link works fine i inserted my api key
Title: Re: foo_youtube
Post by: Mixalisfr on 2024-02-21 11:27:37
after testing i found that the plugin dont work with private playlist only with public ones
Title: Re: foo_youtube
Post by: sacrell on 2024-02-28 16:48:36
This works like a charm! One minor thing, update 3.9 mentions adding yt-dlp support. I have yt-dlp installed via winget, so it is in some obscure folder BUT it is very definitely on the path via "yt-dlp". The component says it is not on the path, which means it is probably checking for the wrong command. I can add it by specifying the executable directly, but I thought I would mention it.

One thing I have been wondering about, is support for YouTube Music on the roadmap at all? As in, playing my YTM playlists including "Liked Songs" which is not a public playlist, and playing music I uploaded into my account? Those songs are also not available publicly at all, if you share a playlist those songs will not work. The audio quality available on YTM is also superior to regular YT, it has some 256kbps vbr aac IIRC vs the 120 or so vbr opus. So yeah, just wondering if that is somewhere on the roadmap or if the plan is to stick to regular YouTube. YTM doesn't have any decent integration anywhere as far as I know, so it would be a first as far as I can tell!