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 569481 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Re: foo_youtube

Reply #1025
Hi. I have been having some issues getting the component to work with the foo_upnp (UPnP/DLNA Renderer) component.

Starting foobar and playing .foo_youtube file in media library locally. No problem. Log:

Code: [Select]
17:32:25, [warning] LAV Filters: LAV Splitter: not found
17:32:25, [warning] LAV Filters: LAV Video: not found
17:32:25, ffmpeg: lavf 57.83.100, lavc 57.107.100, lavu 55.78.100 (internal)
17:32:25, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
17:32:25, [warning] VSFilter: not found
17:32:59, #01, Page analysis, https://www.youtube.com/watch?v=SMPvdhPXvr4
17:32:59, #01, Opening given Youtube URL...
17:32:59, Activity #1 [unknown] added
17:32:59, Activity #2 [unknown] added
17:33:00, Activity #2 [unknown] removed
17:33:00, Activity #2 destroyed (lifetime 1.063s)
17:33:00, Activity #1 [unknown] removed
17:33:00, #01, Løvernes Konge - Hakuna Matata (Danish)
17:33:00, #01, Subtitles: Auto-generated (1), Auto-translated (104)
17:33:00, #01, Streams processing (14 found) ...
17:33:00, Activity #3 [unknown] added
17:33:00, Activity #1 destroyed (lifetime 1.172s)
17:33:01, Activity #3 [unknown] removed
17:33:01, #01, 1. 3GP 144p 176x144 10fps 2.22 MB
17:33:01, #01, 2. MP4 360p 534x360 30fps 12.73 MB
17:33:01, #01, 3. 3GP 240p 320x216 30fps 6.23 MB
17:33:01, #01, 4. MP4 240p 356x240 25fps 2.84 MB VO
17:33:01, #01, 5. MP4 360p 534x360 25fps 6.48 MB VO
17:33:01, #01, 6. M4A 44100Hz Stereo 127kbps 3.47 MB AO
17:33:01, #01, 7. MP4 144p 214x144 25fps 1.63 MB VO
17:33:01, #01, 8. OGG 44100Hz Stereo 114kbps 3.11 MB AO
17:33:01, #01, 9. WebM 240p 356x240 25fps 3.94 MB VO
17:33:01, #01, 10. WebM 360p 534x360 25fps 6.82 MB VO
17:33:01, #01, 11. OPUS 48000Hz Stereo 49kbps 1.35 MB AO
17:33:01, #01, 12. OPUS 48000Hz Stereo 65kbps 1.77 MB AO
17:33:01, #01, 13. OPUS 48000Hz Stereo 128kbps 3.48 MB AO
17:33:01, #01, 14. WebM 144p 214x144 25fps 2.01 MB VO
17:33:01, #01, Ready
17:33:01, Activity #3 destroyed (lifetime 0.578s)
17:33:01, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:33:01, Activity #4 [audio] added: Løvernes Konge - Hakuna Matata (Danish)
17:33:02, decoder init:  0.62s wall, 0.23s user + 0.02s system = 0.25s CPU (40.4%)


Restarting foobar, and trying again. Works great.

Using the foo_upnp (UPnP/DLNA Renderer) component to stream the same file over the network to a UPnP client, the log file looks a bit weird. It seems like it's trying to open the same file 10 times:


