You2pup works (June 2016) YouTube downloader

Browsers, email, chat, etc.
Post Reply
Message
Author
kostas801
Posts: 51
Joined: Sat 10 Jan 2009, 14:26
Location: Greece, Athens

youtube downloader 1.3.2 on lupu5.10

#121 Post by kostas801 »

I tried this you2pup-1.3.2.pet on lupu 5.10 linux
but it does not work.
It opens the console window, it finds the youtube.com site,
it locates the file and then the console window closes
and the result is a file of 88kb size (empty film)

any ideas about the problem

kostas

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#122 Post by neurino »

Don't get bored with a GUI...

open the youtube page with the video and wait till it's fully downloaded,

go to /tmp (works the same in Chrome too), you'll find the video (Flash*),

if you want to save some disk space do:

Code: Select all

ffmpeg -i Flash[press TAB for name completition] Video.mp4
to get an mp4 movie you can play with almost any player.

aarf

#123 Post by aarf »

neurino wrote:Don't get bored with a GUI...

open the youtube page with the video and wait till it's fully downloaded,

go to /tmp (works the same in Chrome too), you'll find the video (Flash*),

if you want to save some disk space do:

Code: Select all

ffmpeg -i Flash[press TAB for name completition] Video.mp4
to get an mp4 movie you can play with almost any player.
thanks. works for me to get a mp4 playable on my Sony-ericson phone when other mp4 producing things have not.
edit: here are the output specs of the produced movie:

Code: Select all

#ffmpeg -i Video.mp4
..(snip)..
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Video.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf52.68.0
  Duration: 00:00:45.20, start: 0.000000, bitrate: 293 kb/s
    Stream #0.0(und): Video: mpeg4, yuv420p, 320x240 [PAR 213:160 DAR 71:40], 262 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0.1(und): Audio: aac, 16000 Hz, stereo, s16, 28 kb/s
At least one output file must be specified
Last edited by aarf on Sun 22 Aug 2010, 03:19, edited 2 times in total.

aarf

#124 Post by aarf »

neurino wrote:Don't get bored with a GUI...

open the youtube page with the video and wait till it's fully downloaded,

go to /tmp (works the same in Chrome too), you'll find the video (Flash*),

if you want to save some disk space do:

Code: Select all

ffmpeg -i Flash[press TAB for name completition] Video.mp4
to get an mp4 movie you can play with almost any player.
perhaps someone can make a one click gui that does just this? or then also plays the file.

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

#125 Post by nooby »

Aarf thanks for describing this. I bought a SonyEricson recently. Android thing. So I need such tips on how to get music on it easily from Youtube.

When I do it over Wireless from Dlink router then the music has glitches and hack in it. While using Puppy has no such disruptions.

Now I only need to find a good Directory to put it in on the phone.

Support on SE told me one need to create such a Dir and they told me how but now I forgot how one do it so I fail to tell others how to.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#126 Post by neurino »

aarf wrote: perhaps someone can make a one click gui that does just this? or then also plays the file.
There's python script youtube-dl (google for it) but I think is overkill since it happens to download the same movie twice, one while opening the page to get the URL by the browser, the second by the script...

I use this little script after opening the youtube page and waiting the video to entirely load.
The only thing I must do after is to hand-rename converted videos.

Code: Select all

#!/bin/bash

#target directory for converted files
vidsdir="/mnt/home/vids/"
[ ! -d "$vidsdir" ] && mkdir "$vidsdir"

#change to tmp folder
cd /tmp
#process each youtube temp video file and save to vidsdir
for vid in FlashXX*
do
    #convert, please consider you could have a quality loss
    #see ffmpeg specs to add correct params to save quality
    ffmpeg -i "$vid" -y "$vidsdir$vid.mp4"
done
The same script is attached here:
Attachments
convertyoutube.tar.gz
(365 Bytes) Downloaded 755 times

aarf

#127 Post by aarf »

neurino wrote:
aarf wrote: perhaps someone can make a one click gui that does just this? or then also plays the file.
There's python script youtube-dl (google for it) but I think is overkill since it happens to download the same movie twice, one while opening the page to get the URL by the browser, the second by the script...

I use this little script after opening the youtube page and waiting the video to entirely load.
The only thing I must do after is to hand-rename converted videos.

Code: Select all

#!/bin/bash

#target directory for converted files
vidsdir="/mnt/home/vids/"
[ ! -d "$vidsdir" ] && mkdir "$vidsdir"

