You2pup works (June 2016) YouTube downloader

Browsers, email, chat, etc.
Post Reply
Message
Author
aarf

#91 Post by aarf »

panzerpuppy wrote:
Gnome MPlayer (included in Quirky) plays the Train Fail video perfectly :)

GXine is a great audio and internet radio stream player, but it sucks ass for video.
switched 2 q1 and was able to play the previously download video. thanks.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#92 Post by nooby »

Panzer, that is so cool. Finally a usage for Opera browser then :)

Typical of me to fail something. Very good but behave in peculiar way.


Sound fails for me on the mp4 if Opera is running. Have to shut down opera and the sound comes back.
Another bug is that Opera fails to pause the video. It just goes on playing but download of temp works anyway so thanks indeed for describing this way to save things on yt.

Wonder if they come up with ways to stop that one too. They are at it I guess.
Fun while it work

Edit after more testing

I used opera in Q21 to download a tmp file of Dizzy Miss lizzy Larry Williams.

Reminded me of when I was 13 years old and loved the Little Richard screaming.

It played in Q21 but did not play in Lupu 499.


Firefox can also save youtube files that way. You look into root/tmp and when all is downloaded make a copy of it to your home partition so it doesn't go away.

Then rename it to one name like DizzyMisslizzyLarryWilliams.mp4 and quirky can play it off line. YT maybe do't like it and plug the ability sooner or later.

But you guys already knows this :) I am a Johnny come lately I guess
I use Google Search on Puppy Forum
not an ideal solution though

panzerpuppy
Posts: 632
Joined: Tue 02 Oct 2007, 07:39

#93 Post by panzerpuppy »

OK, there is a way to bypass the locked file problem in Windows 7 by using an app called YouTube Downloader, but there are still issues with that app: there's no way to download 1080p (Full HD) videos and no option for downloading normal quality (480p) videos. When you download an SD video with the app,it downloads the crappy 360p version.

So, a Puppy Live CD is still useful even if you use Windows 7 as your main OS :)
Turbopup Tech Support

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

it WORKS...at he moment

#94 Post by soliver »

Few days ago I posted a change to youtube.sh and now it looks like it really works. I tested it several times and running fine.

My work now is working 8)
but please test it!!!!

Greets
Attachments
youtube.png
(9.09 KiB) Downloaded 2767 times

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#95 Post by jrb »

soliver wrote:Few days ago I posted a change to youtube.sh and now it looks like it really works.
Works for me in quirky21.

The change is posted here

Good Job, Thanks, J

aarf

Re: it WORKS...at he moment

#96 Post by aarf »

soliver wrote:Few days ago I posted a change to youtube.sh and now it looks like it really works. I tested it several times and running fine.

My work now is working 8)
but please test it!!!!

Greets
this one i guess http://www.murga-linux.com/puppy/viewto ... 630#409630
failed but with this mod as well it works on my unusual wifi proxy internet connection

Code: Select all

wget -4 -O - -t 7 -w 5 --waitretry=14 --random-wait '--user-agent=Mozilla/5.0' -e robots=off $url > $filename
just add -4 to the wget line.

edit: worked for 1 file but failed the next try on the train and lobster1 links as posted before-above.
edit; worked 1 time only then failed on the one it previously succeeded on downloading the first time.

User avatar
synth
Posts: 209
Joined: Wed 18 Mar 2009, 17:51

#97 Post by synth »

You2pup version 1.4 for Quirky and Puppy:
-------------------------------------------------------------
- Brand new logo

- Improved user interface, popups and descriptions to make it more user friendly

- Includes the patch by soliver so it works with the latest YouTube changes

Image

Download You2pup v1.4 from here:

http://stashbox.org/v/894983/you2pup-1.4.pet

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

video settings

#98 Post by bigpup »

I forward this from Quirky 1.1 bug report.
By panzerpuppy,

You2Pup downloads the 480p version of any YouTube video (link) you drag into the URL box.

Attaching a '&fmt=xx' string after the URL will not override You2Pup's 'hardcoded' 480p download.

If you want higher or lower quality videos, you'll have to edit the script manually.

NOTE: if you change the fmt value to 22 or 37 in the download script to download HD videos, you won't be able to download 80% of the YouTube videos out there. Most videos are still in 360p or 480p format.

Someone needs to edit that script and add a quality selection box that changes (overrides) the fmt value for that session only.

fmt=18 for 480p
fmt=22 for 720p
fmt=37 for 1080p
and fmt=?? for 360p

We need to make You2Pup as good as (or even better better than) the 'YouTube Video Downloader' for Windows. It's a sad thing to see that it's much easier to do stuff under Windows.

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#99 Post by chrome307 »

Thanks Synth :)

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#100 Post by Sit Heel Speak »

Can someone please mirror synth's you2pup elsewhere. I have forgotten my password on stashbox and stashbox's hint+reset system does not work. Thanks.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

You2Pup 1.4

#101 Post by bigpup »

synth's You2pup version 1.4 for Quirky and Puppy:
Attachments
you2pup-1.4.pet
You2Pup-1.4.pet
(13.85 KiB) Downloaded 927 times
Last edited by bigpup on Mon 24 May 2010, 16:38, edited 1 time in total.

User avatar
russoodle
Posts: 707
Joined: Fri 12 Sep 2008, 17:36
Location: Down-Under in South Oz

you2pup mirror

#102 Post by russoodle »

Here you go:

http://puppylinuxstuff.meownplanet.net/ ... up-1.4.pet