Code: [Select]
17:35:39, [warning] VSFilter: not found
17:35:39, [warning] LAV Filters: LAV Splitter: not found
17:35:39, [warning] LAV Filters: LAV Video: not found
17:35:39, ffmpeg: lavf 57.83.100, lavc 57.107.100, lavu 55.78.100 (internal)
17:35:39, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
17:36:12, #01, Page analysis, https://www.youtube.com/watch?v=SMPvdhPXvr4
17:36:12, #01, Opening given Youtube URL...
17:36:12, Activity #1 [unknown] added
17:36:12, Activity #2 [unknown] added
17:36:13, Activity #1 [unknown] removed
17:36:13, Activity #2 [unknown] removed
17:36:13, #01, Løvernes Konge - Hakuna Matata (Danish)
17:36:13, Activity #1 destroyed (lifetime 1.125s)
17:36:13, Activity #2 destroyed (lifetime 1.125s)
17:36:13, #01, Subtitles: Auto-generated (1), Auto-translated (104)
17:36:13, #01, Streams processing (14 found) ...
17:36:13, Activity #3 [unknown] added
17:36:13, Activity #3 [unknown] removed
17:36:14, Activity #3 destroyed (lifetime 0.547s)
17:36:14, #01, 1. 3GP 144p 176x144 10fps 2.22 MB
17:36:14, #01, 2. MP4 360p 534x360 30fps 12.73 MB
17:36:14, #01, 3. 3GP 240p 320x216 30fps 6.23 MB
17:36:14, #01, 4. MP4 240p 356x240 25fps 2.84 MB VO
17:36:14, #01, 5. MP4 360p 534x360 25fps 6.48 MB VO
17:36:14, #01, 6. M4A 44100Hz Stereo 127kbps 3.47 MB AO
17:36:14, #01, 7. MP4 144p 214x144 25fps 1.63 MB VO
17:36:14, #01, 8. OGG 44100Hz Stereo 114kbps 3.11 MB AO
17:36:14, #01, 9. WebM 240p 356x240 25fps 3.94 MB VO
17:36:14, #01, 10. WebM 360p 534x360 25fps 6.82 MB VO
17:36:14, #01, 11. OPUS 48000Hz Stereo 49kbps 1.35 MB AO
17:36:14, #01, 12. OPUS 48000Hz Stereo 65kbps 1.77 MB AO
17:36:14, #01, 13. OPUS 48000Hz Stereo 128kbps 3.48 MB AO
17:36:14, #01, 14. WebM 144p 214x144 25fps 2.01 MB VO
17:36:14, #01, Ready
17:36:14, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:14, Activity #4 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:14, decoder init:  0.61s wall, 0.28s user + 0.03s system = 0.31s CPU (51.0%)

17:36:14, Activity #4 [audio.other] removed
17:36:14, Activity #4 destroyed (lifetime 0.688s)
17:36:14, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:14, Activity #5 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:15, decoder init:  0.51s wall, 0.22s user + 0.02s system = 0.23s CPU (45.7%)

17:36:15, Activity #5 [audio.other] removed
17:36:15, Activity #5 destroyed (lifetime 0.547s)
17:36:15, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:15, Activity #6 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:15, decoder init:  0.51s wall, 0.27s user + 0.00s system = 0.27s CPU (52.1%)

17:36:15, Activity #6 [audio.other] removed
17:36:15, Activity #6 destroyed (lifetime 0.532s)
17:36:15, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:15, Activity #7 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:16, decoder init:  0.52s wall, 0.25s user + 0.06s system = 0.31s CPU (60.5%)

17:36:16, Activity #7 [audio.other] removed
17:36:16, Activity #7 destroyed (lifetime 0.609s)
17:36:16, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:16, Activity #8 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:17, decoder init:  0.51s wall, 0.25s user + 0.03s system = 0.28s CPU (55.0%)

17:36:17, Activity #8 [audio.other] removed
17:36:17, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:17, Activity #9 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:17, Activity #8 destroyed (lifetime 0.594s)
17:36:17, decoder init:  0.52s wall, 0.27s user + 0.00s system = 0.27s CPU (51.4%)

17:36:18, Activity #9 [audio.other] removed
17:36:18, Activity #9 destroyed (lifetime 0.703s)
17:36:18, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:18, Activity #10 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:18, decoder init:  0.51s wall, 0.25s user + 0.02s system = 0.27s CPU (52.5%)

17:36:18, Activity #10 [audio.other] removed
17:36:18, Audio opening m4a (https): download - foo_youtube, decode - ffmpeg
17:36:18, Activity #11 [audio.other] added: Løvernes Konge - Hakuna Matata (Danish)
17:36:18, Activity #10 destroyed (lifetime 0.609s)
17:36:19, decoder init:  0.51s wall, 0.28s user + 0.00s system = 0.28s CPU (55.1%)

The song plays fine on the client, and you can also play other songs after that.
But the next time foobar is restarted, something happens:

Code: [Select]
17:43:40, [warning] VSFilter: not found
17:43:40, ffmpeg: lavf 57.83.100, lavc 57.107.100, lavu 55.78.100 (internal)
17:43:40, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
17:43:40, [warning] LAV Filters: LAV Splitter: not found
17:43:40, [warning] LAV Filters: LAV Video: not found
17:43:41, [warning] [fsf:meta+tech] could not read 565 bytes

All the foo_youtube files have disappeared from the media library. (I tested with having only one file in the media library, but otherwise there would be a "could not read" line for each file.)

Restarting foobar at this point yields the same log result. Unable to load the files.
In order to get them back, you have to manually open a foo_youtube file. And then restart foobar. But i'm not that sure about this one. Sometimes that doesn't work either, and there just have to go some time / fiddling around i think.

Re: foo_youtube

