You2pup works (June 2016) YouTube downloader

Browsers, email, chat, etc.
Message
Author
soliver
Posts: 22
Joined: Sat 31 Oct 2009, 17:58
Location: Germany - Koblenz

#181 Post by soliver »

Thanks sc0ttman for your reply!

Have you tried a testmode? The first 2 vids can be downloaded with these formats:
http://www.youtube.com/get_video_info?& ... =US&hl=enB

Formats available for this Movie: webm:640x360 flv-h264:640x360 mp4:480x360 flv:400x240

mp4 ... YES! mp4:480x360
flv ... YES! flv-h264:640x360 flv:400x240
webm ... YES! webm:640x360
mov ... no
mpg ... no
mpeg ... no
wmv ... no
avi ... no
3gp ... no
reference ... no
mp3 ... no
m4a ... no
wma ... no
The 3rd one is as a screenshot below.
As you can see it works for me. It's a prob with movegrab. Sometimes it hangs a little bit. When I open a new webpage with my browser the download or the testload will start. I can change the quality settings without clicking the download button twice. My girlfriend is using it most of the time and mentioned no problems with that. Could it be that you are using another gtkdialog? This is the one that I'm using: gtkdialog version 0.7.20 (C)
I'm not good enough to build a check to see if the video is downloading. I will try but I'm an absolut beginner in making bash scripts. I learn from other scripts and then try to understand how it works :oops: . But I will do my very best :roll:

Thanks for your answer again. I'll work on it!
Attachments
testload.png
(3.03 KiB) Downloaded 2741 times

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#182 Post by Dougal »

soliver wrote:Sometimes it hangs a little bit. When I open a new webpage with my browser the download or the testload will start.
I've been having a lot of that in the last few weeks with the browser itself, where loading a page will stall and I need to refresh it (or another page)... I think it might be DNS problems, but another thing you might want to try is, if you're using wireless, fix the bit rate to some value (e.g. "iwconfig wlan0 rate 6M"), because the "auto" mode can be pretty crap...

Anyway, what I really wanted to say is that you might want to try and set your browser to use your script as the default handler for videos... I did that with MMS streams and a wrapper around mmsrip (about:config --> network.protocol-handler.app.mms). It might be as simple as going to Edit->Preferences->Helper Applications and setting the video/x-flv or whatever.
That way all you need to do is click on the link in the browser and it will run your script.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

soliver
Posts: 22
Joined: Sat 31 Oct 2009, 17:58
Location: Germany - Koblenz

YouTube multi format video downloader

#183 Post by soliver »

Hello there!

Made a lot of changes and hope it works now. Some problems couldn't be solved because of movgrag. The you2pup should work now. Please TEST and leave a comment.

Thanks and have a good time

PS: movgrab is not included. If you need it, download the old version please.
Attachments
you2pup-2-eng.tar.bz2
Testversion without movgrab
(9.44 KiB) Downloaded 714 times

soliver
Posts: 22
Joined: Sat 31 Oct 2009, 17:58
Location: Germany - Koblenz

You2pup-2.2.0 - YouTube multi format video downloader

#184 Post by soliver »

Hello there again

Finally my you2pup version is ready and I hope it will work for you and you have fun with it.
Changes to the latest you2pup version 2.1.4:

-using movgrab for downloading (vers. 1.1.5 incl.)
-using xdialog
-quality is back
-language support (german incl.)

Sounds not much...hmm...but was hard work for me :wink:

