gtk-yt-dl-0.1 - download and merge youtube playlists

Browsers, email, chat, etc.
Post Reply
Message
Author
plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

gtk-yt-dl-0.1 - download and merge youtube playlists

#1 Post by plinej »

If you don't have youtube-dl installed, the script will download it and install to /usr/local/bin/

This app will download Youtube playlists with various options. You can download only or download and merge to a single file. If merging you can encode to mkv and/or trim silence from start and end of individual files before merging. Keep in mind converting the video to mkv will take a long time for processing but will result in a smaller final merged video. Chapters will be added to the final merged video.

If you have fftag installed http://www.murga-linux.com/puppy/viewtopic.php?t=117253 the merged video will open and you can edit the metadata including the chapters. The metadata extracted from youtube videos is definitely hit or miss.

New version is up and called ffmerge now.

http://www.murga-linux.com/puppy/viewtopic.php?t=117755
Attachments
Screenshot.jpg
(54.83 KiB) Downloaded 267 times
gtk-yt-dl-0.1.pet
(7.79 KiB) Downloaded 136 times
Last edited by plinej on Sat 04 Jan 2020, 22:08, edited 1 time in total.
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#2 Post by B.K. Johnson »

Hi plinej
I'm running upupbb 32bit.
I installed your gtk-yt-dl-0.1 pet and tried a test download from:
https://jazzonthetube.com/video/round-m ... mhide=true
Attached are screenshots (1) showing the completed dialogbox and (2) your program's request for vte terminal. This wasn't mentioned in your post. What do I do?
Attachments
gtk-yt-1.png
Dialogbox
(40.29 KiB) Downloaded 207 times
gtk-yt-2.png
Request for VTE terminal
(7.17 KiB) Downloaded 204 times
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#3 Post by plinej »

What version of gtkdialog are you using?

Code: Select all

gtkdialog -v
If you're not running at least 0.8.4 you should upgrade.


This is used to download youtube playlists and merge the individual videos. I don't see a playlist in the url you entered.

It needs to be something like this:

https://www.youtube.com/watch?v=sw9BeQB ... lEdf8Dl4nG

or just the playlist identifier: PLODaFH8MEB-Tf0LrP2iQiAylEdf8Dl4nG

I don't have any plans to implement single file downloads as there are plenty of other simple tools out there to do that.
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#4 Post by plinej »

You could also change the very end of /usr/sbin/gtk-yt-dl

Code: Select all

if [ "$skip" = y ]; then
	/usr/share/gtk-yt-dl/gtk-yt-dl-exec $playlist
else
	export yt_dl_exec="
	<window title=\"gtk-yt-dl is running\" resizable=\"true\">
	<vbox>
	<terminal has-focus=\"true\">
	<input>echo /usr/share/gtk-yt-dl/gtk-yt-dl-exec $playlist</input>
	<action type=\"exit\">exit</action>
	</terminal>
	<hbox homogeneous=\"true\" space-expand=\"false\" space-fill=\"false\">
	<button use-stock=\"true\" label=\"gtk-quit\">
	</button>
	</hbox>
	</vbox>
	</window>
	"
	results="`$GTKDIALOG --program=yt_dl_exec --center`"
fi
to:

Code: Select all

defaultterminal -e /usr/share/gtk-yt-dl/gtk-yt-dl-exec $playlist
or:

Code: Select all

/usr/share/gtk-yt-dl/gtk-yt-dl-exec $playlist
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#5 Post by plinej »

I'm going to post a new version in the Multimedia section hopefully later today or tomorrow but am going to rename it ffmerge. I've added a bunch of command line only options and the ability to merge videos you already have on your hard drive.
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#6 Post by B.K. Johnson »

plinej
got egg on my face all over. :oops:
1. gtkdialog not installed.
2. missed that it is related only to YT playlist.

I don't usually need the static images masquerading as videos in most playlists.
Other tools allow me to d/l the audio only, then I can select individual cuts to save.

Thanks for responding and for the options. I'll try to remember to drop by and take a look-see at your archive.
the ability to merge videos you already have on your hard drive
could interest me, but video-editing first.
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#7 Post by plinej »

If you didn't have gtkdialog installed, the main gui wouldn't even open...
You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#8 Post by plinej »

You can also download many of my packages at:
[url]https://archive.org/download/python3-git-2019-10-10-x86_64[/url]

Post Reply