Reply #1026
hi 3dyd!
foo_youtube 2.3.3 not open random videos with #403 error
i download foo_youtube 2.3.5 from download page but this error #403 stayed

WINDOWS XP SP3
---------------------------
Youtube Source
---------------------------
libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)

LAV Filters: LAV Splitter 0.69 (external)

LAV Filters: LAV Video 0.69 (external)

ffmpeg: lavf 57.59.100, lavc 57.67.100, lavu 55.43.100, lavr 3.2.0 (LAV Filters)

VSFilter 3.0.0.233 (system, alt: 0.69 (external))


---------------------------
ОК  
---------------------------

Re: foo_youtube

Reply #1027
Can you provide an example video where this is occurring? I'm not seeing this on the normal videos that tend to fail in this situation.

Re: foo_youtube

Reply #1028
Can you provide an example video where this is occurring? I'm not seeing this on the normal videos that tend to fail in this situation.

for example https://www.youtube.com/watch?v=Ip76eoA1eDM
in video frame 1) status Opening... 2) Stopped.
but sound exists only no video

your video open good https://www.youtube.com/watch?v=9w2RMBrmTsk

Re: foo_youtube

Reply #1029
Hmm. Might be one for 3dyd to check.

Re: foo_youtube

Reply #1030
try alternative SSL backend from download page since you are using WinXP.


Re: foo_youtube

Reply #1032
@richard3840
It might be related to component initialization process. Custom file gets accessed when initialization has not yet been finished. Try 3.0. Initialization was redesigned there so the most critical parts are initialized before all components start getting initialization callback notifications.

@gr8cx
So this is not #403 error since only video refuses to play. Well, you also better try 3.0 since 2.x anyway won't get any updates except critical fixes for Youtube.

Re: foo_youtube

Reply #1033
foo_youtube 3.0 is out? Odd, it didn't appear when checking for updates. This is with check for beta when running stable enabled.

Re: foo_youtube

Reply #1034
Thanks @3dyd
I tried uninstalling "foo_youtube_2.3.5", restarting, installing the "foo_youtube_3.0_beta1" version. But it seems it still gives the "could not read" error on the files.
I opened the file from folder, and it played, but gave the error. Each time the file is played from playlist, it seems the media library is trying to scan it, but fails (as seen with the multiple "could not read" below).

Code: [Select]
19:37:04, [warning] VSFilter: not found
19:37:04, youtube-dl: (none)
19:37:04, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
19:37:04, ffmpeg: lavf 58.20.100, lavc 58.35.100, lavu 56.22.100 (internal)
19:37:04, [warning] LAV Filters: LAV Splitter: not found
19:37:04, [warning] LAV Filters: LAV Video: not found
19:37:04, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:22, #01, Analysis, https://www.youtube.com/watch?v=SMPvdhPXvr4
19:38:22, #01, Opening given Youtube URL...
19:38:24, #01, Subtitles: Auto-generated (1)
19:38:24, #01, Streams processing (14 found) ...
19:38:24, #01, Ready
19:38:24, [audio] opening, webm (https), decoder: foo_youtube
19:38:25, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:30, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:36, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:38, [warning] [fsf:meta+tech] could not read 571 bytes
19:38:39, [warning] [fsf:meta+tech] could not read 571 bytes

I tried removing the folder from being monitored by the media library and restarting.

Code: [Select]
19:52:34, libcurl/7.62.0 WinSSL zlib/1.2.11 brotli/1.0.2 (internal)
19:52:34, youtube-dl: (none)
19:52:34, ffmpeg: lavf 58.20.100, lavc 58.35.100, lavu 56.22.100 (internal)
19:52:34, [warning] LAV Filters: LAV Splitter: not found
19:52:34, [warning] LAV Filters: LAV Video: not found
19:52:34, [warning] VSFilter: not found

The log shows normal, without the "could not read" error.

The moment i add the folder with foo_youtube file again, the "could not read" line appears in the log.

Code: [Select]
19:52:35, [warning] [fsf:meta+tech] could not read 571 bytes

Unlike the previous version, restarting does not seem to sometimes solve it, from what i tried.

Re: foo_youtube

Reply #1035
@Slender
Thanks. I've incorrectly updated version on the site. It should be fine now.

@richard3840
Thanks for checking with 3.0. I will take a look on my side.

Re: foo_youtube

