Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 16 Nov 2018, 10:18
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Hi-res Youtube downloads
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
nic007


Joined: 13 Nov 2011
Posts: 2676
Location: Cradle of Humankind

PostPosted: Wed 17 Oct 2018, 12:06    Post subject:  Hi-res Youtube downloads
Subject description: Merging mp4 video and m4a audio files
 

I've noticed that youtube has made it a bit more difficult to download high quality videos, the reason being that most videos' video and audio tracks are split. If you use these youtube download sites you can clearly see that the only option where you can still download it as one mp4 file, is in the 640x360 resolution (well almost exclusively there are rare exceptions). So if a higher resolution video is available, the tracks will most likely be split. Luckily most of these sites also provide the download links for the video and audio tracks seperately. So download the video track as .mp4 and the audio track as m4a and merge them as one .mp4 file with FFConvert multimedia converter in the menu. I've tried it and it was very easy, just keep the conversion settings same as the source files as far as possible. Works fast and very well.
Back to top
View user's profile Send private message 
ITSMERSH


Joined: 02 May 2018
Posts: 456

PostPosted: Wed 17 Oct 2018, 12:44    Post subject:  

I'm using Firefox and Companion App.
It can download all sizes (19xx, 1280, 864, 480, 320, whatever is present in the download list).
Formats are usually .webm or .mp4.
It can also download e.g. .webm and convert to e.g. .mp4 after download.

Just saying...

_________________
RSH
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2676
Location: Cradle of Humankind

PostPosted: Wed 17 Oct 2018, 12:54    Post subject:  

Mmm. I wonder. Most videos are low resolution and were originally uploaded as so. Did you download recently because this new way from youtube of doing things is quite new? Are you sure that your downloads are direct downloads from the google server and not actually conversions of the original file?
Back to top
View user's profile Send private message 
fabrice_035


Joined: 28 Apr 2014
Posts: 534
Location: Bretagne / France

PostPosted: Thu 18 Oct 2018, 14:31    Post subject:  

Hello,

I also notice that youtube has changed things.

But it's always possible with youtube-dl to download only one file (video + audio)

Before :
Code:

youtube-dl https://www.youtube.com/watch?v=-nz3xxxxxx


Now that same command download separate files Crying or Very sad

Then try:

Code:

youtube-dl -F https://www.youtube.com/watch?v=-nz3xxxxxx

[youtube] -nz3xxxxxx: Downloading webpage
[youtube] -nz3xxxxxx: Downloading video info webpage
[youtube] -nz3xxxxxx: Downloading js player vflATXXzL
[info] Available formats for -nz3xxxxxx:
format code  extension  resolution note
249          webm       audio only DASH audio   68k , opus @ 50k, 35.95MiB
250          webm       audio only DASH audio   86k , opus @ 70k, 41.61MiB
140          m4a        audio only DASH audio  133k , m4a_dash container, mp4a.40.2@128k, 90.91MiB
171          webm       audio only DASH audio  149k , vorbis@128k, 60.33MiB
251          webm       audio only DASH audio  161k , opus @160k, 76.49MiB
160          mp4        256x144    144p  112k , avc1.4d400c, 30fps, video only, 35.29MiB
278          webm       256x144    144p  128k , webm container, vp9, 30fps, video only, 64.28MiB
242          webm       426x240    240p  223k , vp9, 30fps, video only, 83.30MiB
133          mp4        426x240    240p  339k , avc1.4d4015, 30fps, video only, 75.53MiB
243          webm       640x360    360p  420k , vp9, 30fps, video only, 172.07MiB
134          mp4        640x360    360p  705k , avc1.4d401e, 30fps, video only, 160.17MiB
244          webm       854x480    480p  778k , vp9, 30fps, video only, 282.04MiB
135          mp4        854x480    480p 1273k , avc1.4d401f, 30fps, video only, 265.80MiB
247          webm       1280x720   720p 1510k , vp9, 30fps, video only, 489.49MiB
136          mp4        1280x720   720p 2394k , avc1.4d401f, 30fps, video only, 445.04MiB
17           3gp        176x144    small , mp4v.20.3, mp4a.40.2@ 24k, 57.63MiB
36           3gp        320x180    small , mp4v.20.3, mp4a.40.2, 167.98MiB
18           mp4        640x360    medium , avc1.42001E, mp4a.40.2@ 96k, 322.16MiB
43           webm       640x360    medium , vp8.0, vorbis@128k, 427.79MiB
22           mp4        1280x720   hd720 , avc1.64001F, mp4a.40.2@192k (best)



