Page 1 of 1

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

Posted: Wed 01 Jan 2020, 15:45
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

Posted: Sat 04 Jan 2020, 14:12
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?

Posted: Sat 04 Jan 2020, 14:32
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.

Posted: Sat 04 Jan 2020, 14:41
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

Posted: Sat 04 Jan 2020, 14:41
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.

Posted: Sat 04 Jan 2020, 17:43
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.

Posted: Sat 04 Jan 2020, 18:05
by plinej
If you didn't have gtkdialog installed, the main gui wouldn't even open...

Posted: Sat 04 Jan 2020, 22:06
by plinej