Page 7 of 13

youtube downloader 1.3.2 on lupu5.10

Posted: Thu 19 Aug 2010, 08:05
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

Posted: Fri 20 Aug 2010, 23:01
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.

Posted: Sun 22 Aug 2010, 01:33
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

Posted: Sun 22 Aug 2010, 02:01
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.

Posted: Sun 22 Aug 2010, 09:07
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.

Posted: Sun 22 Aug 2010, 12:05
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:

Posted: Sun 22 Aug 2010, 12:57
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.

Posted: Sun 22 Aug 2010, 13:03
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.

Posted: Sun 22 Aug 2010, 13:33
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)

Posted: Sun 09 Jan 2011, 18:18
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.

Posted: Tue 18 Jan 2011, 22:21
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

Posted: Wed 19 Jan 2011, 01:04
by aarf
Perhaps a new additional big save file on external media to boot into when you are going to be needing it.

Posted: Wed 19 Jan 2011, 18:59
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.

Posted: Wed 19 Jan 2011, 20:41
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...

New Version You2pup-2.0

Posted: Wed 16 Feb 2011, 09:17
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

Posted: Wed 16 Feb 2011, 14:31
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.

Posted: Wed 16 Feb 2011, 14:38
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)

Posted: Wed 16 Feb 2011, 14:59
by trio
Downloaded a 5 minute Video fine

Downloading a 15 minute Video now

EDIT: Yup a 15 minute video's downloaded fine

Posted: Thu 17 Feb 2011, 02:04
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.

You2PUP save from any other Video sites?

Posted: Thu 24 Feb 2011, 03:45
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