And next is simply, choose code

Code:

youtube-dl -f 22  https://www.youtube.com/watch?v=-nz3xxxxxx



++

_________________
Linux Tahrpup 6.0.6 / 3.14.79
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2676
Location: Cradle of Humankind

PostPosted: Thu 18 Oct 2018, 21:39    Post subject:  

Hi, I don't have youtube-dl but looking at your example it seems as if you came across a video that still has an option to download in one file (video and audio) in 720P resolution. Please try the following videos with your method and report back: https://www.youtube.com/watch?v=Ft8WnxgV8Os ; https://www.youtube.com/watch?v=CkzuSaIj9hY ; https://www.youtube.com/watch?v=aiuB_e2QYb8
Back to top
View user's profile Send private message 
fabrice_035


Joined: 28 Apr 2014
Posts: 534
Location: Bretagne / France

PostPosted: Fri 19 Oct 2018, 02:05    Post subject:  

about https://www.youtube.com/watch?v=Ft8WnxgV8Os
The "high" video is
Code:
18           mp4        480x360    medium , avc1.42001E, mp4a.40.2@ 96k, 26.56MiB (best)


and

Code:
137          mp4        1440x1080  1080p 2187k , avc1.640028, 25fps, video only, 58.74MiB


it's a upscalling, not real true high res. Same for others.

_________________
Linux Tahrpup 6.0.6 / 3.14.79
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2676
Location: Cradle of Humankind

PostPosted: Fri 19 Oct 2018, 03:07    Post subject:  

No, you are wrong. It's not upscaling. There is in fact a higher resolution video available on the server but it's a seperate video only stream. All videos can be downloaded as one stream (video+audio) in the 360P resolution. Some 720P videos can also be downloaded in one stream. However many (most) videos that also have higher resolutions are now split in two streams and you will have to download the seperate files (video and audio seperately) because the higher resolution is video only. In the latter case your method won't work, you will have to download the two streams to be merged later by another application like ffmpeg. Maybe there is a command for youtube-dl to merge the seperate streams but you will need an application like ffmpeg installed. I just download the two streams and use FFconvert to merge it.
Back to top
View user's profile Send private message 
fabrice_035


Joined: 28 Apr 2014
Posts: 534
Location: Bretagne / France

PostPosted: Fri 19 Oct 2018, 03:38    Post subject:  

Compare:

https://www.youtube.com/watch?v=Ft8WnxgV8Os = mp4 = 480x360

with

https://www.youtube.com/watch?v=qKB_MOEhIgM -> auto choose select is HD