Sometimes it hangs with the internet connection and then movgrab gives no feedback, so please first run the "TESTMODE". There you can also see the available formats for your site. You can also send a "ping" to any other side, that helped most of the time. Almost any site I have tried worked for me. Movgrab is compiled in a clean puppy 4.1.2 (the verison I'm still using):
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-t2-linux-gnu --enable-ssl

So please TEST and hopefully it'll work for you!

PS: Still working on it and hope to give you some more features and to make much more comfortable.
Attachments
you2pup-2.2.0.pet
(76.53 KiB) Downloaded 863 times
you2pup_snap_2.png
(10.9 KiB) Downloaded 3006 times
you2pup_snap.png
(13.68 KiB) Downloaded 6262 times

ColumPaget
Posts: 2
Joined: Mon 19 Dec 2011, 17:44

Movgrab problems?

#185 Post by ColumPaget »

Hiya,

delighted to see that you're using movgrab to drive you2pup.

I see you're having some problems though, have you got any more description of them? Does movgrab sometimes hang, or does it sometimes exit straight away?

Colum

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#186 Post by Lobster »

tried downloading to NTFS and fat32 directories in Slacko Puppy 5.3.1

tried to download this
http://youtu.be/g0GVz1YnN6E

did not recognise the format
When running from command line (to test) it told me root/my-documents
did not exist (I had stipulated another directory anyway)
tried creating directory
no luck

some testing seemed to provide format info which I used
I was unable to download a youtube file . . . :cry:
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#187 Post by RSH »

Hello,

i have downloaded you2pup and installed it in my LazY Puppy 528. I have downloaded successfully these files:

http://www.youtube.com/watch?v=ItZyaOlrb7E
http://www.youtube.com/watch?v=jA9IP1JCyf4
http://www.youtube.com/watch?v=F6CCRPaY ... re=related

But: after downloading i have an permanently CPU usage around at 20%, wich is not acceptable.

I have checked the sources.

- func misses exit at the end of file

Maybe this is one of the issues.

After downloading 5 files the cpu usage is about 30%!

Nice Tool but it should be "fixed".

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

soliver
Posts: 22
Joined: Sat 31 Oct 2009, 17:58
Location: Germany - Koblenz

#188 Post by soliver »

Sorry for the late reply :oops:

and hello 'ColumPaget'. Didn't inform you that I am using movgrab. But I first wanted some testers, to find out if my gui is working without crasing the system.

I have 2 probs with movgrab.
1st : when there is no datatraffic in the backround it waits until e.g. a website is changed. Don't know if it is a problem of your prog or with puppy. If there's no internet connection it'll exit straight away but that's no prob.
2nd : I want to add the the -P option into you2pup but I'm unable. Tried many ways but without success. The defaultmediaplayer won't start after 25% of downloading. Possibly my files are too short , I normaly use files under a minute for testing.

The rest is working like a charm. And I am very happy with your prog. My girlfrind is loving it. She's using it very often :lol:
Thank you for movgrab and hope it'll work for a long time!! so that we can annoy youtube a little bit!!

Thanx RSH for your reply. You're right! It's not accectabel when the prog has a permanently CPU usage of 20%. Added the exit at the end of the func file and 2 other lines. Hope it's ok now!

Version 2.2.1:
- the paw in the you2pup pic has now 4 points :D
- the checkbox of the testmode is now a button (think is better handling)
- added the exit 0 in func
- some little cosmetics

to do:
- preview while downloading


If you have wishes or improvements please let me know!!

Wish you all a merry and peaceful christmas!!! (and barry in the tent too!!!)

Thank you for helping and sharing!


EDIT 30 min. later: I was on http://arif.suparlan.com/demo/yt-downlo ... oad.sh.txt and made a test with the old youtube.sh (version 2.3!!! you2pup-2.1.4 has version 2.2 and it has never been changed). IT WORKS! I have downloaded 3 vids with no probs. Thanks Arif HS!! I like both progs and hopefully they'll work for a long time.
So I'll try to make a choice which one to use and integrate movgrab with more options. Hope that's okay?! Or better 2 progs you2pup and e.g. movgrab2pup??
Attachments
you2pup-2.2.1_light.pet
without movgrab
(16.97 KiB) Downloaded 773 times
you2pup-2.2.1.pet
with movgrab included
(78.28 KiB) Downloaded 1254 times

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#189 Post by Karl Godt »

Short Note : Did not work for me :

/usr/sbin/youtube.sh
yt-download.sh v2.2 2011-03

has a line to grep for a pattern

Code: Select all

#get player_config part
	Tmp=$(grep -o "'PLAYER_CONFIG': {.*}" /tmp/$1.tmp)
that does not exist in the curl -s 'ed file /tmp/$1.tmp
simple workaround :

Code: Select all

   if [ ! "$Tmp" ];then
    echo "
    ERROR
    could NOT find the
    'PLAYER_CONFIG': {.*}
    String in
/tmp/$1.tmp
     "
     read -n1 -p "press any Key to quit " QKEY
     exit 1
     fi
also further down the substitution using the patterns " fmt_url_map " and " fmt_map " would not succeed because not being found in the "$title" NOR whole curl 'ed html page .

Code: Select all

YT-DOWNLOAD.SH v2.2
----------------------------------
Downloading HTML file and getting video formats, please wait...

Download site(s) found!
----------------------------------
Title: The Levellers-World Freak Show(Live)"><meta name="description" content="Portsmouth Pyramids Centre 21st April 2009 Possibly played for the 1st time in over 17 years"><link rel="alternate" type="application-json+oembed" href="http:--www.youtube.com-oembed?url=http%3A--www.youtube.com-watch?v%3Dsna71HUOEA0&format=json" title="The Levellers-World Freak Show(Live)"><link rel="alternate" type="text-xml+oembed" href="http:--www.youtube.com-oembed?url=http%3A--www.youtube.com-watch?v%3Dsna71HUOEA0&format=xml" title="The Levellers-World Freak Show(Live)"><meta property="fb:app_id" content="87741124305"><meta property="og:url" content="http:--www.youtube.com-watch?v=sna71HUOEA0"><meta property="og:title" content="The Levellers-World Freak Show(Live)"><meta property="og:description" content="Portsmouth Pyramids Centre 21st April 2009 Possibly played for the 1st time in over 17 years"><meta property="og:type" content="video"><meta property="og:image" content="http:--i4.ytimg.com-vi-sna71HUOEA0-hqdefault.jpg"><meta property="og:video" content="http:--www.youtube.com-v-sna71HUOEA0?version=3&autohide=1"><meta property="og:video:type" content="application-x-shockwave-flash"><meta property="og:video:width" content="396"><meta property="og:video:height" content="297"><meta property="og:site_name" content="YouTube"><link id="www-core-css" rel="stylesheet" href="http:--s.ytimg.com-yt-cssbin-www-refresh-vfl1B0Nkn.css

    ERROR
    could NOT find the
    'PLAYER_CONFIG': {.*}
    String in
/tmp/sna71HUOEA0.tmp
     
press any Key to quit 
HTH

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#190 Post by Karl Godt »

I have changed the code to download simply to

Code: Select all

   LINENR=`grep -n -o -m1 '"http:.*o-o.*".*</title>' /tmp/$1.tmp |cut -f 1 -d':'`
	echo "LINENR='$LINENR'"
	sed -n "$LINENR p" /tmp/$1.tmp >/tmp/$1.line
	grep -o -m1 '"http:.*o-o.*".*</title>' /tmp/$1.line |tr ')' '\n' >/tmp/$1.wanted
	URLS=`grep -o 'http:.*o-o.*"' /tmp/$1.wanted`
   URL1=`echo "$URLS" | grep -v '/crossdomain\.xml'`
	URL9=`echo "$URL1" |sed 's/^;yt.preload.start(//'`
	echo "URL='$URL9'"
	URL8=`echo "$URL9" |sed 's,\\\\u0026,\&,g;s|\\\\||g'`
	echo "URL='$URL8'"
	URL7=`echo "$URL8" |sed 's/"$//;s/generate_204/videoplayback/'`
	echo "URL='$URL7'"
	URL6=`echo "$URL7" |sed 's|\ |\%20|g'`
	echo "URL='$URL6'"
	URL="$URL6"
	TITLE=`grep '<title>.*</title>' /tmp/$1.wanted| sed 's|.*<title>||;s| - YouTube </title>||'`
	TITLE=`echo "$TITLE" | sed 's|\ |\%20|g'`
       #edit had '/' in title ..grr
       TITLE=`echo "$TITLE" | sed 's|/|_|g'`
	echo "URL='$URL'"
	echo "TITLE='$TITLE'"
	#GREATURL="\"${URL}&title=${TITLE}\""
	GREATURL="${URL}&title=${TITLE}"
	echo "GREATURL='$GREATURL'"
	if [ "$GREATURL" ];then
	#curl $GREATURL > "$DIR"/"$TITLE"
        curl $GREATURL -o "$DIR"/"$TITLE"
	CURLRV="$?"
	echo "CURLRV='$CURLRV'"
	if [ "$CURLRV" != '0' ];then
	while [ "$CURLRV" != '0' ];do
	curl -C $GREATURL -o "$DIR"/"$TITLE"
	CURLRV="$?"
	done
	fi
	read -n1 -p "press any Key to quit " QKEY
	MIME=`file "$DIR"/"$TITLE"`
	FILENAME=`echo "$DIR"/"$TITLE" | sed 's|\%20| |g'`
	mv "$DIR"/"$TITLE" "$FILENAME"
	if [ "`echo "$MIME" | grep -i 'flash'`" ];then
	EXT='flv'
	elif [ "`echo "$MIME" | grep -i 'mp4'`" ];then
	EXT='mp4'
	fi
	if [ "$EXT" ];then
	mv "$FILENAME" "${FILENAME}.$EXT"
	fi
        exit
	else
	read -n1 -p "press any Key to quit " QKEY
	exit
	fi

It seems that the menu to choose between the format depends on already installed YouTube downloaders as add-on for the web-browser :?:

robwoj44
Posts: 399
Joined: Fri 08 Aug 2008, 18:15
Location: Warsaw

Polish locale for You2pup

#191 Post by robwoj44 »

I send polish locale for You2pup.
Attachments
you2pup.tar
polish locale
(10 KiB) Downloaded 662 times

User avatar
sheepy
Posts: 233
Joined: Sat 07 May 2011, 03:26
Location: GA
Contact:

#192 Post by sheepy »

Does it support downloading full playlists at once? Or a user's uploads?

slenkar
Posts: 228
Joined: Sat 11 Jul 2009, 01:26

#193 Post by slenkar »

the youtube api allows you to look at anyones subscriptions list

e.g. for mine see here:
https://gdata.youtube.com/feeds/api/use ... tionvideos

no password needed.

Is there any chance of being able to choose from my subscriptions to download and watch videos?

robwoj44
Posts: 399
Joined: Fri 08 Aug 2008, 18:15
Location: Warsaw

You2pup-2.1.5

#194 Post by robwoj44 »

You2pup updated.
Version 2.1.5 - youtube.sh updated and internationalized, you2pup internationalized

soliver's you2pup updated with the latest movgrab
Attachments
you2pup-2.2.1.pet
soliver's you2pup
(184.99 KiB) Downloaded 440 times
you2pup-2.1.5.pet
You2pup
(28.48 KiB) Downloaded 461 times

drblock2
Posts: 153
Joined: Mon 19 Jan 2009, 12:38

you2pup 2.2.1

#195 Post by drblock2 »

robwoj44 and soliver

Downloaded and installed you2pup 2.2.1 in Precise 5.6.1.

Works perfectly. I also found the convert option very useful as Iwas mostly interested in downloading youtube music files and converting mp4 to mp3. Also worked like a charm.

I know that youtube is a moving target and really appreciate your efforts to keep up with constant changes.

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

you2pup not working in puppy 4.3.2 with glibc 2.11.3

#196 Post by sindi »

The binary is from dec 2011 and youtube has changed since then.
I tried to download a youtube video.

Error - please choose filename.

movgrab -test-sites
indicates youtube should work.

Does this work for anyone in any puppy 4?
movgrab has only four common library dependencies.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#197 Post by trio »

Vrsion 2.2 please test

see main page

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#198 Post by zigbert »

This is very good news. I will test... :)

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#199 Post by trio »

Hi Sigmund,


Just downloaded trailer of Fast Furious 7
Attachments
capture20315.png
(173.32 KiB) Downloaded 382 times

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

#200 Post by Ted Dog »

any hope for 64bit version?

Post Reply