Reply #1036
Some initial thoughts on 3.0, overall a good release :). I may post later with additional thoughts as I get familiar with this version
Youtube-dl. I tried using the copy of youtube-dl I installed with Python using pip, but it seems that the component rejected it, nothing would load. It did work with the standalone download from GitHub, however. Would it be possible to add support for the Python version? In addition, it seems that youtube-dl links are presented as streams, which makes it impossible to seek through a youtube-dl video.
Deleting history from the keyboard. It seems I can't quite get this to work. Pressing the delete key when an item is selected seems to just delete the selection, but the item remains in the history.
Chunked DASH streams.
Do these still require an external build of Ffmpeg? I tried a video with one and the component dropped it.

Re: foo_youtube

Reply #1037
Just tried v3, it doesn't not display video on local files like the prior. Is it still possible?

Re: foo_youtube

Reply #1038
@richard3840
Please try beta2. Fixed two bugs, both related to *.foo_youtube files support.

I tried using the copy of youtube-dl I installed with Python using pip, but it seems that the component rejected it, nothing would load. It did work with the standalone download from GitHub, however. Would it be possible to add support for the Python version?
Should be fixed in beta2, You also may prefer new 'System' source that searches youtube-dl in PATH.

In addition, it seems that youtube-dl links are presented as streams, which makes it impossible to seek through a youtube-dl video.
youtube-dl is used to get media files/streams URLs from given page URL. Playback goes independently of youtube-dl. Whether a stream is seekable depends on its format and used decoder.

Deleting history from the keyboard. It seems I can't quite get this to work. Pressing the delete key when an item is selected seems to just delete the selection, but the item remains in the history.
This is about combo boxes in 'Search on Site' and 'Load channel or playlist...' windows. I've updated changelog to prevent confusion.

Chunked DASH streams.
Do these still require an external build of Ffmpeg? I tried a video with one and the component dropped it.
*Chunked* DASH streams are yet unsupported and were never supported. Their support will hopefully be added later (not in initial release).

Just tried v3, it doesn't not display video on local files like the prior. Is it still possible?
This is disabled by default and can be enabled by unchecking option Decoding -> Video -> Process only tracks played by the component. Honestly I am not sure what is better for default. If this option is unchecked, component analyses every played file to check if it has video stream. This does not look good for default behavior.

Re: foo_youtube

Reply #1039
I tryed beta1 and beta2,Followed this way"unchecking option Decoding -> Video -> Process only tracks played by the component",For the local video also not working.

Re: foo_youtube

Reply #1040
Yes, it doesn't show with just uncheck the option, I tried to set youtube-dl to none to display the video.

Re: foo_youtube

Reply #1041
Another bug I found. It seems that even when a custom YouTube API key is set, when copying settings to the clipboard, the yt_api_key parameter incorrectly states that it is set to false. The API key still works, however.

Re: foo_youtube

Reply #1042
Hi there!
@3dyd, I noticed follows:
1. If the window "Criteria Repository: video_downloader" is empty, the error occurs when playing the video items (see pic. error.jpg).
2. Not all regions are available for review (see pic. region.jpg). For "language", the behavior is the same. Maybe need to add scrolling.
3. I can not choose the external ffmpeg (see pic. ffmpeg.jpg). Perhaps therefore there is still no synchronization of sound and video when playing HLS links.
4. At the beginning HLS link playback, the video freezes and after a short time another playback continues (this behavior is the same in previous versions).

In general, I really liked the new version! It is noticeable that many improvements have been made.
I hope that you will continue to improve and develop your great component.
Thank you!

Re: foo_youtube

Reply #1043
Yes, it doesn't show with just uncheck the option, I tried to set youtube-dl to none to display the video.

@3dyd 
youtube-dl analysis (when enabled) is called on local files and failing of course.

Code: [Select]
22:11:26, [debug] #05, active tasks: 1
22:11:26, [debug] #05, youtube-dl --no-check-certificate --no-call-home --youtube-skip-dash-manifest --no-playlist --playlist-end 1 -J file:///C:/Users/laptop/Videos/YouTube%20Video/Depeche%20Mode%20-%20Wrong.mkv
22:11:26, [debug] [video@045439B0] open-from-replaced: received: <none>
22:11:28, [warning] #05, WARNING: Could not send HEAD request to file:///C:/Users/laptop/Videos/YouTube%20Video/Depeche%20Mode%20-%20Wrong.mkv: <urlopen error file:// scheme is explicitly disabled in youtube-dl for security reasons>
22:11:28, [warning] #05, ERROR: Unable to download webpage: <urlopen error file:// scheme is explicitly disabled in youtube-dl for security reasons> (caused by URLError('file:// scheme is explicitly disabled in youtube-dl for security reasons'))
22:11:28, [warning] #05, youtube-dl finished with error code 1
22:11:28, [debug] #05, active tasks: 0
22:11:28, [debug] #05,  2.11s wall, 0.05s user + 0.03s system = 0.08s CPU (3.7%)