And i think you can download the HD stream video with sound in one file (i can't try youtube-dl at this moment ... I am not at home right now)

First it's "fake HD" (upscale) and youtube separate video and sound if you choose HD download
Second it's real HD upload vidéo

Regard

_________________
Linux Tahrpup 6.0.6 / 3.14.79
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2676
Location: Cradle of Humankind

PostPosted: Fri 19 Oct 2018, 07:09    Post subject:  

Okay I gave a bad example, that video wasn't good quality for starters. Youtube does not upscale but does downscale videos on their servers for more download/playing options. It depends on the original upload, if the upload is in high resolution, the higher resolution should also be available. You will see that if it's a low resolution upload, no high resolutions will be available. Youtube will never upscale an uploaded video to a higher resolution as the original upload. It is of course possible that the uploader may convert a poor quality video to a higher resolution (in which case the quality of the video stays poor).
Back to top
View user's profile Send private message 
fabrice_035


Joined: 28 Apr 2014
Posts: 534
Location: Bretagne / France

PostPosted: Fri 19 Oct 2018, 11:50    Post subject:  

I Understand ( or not Shocked ?) . I think about this exemple https://www.youtube.com/watch?v=qKB_MOEhIgM the uploader have send a vidéo [1920x1080] with sound . After youtube separate the sound and purpose differents quality, sound and video are not merged but played synchronously in real time in HD . Possible ?

The only formats with sound that can be loaded are of medium or poor quality.

Your solution is good, take HD vidéo / take HD audio / - > merge .

_________________
Linux Tahrpup 6.0.6 / 3.14.79
Back to top
View user's profile Send private message 
norgo


Joined: 13 Nov 2015
Posts: 285
Location: Germany

PostPosted: Sat 20 Oct 2018, 09:57    Post subject:  

did the test using smtube/smplayer (only for confirmation ) https://www.youtube.com/watch?v=qKB_MOEhIgM
is available in full HD resolution
Screenshot.jpg
 Description   youtube video in full hd
 Filesize   39.4 KB
 Viewed   92 Time(s)

Screenshot.jpg

Back to top
View user's profile Send private message Visit poster's website 
fabrice_035


Joined: 28 Apr 2014
Posts: 534
Location: Bretagne / France

PostPosted: Mon 29 Oct 2018, 12:39    Post subject:  

@norgo, HD ok but video only :


_________________
Linux Tahrpup 6.0.6 / 3.14.79
Back to top
View user's profile Send private message 
norgo


Joined: 13 Nov 2015
Posts: 285
Location: Germany

PostPosted: Mon 29 Oct 2018, 17:09    Post subject:  

@fabrice_035

of course with sound !

without sound the video would be useless
video watching in 1080p or more is no problem

unfortunately video download is still limited to 720p
but I'm quite sure Ricardo Villalba will found a solution Smile

Quote:
'=========================================================================='
'Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family'
'libavcodec version 57.24.102 (internal)'
'Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)'
'=========================================================================='
'ID_VIDEO_CODEC=ffh264'
'ID_FILENAME=https://r5---sn-h0jeenl7.googlevideo.com/videoplayback?quality_label=1080p&init=0-715&bitrate=5052360&projection_type=1&mn=sn-h0jeenl7,sn-4g5edned&key=yt6&ip=95.115.104.62&mv=m&sparams=aitags,clen,dur,ei,gir,id,initcwndbps,ip,ipbits,itag,keepalive,lmt,mime,mm,mn,ms,mv,pl,requiressl,source,expire&mt=1540845363&ms=au,onr&fvip=5&pl=18&aitags=133,134,135,136,137,160,242,243,244,247,248,278,298,299,302,303&mime=video/mp4&id=o-APcKOfbglEAR65VPbVKatvzt2-3GkTEeWMN8KOQP1JOm&c=WEB&txp=5432432&lmt=1540015948974495&ipbits=0&mm=31,26&initcwndbps=1080000&source=youtube&clen=157348503&dur=369.640&ei=fW_XW6PRM5KwgAeAlJHYAQ&requiressl=yes&signature=575468294C2ABC2EDD6F496D0AD0881C704EFE8B.6C9453A0888F2D133E351A0670BC17EAB2C15FA6&itag=137&keepalive=yes&expire=1540867038&size=1920x1080&index=716-1635&fps=25&gir=yes&ratebypass=yes'
'ID_DEMUXER='
'ID_VIDEO_FORMAT=H264'
'ID_VIDEO_BITRATE=40600'
'ID_VIDEO_WIDTH=1920'
md.video_width set to 1920
'ID_VIDEO_HEIGHT=1080'
md.video_height set to 1080
'ID_VIDEO_FPS=25.000'
'ID_VIDEO_ASPECT=0.0000'
md.video_aspect set to 1.777778
'ID_AUDIO_FORMAT=MP4A'
'ID_AUDIO_BITRATE=3400'
'ID_AUDIO_RATE=44100'
'ID_AUDIO_NCH=2'
'ID_START_TIME=0.00'
'ID_LENGTH=369.64'
md.duration set to 369.640000
'ID_SEEKABLE=1'
'ID_CHAPTERS=0'
'=========================================================================='
'Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders'
'AUDIO: 44100 Hz, 2 ch, floatle, 3.4 kbit/0.12% (ratio: 425->352800)'
'ID_AUDIO_BITRATE=3400'
'ID_AUDIO_RATE=44100'
'ID_AUDIO_NCH=2'
'Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))'
'=========================================================================='
'AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)'


the shown bit rates are often not correct, I guess because of usage of variable bit rates
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0698s ][ Queries: 12 (0.0165s) ][ GZIP on ]