Skip to main content

Notice

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

Re: foo_youtube

Reply #50
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.

Re: foo_youtube

Reply #51
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.
PC = TAK + LossyWAV  ::  Portable = Opus (130)

Re: foo_youtube

Reply #52
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 :)

Re: foo_youtube

Reply #53
New version:
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.

Re: foo_youtube

Reply #54
Thanks for this great component! Would it be possible to add "youtube source" (with history and log) as a panel?

Re: foo_youtube

Reply #55
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).

Re: foo_youtube

Reply #56
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

Re: foo_youtube

Reply #57
*** 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.

Re: foo_youtube

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

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

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

Re: foo_youtube

Reply #59
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 <-- this one works
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?

Re: foo_youtube

Reply #60
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.

Re: foo_youtube

Reply #61
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)

Re: foo_youtube

Reply #62
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.
PC = TAK + LossyWAV  ::  Portable = Opus (130)

Re: foo_youtube

Reply #63
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)


It plays without any problem (always with the ad at the beginning.

Re: foo_youtube

Reply #64
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

Re: foo_youtube

Reply #65
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.

Re: foo_youtube

Reply #66
@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

Re: foo_youtube

Reply #67
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.


Re: foo_youtube

Reply #69
No, here means video ad, which appears before video start play (example)


Re: foo_youtube

Reply #71
3dyd, maybe this can help you as idea, when you're work on search option: http://1nltui3li1cdki8kde21baj1igs7ekjc.ig...l&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..

Re: foo_youtube

Reply #72
musikomaniak, at this stage of the development you can't bother the developer with problems with old versions, try the last version.

Re: foo_youtube

Reply #73
@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.

Re: foo_youtube

Reply #74
New version:
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. 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.

Search feature will be next.