Forum › Forums › New users › New Users and General Questions › [SOLVED] Play/save youtube type video's from Dillo, and/or save the audio track
- This topic has 12 replies, 3 voices, and was last updated Feb 8-11:34 pm by SamK.
-
AuthorPosts
-
February 2, 2018 at 12:53 am #6061Moderator
BobC
Dillo is just so amazingly efficient compared to Firefox, etc, but it basically does nothing that I could find to help with audio or video. Did I just miss or missconfigure something in Dillo?
So assuming Dillo won’t help, my idea is to use Firefox where I must, like for web based email, but use Dillo to search or research things, because usually that’s just searching for snippets of code or syntax to do this or that, and it’s not unusual to open 10 or 15 tabs when I am doing that, most of which are places where I don’t need a heavily overhead laden browser eating up 100 mb per tab.
Ok, that still leaves the video and music unaccounted for. I am thinking I could have a script to download, and save audio, or audio and video, and also optionally play it.
Since I don’t know how to find out Dillo’s current URL (the dpi stuff looked like a nightmare for someone like me), a more generic way I could do it would be by having a keystroke shortcut in IceWM that would run a script which would use xclip to look at the selection buffer for a URL, and if nothing, then fill in the value from the clipboard buffer instead, then ask what to do with the download, and run youtube-dl to download it, and then a streaming player or player to play it if that was requested.
I could also have a keystroke shortcut and script to run a URL in Dillo by default from anywhere, that would instead run the URL in Firefox if the site wasn’t Dillo friendly.
I would need another keystroke shortcut and script to move the domain to a “use Firefox” list and run it in Firefox instead when Dillo doesn’t work well for a site.
I wonder if the xdg and mime type stuff would help at all, but I had no luck finding anything on that.
Any thoughts, comments or suggestions? Do you know anyplace this is already written someplace that I could just install, tweak and use? Sad to say I have more links to look at, still…
Things that looked promising:
https://unix.stackexchange.com/questions/302674/how-to-enable-youtube-autoplay-with-youtube-dl-mpv
https://askubuntu.com/questions/106034/scripting-question-youtube-dl-and-xclip
https://www.reddit.com/r/linux/comments/eag9i/keyboard_shortcut_to_download_videos_from_youtube/
https://www.reddit.com/r/linux/comments/3un9pj/streaming_twitch_through_youtubedl/
https://github.com/MrS0m30n3/youtube-dl-gui
https://www.reddit.com/r/commandline/comments/395lns/youtubedl_download_videos_and_audio/- This topic was modified 5 years, 3 months ago by BobC.
- This topic was modified 5 years, 3 months ago by BobC.
February 2, 2018 at 3:06 am #6067Forum AdminSamK
::Given the topic title
How to play/save youtube type video’s from Dillo, and/or save the audio track
Streamlight makes an excellent partner with Dillo as outlined in a video by dolphin_oracle and the antiX FAQ.
https://www.youtube.com/watch?v=2M5B5aXBDwk
http://download.tuxfamily.org/antix/docs-antiX-17/FAQ/streamlight.htmlThere is also a short overview how to use it
Main Menu→antiX→antiX Video
Incidently, it is used to show all the help videos listed there.Because it uses very few resources it works on a very wide age range of kit.
It is able to stream in real time from Youtube to your local system playing the audio/video content or download it to save it.A way to extract the audio or video from the download might be a one line command using sox or ffmpeg (both shipped in antiX-Full) which could easily be scripted or given a keystroke combo.
Erm, noticed that you edited that from you post while I was replying.
February 2, 2018 at 11:35 am #6090ModeratorBobC
February 2, 2018 at 9:38 pm #6099ModeratorBobC
::Wow, Sam, Minus the audio part, its exactly what I was wishing for. Thanks for taking the time to post the idea and links…
February 3, 2018 at 1:21 am #6100Forum AdminSamK
::Wow, Sam, Minus the audio part, its exactly what I was wishing for. Thanks for taking the time to post the idea and links…
Off Topic
Perhaps the reason for this post, made during your exploration of UZBL is now more apparent.
https://www.antixforum.com/forums/topic/uzbl-browser-uzbl-scripts/#post-5685Additionally, avoid thinking of Streamlight as being useful only in partnership with a web browser. It works in partnership with any GUI app in which the URL of the video can be selected by highlighting it with the cursor.
Maybe you can now see why links to Youtube help videos I post in the forum are the full address rather than an abbreviation. It makes it more convenient to highlight it and use Streamlight.
Just mentioning the following for interest.
In addition to Dillo, antiX ships with another ultralight web browser.
Main Menu→Applications→Internet→Links 2It is actually a text mode web browser than can be run in a GUI mode, the latter mode being the default in antiX. Links 2 tends to be slightly more lightweight of the two browsers. Finding and highlighting the video address is less obvious, but like many other things it is easy once you know how. I’ll leave you to puzzle it out (not very difficult) because learning-by-doing can be rewarding in itself.
February 3, 2018 at 8:37 am #6109ModeratorBobC
::For whatever reason, I hadn’t noticed the last post in the uzbl thread. I had it working, but saw it had used too much memory for smaller machines, and decided I just couldn’t use it as planned.
I just tried links2 combined with streamlight, and it used more memory than Dillo, but the screen looked better, and the streamlight worked perfectly to download and play a video in a completely acceptable manner.
I will try it more…
February 5, 2018 at 12:39 am #6137Forum AdminSamK
::Off Topic
I had it [UZBL] working, but saw it had used too much memory for smaller machines, and decided I just couldn’t use it as planned.
I wonder if some of that is due to local hardware and usage patterns?
A few years ago I casually looked at UZBL and found it OK on an ancient test system I keep to see what antiX will run on. It was manufactured aprrox 1997, single Celeron CPU 1295Mhz, 384MB RAM. Although my recall is hazy at this distance UZBL fitted between the ultralight and heavyweight web browsers in the amount of RAM used. Of course things change over time.
I just tried links2 combined with streamlight, and it used more memory than Dillo, but the screen looked better, and the streamlight worked perfectly to download and play a video in a completely acceptable manner.
Over the years I have run both Links 2 and Dillo on a range of kit from various manufacturers. I cannot recall Links 2 needing more RAM than Dillo. Unfortunately, I did not save any info comparisons. Whenever checked, Links 2 was slightly the better of the two, and on the system writing this post, manufactured approx 2013, that is also the outcome.
February 7, 2018 at 10:28 pm #6288ModeratorBobC
::Sam,
Maybe you or someone here knows another way… I am now getting a Streamlight box popping up saying “No streams found on this URL” when I click the button, and when I search for that error they say streamlight is no longer being maintained, and to try streamlink which is a fork of streamlight, instead. This is one of the videos that gets the error.
https://www.youtube.com/watch?v=EqIpkMDRjYw
Also, I’ve been trying Links 2, but for some strange reason, they decided to use Ctrl-C to exit the program instead of Copy, and I can’t figure out how to override it. With mrxvt I use Ctrl-Shift-C to copy via xclip, and Ctrl-Shift-V to paste, but in Links 2 the help says to use Ctrl-B to copy and it doesn’t work that I can tell, but the copy link does seem to copy, I think to the primary buffer. I do like it better than Dillo, rendering wise, because with Dillo I can’t see many of the links and therefore can’t select them to copy. Neither Dillo nor Links uses much memory, but they seem to have made it difficult to use or tweak Links, and with Streamlight not working, its frustrating.
I feel like a ping pong ball, LOL.
- This reply was modified 5 years, 3 months ago by BobC.
February 8, 2018 at 1:39 am #6293ModeratorBobC
::Its a “protected” video, and neither Streamlight nor Streamlink can download it. Streamlink comes back saying to try youtube-dl instead. Anyway, Streamlink comes with no scripts, so I modified the Streamlight scripts to work with Streamlink instead, and then found the “protected” problem. I then added for it to check for the try youtube-dl error message, and if found, process spartanly with youtube-dl. Maybe I’ll add the bells and whistles someday, too.
February 8, 2018 at 6:42 am #6297Forum AdminSamK
::I am now getting a Streamlight box popping up saying “No streams found on this URL”…
…
Its a “protected” video…Streamlight has never been able to handle anything that is DRM protected.
…when I search for that error they say streamlight is no longer being maintained…
I think you mean livestreamer (upon which Streamlight depends) is no longer being maintained. That is what has the problem which Streamlight inherits and is not designed to overcome.
…try streamlink which is a fork of streamlight, instead.
I think you mean streamlink is a fork of livestreamer.
Using streamlink in place of livestreamer is already on my radar for Streamlight. Like everything else it has to wait its turn in the queue until I am able to give it some time. Until then Streamlight still fulfils its primary function of handling antiX help videos.
A .deb of streamlink built for Stable (Stretch) would be helpful.
https://github.com/streamlink/streamlinkFebruary 8, 2018 at 7:58 am #6298Forum Admin
anticapitalista
::A .deb of streamlink built for Stable (Stretch) would be helpful.
https://github.com/streamlink/streamlinkI built a deb, will test and upload to repos
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
February 8, 2018 at 11:10 pm #6348ModeratorBobC
::Sorry for my misunderstanding which programs is which. If you need me to help with debugging/testing or possibly tweaking, I’m no Linux expert, but pretty persistent and happy to help. I’m able to figure out basic scripting things and have multiple systems to test with. Thanks for all you put into this, both of you :), and quite a few more…
February 8, 2018 at 11:34 pm #6349Forum AdminSamK
::If you need me to help with debugging/testing or possibly tweaking, I’m no Linux expert, but pretty persistent and happy to help.
Noted, thanks for the offer. Persistence is a greatly underrated quality, particularly when allied to patience.
-
AuthorPosts
- You must be logged in to reply to this topic.