Hydrogenaudio Forums

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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: outwork on 2014-01-26 21:14:16
It is possible to implement direct search within foobar2000?
Title: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: outwork on 2014-01-28 15:31:26
Trying out right now! Thanks.
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: mire777 on 2014-03-04 16:56:19
[quote author=q-stankovic link=msg=859780 date=1393938939]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.[/quote]

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: foo_youtube
Post by: 3dyd on 2014-03-04 22:30:27
[quote author=q-stankovic link=msg=859780 date=1393938939]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. [/quote]
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: musikomaniak on 2014-03-21 21:30:28
I'll try tomorrow.
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: ArchCarrier on 2014-04-12 20:20:38
Thank you!
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: robgil on 2014-04-23 13:18:36
Can this be controlled via Foobarcon?
Title: 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: 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: 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: 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: foo_youtube
Post by: MaCs on 2014-05-15 15:08:29
Well it just keeps getting better! Thanks a lot 3dyd!
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: musikomaniak on 2014-06-01 06:42:42
Thanks for the useful offtopic
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: 3dyd on 2014-06-20 11:55:53
Ok, noted. I'll check what can be done
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: mire777 on 2014-06-22 23:24:38
Works great.
I am still amazed how this video work.
Thanks.
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: 3dyd on 2014-07-17 08:05:34
Yep, it's back. Thanks for reporting, working on it.
Title: 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: 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: foo_youtube
Post by: discopig on 2014-07-18 07:10:27
Awesome plugin! I was looking for something exactly like it.
Title: 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: 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: foo_youtube
Post by: Clauu on 2014-07-18 22:01:20
Many thanks for the update
Title: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: Clauu on 2014-07-27 00:56:13
Big thanks for the update
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: dragex on 2014-08-06 10:50:04
I get it. I thought that the window integrated
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: mire777 on 2014-08-13 17:18:55
3dyd , thank you , video work now
Title: 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: 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: 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: foo_youtube
Post by: dragex on 2014-08-15 05:49:59
3dyd , thank you!
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: yeahman on 2014-09-02 05:44:13
The metadata edits disappear when the song is played again.
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: musikomaniak on 2014-09-17 13:17:45
New version 1.3.1


Thanks 3dyd.
No problem for me
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: 3dyd on 2015-01-08 13:23:06
Try 'foo_youtube' from Preferences -> Tools -> Youtube Source -> Decoder -> Media downloading.
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: rds_correia on 2015-06-18 05:51:35
Thanks a bunch mate.
Title: 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: 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: 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: foo_youtube
Post by: 3dyd on 2015-06-29 14:51:56
Found where it is. Will be fixed in next ver.
Title: foo_youtube
Post by: 3dyd on 2015-07-09 22:26:15
New version 1.11

Changelog:
Title: 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: 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: 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: 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: foo_youtube
Post by: Starbucks on 2015-07-26 07:11:22
That seemed to do the trick! Thanks so much. 
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: WilB on 2015-08-26 17:56:40
Thanks. I eagerly look forward to the next release.
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: 3dyd on 2015-09-22 20:10:41
Ok, noted.
Title: 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: 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: 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: foo_youtube
Post by: 3dyd on 2015-09-23 15:22:51
Ok, noted. But probably not in the next version.
Title: foo_youtube
Post by: MaCs on 2015-09-23 19:57:30
Thanks!
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: lostinthenet on 2015-10-11 10:18:01
that's very helpful, thanks WilB!
Title: 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: 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: 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: 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: foo_youtube
Post by: lostinthenet on 2015-10-13 13:08:07
it worked! thx!
Title: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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.

[quote author=CHEF-KOCH link=msg=909638 date=1445866991]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.[/quote]
It's just a guess, but do you use NOD32 ver.9?

[quote author=CHEF-KOCH link=msg=909638 date=1445866991]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.[/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.
Title: 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: foo_youtube
Post by: 3dyd on 2015-10-27 11:28:56
[quote author=CHEF-KOCH link=msg=909716 date=1445936368]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.[/quote]
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.

[quote author=CHEF-KOCH link=msg=909716 date=1445936368]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?).[/quote]
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: 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: 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: 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: 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: 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: 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: 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: foo_youtube
Post by: Fivves on 2015-11-12 04:04:01
The latest update fixed the 403s, thanks a ton!
Title: 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: 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: 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: 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: 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: foo_youtube
Post by: 3dyd on 2015-12-14 23:37:49
New version 1.13

Changes:
Title: 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: 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: 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: 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: 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: 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: 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: 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: Search & Add : Youtube Playlists
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.
SimplePortal 1.0.0 RC1 © 2008-2018