On 2014-04-14 16:27, Carlos E. R. wrote:
On 2014-04-14 16:01, Carlos E. R. wrote:
I should try perhaps "trickle" in combination with "youtube-dl".
Yes, it works better.
trickle -d 50 youtube-dl --write-sub --sub-lang 'en,es' \ -f 135 http://www.youtube.com/watch?... ... [download] 2.5% of 455.72MiB at 63.26KiB/s ETA 01:59:54
It works similarly, goes full speed for a little while, then stops for another little while. But instead of going full for 20 seconds, it does so for something like a second or less, and it is fact configurable.
I found something out. The available format were: format code extension resolution note 171 webm audio only DASH webm audio , audio@ 48k (worst) 140 m4a audio only DASH audio , audio@128k 160 mp4 192p DASH video 242 webm 240p DASH webm 133 mp4 240p DASH video 243 webm 360p DASH webm 134 mp4 360p DASH video 244 webm 480p DASH webm 135 mp4 480p DASH video **** 247 webm 720p DASH webm 136 mp4 720p DASH video 17 3gp 176x144 36 3gp 320x240 5 flv 400x240 43 webm 640x360 18 mp4 640x360 22 mp4 1280x720 (best) I had chosen the 135 one, reasonable resolution and size. Well... xine fails to play it completely. Vlc can play it, but no sound. It even disables Pulse! mediainfo says: +++··························· General Complete name : *** Format : dash Codec ID : dash File size : 456 MiB Duration : 1h 23mn Overall bit rate : 761 Kbps Encoded date : UTC 2014- Tagged date : UTC 2014- Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Main@L3.0 Format settings, CABAC : Yes Format settings, ReFrames : 3 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1h 23mn Bit rate : 759 Kbps Width : 854 pixels Height : 480 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.074 Stream size : 454 MiB (100%) Encoded date : UTC 2014-04-08 03:35:22 Tagged date : UTC 2014-04-08 03:35:22 ···························++- Apparently, no sound info. Vlc info confirms it, no audio track. Well, the problem is, apparently, that "DASH" thing. The wikipedia explains it: http://en.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP +++··························· Dynamic Adaptive Streaming over HTTP From Wikipedia, the free encyclopedia Dynamic Adaptive Streaming over HTTP (DASH), also known as MPEG-DASH, is an adaptive bitrate streaming technique that enables high quality streaming of media content over the Internet delivered from conventional HTTP web servers. Similar to Apple's HTTP Live Streaming (HLS) solution, MPEG-DASH works by breaking the content into a sequence of small HTTP-based file segments, each segment containing a short interval of playback time of a content that is potentially many hours in duration, such as a movie or the live broadcast of a sports event. The content is made available at a variety of different bit rates, i.e., alternative segments encoded at different bit rates covering aligned short intervals of play back time are made available. As the content is played back by an MPEG-DASH client, the client automatically selects from the alternatives the next segment to download and play back based on current network conditions. The client selects the segment with the highest bit rate possible that can be downloaded in time for play back without causing stalls or rebuffering events in the playback. Thus, an MPEG-DASH client can seamlessly adapt to changing network conditions, and provide high quality play back without stalls or rebuffering events. MPEG-DASH is the first adaptive bit-rate HTTP-based streaming solution that is an international standard.[1] MPEG-DASH should not be confused with a protocol — the protocol that MPEG-DASH uses is HTTP, hence the "H" in the name. MPEG-DASH uses the previously existing HTTP web server infrastructure that is used for delivery of essentially all World Wide Web content. It allows devices such as Internet connected televisions, TV set-top boxes, desktop computers, smartphones, tablets, etc. to consume multimedia content (video, TV, radio...) delivered via the Internet, coping with variable Internet receiving conditions, thanks to its adaptive streaming technology. Standardizing an adaptive streaming solution is meant to provide confidence to the market that the solution can be adopted for universal deployment, compared to similar but more proprietary solutions such as HLS by Apple, Smooth Streaming by Microsoft, or HDS by Adobe. ···························++- Well... so, I have to choose a plain media download instead, the one numbered 18. So... perhaps if that thing is adaptive, speed can not be controlled easily. So I tried the download of the 18 type, without trickle - but no, download speed is not controlled continuously. I still need trickle. Firefox does not support "dash", apparently: http://www.streamingmedia.com/Articles/Editorial/What-Is-.../What-is-MPEG-DA... +++··························· Finally, at this point, it remains unclear whether DASH usage will be royalty-free. This may impact adaption by many potential users, including Mozilla, who has already commented that it’s “unlikely to implement” DASH unless and until it’s completely royalty-free. With Firefox currently sitting at around 22% of market share, this certainly dims DASH’s impact in the HTML5 market. ···························++- Here is more info: http://blog.smplayer.info/how-to-play-the-new-1080p-dash-format-from-youtube... +++··························· In this format the video and audio are separated in different streams. Youtube-dl can download videos in this format (it’s necessary to download both the video and audio streams). The development version of smplayer can play the files downloaded by youtube-dl. You just open the video (with mp4 extension) and smplayer will use automatically the m4a for the audio. ···························++- Audio and video have to be downloaded separately: 137 : mp4 [1080p] (DASH Video) 141 : m4a [256k] (DASH Audio) youtube-dl -f 137 http://www.youtube.com/watch?v=Vpg9yizPP_g youtube-dl -f 141 http://www.youtube.com/watch?v=Vpg9yizPP_g And then both files can be joined: mencoder -oac copy -ovc copy -fafmttag 0x706d -of lavf \ -lavfopts format=mp4 "video_file.mp4" \ -audiofile "audio_file.m4a" -o full_movie.mp4 :-o ! -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)