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.

foo_youtube

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 :)

foo_youtube

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.

foo_youtube

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).

foo_youtube

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

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"

foo_youtube

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.5Off 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.

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?

foo_youtube

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)

foo_youtube

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.

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

foo_youtube

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.

@mire777Do 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.

foo_youtube

@mire777Do 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

foo_youtube

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.

foo_youtube

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. 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 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.