user: puppy
pass: linux
[i][color=Green][size=92]The mud-elephant, wading thru the sea, leaves no tracks..[/size][/color][/i]

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#103 Post by Sit Heel Speak »

Thanks.

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

#104 Post by trio »

soliver & synth

Thanks for helping and great job, please notify Barry to update

reg,

Trio

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

youtube.sh

#105 Post by soliver »

Hello there

changed the youtube.sh code. Now there is a -q option for quality setting.
Try it out and see the pictures below.

here is the code:

Code: Select all

#!/bin/bash

# YouTube download script by John Lawrence (http://blog.johnlawrence.net)
#Modified for puppy by trio - 2009
#100514 soliver: fix youtube.com change may 2010.
#100526 soliver: add quality settings

use_err() {
  echo "Usage:   `basename $0` [-f savefile] video_id [-q quality]"
  echo "Quality: `basename $0` -q 5,18,34,35 the higher the better and 13,17 for 3gpp"
  echo "Quality: You'll have to try out what's working for your vid."
  echo "Example: `basename $0` -f Rick oHg5SJYRHA0 -q 18"
  echo "         Saves video with id oHg5SJYRHA0 to Rick.flv in your current directory"
  echo "         with good quality."
  echo
  exit 65
}

if [ ! $1 ]; then use_err; fi

while getopts ":f:" Option
do
  case $Option in
    f     ) fn=$OPTARG;;
    *     ) use_err;;
  esac
done

shift $(($OPTIND - 1))

if [ -z $1 ];  then use_err; fi
if [ -z $fn ]; then fn=$1; fi

vidID=$1
filename=$fn".mp4"

while getopts ":q:" Option
do
  case $Option in
    q     ) q=$OPTARG;;
    *     ) use_err;;
  esac
done

shift $(($OPTIND - 2))

if [ -z $2 ];  then use_err; fi
if [ -z $q ];  then q=$2; fi

quality=$2
qsetting=$q

geturl() { echo "GET $1 HTTP/1.1";echo "Host: $2";echo;echo;sleep 2;echo '^C'; }

echo "Finding hostname"
#100514 soliver: fix youtube.com change may 2010...
#hostl=`geturl /watch youtube.com | nc youtube.com 80 | grep Location | sed 's|Location: http://\([^/]*\)/.*|\1|' | tr -d '\r\n'`
hostl=`geturl /href youtube.com | nc youtube.com 80 | grep Location | sed 's|Location: http://\([^/]*\)/.*|\1|' | tr -d '\r\n'`
echo "Connecting to "$hostl

watch="/watch?v="$vidID
tid=`geturl $watch $hostl | nc youtube.com 80 | grep '"t":' | sed 's/.*"t": "\([^"]*\)".*/\1/'`

echo "Locating video file"
get_video="/get_video?video_id="$vidID"&t="$tid"&el=detailpage&ps=&fmt="$qsetting""
url=`geturl $get_video $hostl | nc youtube.com 80 | grep Location | sed 's/Location: \(.*\)$/\1/' | tr -d '\r\n'`

wget -O - -t 7 -w 5 --waitretry=14 --random-wait '--user-agent=Mozilla/5.0' -e robots=off $url > $filename

tx to bigpup and panzerpuppy for the idea!!

POST YOUR FEEDBACK!!

thanks and take care


please have a look at pcrypt and pdircrypt :roll:
Attachments
2nd.png
(17.9 KiB) Downloaded 2173 times
1st.png
(8.12 KiB) Downloaded 2174 times

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

you2pup-1.4.1

#106 Post by soliver »

Hello there

Made a new you2pup with the above quality-settings.

Please test it and post your feedback.

synth: feel free to change the source, should only be an example.

Take care
Attachments
you2pup-1.4.1.pet
(14.07 KiB) Downloaded 851 times
you2pup.png
(11.47 KiB) Downloaded 2645 times

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#107 Post by abushcrafter »

It works if there are no spaces in file name. It also adds ".mp4" to the file name when that format is not used for some quality's.

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

you2pup

#108 Post by soliver »

Thanks abushcrafter for replying.

The problem of spaces in filenames is not new. I made my own you2pup and there is a message for that.
I don't know how to change the script, so that the right file format is written.
Most of the time you can download mp4. If I change the ending to flv the 3gpp files are not right. Hmm. Hope somebody can help.

Take care

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#109 Post by abushcrafter »

Bingo! :D. I have fixed the file names with spaces issue :P. Here is how:
  1. Open the file: "/usr/sbin/youtube.sh".
  2. On line 68.
  3. Put the variable "$filename" in quotes. I used double quotes.
Like so:

Code: Select all

wget -O - -t 7 -w 5 --waitretry=14 --random-wait '--user-agent=Mozilla/5.0' -e robots=off $url > "$filename"
Another issue is that Gxine in 431/2v3 can't play quality 34(...and some others.). However this the build of mplayer can: Puppy Linux Discussion Forum :: View topic - Mplayer with Multi-core support (09/2009) + gnome frontend. On some quality settings "Mplayer with Multi-core support (09/2009)" can't play them too but MPlayer-1.0rc2 + mencoder Feb 2008 can.

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#110 Post by abushcrafter »

Made a new pet.
Version=1.4.2
Changes:
  • Removed the .mp4 renaming.
  • File names with spaces fix.
  • Edited the menu entry to how I like it.
Download:
File Deleted! See "1.4.3".
Last edited by abushcrafter on Mon 31 May 2010, 20:41, edited 3 times in total.

Post Reply