maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Youtube download script (https://talk.maemo.org/showthread.php?t=84669)

Addison 2012-06-06 07:00

Re: Youtube download script
 
Well, from the video I posted above:

"360P" download was
640x260
Frame rate 48

"Medium" download was
640x260
Frame rate 24

If it were in .avi format with mp3 audio instead of mp4, "Medium" would probably play quite nicely.

I never did understand why mp4 is used over avi with YouTube.

Not even my Xbox can play that format very well.

Oh well, I think maybe I should look into installing Linux, just for auouymous. :)

auouymous 2012-06-06 07:40

Re: Youtube download script
 
Quote:

Originally Posted by Addison (Post 1218239)
"360P" download was
640x260
Frame rate 48
"Medium" download was
640x260
Frame rate 24

The tablet-encode script uses 400x240 @ 15 frames.


Quote:

Originally Posted by Addison (Post 1218239)
I never did understand why mp4 is used over avi with YouTube.

Maybe because MP4 fixes the problems that AVI has.


Quote:

Originally Posted by Addison (Post 1218239)
Oh well, I think maybe I should look into installing Linux, just for auouymous.

You have it on your tablet, now put it on your desktop. ;)

Addison 2012-06-07 02:58

Re: Youtube download script
 
So I downloaded this video at 720P.
http://m.youtube.com/watch?v=hBYymaN...e_gdata_player

I was able to transcode it to 640x368, at 44100 sample rate for audio.

It looked and sounded good but really wasn't worth the time.

Anyway, I also downloaded it using youtube-dl-x and noticed something.

With the tablet's version, the audio was only at 22050.

I'm not sure how all of the encoding for a video is stored at YouTube, but is it possible to grab the lowest video quality like it does now but also a better audio at the same time in your script?

It seems like the audio should always be a stereo mp3 at a 44100 kHz sample rate, and 128 Kbps bit rate.

Can this be done?

Cheers. :)

Addison 2012-06-07 06:45

Re: Youtube download script
 
Okay, say for this YouTuber...
http://m.youtube.com/user/osirislightandsound

Is it possible to just grab the audio at 44100 kHz, 128 Kbps and not even bother with the video?

Looking through the youtube-dl-x options, it seems like it can only be done after downloading it in full and then doing some post-processing on it afterwards which isn't supported because we don't have ffmeg and ffprobe compiled.

Is this correct?

Thanks ahead as always. :)

auouymous 2012-06-07 06:58

Re: Youtube download script
 
Quote:

Originally Posted by Addison (Post 1218736)
Is it possible to just grab the audio at 44100 kHz, 128 Kbps and not even bother with the video?

I doubt it. If you run youtube-dl with the -F option you can see the available formats for a given video. You can select the format and resultion, not the audio quality, unless they encode different formats with different qualities, try googling for more details on each format ID (the number in far left column).


Quote:

Originally Posted by Addison (Post 1218736)
Looking through the youtube-dl-x options, it seems like it can only be done after downloading it in full and then doing some post-processing on it afterwards which isn't supported because we don't have ffmeg and ffprobe compiled.

Is this correct?

Yes, youtube-dl downloads the video, extracts the audio track and then encodes to mp3.

Addison 2012-06-07 06:59

Re: Youtube download script
 
Yeah, that's what I thought.

Thanks chief!

Addison 2012-06-07 20:19

Re: Youtube download script
 
Well, you know me, always asking questions. *lol*

So for this...
http://m.youtube.com/watch?gl=US&hl=...&v=BQu4PUJ5oA4

To get the quickest and best audio quality, would that be just to download it in 720P format and then play the .mp4 through XMMS?

I tried this and it's showing that the audio is in Variable Bit Rate format so I'm not sure if that is the high, low or medium end for the sound.

Thanks!

auouymous 2012-06-07 23:09

Re: Youtube download script
 
Quote:

Originally Posted by Addison (Post 1219139)
To get the quickest and best audio quality, would that be just to download it in 720P format and then play the .mp4 through XMMS?

Or mplayer using the -novideo parameter.

Addison 2012-06-08 23:15

Re: Youtube download script
 
Hey chief.

Is yt clean working on your end?

If I run it while a video is playing I get

Code:

killall: cannot kill pid 15814: No such process
Terminated

If I run it when mplayer isn't running I get

Code:

You need to specify whom to kill
Either way, the folder doesn't clear.

auouymous 2012-06-08 23:53

Re: Youtube download script
 
Quote:

Originally Posted by Addison (Post 1219690)
Is yt clean working on your end?
Either way, the folder doesn't clear.

It calls yt kill and that was killing the yt clean script so it couldn't empty the directory.

Version 1.3 is now available to fix that and also adds ability to specify URL on command line.


All times are GMT. The time now is 22:06.

vBulletin® Version 3.8.8