Author Topic: clipgrab  (Read 23454 times)

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2285
  • Karma: +176/-0
    • View Profile
Re: clipgrab
« Reply #15 on: March 20, 2021, 10:19:46 pm »
Btw: python3 is much faster to use...

My python3 build presumably? I should update it - I think with some fixes to readline, that readline.pyd should work now...

TeLLie

  • Full Member
  • ***
  • Posts: 241
  • Karma: +12/-0
    • View Profile
Re: clipgrab
« Reply #16 on: March 20, 2021, 11:15:48 pm »
Hi Paul,

Sorry i should mention this.
Yes its you're python3 build :)

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5092
  • Karma: +117/-1
    • View Profile
Re: clipgrab
« Reply #17 on: March 21, 2021, 12:16:23 am »
Btw: python3 is much faster to use...

My python3 build presumably? I should update it - I think with some fixes to readline, that readline.pyd should work now...

Can you remind me of its URL?

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1354
  • Karma: +26/-0
    • View Profile
Re: clipgrab
« Reply #18 on: March 21, 2021, 01:13:43 am »
Hi Dave,

..It's the whole subdirectory that needs to be run, not an individual file. As I said, it is unpackaged and packaging should create a binary script holding the subdirectory and documentation...

Yup, I got it now...works great here!

So is this update something that's meant to be run from within clipgrab? Sorry, it may be obvious to those who have done it, I haven't run clipgrab in a while so before I go off installing it I figured I better ask first.

Thanks!

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2285
  • Karma: +176/-0
    • View Profile
Re: clipgrab
« Reply #19 on: March 21, 2021, 01:15:55 am »
Btw: python3 is much faster to use...

My python3 build presumably? I should update it - I think with some fixes to readline, that readline.pyd should work now...

Can you remind me of its URL?

See thread at https://www.os2world.com/forum/index.php/topic,2484.30.html

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5092
  • Karma: +117/-1
    • View Profile
Re: clipgrab
« Reply #20 on: March 21, 2021, 04:28:03 am »
Great, Python3 works much better then Python2 for youtube-dl, no patching to avoid the CTYPES error needed, much faster.
The script can be downloaded at https://youtube-dl.org/, if you get the complete tar.gz, just extract the youtube-dl binary from the top folder of the package and run it. Generally the URL may need quoting with double quotes.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5092
  • Karma: +117/-1
    • View Profile
Re: clipgrab
« Reply #21 on: March 21, 2021, 04:35:10 am »
Hi Dave,

..It's the whole subdirectory that needs to be run, not an individual file. As I said, it is unpackaged and packaging should create a binary script holding the subdirectory and documentation...

Yup, I got it now...works great here!

So is this update something that's meant to be run from within clipgrab? Sorry, it may be obvious to those who have done it, I haven't run clipgrab in a while so before I go off installing it I figured I better ask first.

Thanks!

Actually it is the recommended way to download videos with clipgrab being a frontend. See https://youtube-dl.org/ and in particular the Documentation link to get an idea of its power.
Basically running python3 youtube-dl "URL" will download the video referenced in the URL and use FFmpeg to assemble the video and audio into a container that'll play in vlc, mplayer etc. Being Canadian, you can also legally use it to download music, without the video, from YouTube.
Note that the URL should generally be quoted with double quotes to work around shell characters such as ? or &

edit, simple way to get the script/binary,
Code: [Select]
wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
Adjust the path as needed after the -O
« Last Edit: March 21, 2021, 04:39:23 am by Dave Yeo »