22:11:28, [error] #05, Analysis, no video found on youtube-dl URL
22:11:28, #05, Ready
22:11:28, [debug] video: could not establish item: Youtube Source: WARNING: Could not send HEAD request to file:///C:/Users/laptop/Videos/YouTube%20Video/Depeche%20Mode%20-%20Wrong.mkv: <urlopen error file:// scheme is explicitly disabled in youtube-dl for security reasons> | ERROR: Unable to download webpage: <urlopen error file:// scheme is explicitly disabled in youtube-dl for security reasons> (caused by URLError('file:// scheme is explicitly disabled in youtube-dl for security reasons')) | youtube-dl finished with error code 1 | Analysis, no video found on youtube-dl URL
22:11:28, [debug] video: no media in item

Re: foo_youtube

Reply #1044
Yep. Limited youtube-dl to be used only for http:// and https:// URLs.

Another bug I found. It seems that even when a custom YouTube API key is set, when copying settings to the clipboard, the yt_api_key parameter incorrectly states that it is set to false. The API key still works, however.
Actually it was inverted (was true if key is not set). Fixed in beta3.

1. If the window "Criteria Repository: video_downloader" is empty, the error occurs when playing the video items (see pic. error.jpg).
Fixed in beta3.

2. Not all regions are available for review (see pic. region.jpg). For "language", the behavior is the same. Maybe need to add scrolling.
I could not find sane way to deal with this automatically thus added option Search -> Break long menu by screen height.

3. I can not choose the external ffmpeg (see pic. ffmpeg.jpg).
I suppose "ffmpeg-4.1-win32-st..." means static linkage. Component requires 32bit shared libraries (ffmpeg-4.1-win32-shared).

Perhaps therefore there is still no synchronization of sound and video when playing HLS links.
Unfortunately there is nothing new regarding HLS video playback and synchronization. It still does not work in 3.0.

Re: foo_youtube

Reply #1045
hi 3dyd!
i download movie file mp4 from cinema-site
can i open this file in foo_youtube from hard-disk?

Re: foo_youtube

Reply #1046
@3dyd : fb2k with latest v3.x foo_youtube crashed when loading art for YT track via fb2k api. 

Memory dump: see attached archive.
Link to the crashing call: https://github.com/TheQwertiest/foo_spider_monkey_panel/blob/db9468141eebf50deb642a9014250c8fece76979/foo_spider_monkey_panel/utils/art_helpers.cpp#L274
pdb for my component which invoked the said call (in case you need them): https://ci.appveyor.com/api/buildjobs/o5b22epawi4ybe5d/artifacts/_result%2FWin32_Release%2Ffoo_spider_monkey_panel_pdb.zip

[EDIT]: Possibly multi-threading problems? Since said call is invoked on multiple helper threads simultaneously rather than sequentially on the main thread,

Re: foo_youtube

Reply #1047
@3dyd foo_youtube works perfectly for me, except for the video playback visualization.

When I try to add it as a new element to my theme, an error is returned ("No video frame instance"). Same when adding it to a scratchbox. However, when I call it using View > Visualizations > Video, it works just fine.

I would really appreciate it if you could assist me. I am using foobar2000 1.4.2 (DUI) and foo_youtube 2.3.5.

Re: foo_youtube

Reply #1048
@gr8cx
Well, foobar2000 can play audio from it and foo_youtube can play video (ensure that option 'Decoding -> Video -> Process only tracks played by the component' is unchecked). Though as for me, better to use video player.

@TheQwertiest
Yes, it seems to be caused by unsynchronized initialization of block scope variable with static storage duration. I forgot that synchronization is disabled in the project. If I am right, it should be fixed in beta4.

@tt-1995
This happens because it relies on 'visibility change' callback and DUI does not send it to UIE being added. Video UIE should be there at next program run. You also can enforce visibility change callback by minimizing and restoring foobar2000 main window.

 

Re: foo_youtube

Reply #1049
@3dyd,
1. Is the value "(seconds)" correct at Decoding settings menu?
2. Pressing the up arrow decreases the value and the set value is not saved. So it should be? (See pic. settings.jpg)
3. Option "Break long menu by screen height" would also be useful for the subtitle language selection menu.
4. What values can be entered in the "Play content types" field in advanced settings?
Thanks!