| Author |
Message |
soliver
Joined: 31 Oct 2009 Posts: 22 Location: Germany - Koblenz
|
Posted: Fri 09 Dec 2011, 12:57 Post subject:
|
|
Thanks sc0ttman for your reply!
Have you tried a testmode? The first 2 vids can be downloaded with these formats: | Quote: | http://www.youtube.com/get_video_info?&video_id=Z_tsO2-8WQI&el=detailpage&ps=default&eurl=&gl=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 . But I will do my very best
Thanks for your answer again. I'll work on it!
| Description |
|
| Filesize |
3.03 KB |
| Viewed |
1679 Time(s) |

|
|
|
Back to top
|
|
 |
Dougal

Joined: 19 Oct 2005 Posts: 2505 Location: Hell more grotesque than any medieval woodcut
|
Posted: Fri 09 Dec 2011, 15:05 Post subject:
|
|
| 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
|
|
Back to top
|
|
 |
soliver
Joined: 31 Oct 2009 Posts: 22 Location: Germany - Koblenz
|
Posted: Mon 12 Dec 2011, 12:30 Post subject:
YouTube multi format video downloader Subject description: new version |
|
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.
| Description |
Testversion without movgrab
|

Download |
| Filename |
you2pup-2-eng.tar.bz2 |
| Filesize |
9.44 KB |
| Downloaded |
258 Time(s) |
|
|
Back to top
|
|
 |
soliver
Joined: 31 Oct 2009 Posts: 22 Location: Germany - Koblenz
|
Posted: Fri 16 Dec 2011, 15:18 Post subject:
You2pup-2.2.0 - YouTube multi format video downloader |
|
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
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.
 |
| Description |
|

Download |
| Filename |
you2pup-2.2.0.pet |
| Filesize |
76.53 KB |
| Downloaded |
340 Time(s) |
| Description |
|
| Filesize |
10.9 KB |
| Viewed |
1585 Time(s) |

|
| Description |
|
| Filesize |
13.68 KB |
| Viewed |
2673 Time(s) |

|
|
|
Back to top
|
|
 |
ColumPaget
Joined: 19 Dec 2011 Posts: 1
|
Posted: Mon 19 Dec 2011, 13:47 Post subject:
Movgrab problems? |
|
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
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 19 Dec 2011, 20:50 Post subject:
|
|
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 . . .
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Mon 19 Dec 2011, 22:12 Post subject:
|
|
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=F6CCRPaYeeQ&feature=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
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
soliver
Joined: 31 Oct 2009 Posts: 22 Location: Germany - Koblenz
|
Posted: Fri 23 Dec 2011, 14:11 Post subject:
|
|
Sorry for the late reply
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
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
- 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-download/yt-download.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??
 |
| Description |
without movgrab
|

Download |
| Filename |
you2pup-2.2.1_light.pet |
| Filesize |
16.97 KB |
| Downloaded |
325 Time(s) |
| Description |
with movgrab included
|

Download |
| Filename |
you2pup-2.2.1.pet |
| Filesize |
78.28 KB |
| Downloaded |
509 Time(s) |
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2675 Location: Kiel,Germany
|
Posted: Sun 11 Mar 2012, 20:09 Post subject:
|
|
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: | #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: | 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: | 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
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2675 Location: Kiel,Germany
|
Posted: Fri 23 Mar 2012, 22:40 Post subject:
|
|
I have changed the code to download simply to
| Code: |
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
|
|
Back to top
|
|
 |
robwoj44
Joined: 08 Aug 2008 Posts: 215 Location: Warsaw
|
Posted: Mon 23 Apr 2012, 14:06 Post subject:
Polish locale for You2pup Subject description: Polish locale |
|
I send polish locale for You2pup.
| Description |
polish locale
|

Download |
| Filename |
you2pup.tar |
| Filesize |
10 KB |
| Downloaded |
219 Time(s) |
|
|
Back to top
|
|
 |
sheepy

Joined: 06 May 2011 Posts: 230 Location: GA
|
Posted: Tue 01 May 2012, 00:03 Post subject:
|
|
Does it support downloading full playlists at once? Or a user's uploads?
|
|
Back to top
|
|
 |
slenkar
Joined: 10 Jul 2009 Posts: 129
|
Posted: Fri 26 Oct 2012, 11:01 Post subject:
|
|
the youtube api allows you to look at anyones subscriptions list
e.g. for mine see here:
https://gdata.youtube.com/feeds/api/users/slenkar/newsubscriptionvideos
no password needed.
Is there any chance of being able to choose from my subscriptions to download and watch videos?
|
|
Back to top
|
|
 |
|