Skip to main content
Topic: foo_youtube (Read 218674 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

foo_youtube

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

foo_youtube

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


foo_youtube

Reply #128
@musikomaniak
Click on 'Reset page' in component preferences page or at least enter 'webm;ogg;m4a;flv' in 'Formats to ignore'

foo_youtube

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

foo_youtube

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

foo_youtube

Reply #131
All works well, but i found one video didn't work, this one:

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


foo_youtube

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


screencapture

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
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
put 'image' folder in foobar profile folder.
After that open new wsh panel and paste this script: http://pastebin.com/RUfuAVgd

I would like to know if this is useful for you, i found many new artist with this script...

foo_youtube

Reply #134
All works well, but i found one video didn't work, this one:

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

foo_youtube

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

foo_youtube

Reply #136
I'll try tomorrow.

foo_youtube

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

foo_youtube

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


foo_youtube

Reply #140
In case of 403 error check this build: 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>

foo_youtube

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

foo_youtube

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

 

foo_youtube

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



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

foo_youtube

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

foo_youtube

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

foo_youtube

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


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.

foo_youtube

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


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

foo_youtube

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


 
SimplePortal 1.0.0 RC1 © 2008-2019