#change to tmp folder
cd /tmp
#process each youtube temp video file and save to vidsdir
for vid in FlashXX*
do
    #convert, please consider you could have a quality loss
    #see ffmpeg specs to add correct params to save quality
    ffmpeg -i "$vid" -y "$vidsdir$vid.mp4"
done
The same script is attached here:
thanks neurino, the script works for me.

aarf

#128 Post by aarf »

@nooby my SE phone is not android so may be different. i bluetooth the videos in with puppeee1, then videos go to the correct video directory automatically.
kdenlive also has a render to android specifications if it is needed for your phone.

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#129 Post by neurino »

aarf wrote:thanks neurino, the script works for me.
change the ffmpeg line to this if you wish (as I do) to play your vids in a (almost old) table Divx player

Code: Select all

ffmpeg -i "$vid" -y -f avi -vtag divx -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec libmp3lame -ab 128k "$vidsdir$vid.avi"
8)

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#130 Post by Sylvander »

@neurino [or anyone]
1. My tmp folder is on my Puppy filesystem inside a pupsave file, so the space is limited for holding the FlashXX... file,and the converted mp4 file.

2. Is it possible to move the tmp folder off the Puppy filesystem, and symlink back to its home location?
So as to give it much more space to hold bigger movie files.

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#131 Post by neurino »

well youtube vids are not that big...

if you look at the convertyoutube script I linked above you'll see it saves converted videos to "/mnt/home/vids/"

this to say no one forces ffmpeg to save converted files in the same folder

about symlinking I guess it should work but not sure about its contents are deleted on shutdown

aarf

#132 Post by aarf »

Perhaps a new additional big save file on external media to boot into when you are going to be needing it.

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#133 Post by Sylvander »

1. "Perhaps a new additional big save file on external media to boot into when you are going to be needing it"
Hmmm, possible, but not an elegant solution!
All my pupsave files are already quite big at around 1GB.
I'm looking to decrease them rather than increase.

2. "well youtube vids are not that big"
I asked, because some of the videos were full size movies.

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#134 Post by neurino »

Sylvander wrote:2. "well youtube vids are not that big"
I asked, because some of the videos were full size movies.
If you can watch 'em from start to end then they fit your temp folder.

I may not want to keep 20 tabs open with a HD video each...

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

New Version You2pup-2.0

#135 Post by trio »

Hi,

Thanks all for your interest and contribution to this little project. I am now using a new engine that works as per Feb 2011. Download at MAIN POST. I am not really "back", just got a little time to spare.....

Thanks all .. Cheers
Attachments
you2pup-2.0.jpg
NEW!! FEB 2011
(41.01 KiB) Downloaded 1345 times

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#136 Post by 8-bit »

I do not know if this has anything to do with download failures, but I have noticed on Youtube and Hulu that both have changed in that part of a movie is played and then a commercial is played which then takes one back to the movie.
The downloader sees an erronious end to the movie and assumes it is done when in fact, one only has part of the movie downloaded.

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

#137 Post by trio »

@8bit:

Hmm...just tried to download several short (1 minute) youtube movies though ... they all downloaded correctly ...

Haven't tried with longer movies ....

Downloading now ... a song ... so far so good .... (5 minutes movie)

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

#138 Post by trio »

Downloaded a 5 minute Video fine

Downloading a 15 minute Video now

EDIT: Yup a 15 minute video's downloaded fine

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#139 Post by 8-bit »

trio,

I do not think there is anything wrong with your application.
What I was getting at, is that Youtube and Hulu have started a practice of showing commercials at different times and then the movie continues.
When the movie pauses to play the commercial, it makes an app that looks for a stream end to think the movie has completed when in fact it has not.
As an example, not on the internet, but using PupRadio/Telly, I went to play a cartoon channel that showed cartoons one after another.
when a cartoon would end, the app assumed the stream had ended and shut it down.
I could then immediately restart the stream and the next cartoon would play and then shut down the stram again.

It is not a big thing, and the providers may do these things for copyright protection.

gcmartin

You2PUP save from any other Video sites?

#140 Post by gcmartin »

Saw this and wanted to know if this tool will save from any other sites, as well.

FF/SeaMonkey have a plug-in tool (several, in fact) that will do similar downloads from Youtube and other sites. I assume this is a replacement tool that can be run from the desktop. Is that correct?

Thanks in advance

Post Reply